]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Small tcache improvements
[thirdparty/glibc.git] / ChangeLog
1 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
4 (tcache_put): Remove redundant assert.
5 (tcache_get): Remove redundant asserts.
6 (__libc_malloc): Check tcache count is not zero.
7 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
8
9 2019-05-17 Florian Weimer <fweimer@redhat.com>
10
11 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
12
13 2019-05-16 Joseph Myers <joseph@codesourcery.com>
14
15 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
16 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
17 0x050100].
18 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
19 Likewise.
20 * sysdeps/unix/sysv/linux/sh/kernel-features.h
21 (__ASSUME_STATX): Likewise.
22
23 2019-05-16 Florian Weimer <fweimer@redhat.com>
24
25 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
26 flags argument.
27 (LINE_PARSER): Do not map IPv4 addresses.
28 (internal_nis_gethostent_r): Remove flags argument. Adjust call
29 to parse_line.
30 (_nss_nis_gethostent_r): Always pass AF_INET to
31 internal_nis_gethostent_r.
32 (internal_gethostbyname2_r): Remove flags argument. Adjust call
33 to parse_line.
34 (_nss_nis_gethostbyname2_r): Adjust call to
35 internal_nis_gethostent_r.
36 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
37 call to internal_nis_gethostent_r.
38 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
39 from parse_line.
40 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
41 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
42 Remove flags argument. Do not map IPv4 addresses.
43 (internal_nisplus_gethostent_r): Adjust call to
44 _nss_nisplus_parse_hostent.
45 (internal_gethostbyname2_r): Remove flags argument. Adjust call
46 to _nss_nisplus_parse_hostent.
47 (_nss_nisplus_gethostbyname2_r): Adjust call to
48 internal_gethostbyname2_r.
49 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
50 Adjust call to internal_gethostbyname2_r.
51 (_nss_nisplus_gethostbyaddr_r): Adjust call to
52 _nss_nisplus_parse_hostent.
53 (_nss_nisplus_gethostbyname4_r): Adjust call to
54 internal_gethostbyname2_r.
55
56 2019-05-16 Florian Weimer <fweimer@redhat.com>
57
58 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
59 Remove flags.
60 (LINE_PARSER): Remove address mapping.
61 (EXTRA_ARGS_VALUE): Remove flags argument.
62 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
63 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
64 gethostbyname3_multi.
65 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
66 _nss_files_gethostbyname3_r.
67 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
68
69 2019-05-16 Florian Weimer <fweimer@redhat.com>
70
71 * support/support_test_compare_blob.c (report_blob): Report
72 incorrect NULL blobs.
73
74 2019-05-15 Mark Wielaard <mark@klomp.org>
75
76 [BZ# 24476]
77 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
78 __libc_once_get (once) and static_buf == NULL.
79 (__dlerror): Check we have a valid key, set result to static_buf
80 otherwise.
81
82 2019-05-15 Andreas Schwab <schwab@suse.de>
83
84 [BZ #20568]
85 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
86 __codecvt_do_length.
87 * libio/Makefile (tests): Add tst-wfile-sync.
88 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
89 * libio/tst-wfile-sync.c: New file.
90 * libio/tst-wfile-sync.input: New file.
91
92 2019-05-15 Florian Weimer <fweimer@redhat.com>
93
94 nss: Turn __nss_database_lookup into a compatibility symbol.
95 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
96 __nss_database_lookup.
97 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
98 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
99 __nss_database_lookup.
100 (__nss_next): Move to …
101 * nss/compat-lookup.c (nss_next): … here. Change it to fail
102 unconditionally.
103 (__nss_database_lookup): New function.
104 * nss/Versions (GLIBC_2.0): Update comment.
105 (GLIBC_PRIVATE): Export __nss_database_lookup2.
106 * grp/initgroups.c (internal_getgrouplist): Call
107 __nss_database_lookup2 instead of __nss_database_lookup.
108 * nscd/aicache.c (addhstaiX): Likewise.
109 * nscd/initgrcache.c (addinitgroupsX): Likewise.
110 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
111 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
112 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
113 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
114 Likewise.
115 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
116 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
117 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
118
119 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
120
121 * support/support.h (support_install_rootsbindir): New variable.
122 * support/support_paths.c: Likewise.
123 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
124
125 2019-05-15 Florian Weimer <fweimer@redhat.com>
126
127 * iconv/gconv.h (__gconv_transliterate): Move declaration …
128 * iconv/gconv_int.h (__gconv_transliterate): … here.
129 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
130 * iconv/skeleton.c: Likewise.
131
132 2019-05-14 Florian Weimer <fweimer@redhat.com>
133
134 Linux: Add the tgkill function.
135 * bits/signal_ext.h: New file.
136 * manual/signal.texi (Signaling Another Process): Document tgkill.
137 * signal/Makefile (headers): Add bits/signal_ext.h.
138 * signal/signal.h: Include <bits/signal_ext.h>.
139 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
140 (tst-tgkill): Link with libpthread.
141 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
142 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
143 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
144 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
145 tgkill.
146 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
147 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
148 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
149 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
150 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
151 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
152 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
153 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
154 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
155 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
156 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
157 Likewise.
158 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
159 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
160 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
162 Likewise.
163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
164 Likewise.
165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
166 Likewise.
167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
168 Likewise.
169 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
170 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
171 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
172 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
173 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
174 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
175 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
176 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
177
178 2019-05-14 Carlos O'Donell <carlos@redhat.com>
179
180 * manual/search.texi (Tree Search Function): Adjust twalk_r
181 documentation.
182
183 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
184
185 [BZ #24544]
186 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
187 pre-defined value.
188
189 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
190 * support/support.h (support_bindir_prefix): New variable.
191 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
192
193 * config.make.in (bindir): New variable.
194
195 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
196 (lll_trylock): Call __lll_trylock.
197 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
198 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
199 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
200 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
201 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
202 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
203 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
204 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
205 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
206 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
207 lowlevellock-futex.h.
208
209 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
210 initialization for LLL_LOCK_INITIALIZER different than 0.
211 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
212 Assume LLL_LOCK_INITIALIZER being 0.
213 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
214 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
215 Likewise.
216 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
217 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
218
219 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
220 Optimize futex call and add systemtap probe.
221
222 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
223 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
224 __libc_disable_asynccancel, __librt_enable_asynccancel,
225 __libc_disable_asynccancel, __librt_enable_asynccancel,
226 __librt_disable_asynccancel): Move to ...
227 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
228 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
229 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
230 * sysdeps/generic/single-thread.h: New file.
231 * sysdeps/unix/sysdep.h: Include single-thread.h.
232 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
233 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
234
235 2019-05-08 Mike FABIAN <mfabian@redhat.com>
236
237 [BZ #24535]
238 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
239 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
240 Unicode 12.1.0.
241 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
242 * localedata/unicode-gen/PropList.txt: Likewise.
243 * localedata/unicode-gen/UnicodeData.txt: Likewise.
244 * localedata/charmaps/UTF-8: Regenerate.
245 * localedata/locales/i18n_ctype: Likewise.
246 * localedata/locales/tr_TR: Likewise.
247 * localedata/locales/translit_circle: Likewise.
248 * localedata/locales/translit_cjk_compat: Likewise.
249 * localedata/locales/translit_combining: Likewise.
250 * localedata/locales/translit_compat: Likewise.
251 * localedata/locales/translit_font: Likewise.
252 * localedata/locales/translit_fraction: Likewise.
253
254 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
255
256 [BZ #24531]
257 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
258 (do_set_tcache_count): Only update if count is small enough.
259 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
260
261 2019-05-10 Florian Weimer <fweimer@redhat.com>
262
263 * nptl/sem_close.c (struct walk_closure): Define.
264 (walker): Adjust for __twalk_r.
265 (sem_close): Call __twalk_r.
266
267 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
268
269 * support/timespec.c (test_timespec_before_impl,
270 test_timespec_equal_or_after_impl): print timespec member as intmax_t
271 insted of long int.
272
273 2019-05-09 Mike Crowe <mac@mcrowe.com>
274
275 * nptl/tst-abstime.c: Use libsupport.
276
277 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
278 small bug where only tv.tv_usec was checked which could cause an
279 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
280 than a second.
281
282 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
283 libsupport.
284
285 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
286 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
287
288 * nptl/tst-cond11.c: Use libsupport.
289
290 * support/timespec.h: New file. Provide timespec helper functions
291 along with macros in the style of those in check.h.
292 * support/timespec.c: New file. Implement check functions declared
293 in support/timespec.h.
294 * support/timespec-add.c: New file from gnulib containing
295 timespec_add implementation that handles overflow.
296 * support/timespec-sub.c: New file from gnulib containing
297 timespec_sub implementation that handles overflow.
298 * support/README: Mention timespec.h.
299
300 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
301
302 [BZ #24537]
303 * nptl/Makefile: Move tst-eintr1 to xtests.
304
305 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
306
307 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
308 TRUNC handling.
309 (round_mode): Add definition for TRUNC.
310 * sysdeps/powerpc/fpu/s_trunc.c: New file.
311 * sysdeps/powerpc/fpu/s_truncf.c: New file.
312 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
313 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
314 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
315 Likewise.
316 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
317 Likewise.
318 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
319 Likewise.
320 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
321 Likewise.
322 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
323 file.
324 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
325 Likewise.
326 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
327 Likewise.
328 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
329 Likewise.
330 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
331 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
332 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
333 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
334 s_truncf-power5+, and s_truncf-ppc64.
335 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
336 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
337 file.
338 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
340 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
341 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
342 file.
343 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
344 Likewise.
345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
346 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
347 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
348 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
349 s_truncf-power5+, and s_truncf-ppc64.
350 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
351 file.
352 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
353 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
354 Likewise.
355 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
356 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
357 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
358 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
359 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
360
361 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
362 ROUND handling.
363 (round_mode): Add definition for ROUND.
364 (round_to_integer_float): Likewise.
365 * sysdeps/powerpc/fpu/s_round.c: New file.
366 * sysdeps/powerpc/fpu/s_roundf.c: New file.
367 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
368 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
369 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
370 Likewise.
371 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
372 Likewise.
373 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
374 Likewise.
375 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
376 Likewise.
377 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
378 file.
379 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
380 Likewise.
381 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
382 Likewise.
383 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
384 Likewise.
385 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
386 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
387 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
388 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
389 s_roundf-power5+, and s_roundf-ppc64.
390 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
391 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
392 file.
393 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
395 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
396 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
397 file.
398 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
399 Likewise.
400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
401 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
402 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
403 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
404 s_roundf-power5+, and s_roundf-ppc64.
405 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
406 file.
407 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
408 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
409 Likewise.
410 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
411 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
412 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
413 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
414 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
415
416 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
417 Add FLOOR option.
418 (round_mode): Add definition for FLOOR.
419 * sysdeps/powerpc/fpu/s_floor.c: New file.
420 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
421 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
422 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
424 Remove file.
425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
426 Likewise
427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
428 Likewise.
429 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
430 Likewise.
431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
432 New file.
433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
434 Likewise.
435 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
436 Likewise.
437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
438 Likewise.
439 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
440 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
441 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
442 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
443 s_floorf-power5+, and s_floorf-ppc64.
444 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
445 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
446 file.
447 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
449 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
450 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
451 file.
452 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
453 Likewise.
454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
455 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
456 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
457 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
458 s_floorf-power5+, and s_floorf-ppc64.
459 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
460 file.
461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
462 file.
463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
464 Likewise.
465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
466 Likewise.
467 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
468 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
469 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
470 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
471
472 2019-05-08 Mike Crowe <mac@mcrowe.com>
473
474 * support/xclock_gettime.c (xclock_gettime): New file. Provide
475 clock_gettime wrapper for use in tests that fails the test rather
476 than returning failure.
477
478 * support/xtime.h: New file to declare xclock_gettime.
479
480 * support/Makefile: Add xclock_gettime.c.
481
482 * support/README: Mention xtime.h.
483
484 2019-05-08 Florian Weimer <fweimer@redhat.com>
485
486 malloc/tst-mallocfork2: Use process-shared barriers.
487 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
488 (signal_count, sigusr1_sender_pid): Remove.
489 (iterations): Define constant.
490 (shared): New variable.
491 (sigusr1_received): Update comment.
492 (sigusr1_handler): Do not send SIGSTOP to the sender process.
493 (signal_sender): Optional use barriers to avoid sending signals
494 during irrelevant times.
495 (do_it): Initialize variable shared. Use xfork for error
496 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
497 the iteration count, independent of signal delivery. Check for
498 deadlocks in fork. Introduce barriers for reducing signal
499 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
500 replaced by the barriers. Count signals during fork/free/malloc
501 and report them.
502 * malloc/Makefile (tst-mallocfork): Link with libpthread.
503
504 2019-05-07 Joseph Myers <joseph@codesourcery.com>
505
506 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
507 version to 5.1.
508 (clock_adjtime64) New syscall.
509 (clock_getres_time64) Likewise.
510 (clock_gettime64) Likewise.
511 (clock_nanosleep_time64) Likewise.
512 (clock_settime64) Likewise.
513 (futex_time64) Likewise.
514 (io_pgetevents_time64) Likewise.
515 (io_uring_enter) Likewise.
516 (io_uring_register) Likewise.
517 (io_uring_setup) Likewise.
518 (mq_timedreceive_time64) Likewise.
519 (mq_timedsend_time64) Likewise.
520 (pidfd_send_signal) Likewise.
521 (ppoll_time64) Likewise.
522 (pselect6_time64) Likewise.
523 (recvmmsg_time64) Likewise.
524 (rt_sigtimedwait_time64) Likewise.
525 (sched_rr_get_interval_time64) Likewise.
526 (semtimedop_time64) Likewise.
527 (timer_gettime64) Likewise.
528 (timer_settime64) Likewise.
529 (timerfd_gettime64) Likewise.
530 (timerfd_settime64) Likewise.
531 (utimensat_time64) Likewise.
532
533 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
534 version to 9 branch.
535
536 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
537
538 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
539 __memmove_thunderx2 to the list of implementations
540 * sysdeps/aarch64/multiarch/memmove.c: Likewise
541 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
542 (__memmove_thunderx2): Rewritten using SIMD ld/st
543 (__memcpy_thunderx2): Fixed handling overlapping cases.
544 Used ldp/stp instead of ldr/str if possible. Made loops
545 tails branchless.
546
547 2019-05-03 Florian Weimer <fweimer@redhat.com>
548
549 * misc/tst-tsearch.c (walk_tree): Add more error checking.
550
551 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
552
553 [BZ #24506]
554 * elf/tst-pldd.c (in_str_list): New function.
555 (do_test): Add default names for ld and libc as one option.
556
557 2019-05-02 Florian Weimer <fweimer@redhat.com>
558
559 misc: Add twalk_r function.
560 * include/search.h (__twalk_r): Declare.
561 * manual/examples/twalk.c: New file.
562 * manual/search.texi (Tree Search Function): Document twalk_r.
563 * misc/Versions (2.30): Export twalk_r.
564 (GLIBC_PRIVATE): Export __twalk_r.
565 * misc/search.h [__USE_GNU] (twalk_r): Declare.
566 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
567 (twalk_r): Add weak alias.
568 * misc/tst-tsearch.c (struct walk_trace_element): Define.
569 (walk_trace): New variable.
570 (struct twalk_with_twalk_r_closure): Define.
571 (twalk_with_twalk_r_action): New function.
572 (twalk_with_twalk_r): Likewise.
573 (walk_action): Call walk_trace_add.
574 (walk_tree_with): Rename from walk_tree. Add walk argument.
575 (walk_tree): New function.
576 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
577 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
578 Likewise.
579 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
580 Likewise.
581 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
582 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
583 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
584 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
585 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
586 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
587 Likewise.
588 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
589 Likewise.
590 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
591 Likewise.
592 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
593 (GLIBC_2.30): Likewise.
594 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
595 (GLIBC_2.30): Likewise.
596 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
597 (GLIBC_2.30): Likewise.
598 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
599 (GLIBC_2.30): Likewise.
600 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
601 Likewise.
602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
603 (GLIBC_2.30): Likewise.
604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
605 (GLIBC_2.30): Likewise.
606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
607 (GLIBC_2.30): Likewise.
608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
609 (GLIBC_2.30): Likewise.
610 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
611 Likewise.
612 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
613 Likewise.
614 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
615 Likewise.
616 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
617 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
618 Likewise.
619 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
620 Likewise.
621 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
622 Likewise.
623 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
624 Likewise.
625
626 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
627
628 Make mktime etc. compatible with __time64_t
629 Keep these functions compatible with Gnulib while adding
630 __time64_t support. The basic idea is to move private API
631 declarations from include/time.h to time/mktime-internal.h, since
632 the former file cannot easily be shared with Gnulib whereas the
633 latter can.
634 Also, do some other minor cleanup while in the neighborhood.
635 * include/time.h: Include stdbool.h, time/mktime-internal.h.
636 (__mktime_internal): Move this prototype to time/mktime-internal.h,
637 since Gnulib needs it.
638 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
639 Move these macros to time/mktime-internal.h, since Gnulib needs them.
640 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
641 (in_time_t_range): New static function.
642 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
643 so that glibc users are not tempted to use __time64_t.
644 * time/mktime-internal.h: Rewrite so that it does both glibc
645 and Gnulib work. Include time.h if not _LIBC.
646 (mktime_offset_t) [!_LIBC]: Define for gnulib.
647 (__time64_t): New type or macro, moved here from
648 posix/bits/types.h.
649 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
650 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
651 from include/time.h.
652 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
653 New macros, taken from GNulib.
654 (__mktime_internal): New prototype, moved here from include/time.h.
655 * time/mktime.c (mktime_min, mktime_max, convert_time)
656 (ranged_convert, __mktime_internal, __mktime64):
657 * time/timegm.c (__timegm64):
658 Use __time64_t, not time_t.
659 * time/mktime.c: Stop worrying about whether time_t is floating-point.
660 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
661 Rename from mktime.
662 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
663 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
664 for libc_hidden_def.
665 Include errno.h.
666 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
667 Rename from timegm.
668 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
669
670 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
671
672 [BZ #19444]
673 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
674 from `-Wmaybe-uninitialized'.
675 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
676
677 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
678
679 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
680 function.
681 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
682 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
683 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
684 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
685 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
686 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
687 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
688 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
689 Remove file.
690 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
691 Likewise.
692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
693 Likewise.
694 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
695 Likewise.
696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
697 New file.
698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
699 Likewise.
700 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
701 Likewise.
702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
703 Likewise.
704 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
705 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
706 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
707 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
708 Likewise.
709 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
710 Likewise.
711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
712 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
713 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
714 file.
715 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
716 Likewise.
717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
718 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
719 * here.
720 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
721 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
722 s_ceilf-power5+, and s_ceilf-ppc64.
723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
724 file.
725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
728 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
729 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
730 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
731 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
732
733 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
734 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
735 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
736
737 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
738
739 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
740 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
741 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
742 (sem_getvalue): Likewise.
743
744 2019-04-26 Florian Weimer <fweimer@redhat.com>
745
746 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
747 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
748
749 2019-04-26 Florian Weimer <fweimer@redhat.com>
750
751 Makeconfig: Move -Wl,-rpath-link options before library references.
752 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
753 (link-libc): Remove $(link-libc-rpath-link).
754
755 2019-04-25 Florian Weimer <fweimer@redhat.com>
756
757 * Makeconfig (+link-pie-before-libc): Remove $(CC).
758 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
759 (+link-static-before-libc): Remove $(CC).
760 (+link-static, +link-static-tests): Add $(CC).
761 (+link-before-libc): Remove $(CC).
762 (+link, +link-pie, +link-pie-printers): Add $(CC).
763
764 2019-04-26 Florian Weimer <fweimer@redhat.com>
765
766 * Makeconfig (+link-pie-before-libc): Remove $(CC).
767 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
768 (+link-static-before-libc): Remove $(CC).
769 (+link-static, +link-static-tests): Add $(CC).
770 (+link-before-libc): Remove $(CC).
771 (+link, +link-pie, +link-pie-printers): Add $(CC).
772
773 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
774
775 [BZ#24484]
776 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
777
778 2019-04-25 Florian Weimer <fweimer@redhat.com>
779
780 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
781 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
782 (bench-link-targets): New variable.
783 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
784
785 2019-04-25 Florian Weimer <fweimer@redhat.com>
786
787 Also enable BIND_NOW for programs if --enable-bind-now.
788 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
789 (+link-pie): Use $(link-extra-flags).
790 (+link-static): Likewise.
791 [! $(build-pie-default)] (+link): Likewise.
792 * manual/install.texi (Configuring and compiling): Update
793 --enable-bind-now description.
794 * INSTALL: Regenerated.
795
796 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
797
798 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
799 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
800
801 2019-04-24 Mike Frysinger <vapier@gentoo.org>
802
803 [BZ #18465]
804 * malloc/Makefile (others): Add memusagestat.
805 ($(objpfx)memusagestat): Delete rule.
806 (LDLIBS-memusagestat): New variable.
807
808 2019-04-24 Florian Weimer <fweimer@redhat.com>
809
810 * locale/Makefile (tests-special): Guard setting by
811 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
812 to run while cross-compiling.
813
814 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
815
816 [BZ #18035]
817 * elf/Makefile (tests-container): Add tst-pldd.
818 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
819 (E(find_maps)): Avoid use alloca, use default read file operations
820 instead of explicit LFS names, and fix infinite loop.
821 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
822 (get_process_info): Use _Static_assert instead of assert, use default
823 directory operations instead of explicit LFS names, and free some
824 leadek pointers.
825 * elf/tst-pldd.c: New file.
826
827 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
828
829 * malloc/arena.c (do_set_mallopt_check): Removed.
830
831 2019-04-23 Florian Weimer <fweimer@redhat.com>
832
833 locale: Add LOCPATH diagnostics to the locale program.
834 * locale/programs/locale.c (setlocale_failed): New variable.
835 (try_setlocale): New function.
836 (quote_string): Likewise.
837 (setlocale_diagnostics): Likewise.
838 (main): Call try_setlocale instead of setlocale. Call
839 setlocale_diagnostics.
840 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
841 (tst-locale-locpath.out): New target.
842 * locale/tst-locale-locpath.sh: New file.
843
844 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
845
846 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
847 to 2.30 notes.
848
849 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
850
851 [BZ #23741]
852 * malloc/hooks.c (malloc_check, realloc_check): Use
853 __builtin_add_overflow on overflow check and adapt to
854 checked_request2size change.
855 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
856 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
857 allocation size to PTRDIFF_MAX.
858 (REQUEST_OUT_OF_RANGE): Remove macro.
859 (checked_request2size): Change to inline function and limit maximum
860 requested size to PTRDIFF_MAX.
861 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
862 maximum allocation size to PTRDIFF_MAX.
863 (_mid_memalign): Use _int_memalign call for overflow check.
864 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
865 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
866 limit maximum requested size to PTRDIFF_MAX.
867 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
868 valloc, pvalloc): Add __attribute_alloc_size__.
869 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
870 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
871 larger than PTRDIFF_MAX.
872 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
873 around tests of malloc with negative sizes.
874 * malloc/tst-posix_memalign.c (do_test): Likewise.
875 * malloc/tst-pvalloc.c (do_test): Likewise.
876 * malloc/tst-valloc.c (do_test): Likewise.
877 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
878 with resulting size allocation larger than PTRDIFF_MAX with
879 reallocarray_nowarn.
880 (reallocarray_nowarn): New function.
881 * NEWS: Mention the malloc function semantic change.
882
883 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
884
885 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
886 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
887
888 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
889 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
890 * sysdeps/powerpc/fpu/s_fma.c: New file.
891 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
892
893 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
894 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
895
896 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
897 the magic flag store.
898 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
899 Likewise.
900 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
901 Likewise.
902 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
903 Remove rt_sigreturn call.
904
905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
906 Remove rt_sigreturn call.
907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
908 Likewise.
909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
911
912 * support/Makefile (libsupport-routines): Add support_subprocess,
913 xposix_spawn, xposix_spawn_file_actions_addclose, and
914 xposix_spawn_file_actions_adddup2.
915 (tst-support_capture_subprocess-ARGS): New rule.
916 * support/capture_subprocess.h (support_capture_subprogram): New
917 prototype.
918 * support/support_capture_subprocess.c (support_capture_subprocess):
919 Refactor to use support_subprocess and support_capture_poll.
920 (support_capture_subprogram): New function.
921 * support/tst-support_capture_subprocess.c (write_mode_to_str,
922 str_to_write_mode, test_common, parse_int, handle_restart,
923 do_subprocess, do_subprogram, do_multiple_tests): New functions.
924 (do_test): Add support_capture_subprogram tests.
925 * support/subprocess.h: New file.
926 * support/support_subprocess.c: Likewise.
927 * support/xposix_spawn.c: Likewise.
928 * support/xposix_spawn_file_actions_addclose.c: Likewise.
929 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
930 * support/xspawn.h: Likewise.
931
932 2019-04-17 Mike Gerow <gerow@google.com>
933
934 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
935 groups limit.
936
937 2019-04-11 Florian Weimer <fweimer@redhat.com>
938
939 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
940 domain with empty string.
941 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
942
943 2019-04-11 Florian Weimer <fweimer@redhat.com>
944
945 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
946 comment.
947 (alloc_buffer_next): Change return type to non-const. Update
948 comment.
949
950 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
951
952 * manual/time.texi (Formatting Calendar Time): Add missing percent
953 sign to conversion specifier.
954
955 2019-04-09 Carlos O'Donell <carlos@redhat.com>
956 Kwok Cheung Yeung <kcy@codesourcery.com>
957
958 [BZ #16573]
959 * malloc/mtrace.c: Define prototypes for all hooks.
960 (set_default_hooks): New function.
961 (set_trace_hooks): Likewise.
962 (save_default_hooks): Likewise.
963 (tr_freehook): Use new s*_hooks functions.
964 (tr_mallochook): Likewise.
965 (tr_reallochook): Likewise.
966 (tr_memalignhook): Likewise.
967 (mtrace): Likewise.
968 (muntrace): Likewise.
969
970 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
971
972 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
973 (generic_stpcpy): New function.
974 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
975 (generic_stpncpy): New function.
976 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
977 (generic_strcat): New function.
978 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
979 (generic_strcpy): New function.
980 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
981 (STUPID_STRNCAT): Remove function.
982 (generic_strncat): New function.
983 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
984 (STUPID_STRNCPY): Remove function.
985 (generic_strncpy): New function.
986 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
987 (generic_strnlen): New function.
988 (memchr_strnlen): New function.
989 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
990 (memchr_strlen): Likewise.
991
992 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
993
994 * benchtests/bench-strstr.c (input): Add realistic input text.
995 (stupid_strstr): Remove function.
996 (basic_strstr): Add function.
997 (twoway_strstr): Add function.
998 (do_one_test): Add result checking.
999 (do_test): Use new input text. Remove accidental early matches.
1000 (test_main): Improve range of tests, reduce unaligned cases.
1001
1002 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1003
1004 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1005 (basic_memmem): Add function.
1006 (twoway_memmem): Add function.
1007
1008 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1009
1010 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1011 * benchtests/bench-malloc-thread.c: Likewise.
1012 * benchtests/bench-skeleton.c: Likewise.
1013 * benchtests/bench-strtod.c: Likewise.
1014 * benchtests/bench-timing.h: Likewise.
1015
1016 2019-04-08 Florian Weimer <fweimer@redhat.com>
1017
1018 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1019 definitions.
1020 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1021 RES_INSECURE2 security checks.
1022 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1023 RES_INSECURE2 handling.
1024
1025 2019-04-08 Florian Weimer <fweimer@redhat.com>
1026
1027 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1028 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1029 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1030 GETHOSTBYNAME.
1031 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1032 (tests-internal): Update justification for tst-resolv-res_init,
1033 tst-resolv-res_init-thread.
1034 (tst-res_use_inet6): Remove target.
1035 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1036 * resolv/res_debug.c (p_option): Remove "inet6" support.
1037 * resolv/res_init.c (res_setoptions): Likewise.
1038 * resolv/res_use_inet6.h: Remove file.
1039 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1040 definition.
1041 (res_use_inet6): Always return false.
1042 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1043 * resolv/resolv_context.h: Adjust file comment.
1044 (struct resolv_context): Update comment on __next field.
1045 (__resolv_context_put): Update comment.
1046 * resolv/tst-res_use_inet6.c: Remove file.
1047 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1048 "inet6" support.
1049 (test_cases): Adjust test case.
1050 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1051 (thread_byname2_af_inet6): Use old byname_inet6 code.
1052 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1053 (gai): Remove do_inet6 argument.
1054 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1055 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1056 (thread_gai_unspec_inet6): Remove functions.
1057 (do_test): Adjust thread_funcs.
1058 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1059 RES_USE_INET6 flag.
1060 (gaih_inet): Do not disable RES_USE_INET6 flag.
1061
1062 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1063
1064 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1065 and remove redundant code.
1066
1067 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1068
1069 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1070 New rule.
1071 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1072 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1073 Likewise.
1074 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1075 Likewise.
1076 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1077 Likewise.
1078 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1079 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1080 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1081 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1082 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1083 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1084 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1085 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1086 wcsrchr-power7.
1087 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1088 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1089 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1090 Remove wcsrchr optimizations.
1091 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1092
1093 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1094 the loop unroll.
1095
1096 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1097 New rule.
1098 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1099 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1100 Likewise.
1101 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1102 Likewise.
1103 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1104 Likewise.
1105 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1106 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1107 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1108 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1109 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1110 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1111 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1112 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1113 wcschr-power7.
1114 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1115 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1116 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1117 Remove wcschr optimizations.
1118 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1119
1120 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1121 the loop unroll.
1122
1123 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1124 New rule.
1125 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1126 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1127 Likewise.
1128 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1129 Likewise.
1130 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1131 Likewise.
1132 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1133 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1134 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1135 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1136 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1137 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1138 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1139 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1140 wcscpy-power7.
1141 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1142 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1143 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1144 Remove wcscpy optimizations.
1145 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1146
1147 * include/loop_unroll.h: New file.
1148 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1149 besides generic implementation.
1150
1151 2019-04-03 DJ Delorie <dj@redhat.com>
1152
1153 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1154 snprintf truncating output.
1155
1156 2019-04-02 DJ Delorie <dj@redhat.com>
1157
1158 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1159 warning.
1160
1161 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1162
1163 [BZ #22964]
1164 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1165 era.
1166 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1167 (mkreftable): Add rules for the new Japanese era and the new dates.
1168
1169 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1170 Rafal Luzynski <digitalfreak@lingonborough.com>
1171
1172 * time/tst-strftime2.c (date_t): Explicitly define the type.
1173 (dates): Use natural month and year numbers to express a date.
1174 (is_before): New function to compare dates.
1175 (mkreftable): Minor improvements to simplify maintenance.
1176 (do_test): Reflect the changes in dates array.
1177
1178 [BZ #24293]
1179 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1180 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1181 * time/tst-strftime2.c (locales): Likewise.
1182 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1183 2010-04-01, and 2011-04-01.
1184 (mkreftable): Add rules for the new locales and the new dates.
1185
1186 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1187
1188 * localedata/locales/ja_JP: Add comments to era entries.
1189
1190 2019-04-01 DJ Delorie <dj@redhat.com>
1191
1192 [BZ #24394]
1193 * time/strptime_l.c (%Ey): Fix fencepost error.
1194 * time/tst-strftime3.c: New.
1195 * time/Makefile (tests): Add tst-strftime3.
1196
1197 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1198
1199 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1200 conditional branch to DIVBYZERO. Fix unwind info.
1201 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1202 excb after conditional branch to $powerof2. Add missing unop
1203 instructions and .align directives and reorder instructions to
1204 match __divqu.
1205
1206 2019-04-01 Richard Henderson <rth@twiddle.net>
1207
1208 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1209 Do not redefine.
1210 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1211 Do not redefine.
1212
1213 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1214
1215 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1216 $libc_cv_riscv_float_abi in `test' invocation.
1217 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1218
1219 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1220
1221 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1222 asm with builtin.
1223 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1224 Likewise.
1225 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1226 (_GET_SI_FPSCR): Likewise.
1227 (_SET_SI_FPSCR): Likewise.
1228
1229 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1230
1231 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1232 clang 2.8.
1233 (signbit): Use builtin for clang 3.3.
1234 (isinf): Use builtin for clang 3.7.
1235
1236 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1237
1238 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1239
1240 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1241
1242 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1243 quote in printf.
1244
1245 2019-03-25 Mike Crowe <mac@mcrowe.com>
1246
1247 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1248 pthread_rwlock_timedrdlock with calls to
1249 pthread_rwlock_timedwrlock to ensure that the latter is tested
1250 too. Use new function name in diagnostic messages too.
1251
1252 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1253 (do_test) Use libsupport test macros rather than hand-coded
1254 conditionals and error messages. Ensure that sem_init returns zero
1255 rather than not -1. Use <support/test-driver.c> rather than
1256 test-skeleton.c.
1257
1258 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1259 test macros rather than hand-coded conditionals and error messages.
1260 Use <support/test-driver.c> rather than test-skeleton.c.
1261
1262 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1263
1264 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1265
1266 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1267 (NT_MIPS_MSA): Likewise.
1268
1269 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1270
1271 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1272 * benchtests/README: Update description.
1273 * benchtests/bench-timing.h: Default to hp-timing.
1274 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1275 HP_TIMING_PRINT): Remove.
1276 (HP_TIMING_NOW): Add generic implementation.
1277 (hp_timing_t): Change to uint64_t.
1278
1279 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1280 HP_TIMING_INLINE.
1281 * nptl/descr.h: Likewise.
1282 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1283 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1284 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1285 Abstract hp-timing usage with RTLD_* macros.
1286 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1287 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1288 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1289 HP_TIMING_NONAVAIL): Likewise.
1290 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1291 Likewise.
1292 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1293 HP_SMALL_TIMING_AVAIL): Likewise.
1294 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1295 HP_SMALL_TIMING_AVAIL): Likewise.
1296 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1297 HP_SMALL_TIMING_AVAIL): Likewise.
1298 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1299 HP_SMALL_TIMING_AVAIL): Likewise.
1300 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1301 Likewise.
1302 * sysdeps/generic/hp-timing-common.h: Update comment with
1303 HP_TIMING_AVAIL removal.
1304
1305 * include/random-bits.h: New file.
1306 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1307 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1308 random_bits.
1309 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1310 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1311 Likewise.
1312
1313 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1314 * rt/Makefile (clock-routines): Remove get_clockfreq.
1315 * rt/get_clockfreq.c: Remove file.
1316 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1317 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1318 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1319 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1320 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1321
1322 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1323 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1324 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1325 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1326 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1327
1328 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1329 pthread_clock_settime.
1330 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1331 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1332 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1333 * elf/rtld.c (_dl_start_final): Likewise.
1334 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1335 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1336 Remove.
1337 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1338 (_dl_cpuclock_offset): Remove.
1339 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1340 cpuclock_offset_ununsed.
1341 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1342 cpuclock_offset set.
1343 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1344 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1345 * nptl/pthread_clock_gettime.c: Remove file.
1346 * nptl/pthread_clock_settime.c: Likewise.
1347 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1348 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1349 and CLOCK_PROCESS_CPUTIME_ID support.
1350 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1351 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1352 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1353 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1354 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1355 Likewise.
1356 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1357
1358 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1359
1360 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1361 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1362 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1363 New defines.
1364 * sysdeps/s390/memmem-arch13.S: New file.
1365 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1366 if it is only used as fallback.
1367 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1368 * sysdeps/s390/multiarch/ifunc-impl-list.c
1369 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1370
1371 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1372
1373 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1374 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1375 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1376 New defines.
1377 * sysdeps/s390/multiarch/ifunc-impl-list.c
1378 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1379 * sysdeps/s390/strstr-arch13.S: New file.
1380 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1381 if it is only used as fallback.
1382 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1383
1384 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1385
1386 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1387 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1388 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1389 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1390 ifunc selector.
1391 * sysdeps/s390/multiarch/ifunc-impl-list.c
1392 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1393 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1394 S390_IS_ARCH13_MIE3): New defines.
1395
1396 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1397
1398 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1399 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1400 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1401 * sysdeps/s390/configure: Regenerated.
1402
1403 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1404
1405 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1406 Add vxe2, vxp, dflt, sort flags.
1407 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1408 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1409 capabilities.
1410 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1411 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1412 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1413 HWCAP_S390_DFLT): Define.
1414
1415 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1416
1417 [BZ #24372]
1418 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1419 of compiler warning.
1420 * locale/programs/ld-collate.c (collate_output): Likewise.
1421
1422 2019-03-21 DJ Delorie <dj@redhat.com>
1423
1424 [BZ #24372]
1425 * iconv/iconvconfig.c (write_output): Replace floating point math
1426 with integer math to avoid imprecise results.
1427 * locale/programs/ld-collate.c (collate_output): Likewise.
1428
1429 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1430
1431 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1432 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1433
1434 2019-03-20 mansayk <6688000@gmail.com>
1435
1436 [BZ #24296]
1437 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1438 (abday): Likewise, but remove the trailing dots.
1439
1440 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1441
1442 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1443 macro.
1444 (HWCAP_PACA): Likewise.
1445 (HWCAP_PACG): Likewise.
1446 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1447 Increase to 32.
1448 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1449
1450 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1451
1452 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1453 should be handled.
1454
1455 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1456
1457 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1458 version to 5.0.
1459 (old_getpagesize): New syscall.
1460
1461 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1462
1463 [BZ #24293]
1464 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1465 * localedata/locales/cmn_TW (era): Likewise.
1466 * localedata/locales/hak_TW (era): Likewise.
1467 * localedata/locales/lzh_TW (era): Likewise.
1468 * localedata/locales/nan_TW (era): Likewise.
1469
1470 2019-03-14 Adam Maris <amaris@redhat.com>
1471
1472 * malloc/malloc.c (_int_malloc): Check for large bin list
1473 corruption when inserting unsorted chunk.
1474
1475 2019-03-14 Florian Weimer <fweimer@redhat.com>
1476
1477 Remove obsolete, never-implemented XSI STREAMS declarations.
1478 * manual/terminal.texi (Allocation): Remove portability note and
1479 adjust example.
1480 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1481 _SC_STREAMS.
1482 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1483 * sysdeps/unix/inet/Subdirs (streams): Remove.
1484 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1485 (conformtest-headers-UNIX98): Likewise.
1486 (conformtest-headers-XOPEN2K): Likewise.
1487 (conformtest-headers-POSIX2008): Likewise.
1488 * posix/compat-streams.c: New file.
1489 * posix/Makefile (routines): Add it.
1490 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1491 getpmsg, isastream, putmsg, putpmsg.
1492 (GLIBC_2.30): New section.
1493 * bits/stropts.h: Remove file.
1494 * bits/xtitypes.h: Likewise.
1495 * conform/data/stropts.h-data: Likewise.
1496 * include/stropts.h: Likewise.
1497 * include/sys/stropts.h: Likewise.
1498 * include/xtitypes.h: Likewise.
1499 * streams/Makefile: Likewise.
1500 * streams/fattach.c: Likewise.
1501 * streams/fdetach.c: Likewise.
1502 * streams/getmsg.c: Likewise.
1503 * streams/getpmsg.c: Likewise.
1504 * streams/isastream.c: Likewise.
1505 * streams/putmsg.c: Likewise.
1506 * streams/putpmsg.c: Likewise.
1507 * streams/stropts.h: Likewise.
1508 * streams/sys/stropts.h: Likewise.
1509 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1510 * sysdeps/s390/bits/xtitypes.h: Likewise.
1511 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1512 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1513 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1514 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1515 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1516 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1517 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1518 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1519 * sysdeps/x86/bits/xtitypes.h: Likewise.
1520
1521 2019-03-14 Florian Weimer <fweimer@redhat.com>
1522
1523 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1524 libnss_files.
1525 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1526 but not with libnss_files.
1527 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1528
1529 2019-03-14 Zack Weinberg <zackw@panix.com>
1530
1531 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1532 Specify encoding="utf-8" when opening headers to check.
1533
1534 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1535
1536 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1537 version to 5.0.
1538 (Context.checkout_tar): Handle variable major version for Linux
1539 kernel.
1540
1541 2019-03-13 Florian Weimer <fweimer@redhat.com>
1542
1543 [BZ #24047]
1544 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1545
1546 2019-03-13 Zack Weinberg <zackw@panix.com>
1547
1548 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1549 Move to stdlib.
1550 * include/inttypes.h: Adjust to match.
1551 * include/stdint.h: New wrapper.
1552
1553 2019-03-13 Zack Weinberg <zackw@panix.com>
1554
1555 * scripts/check-obsolete-constructs.py: New test script.
1556 * scripts/check-installed-headers.sh: Remove tests for
1557 obsolete typedefs, superseded by check-obsolete-constructs.py.
1558 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1559 as a special test. Update commentary.
1560 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1561 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1562 Update commentary.
1563 * posix/sys/types.h (__u_intN_t): Remove.
1564 (u_int8_t): Typedef using __uint8_t.
1565 (u_int16_t): Typedef using __uint16_t.
1566 (u_int32_t): Typedef using __uint32_t.
1567 (u_int64_t): Typedef using __uint64_t.
1568
1569 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1570
1571 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1572 call _dl_procinfo.
1573 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1574 Ignore types other than AT_HWCAP.
1575 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1576 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1577 Likewise.
1578 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1579 in the case of falling back to generic output mechanism.
1580 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1581 Likewise.
1582
1583 2019-03-12 Florian Weimer <fweimer@redhat.com>
1584
1585 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1586
1587 2019-03-12 Florian Weimer <fweimer@redhat.com>
1588
1589 [BZ #24047]
1590 resolv: Enable full ICMP errors for UDP DNS sockets
1591 * resolv/res_enable_icmp.c: New file.
1592 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1593 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1594 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1595 socket.
1596
1597 2019-03-11 Mao Han <han_mao@c-sky.com>
1598
1599 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1600 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1601
1602 2019-03-11 Mao Han <han_mao@c-sky.com>
1603
1604 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1605 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1606 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1607
1608 2019-03-11 Mao Han <han_mao@c-sky.com>
1609
1610 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1611 directly.
1612 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1613 definition.
1614
1615 2019-03-11 Mao Han <han_mao@c-sky.com>
1616
1617 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1618 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1619 in mcontext_t
1620
1621 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1622
1623 [BZ #24307]
1624 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1625 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1626 Unicode 12.0.0.
1627 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1628 * localedata/unicode-gen/PropList.txt: Likewise.
1629 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1630 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1631 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1632 * localedata/charmaps/UTF-8: Regenerate.
1633 * localedata/locales/i18n_ctype: Likewise.
1634 * localedata/locales/tr_TR: Likewise.
1635 * localedata/locales/translit_circle: Likewise.
1636 * localedata/locales/translit_cjk_compat: Likewise.
1637 * localedata/locales/translit_combining: Likewise.
1638 * localedata/locales/translit_compat: Likewise.
1639 * localedata/locales/translit_font: Likewise.
1640 * localedata/locales/translit_fraction: Likewise.
1641
1642 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1643
1644 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1645 than after operators.
1646 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1647 (setitimer_locked): Likewise.
1648 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1649 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1650 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1651 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1652 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1653 (PPC_CPU_SUPPORTED): Likewise.
1654 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1655 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1656 (stat_overflow): Likewise.
1657 (statfs_overflow): Likewise.
1658 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1659 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1660 (eq_ttyname_r): Likewise.
1661 (run_chroot_tests): Likewise.
1662
1663 2019-03-07 Florian Weimer <fweimer@redhat.com>
1664
1665 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1666 header check.
1667
1668 2019-03-07 Martin Liska <mliska@suse.cz>
1669
1670 * math/Makefile: Change location where math-vector-fortran.h is
1671 installed.
1672 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1673 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1674 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1675 * scripts/check-installed-headers.sh: Skip Fortran header files.
1676 * scripts/check-wrapper-headers.py: Likewise.
1677
1678 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1679
1680 * nptl/nptl-init.c (__have_futex_clock_realtime,
1681 __have_futex_clock_realtime): Remove definition.
1682 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1683 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1684 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1685 __ASSUME_FUTEX_CLOCK_REALTIME support.
1686 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1687 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1688 * sysdeps/unix/sysv/linux/kernel-features.h
1689 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1690 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1691 Adjust comment.
1692
1693 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1694
1695 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1696 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1697 __GI___wcscpy and wcscpy.
1698
1699 2019-03-04 Florian Weimer <fweimer@redhat.com>
1700
1701 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1702 declaration.
1703 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1704 defined.
1705
1706 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1707
1708 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1709 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1710
1711 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1712
1713 [BZ #24162]
1714 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1715 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1716
1717 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1718
1719 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1720 tests.
1721 (do_test): Likewise.
1722 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1723 (do_test_call_varg): Likewise.
1724 (do_test_call_rarg): Likewise.
1725 * sysdeps/ieee754/ldbl-opt/Makefile
1726 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1727 tst-nldbl-error.
1728 ($(objpfx)tst-nldbl-warn.c): New rule.
1729 ($(objpfx)tst-nldbl-error.c): Likewise.
1730 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1731 New variables.
1732
1733 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1734
1735 [BZ #23984]
1736 * include/bits/error-ldbl.h: New file.
1737 * include/error.h: Include stdarg.h. Declare internal functions
1738 __error_internal and __error_at_line_internal.
1739 * misc/Makefile (headers): Add bits/error-ldbl.h.
1740 * misc/bits/error-ldbl.h: New file.
1741 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1742 avoid the inclusion of bits/error.h.
1743 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1744 and __nldbl_error_at_line.
1745 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1746 (__nldbl_error, __ndlbl_error_at_line): New functions.
1747 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1748 Redirect error and error_at_line.
1749 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1751 Likewise.
1752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1753 Likewise.
1754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1755 Likewise.
1756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1757 Likewise.
1758 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1759 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1760 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1761
1762 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1763
1764 [BZ #23984]
1765 * include/bits/err-ldbl.h: New file.
1766 * include/err.h: Add prototypes for the internal functions:
1767 __vwarnx_internal and __vwarn_internal.
1768 * misc/Makefile (headers): Add bits/err-ldbl.h.
1769 * misc/bits/err-ldbl.h: New file.
1770 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1771 defined, i.e.: when -mlong-double-64 is in use.
1772 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1773 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1774 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1775 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1776 (VA_CALL): New macro.
1777 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1778 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1779 functions.
1780 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1781 declare prototypes for the new functions.
1782 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1784 Likewise.
1785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1786 Likewise.
1787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1788 Likewise.
1789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1790 Likewise.
1791 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1792 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1793 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1794
1795 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1796
1797 * sysdeps/ieee754/ldbl-opt/Makefile
1798 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1799 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1800 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1801
1802 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1803
1804 [BZ #23983]
1805 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1806 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1807 * argp/bits/argp-ldbl.h: New file.
1808 * include/argp.h: Include stdarg.h. Add prototypes for internal
1809 functions: __argp_error_internal and __argp_failure_internal.
1810 * include/bits/argp-ldbl.h: New file.
1811 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1812 __nldbl_argp_error and __nldbl_argp_failure.
1813 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1814 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1815 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1816 Redirect argp_error and argp_failure calls.
1817 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1819 Likewise.
1820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1821 Likewise.
1822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1823 Likewise.
1824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1825 Likewise.
1826 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1827 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1828 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1829
1830 2019-03-01 Florian Weimer <fweimer@redhat.com>
1831
1832 [BZ #20419]
1833 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1834 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1835 code, to avoid creating an ABI tag note.
1836 (modules-names-nobuild): Add tst-big-note-lib.
1837
1838 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1839
1840 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1841 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1842
1843 2019-03-01 Florian Weimer <fweimer@redhat.com>
1844
1845 [BZ #20271]
1846 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1847 (__netlink_assert_response): Add additional missing newlines.
1848
1849 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1850
1851 * sysdeps/powerpc/powerpc32/dl-machine.c
1852 (__elf_machine_fixup_plt): Use space before '('.
1853 (__process_machine_rela): Likewise.
1854 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1855 Likewise.
1856 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1857 Likewise.
1858 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1859 Likewise.
1860 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1861 (pattern): Likewise.
1862 (delta): Likewise.
1863 (check_result): Likewise.
1864 (check_excepts): Likewise.
1865 (check_op): Likewise.
1866 (fail_xr): Likewise.
1867 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1868 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1869 (SCNHSZ): Likewise.
1870 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1871 Likewise.
1872 (ARGS): Likewise.
1873 (__makecontext): Likewise.
1874 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1875 Likewise.
1876
1877 2019-02-28 Florian Weimer <fweimer@redhat.com>
1878
1879 [BZ #23937]
1880 elf: Add test with a local IFUNC resolver.
1881 * elf/ifuncmain9.c: New file.
1882 * elf/ifuncmain9pic.c: Likewise.
1883 * elf/ifuncmain9picstatic.c: Likewise.
1884 * elf/ifuncmain9pie.c: Likewise.
1885 * elf/ifuncmain9static.c: Likewise.
1886 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1887 ifuncmain9static, ifuncmain9picstatic.
1888 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1889 Add ifuncmain9, ifuncmain9pic.
1890 * elf/Makefile [multi-arch && build-shared && have-fpie]
1891 (ifunc-pie-tests): Add ifuncmain9pie.
1892 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1893 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1894 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1895
1896 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1897
1898 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1899 * configure: Regenerated.
1900 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1901
1902 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1903
1904 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1905 symbol as __wcspcy instead of wcscpy.
1906
1907 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1908
1909 * include/stdio.h (__renameat2): New hidden prototype.
1910 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
1911 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
1912 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
1913 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
1914
1915 2019-02-27 Joseph Myers <joseph@codesourcery.com>
1916
1917 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
1918 if statement.
1919
1920 * benchtests/bench-strcpy.c (do_test): Use space before '('.
1921 * benchtests/bench-string.h (cmdline_process_function): Likewise.
1922 * benchtests/bench-strlen.c (do_test): Likewise.
1923 (test_main): Likewise.
1924 * catgets/gencat.c (read_old): Likewise.
1925 * elf/cache.c (load_aux_cache): Likewise.
1926 * iconvdata/bug-iconv8.c (do_test): Likewise.
1927 * math/test-tgmath-ret.c (do_test): Likewise.
1928 * nis/nis_call.c (rec_dirsearch): Likewise.
1929 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
1930 * nptl/tst-audit-threads.c (do_test): Likewise.
1931 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
1932 * nss/nss_test1.c (init): Likewise.
1933 * nss/test-netdb.c (test_hosts): Likewise.
1934 * posix/execvpe.c (maybe_script_execute): Likewise.
1935 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
1936 * stdio-common/tst-printf.c (do_test): Likewise.
1937 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
1938 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
1939 * stdlib/qsort.c (STACK_SIZE): Likewise.
1940 * stdlib/test-canon.c (do_test): Likewise.
1941 * stdlib/tst-swapcontext1.c (do_test): Likewise.
1942 * string/memcmp.c (OPSIZ): Likewise.
1943 * string/test-strcpy.c (do_test): Likewise.
1944 (do_random_tests): Likewise.
1945 * string/test-strlen.c (do_test): Likewise.
1946 (test_main): Likewise.
1947 * string/test-strrchr.c (do_test): Likewise.
1948 (do_random_tests): Likewise.
1949 * string/tester.c (test_memrchr): Likewise.
1950 (test_memchr): Likewise.
1951 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
1952 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
1953 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
1954 (read_encoded_value_with_base): Likewise.
1955 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
1956 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
1957 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
1958 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
1959 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
1960 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
1961 Likewise.
1962 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
1963 Likewise.
1964 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
1965 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
1966 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
1967 Likewise.
1968 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
1969 Likewise.
1970 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
1971 Likewise.
1972 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1973 Likewise.
1974 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
1975 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
1976 (FP_XSTATE_MAGIC2_SIZE): Likewise.
1977 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
1978 * time/test_time.c (main): Likewise.
1979
1980 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1981
1982 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
1983
1984 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
1985 wmemcpy.
1986
1987 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
1988 wmemcpy.
1989
1990 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
1991
1992 * include/wchar.h (__wcscpy): New prototype.
1993 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
1994 (__wcscpy): Route internal symbol to generic implementation.
1995 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
1996 Add internal __wcscpy alias.
1997 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
1998 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
1999 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2000 * wcsmbs/wcscpy.c (wcscpy): Add
2001 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2002 use generic implementation.
2003 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2004
2005 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2006 wmemset.
2007
2008 * sysdeps/m68k/wcpcpy.c: Remove file.
2009 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2010
2011 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2012
2013 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2014 than after operators.
2015 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2016 * sysdeps/mach/hurd/getcwd.c
2017 (__hurd_canonicalize_directory_name_internal): Likewise.
2018 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2019 (pthread_mutex_consistent): Likewise.
2020 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2021 Likewise.
2022 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2023 (__pthread_mutex_transfer_np): Likewise.
2024 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2025 (__pthread_mutex_unlock): Likewise.
2026 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2027 (mtx_owned_p): Likewise.
2028 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2029 (pthread_mutexattr_getrobust): Likewise.
2030 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2031 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2032 Likewise.
2033 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2034 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2035 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2036 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2037 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2038 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2039 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2040 Likewise.
2041 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2042 Likewise.
2043 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2044 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2045 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2046 (____longjmp_chk): Likewise.
2047 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2048 Likewise.
2049 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2050 (INTERNAL_SYSCALL): Likewise.
2051 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2052 (INTERNAL_SYSCALL): Likewise.
2053 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2054 (__get_clockfreq_via_cpuinfo): Likewise.
2055
2056 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2057 comments.
2058 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2059 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2060 (WORD_COPY_BWD): Likewise.
2061 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2062 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2063 Likewise.
2064 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2065 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2066 comment.
2067 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2068
2069 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2070
2071 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2072 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2073 rather than after operators.
2074 * elf/cache.c (print_cache): Likewise.
2075 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2076 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2077 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2078 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2079 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2080 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2081 (reauth_proc): Likewise.
2082 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2083 (__file_name_split_at): Likewise.
2084 (__directory_name_split_at): Likewise.
2085 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2086 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2087 * iconv/gconv_dl.c (do_print): Likewise.
2088 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2089 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2090 * locale/setlocale.c (new_composite_name): Likewise.
2091 * malloc/memusagestat.c (main): Likewise.
2092 * misc/fstab.c (fstab_convert): Likewise.
2093 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2094 Likewise.
2095 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2096 (getgrent_next_file): Likewise.
2097 (internal_getgrnam_r): Likewise.
2098 (internal_getgrgid_r): Likewise.
2099 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2100 Likewise.
2101 (internal_getgrent_r): Likewise.
2102 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2103 (getpwent_next_nss): Likewise.
2104 (getpwent_next_file): Likewise.
2105 (internal_getpwnam_r): Likewise.
2106 (internal_getpwuid_r): Likewise.
2107 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2108 Likewise.
2109 (getspent_next_nss): Likewise.
2110 (internal_getspnam_r): Likewise.
2111 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2112 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2113 * string/strchr.c (STRCHR): Likewise.
2114 * string/strchrnul.c (STRCHRNUL): Likewise.
2115 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2116 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2117 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2118 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2119 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2120 Likewise.
2121 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2122 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2123 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2124 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2125 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2126 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2127 (open_file): Likewise.
2128 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2129 (pthread_mutexattr_setprotocol): Likewise.
2130 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2131 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2132 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2133 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2134 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2135 Likewise.
2136 (elf_machine_rela): Likewise.
2137 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2138 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2139 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2140 * sysdeps/posix/rename.c (rename): Likewise.
2141 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2142 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2143 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2144 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2145 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2146 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2147 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2148 Likewise.
2149 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2150 Likewise.
2151 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2152 * time/tzfile.c (__tzfile_compute): Likewise.
2153
2154 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2155
2156 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2157 rather than after operators.
2158 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2159 * crypt/md5.c (md5_finish_ctx): Likewise.
2160 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2161 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2162 * elf/cache.c (load_aux_cache): Likewise.
2163 * elf/dl-load.c (open_verify): Likewise.
2164 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2165 * elf/readelflib.c (process_elf_file): Likewise.
2166 * elf/rtld.c (dl_main): Likewise.
2167 * elf/sprof.c (generate_call_graph): Likewise.
2168 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2169 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2170 * hurd/dtable.c (reauth_dtable): Likewise.
2171 * hurd/getdport.c (__getdport): Likewise.
2172 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2173 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2174 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2175 Likewise.
2176 * hurd/hurdioctl.c (fioctl): Likewise.
2177 * hurd/hurdselect.c (_hurd_select): Likewise.
2178 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2179 (STOPSIGS): Likewise.
2180 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2181 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2182 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2183 * hurd/msgportdemux.c (msgport_server): Likewise.
2184 * hurd/setauth.c (_hurd_setauth): Likewise.
2185 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2186 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2187 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2188 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2189 * login/tst-utmp.c (do_check): Likewise.
2190 (simulate_login): Likewise.
2191 * mach/lowlevellock.h (lll_lock): Likewise.
2192 (lll_trylock): Likewise.
2193 * math/test-fenv.c (ALL_EXC): Likewise.
2194 * math/test-fenvinline.c (ALL_EXC): Likewise.
2195 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2196 * nis/nis_call.c (__do_niscall3): Likewise.
2197 * nis/nis_callback.c (cb_prog_1): Likewise.
2198 * nis/nis_defaults.c (searchaccess): Likewise.
2199 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2200 * nis/nis_ismember.c (internal_ismember): Likewise.
2201 * nis/nis_local_names.c (nis_local_principal): Likewise.
2202 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2203 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2204 Likewise.
2205 * nis/ypclnt.c (yp_match): Likewise.
2206 (yp_first): Likewise.
2207 (yp_next): Likewise.
2208 (yp_master): Likewise.
2209 (yp_order): Likewise.
2210 * nscd/hstcache.c (cache_addhst): Likewise.
2211 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2212 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2213 (internal_getpwuid_r): Likewise.
2214 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2215 * posix/glob.h (__GLOB_FLAGS): Likewise.
2216 * posix/regcomp.c (peek_token): Likewise.
2217 (peek_token_bracket): Likewise.
2218 (parse_expression): Likewise.
2219 * posix/regexec.c (sift_states_iter_mb): Likewise.
2220 (check_node_accept_bytes): Likewise.
2221 * posix/tst-spawn3.c (do_test): Likewise.
2222 * posix/wordexp-test.c (testit): Likewise.
2223 * posix/wordexp.c (parse_tilde): Likewise.
2224 (exec_comm): Likewise.
2225 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2226 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2227 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2228 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2229 * stdio-common/tst-fileno.c (do_test): Likewise.
2230 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2231 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2232 * stdlib/strtod_l.c (round_and_return): Likewise.
2233 (____STRTOF_INTERNAL): Likewise.
2234 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2235 * string/strcspn.c (STRCSPN): Likewise.
2236 * string/test-memmem.c (simple_memmem): Likewise.
2237 * termios/tcsetattr.c (tcsetattr): Likewise.
2238 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2239 * time/asctime.c (asctime_internal): Likewise.
2240 * time/strptime_l.c (__strptime_internal): Likewise.
2241 * time/sys/time.h (timercmp): Likewise.
2242 * time/tzfile.c (__tzfile_compute): Likewise.
2243
2244 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2245
2246 [BZ #21915]
2247 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2248
2249 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2250
2251 * argp/argp-help.c (__argp_error_internal): New function,
2252 renamed from __argp_error, but that takes a 'mode_flags'
2253 parameter to control the format of long double parameters.
2254 (__argp_error): Converted into a call __argp_error_internal.
2255 (__argp_failure_internal): New function, renamed from
2256 __argp_failure, but that takes a 'mode_flags' parameter.
2257 (__argp_failure): Converted into a call __argp_failure_internal.
2258 * misc/err.c (__vwarnx_internal): New function, renamed from
2259 vwarnx, but that takes a 'mode_flags' parameter.
2260 (vwarnx): Converted into a call to __vwarnx_internal.
2261 (__vwarn_internal): New function, renamed from vwarn, but that
2262 takes a 'mode_flags' parameter.
2263 (vwarn): Converted into a call to __vwarn_internal.
2264 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2265 call to __vfxprintf with 'mode_flags'.
2266 (__error_internal): New function, renamed from error, but that
2267 takes a 'mode_flags' parameter.
2268 (error): Converted into a call to __error_internal.
2269 (__error_at_line_internal): New function, renamed from
2270 error_at_line, but that takes a 'mode_flags' parameter.
2271 (error_at_line): Converted into a call to
2272 __error_at_line_internal.
2273 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2274 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2275 Likewise.
2276
2277 2019-02-20 Martin Liska <mliska@suse.cz>
2278
2279 * math/Makefile: Install math-vector-fortran.h.
2280 * bits/math-vector-fortran.h: New file.
2281 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2282
2283 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2284
2285 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2286 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2287
2288 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2289
2290 * nptl/pthread_mutex_trylock.c: Fix comment.
2291
2292 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2293
2294 * nptl/pthread_tryjoin.c: Fix comment.
2295
2296 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2297
2298 [BZ #24231]
2299 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2300 after R_SPARC_H34 case.
2301
2302 2019-02-18 Florian Weimer <fweimer@redhat.com>
2303
2304 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2305 (getanswer): Do not call Dprintf.
2306 (res_gethostbyname2_context): Likewise.
2307 (res_gethostbyaddr_context): Likewise.
2308
2309 2019-02-18 Florian Weimer <fweimer@redhat.com>
2310
2311 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2312 declaration.
2313 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2314 Remove definitions.
2315 * libio/stdfiles.c: Update comment.
2316 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2317 set _IO_stdin, _IO_stdout, _IO_stderr.
2318 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2319 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2320 inline function.
2321 (_IO_deallocate_file): New inline function.
2322 * libio/iolibio.h (_IO_vprintf): Remove definition.
2323 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2324 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2325 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2326 _IO_legacy_file.
2327 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2328 __builtin_expect. Use _IO_legacy_file.
2329
2330 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2331
2332 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2333 Initialize ctid with a known value and remove update of ctid
2334 after clone.
2335 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2336 as assumed current value of ctid_ptr.
2337
2338 2019-02-16 Florian Weimer <fweimer@redhat.com>
2339
2340 Check that non-sysdeps headers have wrapper headers.
2341 * scripts/check-wrapper-headers.py: New file.
2342 * Makefile (tests-special): Add check-wrapper-headers.out.
2343 (check-wrapper-headers.out): New target.
2344 * Rules (tests-special): Add check-wrapper-headers.out.
2345 (check-wrapper-headers.out): New target.
2346
2347 2019-02-16 Florian Weimer <fweimer@redhat.com>
2348
2349 Add missing header wrappers under include/.
2350 * include/ar.h: New file.
2351 * include/bits/mqueue2.h: Likewise.
2352 * include/bits/stdio.h: Likewise.
2353 * include/bits/stdio2.h: Likewise.
2354 * include/fstab.h: Likewise.
2355 * include/fts.h: Likewise.
2356 * include/lastlog.h: Likewise.
2357 * include/netinet/icmp6.h: Likewise.
2358 * include/netinet/igmp.h: Likewise.
2359 * include/netinet/ip6.h: Likewise.
2360 * include/re_comp.h: Likewise.
2361 * include/regexp.h: Likewise.
2362 * include/rpcsvc/bootparam.h: Likewise.
2363 * include/rpcsvc/yp_prot.h: Likewise.
2364 * include/sys/random.h: Likewise.
2365 * include/sys/stropts.h: Likewise.
2366 * include/sys/ttychars.h: Likewise.
2367 * include/sys/vfs.h: Likewise.
2368 * include/wait.h: Likewise.
2369
2370 2019-02-16 Florian Weimer <fweimer@redhat.com>
2371
2372 * nptl_db/proc_service.h: Move to ...
2373 * sysdeps/nptl/proc_service.h: ... here.
2374 * nptl_db/thread_db.h: Move to ...
2375 * sysdeps/nptl/thread_db.h: ... here.
2376 * nptl/descr.h: Include <thread_db.h>.
2377
2378 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2379
2380 * io/Makefile (tests): Add tst-lockf.
2381 * io/lockf.c (lockf): Use __fcntl and only define for
2382 !__OFF_T_MATCHES_OFF64_T.
2383 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2384 __OFF_T_MATCHES_OFF64_T case.
2385 * io/tst-lockf.c: New file.
2386 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2387 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2388 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2389 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2390 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2392 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2393 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2394 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2395
2396 2019-02-15 Florian Weimer <fweimer@redhat.com>
2397
2398 [BZ #24211]
2399 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2400 pd->result after the thread descriptor has been freed.
2401
2402 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2403
2404 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2405 from function return type.
2406
2407 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2408
2409 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 * scripts/test_printers_common.py: Set TERM to a known harmless
2412 value.
2413
2414 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2415
2416 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2417 (xdr_u_int): Likewise.
2418 (xdr_enum): Likewise.
2419 (xdr_bytes): Reword fall-through comment.
2420 (xdr_string): Likewise.
2421
2422 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2423
2424 [BZ #2421]
2425 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2426 (tests): Add tst-join8 tst-join9.
2427 * nptl/lll_timedwait_tid.c: Remove file.
2428 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2429 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2430 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2431 * nptl/pthread_join_common.c (timedwait_tid): New function.
2432 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2433 is set.
2434 * nptl/tst-join5.c (thread_join): New function.
2435 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2436 check.
2437 * nptl/tst-join8.c: New file.
2438 * nptl/tst-join9.c: Likewise.
2439 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2440 lll_futex_timed_wait_cancel): Add generic macros.
2441 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2442 Remove definitions.
2443 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2444 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2445 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2446 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2447 Remove function.
2448 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2449 Likewise.
2450 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2451 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2452 (lll_futex_timed_wait_cancel): New macro.
2453
2454 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2455
2456 * benchtests/Makefile: Add malloc-simple benchmark.
2457 * benchtests/bench-malloc-simple.c: New benchmark.
2458
2459 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2460
2461 * benchtests/bench-memmove.c (do_one_test): Remove unused
2462 ORIG_SRC.
2463 (do_test): Adjust.
2464 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2465 ORIG_SRC.
2466 (do_test): Adjust.
2467
2468 2019-01-13 Jim Wilson <jimw@sifive.com>
2469
2470 [BZ #24040]
2471 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2472 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2473 (func): New.
2474 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2475 call func directly.
2476 * nptl/Makefile (tests): Add tst-unwind-thread.
2477 (CFLAGS-tst-unwind-thread.c): Define.
2478 * nptl/tst-unwind-thread.c: New file.
2479 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2480 as undefined.
2481
2482 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2483
2484 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2485 comment wording.
2486 * nis/nis_call.c (__do_niscall3): Likewise.
2487
2488 * catgets/gencat.c (normalize_line): Use braces around empty
2489 'else' body.
2490 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2491 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2492 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2493 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2494 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2495 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2496 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2497 definition.
2498
2499 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2500 execlp returns.
2501
2502 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2503
2504 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2505 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2506 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2507 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2508 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2509 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2510 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2511 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2512 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2513 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2514 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2515 * benchtests/bench-bcopy.c: Delete file.
2516 * benchtests/bench-bzero.c: Likewise.
2517 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2518 (simple_memccpy): Remove.
2519 (generic_memccpy): Add function.
2520 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2521 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2522 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2523 (generic_mempcpy): Add new function.
2524 * benchtests/bench-memset.c (simple_bzero): Remove.
2525 (builtin_bzero): Remove.
2526 (builtin_memset): Remove.
2527 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2528 (generic_rawmemchr): Add new function.
2529
2530 2019-02-12 Florian Weimer <fweimer@redhat.com>
2531
2532 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2533
2534 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2535
2536 [BZ #24122]
2537 * elf/Makefile (tests): Add tst-audit13.
2538 (modules-names): Add tst-audit13mod1.
2539 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2540 rule.
2541 * elf/tst-audit13.c: New file.
2542 * elf/tst-audit13mod1.c: Likewise.
2543
2544 2019-02-12 Florian Weimer <fweimer@redhat.com>
2545
2546 [BZ #24122]
2547 * elf/rtld.c (unload_audit_module): New function.
2548 (report_audit_module_load_error): Likewise.
2549 (load_audit_module): Likewise. Extracted from dl_main. Call
2550 _dl_close if the laversion symbol cannot be found. Use early
2551 returns for error handling. Add malloc error check. Check for a
2552 zero return value from la_version. Remove spurious comment about
2553 static TLS initialization. Remove useless casts.
2554 (notify_audit_modules_of_loaded_object): New function. Extracted
2555 from dl_main.
2556 (load_audit_module): Likewise.
2557 (dl_main): Call load_audit_modules.
2558
2559 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2560
2561 * elf/dl-exception.c (_dl_exception_create_format): Add
2562 fall-through comments.
2563 * elf/ldconfig.c (parse_conf_include): Likewise.
2564 * elf/rtld.c (print_statistics): Likewise.
2565 * locale/programs/charmap.c (parse_charmap): Likewise.
2566 * misc/mntent_r.c (__getmntent_r): Likewise.
2567 * posix/wordexp.c (parse_arith): Likewise.
2568 (parse_backtick): Likewise.
2569 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2570 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2571 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2572
2573 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2574
2575 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2576 Use float instead of double.
2577
2578 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2579
2580 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2581
2582 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2583
2584 * sysdeps/powerpc/bits/mathinline.h: Remove.
2585
2586 2019-02-08 Florian Weimer <fweimer@redhat.com>
2587
2588 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2589 * math/bits/math-finite.h: Move to ...
2590 * bits/math-finite.h: ... here.
2591
2592 2019-02-08 Florian Weimer <fweimer@redhat.com>
2593
2594 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2595 * bits/unistd_ext.h: here.
2596
2597 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2598
2599 [BZ #21915]
2600 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2601 * nss/tst-nss-files-hosts-long.c: New file.
2602 * nss/tst-nss-files-hosts-long.root: New directory.
2603 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2604 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2605
2606 2019-02-08 Florian Weimer <fweimer@redhat.com>
2607
2608 * include/bits/unistd_ext.h: Remove file.
2609 * posix/bits/unistd_ext.h: Move to ...
2610 * sysdeps/generic/bits/unistd_ext.h: ... here.
2611
2612 2019-02-08 Florian Weimer <fweimer@redhat.com>
2613
2614 * include/bits/unistd_ext.h: New file.
2615
2616 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2617
2618 * time/tst-strftime2.c: Use array_length macros instead of magic
2619 numbers.
2620
2621 2019-02-08 Florian Weimer <fweimer@redhat.com>
2622
2623 [BZ #24161]
2624 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2625 argument.
2626 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2627 locking if the new do_locking argument is true.
2628 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2629 __run_fork_handlers.
2630
2631 2019-02-08 Florian Weimer <fweimer@redhat.com>
2632
2633 [BZ #6399]
2634 Linux: Add gettid system call wrapper.
2635 * posix/Makefile (headers): Add bits/unistd_ext.h.
2636 * posix/bits/unistd_ext.h: New file.
2637 * posix/unistd.h: Include it.
2638 * manual/process.texi (Process Identification): Document gettid.
2639 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2640 tst-gettid, tst-gettid-kill.
2641 (tst-gettid): Link with $(shared-thread-library).
2642 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2643 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2644 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2645 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2646 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2647 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2648 Add gettid.
2649 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2650 Likewise.
2651 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2652 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2653 Likewise.
2654 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2655 Likewise.
2656 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2657 Likewise.
2658 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2659 Likewise.
2660 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2661 Likewise.
2662 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2663 Likewise.
2664 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2665 Likewise.
2666 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2667 (GLIBC_2.30): Likewise.
2668 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2669 (GLIBC_2.30): Likewise.
2670 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2671 (GLIBC_2.30): Likewise.
2672 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2673 (GLIBC_2.30): Likewise.
2674 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2675 Likewise.
2676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2677 (GLIBC_2.30): Likewise.
2678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2679 (GLIBC_2.30): Likewise.
2680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2681 (GLIBC_2.30): Likewise.
2682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2683 (GLIBC_2.30): Likewise.
2684 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2685 Likewise.
2686 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2687 Likewise.
2688 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2689 Likewise.
2690 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2691 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2692 Likewise.
2693 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2694 Likewise.
2695 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2696 Likewise.
2697 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2698 Likewise.
2699 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2700
2701 2019-02-08 Florian Weimer <fweimer@redhat.com>
2702
2703 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2704 compatibility symbols.
2705
2706 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2707
2708 [BZ #24180]
2709 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2710 Add compiler barriers and comments.
2711
2712 2019-02-07 Florian Weimer <fweimer@redhat.com>
2713
2714 * include/array_length.h (array_length): Do not use a statement
2715 expression and _Static_assert, so that array_length can be used at
2716 file scope and as a constant expression.
2717
2718 2019-02-07 Florian Weimer <fweimer@redhat.com>
2719
2720 * support/xdlfcn.h (xdlmopen): Declare.
2721 * support/xdlmopen.c: New file.
2722 * support/Makefile (libsupport-routines): Add xdlmopen.
2723
2724 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2725
2726 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2727 before return type, without separate inline.
2728 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2729 * elf/dl-tunables.h (tunable_is_name): Likewise.
2730 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2731 (do_set_top_pad): Likewise.
2732 (do_set_mmap_threshold): Likewise.
2733 (do_set_mmaps_max): Likewise.
2734 (do_set_mallopt_check): Likewise.
2735 (do_set_perturb_byte): Likewise.
2736 (do_set_arena_test): Likewise.
2737 (do_set_arena_max): Likewise.
2738 (do_set_tcache_max): Likewise.
2739 (do_set_tcache_count): Likewise.
2740 (do_set_tcache_unsorted_limit): Likewise.
2741 * nis/nis_subr.c (count_dots): Likewise.
2742 * nptl/allocatestack.c (advise_stack_range): Likewise.
2743 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2744 (do_sin): Likewise.
2745 (reduce_sincos): Likewise.
2746 (do_sincos): Likewise.
2747 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2748 (do_set_elision_enable): Likewise.
2749 (TUNABLE_CALLBACK_FNDECL): Likewise.
2750
2751 2019-02-06 Florian Weimer <fweimer@redhat.com>
2752
2753 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2754 (xdlsym): Use dlerror to detect a NULL symbol.
2755
2756 2019-02-06 Florian Weimer <fweimer@redhat.com>
2757
2758 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2759 <stap-probe.h>.
2760 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2761
2762 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2763
2764 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2765
2766 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2767
2768 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2769 __wmemcmp and weak alias to wmemcmp.
2770
2771 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2772
2773 [BZ #23403]
2774 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2775 TLS_TCB_AT_TP tls variant.
2776 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2777 Add alignment checks.
2778 * support/Makefile (libsupport-routines): Add xposix_memalign and
2779 xpthread_setstack.
2780 * support/support.h: Add xposix_memalign.
2781 * support/xthread.h: Add xpthread_attr_setstack.
2782 * support/xposix_memalign.c: New File.
2783 * support/xpthread_attr_setstack.c: Likewise.
2784
2785 2019-02-05 Florian Weimer <fweimer@redhat.com>
2786
2787 [BZ #24164]
2788 arm: Use "nr" constraint for Systemtap probes, to avoid the
2789 compiler using memory operands for constants, due to the "o"
2790 alternative in the default "nor" constraint.
2791 * include/stap-probe.h [USE_STAP_PROBE]: Include
2792 <stap-probe-machine.h>
2793 * sysdeps/generic/stap-probe-machine.h: New file.
2794 * sysdeps/arm/stap-probe-machine.h: Likewise.
2795
2796 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2797
2798 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2799 with 0, not tcache->entries[tc_idx].
2800
2801 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2802 once.
2803
2804 2019-02-04 Andreas Schwab <schwab@suse.de>
2805
2806 [BZ #16976]
2807 [BZ #17396]
2808 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2809 looking up collating elements match against (wide) character
2810 sequence instead of name. Correct alignment adjustment.
2811 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2812 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2813 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2814 (LOCALES): Add cs_CZ.ISO-8859-2.
2815 * posix/tst-fnmatch4.c: New file.
2816 * posix/tst-fnmatch5.c: New file.
2817 * include/wchar.h (__wmemcmp): Declare.
2818 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2819 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2820 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2821 * sysdeps/s390/wmemcmp.c: Likewise.
2822
2823 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2824
2825 [BZ #24155]
2826 CVE-2019-7309
2827 * NEWS: Updated for CVE-2019-7309.
2828 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2829 upper 32 bits of RDX register for x32. Use unsigned Jcc
2830 instructions, instead of signed.
2831 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2832 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2833
2834 2019-02-04 Florian Weimer <fweimer@redhat.com>
2835
2836 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2837 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2838 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2839 Likewise.
2840 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2841 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2842 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2843 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2844 Likewise.
2845 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2846 Likewise.
2847 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2848 Likewise.
2849 (posix_spawn_file_actions_addopen): Likewise.
2850 (posix_spawn_file_actions_addclose): Likewise.
2851 (posix_spawn_file_actions_adddup2): Likewise.
2852 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2853 qualifiers.
2854 (posix_spawn_file_actions_addfchdir_np): Likewise.
2855
2856 2019-02-04 David Newall <glibc@davidnewall.com>
2857
2858 elf: Implement --preload option for the dynamic linker.
2859 * elf/rtld.c (preloadarg): New variable.
2860 (handle_preload_list): Pass through “where” argument to
2861 do_preload.
2862 (dl_main): Handle "--preload" and add second call to
2863 handle_preload_list.
2864 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2865 (tst-rtld-preload-OBJS): Set variable.
2866 (tst-rtld-preload.out): New target.
2867 * elf/tst-rtld-preload.sh: New file.
2868
2869 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2870
2871 * Makefile (testrun.sh): Exit in case of incorrect argument.
2872
2873 2019-02-04 Florian Weimer <fweimer@redhat.com>
2874
2875 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2876 alignment gaps.
2877
2878 2019-02-03 Florian Weimer <fweimer@redhat.com>
2879
2880 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2881 implicit overflow checks.
2882
2883 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2884
2885 * stdlib/isomac.c: Include <unistd.h>.
2886
2887 2019-02-03 Florian Weimer <fweimer@redhat.com>
2888
2889 * include/time.h (__tzfile_default): Use int, not long int, for
2890 the GMT offsets.
2891 * time/tzfile.c (struct ttinfo): Change type of the offset member
2892 to int.
2893 (__tzfile_read): Remove useless cast.
2894 (__tzfile_default): Adjust prototype.
2895 * time/tzset.c (tz_rule): Change type of the offset member to int.
2896 (parse_offset): Change the type of the sign variable to int.
2897
2898 2019-02-03 Florian Weimer <fweimer@redhat.com>
2899
2900 [BZ #24153]
2901 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2902 * libio/getchar.c (getchar): Likewise.
2903 * libio/getchar_u.c (getchar_unlocked): Likewise.
2904 * libio/getwchar.c (getwchar): Likewise.
2905 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2906 * libio/iogets.c (_IO_gets): Likewise.
2907 * libio/vscanf.c (_IO_vscanf): Likewise.
2908 * libio/vwscanf.c (__vwscanf): Likewise.
2909 * libio/tst-bz24153.c: New file.
2910 * libio/Makefile (tests): Add it.
2911
2912 2019-02-02 Florian Weimer <fweimer@redhat.com>
2913
2914 [BZ #14829]
2915 * manual/resource.texi (Basic Scheduling Functions): Add
2916 portability note. Change process to task throughout the section.
2917 Remove incorrect comment about sched_yield as it affects
2918 tasks/threads, not entire processes.
2919 * sysdeps/unix/sysv/linux/bits/posix_opt.h
2920 (_POSIX_PRIORITY_SCHEDULING): Update comment.
2921
2922 2019-02-01 Joseph Myers <joseph@codesourcery.com>
2923
2924 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
2925 * configure: Regenerated.
2926 * manual/install.texi (Tools for Compilation): Update minimum GCC
2927 version.
2928 * INSTALL: Regenerated.
2929
2930 2019-02-01 Florian Weimer <fweimer@redhat.com>
2931
2932 * support/support_test_compare_string.c
2933 (support_test_compare_string): Use "string" in error message.
2934 * support/tst-test_compare_string.c (do_test): Adjust.
2935
2936 2019-02-01 Florian Weimer <fweimer@redhat.com>
2937
2938 * support/support_format_address_family.c
2939 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2940
2941 2019-02-01 Florian Weimer <fweimer@redhat.com>
2942
2943 * manual/socket.texi (Internet Address Formats): Clarify the byte
2944 order of struct sockaddr_in, struct sockaddr_in6. Document
2945 sin6_flowinfo and sin6_scope_id.
2946
2947 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
2948
2949 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
2950 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
2951 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
2952 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
2953 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
2954 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
2955
2956 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2957
2958 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
2959 [!MEMCHR](MEMCHR): Set to __memchr.
2960 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2961 Add memchr_generic and memchr_nosimd.
2962 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Add memchr ifuncs.
2964 * sysdeps/aarch64/multiarch/memchr.c: New file.
2965 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
2966 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
2967
2968 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2969
2970 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2971 Add memset_emag.
2972 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2973 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
2974 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
2975 Add IS_EMAG check for ifunc dispatch.
2976 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
2977 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
2978
2979 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
2980
2981 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
2982 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2983 Add emag.
2984 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
2985 New macro.
2986
2987 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
2990
2991 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
2992
2993 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
2994 syscall-template file.
2995
2996 2019-01-31 Carlos O'Donell <carlos@redhat.com>
2997 Torvald Riegel <triegel@redhat.com>
2998 Rik Prohaska <prohaska7@gmail.com>
2999
3000 [BZ# 23844]
3001 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3002 tst-rwlock-trywrlock-stall.
3003 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3004 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3005 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3006 Set __wrphase_fute to 1 only if we started the write phase.
3007 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3008 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3009 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3010 * support/xpthread_rwlock_destroy.c: New file.
3011 * support/xthread.h: Declare xpthread_rwlock_destroy.
3012
3013 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3014
3015 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3016 version to 4.0.2.
3017
3018 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3019
3020 [BZ #24051]
3021 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3022 * libio/fileops.c (_IO_new_file_underflow): Likewise
3023 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3024 * libio/putchar.c (putchar): Likewise.
3025 * libio/putchar_u.c (putchar_unlocked): Likewise.
3026 * libio/putwchar.c (putchar): Likewise.
3027 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3028 * libio/tst-bz24051.c: New test.
3029 * libio/Makefile (tests): Add tst-bz24051
3030
3031 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3032
3033 CVE-2019-9169
3034 regex: fix read overrun [BZ #24114]
3035 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3036 https://debbugs.gnu.org/34140
3037 * posix/regexec.c (proceed_next_node):
3038 Do not read past end of input buffer.
3039
3040 2019-01-31 Florian Weimer <fweimer@redhat.com>
3041
3042 [BZ #24059]
3043 * nss/nss_files/files-alias.c (get_next_alias): Handle
3044 continuation line without newline at the end.
3045 * nss/tst-nss-files-alias-truncated.c: New file.
3046 * nss/Makefile [$(build-shared)] (tests): Add
3047 tst-nss-files-alias-truncated.
3048 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3049 * support/namespace.h (struct support_chroot_configuration): Add
3050 aliases member.
3051 (struct support_chroot): Add path_aliases member.
3052 * support/support_chroot.c (support_chroot_create): Handle
3053 aliases.
3054 (support_chroot_free): Free path_aliases.
3055
3056 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3057
3058 * version.h (RELEASE): Set to "development".
3059 (VERSION): Set to "2.29.9000".
3060 * NEWS: Add section for 2.30.
3061
3062 * version.h (RELEASE): Set to "stable".
3063 (VERSION): Set to "2.29".
3064 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3065
3066 * NEWS: Add the list of bugs fixed in 2.29.
3067 * manual/contrib.texi: Update contributors list with some more
3068 names.
3069 * manual/install.texi: Update latest versions of packages
3070 tested.
3071 * INSTALL: Regenerated.
3072
3073 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3074
3075 * po/be.po: Update translations.
3076 * po/bg.po: Likewise.
3077 * po/ca.po: Likewise.
3078 * po/cs.po: Likewise.
3079 * po/da.po: Likewise.
3080 * po/de.po: Likewise.
3081 * po/el.po: Likewise.
3082 * po/eo.po: Likewise.
3083 * po/es.po: Likewise.
3084 * po/fi.po: Likewise.
3085 * po/fr.po: Likewise.
3086 * po/gl.po: Likewise.
3087 * po/hr.po: Likewise.
3088 * po/hu.po: Likewise.
3089 * po/ia.po: Likewise.
3090 * po/id.po: Likewise.
3091 * po/it.po: Likewise.
3092 * po/ja.po: Likewise.
3093 * po/ko.po: Likewise.
3094 * po/lt.po: Likewise.
3095 * po/nb.po: Likewise.
3096 * po/nl.po: Likewise.
3097 * po/pl.po: Likewise.
3098 * po/pt_BR.po: Likewise.
3099 * po/ru.po: Likewise.
3100 * po/rw.po: Likewise.
3101 * po/sk.po: Likewise.
3102 * po/sl.po: Likewise.
3103 * po/sv.po: Likewise.
3104 * po/tr.po: Likewise.
3105 * po/uk.po: Likewise.
3106 * po/vi.po: Likewise.
3107 * po/zh_CN.po: Likewise.
3108 * po/zh_TW.po: Likewise.
3109
3110 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3111
3112 [BZ #24130]
3113 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3114 of $f3 register on $y_is_neg path.
3115
3116 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3117
3118 [BZ #24110]
3119 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3120 sigaltstack.ss_flags.
3121
3122 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3123
3124 [BZ #23758]
3125 * manual/time.texi (strftime): Document "%Ey".
3126 * time/strftime_l.c (__strftime_internal): Set the default width
3127 padding with zero of "%Ey" to 2.
3128
3129 [BZ #24096]
3130 * manual/time.texi (strftime): Document "%EC" and "%EY".
3131 * time/Makefile (tests): Add tst-strftime2.
3132 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3133 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3134 override padding for "%Ey".
3135 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3136 "%Ey" in the subformat as if decorated with that flag.
3137 * time/tst-strftime2.c: New file.
3138
3139 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3140
3141 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3142 are not defined.
3143
3144 [BZ #24122]
3145 * elf/Makefile (tests): Add tst-audit13.
3146 (modules-names): Add tst-audit13mod1.
3147 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3148 rule.
3149 * elf/rtld.c (dl_main): Handle invalid audit module version.
3150 * elf/tst-audit13.c: New file.
3151 * elf/tst-audit13mod1.c: Likewise.
3152
3153 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3154
3155 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3156 returned by __hurd_at_flags.
3157 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3158 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3159 directly instead of __hurd_file_name_lookup.
3160
3161 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3162
3163 * scripts/build-many-glibcs.py (Context.checkout): Default
3164 binutils version to 2.32 branch.
3165
3166 2019-01-21 Florian Weimer <fweimer@redhat.com>
3167
3168 [BZ #20018]
3169 CVE-2016-10739
3170 resolv: Reject trailing characters in host names
3171 * include/arpa/inet.h (__inet_aton_exact): Declare.
3172 (inet_aton): Remove hidden prototype. No longer used internally.
3173 * nscd/gai.c (__inet_aton): Do not define.
3174 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3175 * nss/digits_dots.c (__inet_aton): Likewise.
3176 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3177 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3178 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3179 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3180 (tst-resolv-trailing): Likewise.
3181 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3182 libc.
3183 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3184 Make static. Add endp parameter.
3185 (__inet_aton_exact): New function.
3186 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3187 (__inet_addr): Call inet_aton_end.
3188 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3189 not just IPv6. Call __inet_aton_exact.
3190 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3191 (tests): Make const. Add additional test cases with trailing
3192 characters.
3193 (do_test): Use array_length.
3194 * resolv/tst-inet_aton_exact.c: New file.
3195 * resolv/tst-resolv-trailing.c: Likewise.
3196 * resolv/tst-resolv-nondecimal.c: Likewise.
3197 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3198
3199 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3200
3201 [BZ# 24097]
3202 CVE-2019-6488
3203 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3204 Clear the upper 32 bits of RSI register.
3205 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3206 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3207 and tst-size_t-wcsnlen.
3208 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3209 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3210
3211 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3212
3213 [BZ# 24097]
3214 CVE-2019-6488
3215 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3216 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3217 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3218 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3219 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3220
3221 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3222
3223 [BZ# 24097]
3224 CVE-2019-6488
3225 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3226 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3227 * sysdeps/x86_64/strcmp.S: Likewise.
3228 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3229 tst-size_t-strncmp and tst-size_t-wcsncmp.
3230 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3231 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3232 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3233
3234 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3235
3236 [BZ# 24097]
3237 CVE-2019-6488
3238 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3239 RDX_LP for length. Clear the upper 32 bits of RDX register.
3240 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3241 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3242 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3243 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3244
3245 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3246
3247 [BZ# 24097]
3248 CVE-2019-6488
3249 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3250 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3251 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3252 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3253
3254 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3255
3256 [BZ# 24097]
3257 CVE-2019-6488
3258 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3259 length. Clear the upper 32 bits of RDX register.
3260 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3261 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3262 Likewise.
3263 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3264 Likewise.
3265 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3266 tst-size_t-wmemchr.
3267 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3268
3269 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3270
3271 [BZ# 24097]
3272 CVE-2019-6488
3273 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3274 length. Clear the upper 32 bits of RDX register.
3275 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3276 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3277 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3278 tst-size_t-wmemcmp.
3279 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3280 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3281
3282 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3283
3284 [BZ# 24097]
3285 CVE-2019-6488
3286 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3287 upper 32 bits of RDX register.
3288 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3289 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3290 tst-size_t-wmemchr.
3291 * sysdeps/x86_64/x32/test-size_t.h: New file.
3292 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3293 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3294
3295 2019-01-18 Florian Weimer <fweimer@redhat.com>
3296
3297 [BZ #24112]
3298 resolv: Do not send queries for non-host-names in nss_dns.
3299 * resolv/nss_dns/dns-host.c (check_name): New function.
3300 (_nss_dns_gethostbyname2_r): Use it.
3301 (_nss_dns_gethostbyname_r): Likewise.
3302 (_nss_dns_gethostbyname4_r): Likewise.
3303
3304 2019-01-21 Florian Weimer <fweimer@redhat.com>
3305
3306 * resolv/inet_addr.c: Reformat to GNU style.
3307 (__inet_addr, __inet_aton): Update comment.
3308
3309 2019-01-18 Florian Weimer <fweimer@redhat.com>
3310
3311 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3312 ("malloc: Use current (C11-style) atomics for fastbin access").
3313 This commit introduces a substantial performance regression on
3314 POWER and Aarch64.
3315 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3316 (REMOVE_FB): Define.
3317 (_int_malloc): Use it and reindent.
3318 (_int_free): Use CAS loop with
3319 catomic_compare_and_exchange_val_rel.
3320 (malloc_consolidate): Use atomic_exchange_acq.
3321
3322
3323 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3324
3325 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3326 -Wl,-z,now.
3327 (LDFLAGS-tst-minsigstksz-2): Likewise.
3328 (LDFLAGS-tst-minsigstksz-3): Likewise.
3329 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3330 (LDFLAGS-tst-minsigstksz-4): Likewise.
3331
3332 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3333
3334 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3335 than "alternate".
3336
3337 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3338
3339 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3340
3341 2019-01-16 Zack Weinberg <zackw@panix.com>
3342
3343 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3344 (xget_sigstack_location): New test support functions.
3345 * support/xsigstack.c: New file, implementing them.
3346 * support/tst-xsigstack.c: New test for them.
3347 * support/Makefile: Update.
3348
3349 * signal/tst-minsigstksz-1.c
3350 * signal/tst-minsigstksz-2.c
3351 * signal/tst-minsigstksz-3.c
3352 * signal/tst-minsigstksz-3a.c
3353 * signal/tst-minsigstksz-4.c: New tests.
3354 * signal/Makefile: Run them.
3355
3356 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3357
3358 * po/libc.pot: Regenerate.
3359
3360 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3361
3362 * math/libm-test-fma.inc (fma_test_data): Set
3363 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3364
3365 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3366
3367 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3368 (do_test): Changed __vector __int128_t to __vector unsigned int.
3369
3370 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3371
3372 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3373 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3374 stpcpy-avx2 and stpncpy-avx2.
3375 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3376 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3377 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3378 and __stpncpy_avx2.
3379 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3380 ifunc-strcpy.h}: rename header for a more generic name.
3381 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3382 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3383 AVX unaligned load is fast and vzeroupper is preferred.
3384 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3385 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3386 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3387 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3388 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3389 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3390
3391 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3392
3393 * argp/argp-help.c: Fix typo in comment.
3394 * misc/sys/cdefs.h: Likewise.
3395 * posix/regexec.c (sift_states_iter_mb): Likewise.
3396 * socket/sockatmark.c: Likewise.
3397 * socket/sys/socket.h: Likewise.
3398 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3399 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3400 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3401 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3402 * sysdeps/unix/sockatmark.c: Likewise.
3403 * time/strptime_l.c: Likewise.
3404
3405 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3406
3407 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3408 missing space after the cast of "_NL_CURRENT".
3409
3410 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3411
3412 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3413 ifdef to fix read of VSCR.
3414 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3415 tst-ucontext-ppc64-vscr.c to test list.
3416 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3417
3418 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3419
3420 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3421 fall-through.
3422
3423 2019-01-09 Jim Wilson <jimw@sifive.com>
3424
3425 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3426
3427 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3428
3429 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3430 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3431 __memcpy_falkor for ares.
3432 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3433 Add new define.
3434 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3435 Add ares cpu.
3436
3437 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3438
3439 [BZ #24066]
3440 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3441 4_FP_W_TYPEs are used for IEEE quad precision.
3442 * soft-fp/extendhftf2.c: Likewise.
3443 * soft-fp/extendsftf2.c: Likewise.
3444 * soft-fp/extendxftf2.c: Likewise.
3445 * soft-fp/trunctfdf2.c: Likewise.
3446 * soft-fp/trunctfhf2.c: Likewise.
3447 * soft-fp/trunctfsf2.c: Likewise.
3448 * soft-fp/trunctfxf2.c: Likewise.
3449 * sysdeps/alpha/ots_cvttx.c: Likewise.
3450 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3451 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3452 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3453 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3454 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3455 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3456 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3457 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3458 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3459 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3460 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3461 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3462 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3463 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3464 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3465 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3466 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3467
3468 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3469
3470 [BZ #24024]
3471 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3472 code with -fmath-errno.
3473 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3474 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3475 * string/test-strerror-errno.c: New file.
3476
3477 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3478
3479 [BZ #24046]
3480 * localedata/locales/en_US (date_fmt): Add, set to
3481 "%a %d %b %Y %r %Z".
3482
3483 2019-01-07 Florian Weimer <fweimer@redhat.com>
3484
3485 [BZ #24063]
3486 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3487 instead of @var{errno}.
3488 (Parsing of Integers): Likewise.
3489 (Parsing of Floats): Likewise.
3490 * manual/filesys.texi (Working with Directory Trees): Likewise.
3491 (Temporary Files): Likewise.
3492 * manual/job.texi (Terminal Access Functions): Likewise.
3493 * manual/llio.texi (Synchronizing I/O): Likewise.
3494 * manual/math.texi (SVID Random): Likewise.
3495 * manual/message.texi (The catgets Functions): Likewise.
3496 (Translation with gettext): Likewise.
3497 (Locating gettext catalog): Likewise.
3498 (Charset conversion in gettext): Likewise.
3499 * manual/nss.texi (NSS Module Function Internals): Likewise.
3500 * manual/search.texi (Hash Search Function): Likewise.
3501 * manual/setjmp.texi (System V contexts): Likewise.
3502 * manual/time.texi (Sleeping): Likewise.
3503 * manual/users.texi (Lookup User): Likewise.
3504 (Lookup Group): Likewise.
3505
3506 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3507
3508 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3509 fix typo.
3510
3511 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3512
3513 [BZ #19444]
3514 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3515 __builtin_unreachable for default case in switch.
3516 (__ieee754_yn): Likewise.
3517 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3518 (__ieee754_ynl): Likewise.
3519 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3520 (__ieee754_ynl): Likewise.
3521 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3522 (__ieee754_ynl): Likewise.
3523
3524 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3525
3526 * manual/maint.texi: Use @{ and @}.
3527
3528 2019-01-04 Florian Weimer <fweimer@redhat.com>
3529
3530 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3531 function.
3532 (do_in_chroot_1): Call it.
3533 (run_chroot_tests):
3534 Improve error reporting in case it is not possible to create a
3535 collision for the PTY name required by the test.
3536
3537 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3538
3539 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3540 lll_wait_tid with timeout.
3541 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3542 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3543 futex_reltimed_wait_cancelable for cancelabla mode.
3544 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3545 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3546 macros.
3547 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3548 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3549 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3550 SYSCALL_CANCEL_NCS): New macro.
3551 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3552 (lll_timedwait_tid): Remove macro.
3553 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3554 Likewise.
3555 (lll_timedwait_tid): Likewise.
3556 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3557 Likewise.
3558 (lll_timedwait_tid): Likewise.
3559 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3560 Likewise.
3561 (lll_timedwait_tid): Likewise.
3562 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3563 Use INTERNAL_SYSCALL_CANCEL.
3564 * sysdeps/unix/sysv/linux/futex-internal.h
3565 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3566 instead of __pthread_{enable,disable}_asynccancel.
3567 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3568 (lll_futex_wait_cancel): New macro.
3569
3570 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3571 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3572
3573 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3574 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3575
3576 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3577 in backtrace analysis.
3578 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3579 side-effects.
3580 (tf_send): Likewise.
3581
3582 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3583 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3584 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3585 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3586 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3587 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3588 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3589 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3590 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3591 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3592 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3593 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3594 Likewise.
3595 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3596 tst-cancel-wrappers.sh.
3597 (generated): Remove tst-cancel-wrappers.out.
3598 (tst-cancel-wrappers.out): Remove rule.
3599 * nptl/tst-cancel-wrappers.sh: Remove file.
3600
3601 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3602
3603 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3604 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3605 Update.
3606
3607 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3608
3609 [BZ #23640]
3610 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3611 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3612 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3613 close-on-exec reset for adddup2 file action.
3614 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3615
3616 2019-01-03 Zack Weinberg <zackw@panix.com>
3617
3618 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3619 parameter. Only use deprecated scanf when __USE_GNU is defined
3620 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3621 than 201103L, whichever is relevant for the language being compiled.
3622
3623 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3624 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3625 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3626 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3627 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3628
3629 * libio/iovsscanf.c
3630 * libio/fwscanf.c
3631 * libio/iovswscanf.c
3632 * libio/swscanf.c
3633 * libio/vscanf.c
3634 * libio/vwscanf.c
3635 * libio/wscanf.c
3636 * stdio-common/fscanf.c
3637 * stdio-common/scanf.c
3638 * stdio-common/vfscanf.c
3639 * stdio-common/vfwscanf.c
3640 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3641 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3642 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3643 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3644 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3645 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3646 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3647 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3648 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3649 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3650 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3651 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3652 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3653 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3654 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3655
3656 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3657 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3658 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3659 not sscanf.
3660 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3661 with a preprocessor macro.
3662
3663 * stdio-common/bug21.c, stdio-common/scanf14.c:
3664 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3665 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3666 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3667 to xscanf, xfscanf, xsscanf.
3668
3669 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3670 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3671 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3672 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3673 xfscanf, xsscanf.
3674 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3675 override feature selection macros or provide definitions of u_char etc.
3676 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3677 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3678 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3679 with -std=gnu89.
3680
3681 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3682
3683 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3684 bits/termios-misc.h.
3685 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3686 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3687 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3688 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3689 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3690 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3691
3692 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3693 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3694 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3695 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3696 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3697 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3698 termios-misc.h.
3699 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3700 (sysdep_headers): Add termios-misc.h.
3701
3702 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3703 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3704 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3705
3706 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3707 termios-tcflow.h.
3708 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3709 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3710 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3711 TCSAFLUSH): Move to termios-tcflow.h.
3712 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3713 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3714 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3715 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3716
3717 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3718 termios-c_lflag.h.
3719 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3720 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3721 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3722 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3723 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3724 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3725 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3726 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3727 Likewise.
3728 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3729 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3730 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3731 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3732
3733 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3734 termios-c_cflag.h.
3735 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3736 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3737 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3738 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3739 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3740 termios-c_cflag.h.
3741 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3742 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3743 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3744 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3745
3746 [BZ #23783]
3747 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3748 termios-baud.h.
3749 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3750 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3751 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3752 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3753 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3754 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3755 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3756 __MAX_BAUD): Move to termios-baud.h.
3757 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3758 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3759 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3760 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3761 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3762
3763 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3764 termios-c_oflag.h.
3765 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3766 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3767 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3768 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3769 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3770 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3771 termios-c_oflag.h.
3772 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3773 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3774 FFR1): Likewise.
3775 [USE_MISC] (XTABS): Likewise.
3776 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3777 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3778 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3779 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3780
3781 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3782 termios-c_iflag.h.
3783 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3784 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3785 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3786 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3787 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3788 IUTF8): Move to termios-c_iflag.h.
3789 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3790 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3791 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3792 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3793
3794 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3795 termios-cc.h.
3796 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3797 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3798 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3799 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3800 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3801 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3802 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3803 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3804 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3805 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3806 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3807 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3808
3809 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3810 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3811 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3812 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3813 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3814 termios-struct.h.
3815 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3816 termios-struct.h.
3817 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3818 Likewise.
3819 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3820 Likewise.
3821 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3822 Likewise.
3823 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3824 Likewise.
3825 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3826 _HAVE_C_OSPEED): Define.
3827 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3828 _HAVE_C_OSPEED): Likewise.
3829 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3830 _HAVE_C_OSPEED): Likewise.
3831 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3832 (cfsetospeed): Check for define value instead of existence.
3833 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3834 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3835 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3836 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3837 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3838
3839 [BZ #17783]
3840 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3841 Define.
3842 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3843 (TIOCSER_TEMT): Likewise.
3844 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3845 (TEOCSER_TEMT): Likewise.
3846
3847 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3848
3849 [BZ #24011]
3850 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3851
3852 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3853
3854 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3855
3856 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3857
3858 * sysdeps/htl/pt-barrierattr-setpshared.c
3859 (pthread_barrierattr_setpshared): Add stub warning.
3860 * sysdeps/htl/pt-condattr-setpshared.c
3861 (pthread_condattr_setpshared): Likewise.
3862 * sysdeps/htl/pt-mutexattr-setpshared.c
3863 (pthread_mutexattr_setpshared): Likewise.
3864 * sysdeps/htl/pt-rwlockattr-setpshared.c
3865 (pthread_rwlockattr_setpshared): Likewise.
3866 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3867 (pthread_mutexattr_setpshared): Likewise.
3868
3869 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3870
3871 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3872 constants to match with Linux 4.20.
3873
3874 * sysdeps/mips/mips32/libm-test-ulps: Update.
3875 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3876
3877 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3878
3879 [BZ #24034]
3880 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3881 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3882 than __typeof (...) for the a_ptr variable.
3883
3884 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3885
3886 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3887 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3888 * libio/Makefile (tests): Add tst-sprintf-ub and
3889 tst-sprintf-chk-ub.
3890 (CFLAGS-tst-sprintf-ub.c): New variable.
3891 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3892 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3893 destination buffer and check for overflows in fortified mode.
3894 * libio/libioP.h (PRINTF_CHK): New macro.
3895 * libio/tst-sprintf-chk-ub.c: New file.
3896 * libio/tst-sprintf-ub.c: Likewise.
3897
3898 2019-01-02 Florian Weimer <fweimer@redhat.com>
3899
3900 [BZ #24018]
3901 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3902 failure.
3903
3904 2019-01-02 Florian Weimer <fweimer@redhat.com>
3905
3906 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3907
3908 2019-01-01 Joseph Myers <joseph@codesourcery.com>
3909
3910 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
3911 macro.
3912
3913 * sysdeps/unix/sysv/linux/netpacket/packet.h
3914 (PACKET_IGNORE_OUTGOING): New macro.
3915
3916 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
3917 macro.
3918
3919 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3920 version to 4.20.
3921 (riscv_flush_icache): New syscall.
3922
3923 * manual/texinfo.tex: Update to version 2018-12-28.17 with
3924 trailing whitespace removed.
3925 * scripts/config.guess: Update to version 2019-01-01.
3926 * scripts/config.sub: Update to version 2019-01-01.
3927 * scripts/move-if-change: Update from gnulib.
3928
3929 * NEWS: Update copyright dates.
3930 * catgets/gencat.c (print_version): Likewise.
3931 * csu/version.c (banner): Likewise.
3932 * debug/catchsegv.sh: Likewise.
3933 * debug/pcprofiledump.c (print_version): Likewise.
3934 * debug/xtrace.sh (do_version): Likewise.
3935 * elf/ldconfig.c (print_version): Likewise.
3936 * elf/ldd.bash.in: Likewise.
3937 * elf/pldd.c (print_version): Likewise.
3938 * elf/sotruss.sh: Likewise.
3939 * elf/sprof.c (print_version): Likewise.
3940 * iconv/iconv_prog.c (print_version): Likewise.
3941 * iconv/iconvconfig.c (print_version): Likewise.
3942 * locale/programs/locale.c (print_version): Likewise.
3943 * locale/programs/localedef.c (print_version): Likewise.
3944 * login/programs/pt_chown.c (print_version): Likewise.
3945 * malloc/memusage.sh (do_version): Likewise.
3946 * malloc/memusagestat.c (print_version): Likewise.
3947 * malloc/mtrace.pl: Likewise.
3948 * manual/libc.texinfo: Likewise.
3949 * nptl/version.c (banner): Likewise.
3950 * nscd/nscd.c (print_version): Likewise.
3951 * nss/getent.c (print_version): Likewise.
3952 * nss/makedb.c (print_version): Likewise.
3953 * posix/getconf.c (main): Likewise.
3954 * scripts/test-installation.pl: Likewise.
3955 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3956
3957 * All files with FSF copyright notices: Update copyright dates
3958 using scripts/update-copyrights.
3959 * locale/programs/charmap-kw.h: Regenerated.
3960 * locale/programs/locfile-kw.h: Likewise.
3961
3962 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3963
3964 * timezone/zdump.c: Update from tzcode 2018i.
3965 * timezone/zic.c: Likewise.
3966
3967 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
3968
3969 regex: improve Gnulib port to AIX
3970 From the glibc point of view, this removes duplicate macro
3971 definitions and is obviously safe.
3972 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
3973 * posix/regex_internal.h:
3974 (__attribute__, __attribute_warn_unused_result__):
3975 Remove; already defined elsewhere.
3976
3977 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
3978
3979 [BZ #24027]
3980 * malloc/malloc.c (_int_realloc): Always call memcpy for the
3981 copying operation. (ncopies had the wrong type, resulting in an
3982 integer wraparound and too few elements being copied.)
3983
3984 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
3985
3986 [BZ #24022]
3987 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
3988 <asm/syscalls.h> exists with __has_include__ before including it.
3989
3990 2018-12-31 Joseph Myers <joseph@codesourcery.com>
3991
3992 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3993 version to 4.20.
3994
3995 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
3996
3997 * hurd/lookup-retry: Include <unistd.h>.
3998 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
3999 Release it on return. Handle "pid" magical lookup retry.
4000
4001 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4002
4003 [BZ #10496]
4004 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4005 (t_fmt_ampm): Likewise.
4006 * localedata/locales/aa_ER (t_fmt): Likewise.
4007 (t_fmt_ampm): Likewise.
4008 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4009 (t_fmt_ampm): Likewise.
4010 * localedata/locales/aa_ET (t_fmt): Likewise.
4011 (t_fmt_ampm): Likewise.
4012 * localedata/locales/am_ET (t_fmt): Likewise.
4013 (t_fmt_ampm): Likewise.
4014 * localedata/locales/byn_ER (t_fmt): Likewise.
4015 (t_fmt_ampm): Likewise.
4016 * localedata/locales/om_ET (t_fmt): Likewise.
4017 (t_fmt_ampm): Likewise.
4018 * localedata/locales/sid_ET (t_fmt): Likewise.
4019 (t_fmt_ampm): Likewise.
4020 * localedata/locales/so_DJ (t_fmt): Likewise.
4021 (t_fmt_ampm): Likewise.
4022 * localedata/locales/so_ET (t_fmt): Likewise.
4023 (t_fmt_ampm): Likewise.
4024 * localedata/locales/so_SO (t_fmt): Likewise.
4025 (t_fmt_ampm): Likewise.
4026 * localedata/locales/ti_ER (t_fmt): Likewise.
4027 (t_fmt_ampm): Likewise.
4028 * localedata/locales/ti_ET (t_fmt): Likewise.
4029 (t_fmt_ampm): Likewise.
4030 * localedata/locales/tig_ER (t_fmt): Likewise.
4031 (t_fmt_ampm): Likewise.
4032 * localedata/locales/wal_ET (t_fmt): Likewise.
4033 (t_fmt_ampm): Likewise.
4034
4035 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4036 * localedata/locales/ar_IN (t_fmt): Likewise.
4037 * localedata/locales/bhb_IN (t_fmt): Likewise.
4038 * localedata/locales/bho_IN (t_fmt): Likewise.
4039 * localedata/locales/bi_VU (t_fmt): Likewise.
4040 * localedata/locales/bn_BD (t_fmt): Likewise.
4041 * localedata/locales/bn_IN (t_fmt): Likewise.
4042 * localedata/locales/brx_IN (t_fmt): Likewise.
4043 * localedata/locales/doi_IN (t_fmt): Likewise.
4044 * localedata/locales/en_HK (t_fmt): Likewise.
4045 (t_fmt_ampm): Likewise.
4046 * localedata/locales/en_IN (t_fmt): Likewise.
4047 * localedata/locales/en_PH (t_fmt): Likewise.
4048 * localedata/locales/gu_IN (t_fmt): Likewise.
4049 * localedata/locales/hi_IN (t_fmt): Likewise.
4050 * localedata/locales/hif_FJ (t_fmt): Likewise.
4051 * localedata/locales/hne_IN (t_fmt): Likewise.
4052 * localedata/locales/kn_IN (t_fmt): Likewise.
4053 * localedata/locales/kok_IN (t_fmt): Likewise.
4054 * localedata/locales/ks_IN (t_fmt): Likewise.
4055 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4056 * localedata/locales/mag_IN (t_fmt): Likewise.
4057 * localedata/locales/mai_IN (t_fmt): Likewise.
4058 * localedata/locales/mjw_IN (t_fmt): Likewise.
4059 * localedata/locales/ml_IN (t_fmt): Likewise.
4060 * localedata/locales/mni_IN (t_fmt): Likewise.
4061 * localedata/locales/mr_IN (t_fmt): Likewise.
4062 * localedata/locales/ms_MY (t_fmt): Likewise.
4063 * localedata/locales/pa_IN (t_fmt): Likewise.
4064 * localedata/locales/raj_IN (t_fmt): Likewise.
4065 * localedata/locales/sa_IN (t_fmt): Likewise.
4066 * localedata/locales/sat_IN (t_fmt): Likewise.
4067 * localedata/locales/sd_IN (t_fmt): Likewise.
4068 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4069 * localedata/locales/tcy_IN (t_fmt): Likewise.
4070 * localedata/locales/the_NP (t_fmt): Likewise.
4071 * localedata/locales/to_TO (t_fmt): Likewise.
4072 * localedata/locales/ur_IN (t_fmt): Likewise.
4073
4074 * localedata/locales/hif_FJ (d_t_fmt): Set to
4075 "%A %d %b %Y %I:%M:%S %p".
4076 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4077
4078 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4079 * localedata/locales/ar_BH (t_fmt): Likewise.
4080 * localedata/locales/ar_DZ (t_fmt): Likewise.
4081 * localedata/locales/ar_EG (t_fmt): Likewise.
4082 * localedata/locales/ar_IQ (t_fmt): Likewise.
4083 * localedata/locales/ar_JO (t_fmt): Likewise.
4084 * localedata/locales/ar_KW (t_fmt): Likewise.
4085 * localedata/locales/ar_LB (t_fmt): Likewise.
4086 * localedata/locales/ar_LY (t_fmt): Likewise.
4087 * localedata/locales/ar_OM (t_fmt): Likewise.
4088 * localedata/locales/ar_QA (t_fmt): Likewise.
4089 * localedata/locales/ar_SD (t_fmt): Likewise.
4090 * localedata/locales/ar_SS (t_fmt): Likewise.
4091 * localedata/locales/ar_SY (t_fmt): Likewise.
4092 * localedata/locales/ar_TN (t_fmt): Likewise.
4093 * localedata/locales/ar_YE (t_fmt): Likewise.
4094
4095 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4096 (t_fmt_ampm): Likewise.
4097 * localedata/locales/gez_ET (t_fmt): Likewise.
4098 (t_fmt_ampm): Likewise.
4099
4100 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4101 (t_fmt_ampm): Likewise.
4102 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4103
4104 * localedata/locales/zh_HK (t_fmt):
4105 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4106
4107 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4108 because this locale does not use the 12-hour clock.
4109 (t_fmt): Set to "%Z %H:%M:%S".
4110 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4111
4112 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4113 because this locale does not use the 12-hour clock.
4114 (t_fmt): Set to "%H:%M:%S %Z".
4115 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4116
4117 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4118 because this locale does not use the 12-hour clock.
4119 (t_fmt): Set to "%T".
4120 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4121 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4122
4123 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4124 because this locale does not use the 12-hour clock.
4125 (t_fmt): Set to "%H:%M:%S %Z".
4126 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4127
4128 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4129 because this locale does not use the 12-hour clock.
4130 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4131 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4132
4133 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4134
4135 [BZ #10496]
4136 [BZ #23724]
4137 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4138 (t_fmt_ampm): Likewise.
4139 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4140 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4141 (d_fmt): Set to "%-d.%-m.%y".
4142
4143 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4144
4145 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4146 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4147 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4148 Likewise.
4149 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4150 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4151 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4152 function.
4153 * support/blob_repeat.c (check_mul_overflow_size_t,
4154 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4155
4156 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4157
4158 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4159
4160 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4161
4162 regex: simplify Gnulib port
4163 This simplifies the code, by removing stuff intended for porting
4164 to Gnulib but no longer needed there.
4165 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4166 uses of libc_hidden_def, weak_alias.
4167 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4168 _Restrict_ except for public-facing headers.
4169 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4170 Remove; already defined elsewhere.
4171 * posix/regex.c, posix/regex_internal.h:
4172 Use __GNUC_PREREQ instead of rolling our own.
4173 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4174
4175 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4176
4177 * benchtests/bench-strlen.c (generic_strlen): New function.
4178 (memchr_strlen): New function.
4179
4180 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4181
4182 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4183 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4184 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4185
4186 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4187
4188 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4189
4190 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4191
4192 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4193 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4194 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4195 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4196 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4197 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4198 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4199
4200 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4201
4202 [BZ #24023]
4203 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4204 PLT reference in libc.so.
4205 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4206 _Q_lltoq and _Q_qtod PLT references in libc.so.
4207
4208 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4209
4210 * benchtests/bench-memchr.c: Cleanup defines.
4211 * benchtests/bench-memcmp.c: Likewise.
4212 * benchtests/bench-memset.c: Likewise.
4213 * benchtests/bench-memset-large.c: Likewise.
4214 * benchtests/bench-memset-walk.c: Likewise.
4215 * benchtests/bench-stpcpy.c: Likewise.
4216 * benchtests/bench-stpncpy.c: Likewise.
4217 * benchtests/bench-strcat.c: Likewise.
4218 * benchtests/bench-strchr.c: Likewise.
4219 * benchtests/bench-strcmp.c: Likewise.
4220 * benchtests/bench-strcpy.c: Likewise.
4221 * benchtests/bench-strcspn.c: Likewise.
4222 * benchtests/bench-string.h: Likewise.
4223 * benchtests/bench-strlen.c: Likewise.
4224 * benchtests/bench-strncat.c: Likewise.
4225 * benchtests/bench-strncmp.c: Likewise.
4226 * benchtests/bench-strncpy.c: Likewise.
4227 * benchtests/bench-strnlen.c: Likewise.
4228 * benchtests/bench-strpbrk.c: Likewise.
4229 * benchtests/bench-strrchr.c: Likewise.
4230 * benchtests/bench-strspn.c: Likewise.
4231
4232 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4233
4234 * stdlib/longlong.h: Update from GCC.
4235
4236 [BZ #23993]
4237 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4238 * configure: Regenerated.
4239 * manual/install.texi (Tools for Compilation): Update minimum GCC
4240 version.
4241 * INSTALL: Regenerated.
4242
4243 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4244
4245 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4246
4247 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4248
4249 * malloc/malloc.c (mremap_chunk): Additional checks.
4250
4251 2018-12-21 Mao Han <han_mao@c-sky.com>
4252
4253 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4254 * scripts/build-many-glibcs.py: Add C-SKY targets.
4255 * sysdeps/csky/Implies: New file.
4256 * sysdeps/csky/Makefile: Likewise.
4257 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4258 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4259 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4260 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4261 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4262 * sysdeps/csky/abiv2/memmove.S: Likewise.
4263 * sysdeps/csky/abiv2/memset.S: Likewise.
4264 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4265 * sysdeps/csky/abiv2/start.S: Likewise.
4266 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4267 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4268 * sysdeps/csky/abiv2/strlen.S: Likewise.
4269 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4270 * sysdeps/csky/abort-instr.h: Likewise.
4271 * sysdeps/csky/atomic-machine.h: Likewise.
4272 * sysdeps/csky/bits/endian.h: Likewise.
4273 * sysdeps/csky/bits/fenv.h: Likewise.
4274 * sysdeps/csky/bits/link.h: Likewise.
4275 * sysdeps/csky/bits/setjmp.h: Likewise.
4276 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4277 * sysdeps/csky/bsd-setjmp.S: Likewise.
4278 * sysdeps/csky/configure: Likewise.
4279 * sysdeps/csky/configure.ac: Likewise.
4280 * sysdeps/csky/dl-machine.h: Likewise.
4281 * sysdeps/csky/dl-procinfo.c: Likewise.
4282 * sysdeps/csky/dl-procinfo.h: Likewise.
4283 * sysdeps/csky/dl-sysdep.h: Likewise.
4284 * sysdeps/csky/dl-tls.h: Likewise.
4285 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4286 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4287 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4288 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4289 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4290 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4291 * sysdeps/csky/fpu/fegetround.c: Likewise.
4292 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4293 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4294 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4295 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4296 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4297 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4298 * sysdeps/csky/fpu/fesetround.c: Likewise.
4299 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4300 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4301 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4302 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4303 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4304 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4305 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4306 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4307 * sysdeps/csky/fpu_control.h: Likewise.
4308 * sysdeps/csky/gccframe.h: Likewise.
4309 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4310 * sysdeps/csky/ldsodefs.h: Likewise.
4311 * sysdeps/csky/libc-tls.c: Likewise.
4312 * sysdeps/csky/linkmap.h: Likewise.
4313 * sysdeps/csky/machine-gmon.h: Likewise.
4314 * sysdeps/csky/memusage.h: Likewise.
4315 * sysdeps/csky/nofpu/Implies: Likewise.
4316 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4317 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4318 * sysdeps/csky/nptl/Makefile: Likewise.
4319 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4320 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4321 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4322 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4323 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4324 * sysdeps/csky/nptl/tls.h: Likewise.
4325 * sysdeps/csky/preconfigure: Likewise.
4326 * sysdeps/csky/sfp-machine.h: Likewise.
4327 * sysdeps/csky/sotruss-lib.c: Likewise.
4328 * sysdeps/csky/stackinfo.h: Likewise.
4329 * sysdeps/csky/sysdep.h: Likewise.
4330 * sysdeps/csky/tininess.h: Likewise.
4331 * sysdeps/csky/tst-audit.h: Likewise.
4332 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4333 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4334 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4335 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4336 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4337 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4338 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4339 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4340 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4341 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4342 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4343 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4344 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4345 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4346 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4347 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4348 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4349 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4350 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4351 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4352 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4353 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4354 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4355 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4356 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4357 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4358 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4359 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4360 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4361 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4362 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4363 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4364 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4365 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4366 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4367 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4368 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4369 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4370 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4371 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4372 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4373 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4374 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4375 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4376
4377 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4378
4379 * include/time.h (__difftime64): Add.
4380 * time/difftime.c (subtract): convert to 64-bit time.
4381 * time/difftime.c (__difftime64): Add.
4382 * time/difftime.c (__difftime): Wrap around __difftime64.
4383
4384 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4385
4386 * manual/examples/add.c: Remove redundant "if not".
4387 * manual/examples/argp-ex1.c: Likewise.
4388 * manual/examples/argp-ex2.c: Likewise.
4389 * manual/examples/argp-ex3.c: Likewise.
4390 * manual/examples/argp-ex4.c: Likewise.
4391 * manual/examples/atexit.c: Likewise.
4392 * manual/examples/db.c: Likewise.
4393 * manual/examples/dir.c: Likewise.
4394 * manual/examples/dir2.c: Likewise.
4395 * manual/examples/execinfo.c: Likewise.
4396 * manual/examples/filecli.c: Likewise.
4397 * manual/examples/filesrv.c: Likewise.
4398 * manual/examples/fmtmsgexpl.c: Likewise.
4399 * manual/examples/genpass.c: Likewise.
4400 * manual/examples/inetcli.c: Likewise.
4401 * manual/examples/inetsrv.c: Likewise.
4402 * manual/examples/isockad.c: Likewise.
4403 * manual/examples/longopt.c: Likewise.
4404 * manual/examples/memopen.c: Likewise.
4405 * manual/examples/memstrm.c: Likewise.
4406 * manual/examples/mkdirent.c: Likewise.
4407 * manual/examples/mkfsock.c: Likewise.
4408 * manual/examples/mkisock.c: Likewise.
4409 * manual/examples/mygetpass.c: Likewise.
4410 * manual/examples/pipe.c: Likewise.
4411 * manual/examples/popen.c: Likewise.
4412 * manual/examples/rprintf.c: Likewise.
4413 * manual/examples/search.c: Likewise.
4414 * manual/examples/select.c: Likewise.
4415 * manual/examples/setjmp.c: Likewise.
4416 * manual/examples/sigh1.c: Likewise.
4417 * manual/examples/sigusr.c: Likewise.
4418 * manual/examples/stpcpy.c: Likewise.
4419 * manual/examples/strdupa.c: Likewise.
4420 * manual/examples/strftim.c: Likewise.
4421 * manual/examples/subopt.c: Likewise.
4422 * manual/examples/swapcontext.c: Likewise.
4423 * manual/examples/termios.c: Likewise.
4424 * manual/examples/testopt.c: Likewise.
4425 * manual/examples/testpass.c: Likewise.
4426 * manual/examples/timeval_subtract.c: Likewise.
4427
4428 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4429
4430 * sysdeps/x86/fpu/math_private.h: New file.
4431 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4432
4433 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4434 definition.
4435 (cosh): Likewise.
4436 (tanh): Likewise.
4437
4438 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4439
4440 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4441 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4442 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4443 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4444 fields.
4445 (_dl_show_auxv): Give a special treatment to
4446 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4447 and AT_L3_CACHEGEOMETRY.
4448 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4449 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4450 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4451 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4452
4453 2018-12-19 Andreas Schwab <schwab@suse.de>
4454
4455 * nscd/connections.c (check_use): Don't abort on invalid len.
4456
4457 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4458
4459 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4460 values in the 64bit value cases.
4461
4462 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4463
4464 * include/time.h
4465 (__ctime64_r): Add.
4466 * time/ctime_r.c
4467 (__ctime64_r): Add.
4468 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4469
4470 * include/time.h
4471 (__ctime64): Add.
4472 * time/gmtime.c
4473 (__ctime64): Add.
4474 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4475
4476 * include/time.h
4477 (__gmtime64_r): Add.
4478 * time/gmtime.c
4479 (__gmtime64_r): Add.
4480 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4481
4482 * include/time.h
4483 (__gmtime64): Add.
4484 * time/gmtime.c
4485 (__gmtime64): Add.
4486 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4487
4488 * include/time.h
4489 (__localtime64_r): Add.
4490 * time/localtime.c
4491 (__localtime64_r): Add.
4492 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4493
4494 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4495
4496 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4497 kernel_sigction definition.
4498
4499 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4500
4501 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4502
4503 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4504 __syscall_rt_sigaction.
4505 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4506 (kernel_sigaction): Use Linux generic defintion.
4507 (STUB): Define.
4508 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4509 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4510 (__syscall_rt_sigaction): Remove implementation.
4511 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4512 hidden.
4513 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4514 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4515 INTERNAL_SYSCALL): Remove definitions.
4516 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4517 action and signal set size.
4518 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4519 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4520
4521 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4522 James Clarke <jrtc27@jrtc27.com>
4523
4524 [BZ #23967]
4525 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4526 Define if SA_RESTORER is defined.
4527 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4528 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4529 already defined.
4530 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4531 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4532 definitions.
4533 (HAS_SA_RESTORER): Define.
4534 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4535 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4536 (HAS_SA_RESTORER): Define.
4537 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4538 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4539 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4540 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4541 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4542
4543 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4544
4545 * sysdeps/unix/sysv/linux/kernel-features.h
4546 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4547 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4548 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4549 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4550 (__ASSUME_ST_INO_64_BIT): Likewise.
4551 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4552 <kernel-features.h>.
4553 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4554 Remove conditional code.
4555 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4556 <kernel-features.h>.
4557 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4558 Remove conditional code.
4559 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4560 <kernel-features.h>.
4561 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4562 Remove conditional code.
4563 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4564 <kernel-features.h>.
4565 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4566 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4567
4568 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4569
4570 * sysdeps/s390/multiarch/ifunc-resolve.h
4571 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4572 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4573 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4574 Delete macro definition.
4575 (s390_libc_ifunc_init): Rename to
4576 s390_libc_ifunc_expr_stfle_init.
4577 * sysdeps/s390/bzero: Use
4578 s390_libc_ifunc_expr_stfle_init instead of
4579 s390_libc_ifunc_init.
4580 * sysdeps/s390/memcmp.c: Likewise.
4581 * sysdeps/s390/memcpy.c: Likewise.
4582 * sysdeps/s390/mempcpy.c: Likewise.
4583 * sysdeps/s390/memset.c: Likewise.
4584
4585 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4586
4587 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4588 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4589
4590 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4591
4592 * sysdeps/s390/multiarch/Makefile
4593 (sysdep_routines): Remove wmemcmp variants.
4594 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4595 * sysdeps/s390/multiarch/ifunc-impl-list.c
4596 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4597 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4598 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4599 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4600 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4601 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4602 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4603 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4604
4605 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4606
4607 * sysdeps/s390/multiarch/Makefile
4608 (sysdep_routines): Remove wmemset variants.
4609 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4610 * sysdeps/s390/multiarch/ifunc-impl-list.c
4611 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4612 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4613 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4614 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4615 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4616 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4617 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4618 * sysdeps/s390/ifunc-wmemset.h: New file.
4619
4620 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4621
4622 * sysdeps/s390/multiarch/Makefile
4623 (sysdep_routines): Remove wmemchr variants.
4624 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4625 * sysdeps/s390/multiarch/ifunc-impl-list.c
4626 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4627 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4628 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4629 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4630 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4631 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4632 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4633 * sysdeps/s390/ifunc-wmemchr.h: New file.
4634
4635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4636
4637 * sysdeps/s390/multiarch/Makefile
4638 (sysdep_routines): Remove wcscspn variants.
4639 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4640 * sysdeps/s390/multiarch/ifunc-impl-list.c
4641 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4642 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4643 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4644 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4645 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4646 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4647 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4648 * sysdeps/s390/ifunc-wcscspn.h: New file.
4649
4650 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4651
4652 * sysdeps/s390/multiarch/Makefile
4653 (sysdep_routines): Remove wcspbrk variants.
4654 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4655 * sysdeps/s390/multiarch/ifunc-impl-list.c
4656 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4657 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4658 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4659 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4660 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4661 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4662 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4663 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4664
4665 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4666
4667 * sysdeps/s390/multiarch/Makefile
4668 (sysdep_routines): Remove wcsspn variants.
4669 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4670 * sysdeps/s390/multiarch/ifunc-impl-list.c
4671 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4672 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4673 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4674 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4675 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4676 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4677 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4678 * sysdeps/s390/ifunc-wcsspn.h: New file.
4679
4680 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4681
4682 * sysdeps/s390/multiarch/Makefile
4683 (sysdep_routines): Remove wcsrchr variants.
4684 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4685 * sysdeps/s390/multiarch/ifunc-impl-list.c
4686 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4687 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4688 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4689 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4690 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4691 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4692 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4693 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4694
4695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4696
4697 * sysdeps/s390/multiarch/Makefile
4698 (sysdep_routines): Remove wcschrnul variants.
4699 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4700 * sysdeps/s390/multiarch/ifunc-impl-list.c
4701 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4702 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4703 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4704 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4705 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4706 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4707 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4708 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4709
4710 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4711
4712 * sysdeps/s390/multiarch/Makefile
4713 (sysdep_routines): Remove wcschr variants.
4714 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4715 * sysdeps/s390/multiarch/ifunc-impl-list.c
4716 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4717 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4718 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4719 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4720 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4721 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4722 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4723 * sysdeps/s390/ifunc-wcschr.h: New file.
4724
4725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4726
4727 * sysdeps/s390/multiarch/Makefile
4728 (sysdep_routines): Remove wcsncmp variants.
4729 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4730 * sysdeps/s390/multiarch/ifunc-impl-list.c
4731 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4732 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4733 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4734 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4735 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4736 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4737 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4738 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4739
4740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4741
4742 * sysdeps/s390/multiarch/Makefile
4743 (sysdep_routines): Remove wcscmp variants.
4744 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4745 * sysdeps/s390/multiarch/ifunc-impl-list.c
4746 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4747 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4748 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4749 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4750 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4751 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4752 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4753 * sysdeps/s390/ifunc-wcscmp.h: New file.
4754
4755 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4756
4757 * sysdeps/s390/multiarch/Makefile
4758 (sysdep_routines): Remove wcsncat variants.
4759 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4760 * sysdeps/s390/multiarch/ifunc-impl-list.c
4761 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4762 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4763 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4764 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4765 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4766 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4767 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4768 * sysdeps/s390/ifunc-wcsncat.h: New file.
4769
4770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4771
4772 * sysdeps/s390/multiarch/Makefile
4773 (sysdep_routines): Remove wcscat variants.
4774 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4775 * sysdeps/s390/multiarch/ifunc-impl-list.c
4776 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4777 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4778 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4779 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4780 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4781 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4782 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4783 * sysdeps/s390/ifunc-wcscat.h: New file.
4784
4785 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4786
4787 * sysdeps/s390/multiarch/Makefile
4788 (sysdep_routines): Remove wcpncpy variants.
4789 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4790 * sysdeps/s390/multiarch/ifunc-impl-list.c
4791 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4792 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4793 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4794 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4795 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4796 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4797 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4798 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4799
4800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4801
4802 * sysdeps/s390/multiarch/Makefile
4803 (sysdep_routines): Remove wcsncpy variants.
4804 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4805 * sysdeps/s390/multiarch/ifunc-impl-list.c
4806 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4807 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4808 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4809 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4810 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4811 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4812 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4813 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4814
4815 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4816
4817 * sysdeps/s390/multiarch/Makefile
4818 (sysdep_routines): Remove wcpcpy variants.
4819 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4820 * sysdeps/s390/multiarch/ifunc-impl-list.c
4821 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4822 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4823 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4824 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4825 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4826 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4827 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4828 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4829
4830 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4831
4832 * sysdeps/s390/multiarch/Makefile
4833 (sysdep_routines): Remove wcscpy variants.
4834 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4835 * sysdeps/s390/multiarch/ifunc-impl-list.c
4836 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4837 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4838 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4839 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4840 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4841 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4842 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4843 * sysdeps/s390/ifunc-wcscpy.h: New file.
4844
4845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4846
4847 * sysdeps/s390/multiarch/Makefile
4848 (sysdep_routines): Remove wcsnlen variants.
4849 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4850 * sysdeps/s390/multiarch/ifunc-impl-list.c
4851 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4852 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4853 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4854 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4855 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4856 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4857 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4858 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4859
4860 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4861
4862 * sysdeps/s390/multiarch/Makefile
4863 (sysdep_routines): Remove wcslen variants.
4864 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4865 * sysdeps/s390/multiarch/ifunc-impl-list.c
4866 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4867 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4868 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4869 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4870 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4871 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4872 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4873 * sysdeps/s390/ifunc-wcslen.h: New file.
4874
4875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4876
4877 * sysdeps/s390/multiarch/Makefile
4878 (sysdep_routines): Remove memrchr variants.
4879 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4880 * sysdeps/s390/multiarch/ifunc-impl-list.c
4881 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4882 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4883 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4884 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4885 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4886 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4887 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4888 * sysdeps/s390/ifunc-memrchr.h: New file.
4889
4890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4891
4892 * sysdeps/s390/multiarch/Makefile
4893 (sysdep_routines): Remove memccpy variants.
4894 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4895 * sysdeps/s390/multiarch/ifunc-impl-list.c
4896 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4897 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4898 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4899 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4900 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4901 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4902 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4903 * sysdeps/s390/ifunc-memccpy.h: New file.
4904
4905 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4906
4907 * sysdeps/s390/multiarch/Makefile
4908 (sysdep_routines): Remove rawmemchr variants.
4909 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
4910 * sysdeps/s390/multiarch/ifunc-impl-list.c
4911 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
4912 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
4913 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
4914 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
4915 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
4916 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
4917 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
4918 * sysdeps/s390/ifunc-rawmemchr.h: New file.
4919
4920 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4921
4922 * sysdeps/s390/multiarch/Makefile
4923 (sysdep_routines): Remove memchr variants.
4924 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
4925 * sysdeps/s390/multiarch/ifunc-impl-list.c
4926 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
4927 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
4928 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
4929 * sysdeps/s390/multiarch/memchr.c: Move to ...
4930 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
4931 * sysdeps/s390/ifunc-memchr.h: New file.
4932 * sysdeps/s390/s390-64/memchr.S: Move to ...
4933 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
4934 for 31/64bit and ifunc handling.
4935 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
4936 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
4937 * sysdeps/s390/s390-32/memchr.S: Likewise.
4938
4939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4940
4941 * sysdeps/s390/multiarch/Makefile
4942 (sysdep_routines): Remove strcspn variants.
4943 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
4944 * sysdeps/s390/multiarch/ifunc-impl-list.c
4945 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
4946 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
4947 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
4948 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
4949 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
4950 * sysdeps/s390/multiarch/strcspn.c: Move to ...
4951 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
4952 * sysdeps/s390/ifunc-strcspn.h: New file.
4953
4954 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4955
4956 * sysdeps/s390/multiarch/Makefile
4957 (sysdep_routines): Remove strpbrk variants.
4958 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
4959 * sysdeps/s390/multiarch/ifunc-impl-list.c
4960 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
4961 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
4962 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
4963 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
4964 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
4965 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
4966 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
4967 * sysdeps/s390/ifunc-strpbrk.h: New file.
4968
4969 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4970
4971 * sysdeps/s390/multiarch/Makefile
4972 (sysdep_routines): Remove strspn variants.
4973 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
4974 * sysdeps/s390/multiarch/ifunc-impl-list.c
4975 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
4976 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
4977 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
4978 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
4979 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
4980 * sysdeps/s390/multiarch/strspn.c: Move to ...
4981 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
4982 * sysdeps/s390/ifunc-strspn.h: New file.
4983
4984 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4985
4986 * sysdeps/s390/multiarch/Makefile
4987 (sysdep_routines): Remove strrchr variants.
4988 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
4989 * sysdeps/s390/multiarch/ifunc-impl-list.c
4990 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
4991 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
4992 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
4993 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
4994 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
4995 * sysdeps/s390/multiarch/strrchr.c: Move to ...
4996 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
4997 * sysdeps/s390/ifunc-strrchr.h: New file.
4998
4999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5000
5001 * sysdeps/s390/multiarch/Makefile
5002 (sysdep_routines): Remove strchrnul variants.
5003 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5004 * sysdeps/s390/multiarch/ifunc-impl-list.c
5005 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5006 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5007 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5008 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5009 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5010 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5011 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5012 * sysdeps/s390/ifunc-strchrnul.h: New file.
5013
5014 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5015
5016 * sysdeps/s390/multiarch/Makefile
5017 (sysdep_routines): Remove strchr variants.
5018 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5019 * sysdeps/s390/multiarch/ifunc-impl-list.c
5020 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5021 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5022 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5023 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5024 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5025 * sysdeps/s390/multiarch/strchr.c: Move to ...
5026 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5027 * sysdeps/s390/ifunc-strchr.h: New file.
5028
5029 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5030
5031 * sysdeps/s390/multiarch/Makefile
5032 (sysdep_routines): Remove strncmp variants.
5033 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5034 * sysdeps/s390/multiarch/ifunc-impl-list.c
5035 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5036 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5037 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5038 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5039 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5040 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5041 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5042 * sysdeps/s390/ifunc-strncmp.h: New file.
5043
5044 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5045
5046 * sysdeps/s390/multiarch/Makefile
5047 (sysdep_routines): Remove strcmp variants.
5048 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5049 * sysdeps/s390/multiarch/ifunc-impl-list.c
5050 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5051 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5052 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5053 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5054 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5055 * sysdeps/s390/ifunc-strcmp.h: New file.
5056 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5057 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5058 for 31/64bit and ifunc handling.
5059 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5060 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5061 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5062
5063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5064
5065 * sysdeps/s390/multiarch/Makefile
5066 (sysdep_routines): Remove strncat variants.
5067 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5068 * sysdeps/s390/multiarch/ifunc-impl-list.c
5069 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5070 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5071 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5072 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5073 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5074 * sysdeps/s390/multiarch/strncat.c: Move to ...
5075 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5076 * sysdeps/s390/ifunc-strncat.h: New file.
5077
5078 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5079
5080 * sysdeps/s390/multiarch/Makefile
5081 (sysdep_routines): Remove strcat variants.
5082 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5083 * sysdeps/s390/multiarch/ifunc-impl-list.c
5084 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5085 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5086 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5087 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5088 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5089 * sysdeps/s390/multiarch/strcat.c: Move to ...
5090 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5091 * sysdeps/s390/ifunc-strcat.h: New file.
5092
5093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5094
5095 * sysdeps/s390/multiarch/Makefile
5096 (sysdep_routines): Remove stpncpy variants.
5097 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5098 * sysdeps/s390/multiarch/ifunc-impl-list.c
5099 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5100 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5101 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5102 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5103 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5104 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5105 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5106 * sysdeps/s390/ifunc-stpncpy.h: New file.
5107
5108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5109
5110 * sysdeps/s390/multiarch/Makefile
5111 (sysdep_routines): Remove strncpy variants.
5112 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5113 * sysdeps/s390/multiarch/ifunc-impl-list.c
5114 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5115 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5116 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5117 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5118 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5119 * sysdeps/s390/ifunc-strncpy.h: New file.
5120 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5121 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5122 and adjust ifunc handling.
5123 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5124 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5125 and adjust ifunc handling.
5126 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5127 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5128
5129 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5130
5131 * sysdeps/s390/multiarch/Makefile
5132 (sysdep_routines): Remove stpcpy variants.
5133 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5134 * sysdeps/s390/multiarch/ifunc-impl-list.c
5135 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5136 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5137 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5138 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5139 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5140 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5141 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5142 * sysdeps/s390/ifunc-stpcpy.h: New file.
5143
5144 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5145
5146 * sysdeps/s390/multiarch/Makefile
5147 (sysdep_routines): Remove strcpy variants.
5148 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5149 * sysdeps/s390/multiarch/ifunc-impl-list.c
5150 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5151 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5152 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5153 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5154 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5155 * sysdeps/s390/ifunc-strcpy.h: New file.
5156 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5157 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5158 for 31/64bit and ifunc handling.
5159 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5160 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5161 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5162
5163 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5164
5165 * sysdeps/s390/multiarch/Makefile
5166 (sysdep_routines): Remove strnlen variants.
5167 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5168 * sysdeps/s390/multiarch/ifunc-impl-list.c
5169 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5170 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5171 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5172 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5173 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5174 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5175 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5176 * sysdeps/s390/ifunc-strnlen.h: New file.
5177
5178 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5179
5180 * sysdeps/s390/multiarch/Makefile
5181 (sysdep_routines): Remove strlen variants.
5182 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5183 * sysdeps/s390/multiarch/ifunc-impl-list.c
5184 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5185 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5186 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5187 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5188 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5189 * sysdeps/s390/multiarch/strlen.c: Move to ...
5190 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5191 * sysdeps/s390/ifunc-strlen.h: New file.
5192
5193 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5194
5195 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5196 * sysdeps/s390/multiarch/ifunc-impl-list.c
5197 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5198 * sysdeps/s390/ifunc-memmem.h: New file.
5199 * sysdeps/s390/memmem.c: Likewise.
5200 * sysdeps/s390/memmem-c.c: Likewise.
5201 * sysdeps/s390/memmem-vx.c: Likewise.
5202
5203 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5204
5205 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5206 * sysdeps/s390/multiarch/ifunc-impl-list.c
5207 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5208 * sysdeps/s390/ifunc-strstr.h: New file.
5209 * sysdeps/s390/strstr.c: Likewise.
5210 * sysdeps/s390/strstr-c.c: Likewise.
5211 * sysdeps/s390/strstr-vx.c: Likewise.
5212
5213 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5214
5215 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5216 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5217 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5218 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5219 New defines.
5220 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5221 * sysdeps/s390/memmove-c.c: New file.
5222 * sysdeps/s390/memmove.c: Likewise.
5223 * sysdeps/s390/multiarch/ifunc-impl-list.c
5224 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5225
5226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5227
5228 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5229 * sysdeps/s390/configure.ac: Add check for z13 support.
5230 * sysdeps/s390/configure: Regenerated.
5231
5232 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5233
5234 * sysdeps/s390/memcopy.h: New file.
5235
5236 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5237
5238 * sysdeps/s390/s390-32/bcopy.S: Remove.
5239 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5240
5241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5242
5243 * sysdeps/s390/ifunc-memcpy.h: New File.
5244 * sysdeps/s390/memcpy.S: Move to ...
5245 * sysdeps/s390/memcpy-z900.S ... here.
5246 Move implementations from memcpy-s390x.s to here.
5247 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5248 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5249 Remove memcpy/mempcpy variants.
5250 * sysdeps/s390/Makefile (sysdep_routines):
5251 Add memcpy/mempcpy variants.
5252 * sysdeps/s390/multiarch/ifunc-impl-list.c
5253 (__libc_ifunc_impl_list): Adjust ifunc variants for
5254 memcpy and mempcpy.
5255 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5256 to ...
5257 * sysdeps/s390/memcpy.c: ... here.
5258 Adjust ifunc variants for memcpy.
5259 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5260 * sysdeps/s390/mempcpy.c: ... here.
5261 Adjust ifunc variants for mempcpy.
5262 * sysdeps/s390/mempcpy.S: Delete file.
5263
5264 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5265
5266 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5267 * sysdeps/s390/memcpy.S: ... here.
5268 Adjust to be usable for 31/64bit.
5269 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5270 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5271 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5272 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5273 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5274 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5275 Adjust to be usable for 31/64bit.
5276 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5277 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5278 * sysdeps/s390/multiarch/memcpy.c: ... here.
5279 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5280
5281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5282
5283 * sysdeps/s390/ifunc-memcmp.h: New File.
5284 * sysdeps/s390/memcmp.S: Move to ...
5285 * sysdeps/s390/memcmp-z900.S ... here.
5286 Move implementations from memcmp-s390x.s to here.
5287 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5288 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5289 Remove memcmp variants.
5290 * sysdeps/s390/Makefile (sysdep_routines):
5291 Add memcmp variants.
5292 * sysdeps/s390/multiarch/ifunc-impl-list.c
5293 (__libc_ifunc_impl_list): Adjust ifunc variants for
5294 memcmp.
5295 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5296 to ...
5297 * sysdeps/s390/memcmp.c: ... here.
5298 Adjust ifunc variants for memcmp.
5299
5300 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5301
5302 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5303 * sysdeps/s390/memcmp.S: ... here.
5304 Adjust to be usable for 31/64bit.
5305 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5306 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5307 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5308 Remove memcmp.
5309 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5310 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5311 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5312 Adjust to be usable for 31/64bit.
5313 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5314 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5315 * sysdeps/s390/multiarch/memcmp.c: ... here.
5316 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5317
5318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5319
5320 * sysdeps/s390/s390-32/bzero.S: Delete file.
5321 * sysdeps/s390/s390-64/bzero.S: Likewise.
5322 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5323 * sysdeps/s390/bzero.c: New file.
5324 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5325 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5326 * sysdeps/s390/multiarch/ifunc-impl-list.c
5327 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5328
5329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5330
5331 * sysdeps/s390/ifunc-memset.h: New File.
5332 * sysdeps/s390/memset.S: Move to ...
5333 * sysdeps/s390/memset-z900.S ... here.
5334 Move implementations from memset-s390x.s to here.
5335 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5336 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5337 Remove memset variants.
5338 * sysdeps/s390/Makefile (sysdep_routines):
5339 Add memset variants.
5340 * sysdeps/s390/multiarch/ifunc-impl-list.c
5341 (__libc_ifunc_impl_list): Adjust ifunc variants for
5342 memset.
5343 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5344 to ...
5345 * sysdeps/s390/memset.c: ... here.
5346 Adjust ifunc variants for memset.
5347
5348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5349
5350 * sysdeps/s390/s390-64/memset.S: Move to ...
5351 * sysdeps/s390/memset.S: ... here.
5352 Adjust to be usable for 31/64bit.
5353 * sysdeps/s390/s390-32/memset.S: Delete File.
5354 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5355 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5356 Remove memset.
5357 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5358 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5359 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5360 Adjust to be usable for 31/64bit.
5361 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5362 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5363 * sysdeps/s390/multiarch/memset.c: ... here.
5364 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5365
5366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5367
5368 * sysdeps/s390/multiarch/ifunc-resolve.h
5369 (s390_libc_ifunc_init, s390_libc_ifunc,
5370 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5371
5372 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5373
5374 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5375 * sysdeps/s390/configure.ac: Add check for z10 support.
5376 * sysdeps/s390/configure: Regenerated.
5377
5378 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5379
5380 * sysdeps/i386/atomic-machine.h: Merged with ...
5381 * sysdeps/x86_64/atomic-machine.h: To ...
5382 * sysdeps/x86/atomic-machine.h: This. New file.
5383
5384 2018-12-18 Florian Weimer <fweimer@redhat.com>
5385
5386 Rewrite locale/gen-translit.pl in Python.
5387 * locale/Makefile (generated): Add C-translit.h.
5388 (before-compile): Add $(objpfx)C-translit.h.
5389 (C-translit.h): Move to $(objpfx). Create target directory.
5390 Build using Python script.
5391 * locale/gen-translit.py: New file.
5392 * locale/gen-translit.pl: Remove file.
5393 * locale/C-translit.h.in: Change comment character to '#' for
5394 easier parsing without a C preprocessor.
5395 * locale/C-translit.h: Remove generated file.
5396 * manual/install.texi (Tools for Compilation): Do not mention
5397 C-translit.h.
5398 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5399 Remove locale/C-translit.h.
5400 * scripts/update-copyrights: Likewise.
5401 * INSTALL: Regenerate.
5402
5403 2018-12-18 Florian Weimer <fweimer@redhat.com>
5404
5405 [BZ #23995]
5406 * localedata/locales/bi_VU: Remove executable bit from file.
5407
5408 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5409
5410 * include/time.h
5411 (__localtime64): Add.
5412 * manual/maint.texi: Document Y2038 symbol handling.
5413 * time/localtime.c
5414 (__localtime64): Add.
5415 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5416
5417 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5418
5419 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5420 Do not clobber r12.
5421
5422 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5423 to allow extra macros from first or second sources.
5424 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5425 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5426 (tests-special): Add $(objpfx)tst-mman-consts.out.
5427 ($(objpfx)tst-mman-consts.out): New makefile target.
5428
5429 2018-12-17 Mao Han <han_mao@c-sky.com>
5430
5431 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5432 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5433 without stat64 system call support.
5434 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5435 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5436 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5437 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5438 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5439 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5440 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5441 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5442 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5443 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5444 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5445
5446 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5447
5448 regex: fix storage-exhaustion error
5449 [BZ #18040]
5450 * posix/regexec.c (get_subexp):
5451 Do not continue if storage is exhausted.
5452
5453 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5454
5455 regex: fix heap-use-after-free error
5456 [BZ #18040]
5457 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5458 https://debbugs.gnu.org/32592
5459 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5460 call extend_buffers which reallocates the re_string_t internal buffer.
5461 Local variable 'buf' was not updated in such case, resulting in
5462 use-after-free.
5463 * posix/regexec.c (get_subexp): Update 'buf' after call to
5464 get_subexp_sub.
5465
5466 2018-12-15 Florian Weimer <fweimer@redhat.com>
5467
5468 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5469 (minimum_stride_size): Use it.
5470 (support_blob_repeat_allocate): Likewise.
5471
5472 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5473
5474 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5475 definition.
5476 (acosh): Likewise.
5477 (atanh): Likewise.
5478
5479 2018-12-14 Florian Weimer <fweimer@redhat.com>
5480
5481 * manual/process.texi (Process Creation Concepts): Remove
5482 documentation of process (ID) lifetime. List more process
5483 creation functions. Reference Process Identification section.
5484 (Process Identification): Add information about process ID
5485 lifetime. Describe Linux thread/task IDs.
5486 * manual/signal.texi (Signaling Another Process): Mention that the
5487 signal is always sent to the process.
5488
5489 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5490
5491 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5492 and tst-ldbl-efgcvt.
5493 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5494 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5495 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5496 (fcvt_tests, output_error, output_r_error, do_test): Use the
5497 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5498 select the type of floating-point variables and arguments; to
5499 produce extra tests for double and conversion specifiers for
5500 printf; and to set the names of called functions.
5501 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5502 in tst-efgcvt-template.c.
5503 * misc/tst-ldbl-efgcvt.c: Likewise.
5504
5505 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5506
5507 * nss/Makefile (tst-nss-test3.out): New rule.
5508
5509 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5510
5511 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5512 clobber sp.
5513
5514 2018-12-13 fanjinke <fanjinke@hygon.cn>
5515
5516 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5517 "HygonGenuine".
5518
5519 2018-12-13 Andreas Schwab <schwab@suse.de>
5520
5521 [BZ #23861]
5522 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5523 (__pthread_rwlock_rdlock_full): Update expected value for
5524 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5525 * nptl/tst-rwlock-pwn.c: New file.
5526 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5527
5528 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5529
5530 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5531 definition.
5532
5533 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5534
5535 * benchtests/scripts/compare_bench.py (do_compare): write to
5536 stderr in casestat is not present.
5537 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5538 stderr in case timings field is not present. Also string showing
5539 the output filename goes into the stderr.
5540
5541 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5542
5543 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5544 and ZeroDivisorError exceptions.
5545 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5546 argument to loop through user provided statistics.
5547 * benchtests/scripts/compare_bench.py (main): Include the --stats
5548 argument.
5549
5550 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5551
5552 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5553 instead of return.
5554
5555 2018-12-12 Florian Weimer <fweimer@redhat.com>
5556
5557 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5558 clause to copyright header.
5559
5560 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5561
5562 [BZ #23614]
5563 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5564 registers saved in the stack frame.
5565 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5566 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5567
5568 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5569
5570 * include/bits/monetary-ldbl.h: New file.
5571 * include/bits/printf-ldbl.h: Likewise.
5572 * include/bits/stdio-ldbl.h: Likewise.
5573 * include/bits/stdlib-ldbl.h: Likewise.
5574 * include/bits/syslog-ldbl.h: Likewise.
5575 * include/bits/wchar-ldbl.h: Likewise.
5576
5577 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5578
5579 * libio/libio.h: Remove redirection for _IO_vfprintf.
5580
5581 2018-12-11 Andreas Schwab <schwab@suse.de>
5582
5583 * Makerules: Remove all references to abilist-pattern.
5584 (update-all-abi): Simplify find expression.
5585
5586 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5587
5588 [BZ #23961]
5589 * math/auto-libm-test-in: Add new test case.
5590 * math/auto-libm-test-out-pow: Regenerated.
5591 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5592
5593 2018-12-10 DJ Delorie <dj@redhat.com>
5594
5595 [BZ #23948]
5596 * support/test-container.c: Move postclean step to before we
5597 change namespaces.
5598
5599 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5600
5601 * scripts/gen-as-const.py (main): Handle --python option.
5602 * scripts/gen-py-const.awk: Remove.
5603 * Makerules (py-const-script): Use gen-as-const.py.
5604 ($(py-const)): Likewise.
5605 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5606 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5607 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5608 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5609 ~PTHREAD_MUTEX_NO_ELISION_NP.
5610 * manual/README.pretty-printers: Update reference to
5611 gen-py-const.awk.
5612
5613 * scripts/glibcextract.py: New file.
5614 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5615 or tempfile. Import glibcexctract.
5616 (compute_c_consts): Remove. Moved to glibcextract.py.
5617 (gen_test): Update reference to compute_c_consts.
5618 (main): Likewise.
5619 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5620 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5621 * sysdeps/unix/sysv/linux/Makefile
5622 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5623 Redirect stderr as well as stdout.
5624
5625 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5626
5627 [BZ #19767]
5628 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5629 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5630 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5631 ALWAYS_USE_VSYSCALL.
5632 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5633 ALWAYS_USE_VSYSCALL.
5634 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5635 ALWAYS_USE_VSYSCALL.
5636
5637 2018-12-10 Florian Weimer <fweimer@redhat.com>
5638
5639 [BZ #23972]
5640 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5641 offset instead of count for clarity. Fix typo in comment.
5642 (__old_getdents64): Keep track of previous offset. Use it to call
5643 handle_overflow.
5644 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5645 that d_off is never zero.
5646
5647 2018-12-10 Andreas Schwab <schwab@suse.de>
5648
5649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5650 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5652 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5653 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5654
5655 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5656
5657 * timezone/private.h: Update from tzcode 2018g.
5658 * timezone/tzfile.h: Likewise.
5659 * timezone/tzselect.ksh: Likewise.
5660 * timezone/zdump.c: Likewise.
5661 * timezone/zic.c: Likewise.
5662
5663 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5664
5665 [BZ #23490]
5666 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5667 (do_test): Adjust buffer size and fix format.
5668
5669 2018-12-07 DJ Delorie <dj@redhat.com>
5670
5671 [BZ #23907]
5672 * malloc/tst-tcfree3.c: New.
5673 * malloc/Makefile: Add it.
5674
5675 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5678
5679 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5680
5681 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5682 used as a mask for the mode argument of __vfscanf_internal and
5683 __vfwscanf_internal.
5684 * stdio-common/vfscanf-internal.c
5685 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5686 (__strtof128_internal): Define to __wcstof128_internal.
5687 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5688 __strtof128_internal or __wcstof128_internal when the format of
5689 long double is the same as _Float128.
5690
5691 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5692
5693 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5694 * posix/confstr.c (confstr): Rename to __confstr.
5695 (__confstr): Add hidden def.
5696 (confstr): Add weak alias for __confstr.
5697 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5698 confstr.
5699
5700 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5701
5702 * NEWS: Mention getcpu.
5703 * include/sched.h (__getcpu): New libc_hidden_proto.
5704 * manual/resource.texi: Document getcpu.
5705 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5706 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5707 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5708 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5709 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5710 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5711 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5712 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5713 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5714 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5715 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5716 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5717 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5718 Likewise.
5719 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5720 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5721 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5723 Likewise.
5724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5725 Likewise.
5726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5727 Likewise.
5728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5729 Likewise.
5730 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5731 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5732 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5733 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5734 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5735 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5736 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5737 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5738 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5739 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5740 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5741 Also check getcpu.
5742
5743 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5744
5745 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5746 functions.
5747 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5748
5749 2018-12-07 Florian Weimer <fweimer@redhat.com>
5750
5751 [BZ #17405]
5752 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5753 * posix/Versions (GLIBC_2.29): Export
5754 posix_spawn_file_actions_addfchdir_np.
5755 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5756 * posix/spawn_faction_destroy.c
5757 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5758 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5759 and the field action.fchdir_action.
5760 * posix/tst-spawn-chdir.c (add_chdir): New function.
5761 (do_test): Add do_fchdir loop. Call add_chdir.
5762 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5763 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5764 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5765 posix_spawn_file_actions_addfchdir_np.
5766 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5767 Likewise.
5768 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5769 Likewise.
5770 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5771 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5772 Likewise.
5773 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5774 Likewise.
5775 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5776 Likewise.
5777 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5778 Likewise.
5779 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5780 Likewise.
5781 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5782 Likewise.
5783 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5784 (GLIBC_2.29): Likewise.
5785 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5786 (GLIBC_2.29): Likewise.
5787 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5788 (GLIBC_2.29): Likewise.
5789 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5790 (GLIBC_2.29): Likewise.
5791 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5792 Likewise.
5793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5794 (GLIBC_2.29): Likewise.
5795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5796 (GLIBC_2.29): Likewise.
5797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5798 (GLIBC_2.29): Likewise.
5799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5800 (GLIBC_2.29): Likewise.
5801 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5802 Likewise.
5803 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5804 Likewise.
5805 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5806 Likewise.
5807 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5808 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5809 Likewise.
5810 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5811 Likewise.
5812 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5813 Likewise.
5814 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5815 Likewise.
5816
5817 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5818
5819 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5820 trailing whitespace removed.
5821 * scripts/config.guess: Update to version 2018-11-28.
5822 * scripts/config.sub: Update to version 2018-11-28.
5823 * scripts/install-sh: Update to version 2018-03-11.20.
5824 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5825 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5826
5827 2018-12-07 Florian Weimer <fweimer@redhat.com>
5828
5829 [BZ #23927]
5830 CVE-2018-19591
5831 * inet/tst-if_index-long.c: New file.
5832 * inet/Makefile (tests): Add tst-if_index-long.
5833
5834 2018-12-07 Florian Weimer <fweimer@redhat.com>
5835
5836 * support/check.h (support_record_failure_is_failed): Declare.
5837 * support/descriptors.h: New file.
5838 * support/support_descriptors.c: Likewise.
5839 * support/tst-support_descriptors.c: Likewise.
5840 * support/support_record_failure.c
5841 (support_record_failure_is_failed): New function.
5842 * support/Makefile (libsupport-routines): Add support_descriptors.
5843 (tests): Add tst-support_descriptors.
5844
5845 2018-12-05 Zack Weinberg <zackw@panix.com>
5846 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5847
5848 * stdio-common/vfprintf-internal.c
5849 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5850 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5851 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5852 and __no_long_double.
5853 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5854 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5855 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5856 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5857 and __nldbl_*syslog* functions.
5858 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5859 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5860 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5861 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5862 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5863 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5864 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5865 (__nldbl_vwprintf, __nldbl_wprintf):
5866 Directly call the appropriate __v*printf_internal routine, passing
5867 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5868 variable names.
5869 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5870 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5871 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5872 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5873 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5874 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5875 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5876 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5877 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5878 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5879 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5880 (__nldbl_syslog, __nldbl_vsyslog):
5881 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5882 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5883 appropriate.
5884 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5885 appropriate.
5886
5887 2018-12-05 Zack Weinberg <zackw@panix.com>
5888 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5889
5890 [BZ #11319]
5891 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5892 Moved here from debug/vsprintf_chk.c.
5893 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5894 and completion logic for the strfile to match exactly what
5895 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5896 _IO_str_init_static_internal instead of maxlen-1.
5897 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5898 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5899 __vsprintf_internal.
5900
5901 * debug/vsprintf_chk.c (__vsprintf_chk)
5902 * debug/sprintf_chk.c (__sprintf_chk):
5903 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5904 'flags' argument is positive, and slen as maxlen. No need to lock
5905 the FILE and/or construct a temporary FILE. Minimize and normalize
5906 header inclusions and variable names. Do not libc_hidden_def anything.
5907
5908 * debug/asprintf_chk.c (__asprintf_chk)
5909 * debug/dprintf_chk.c (__dprintf_chk)
5910 * debug/fprintf_chk.c (__fprintf_chk)
5911 * debug/fwprintf_chk.c (__fwprintf_chk)
5912 * debug/printf_chk.c (__printf_chk)
5913 * debug/snprintf_chk.c (__snprintf_chk)
5914 * debug/swprintf_chk.c (__swprintf_chk)
5915 * debug/vasprintf_chk.c (__vasprintf_chk)
5916 * debug/vdprintf_chk.c (__vdprintf_chk)
5917 * debug/vfprintf_chk.c (__vfprintf_chk)
5918 * debug/vfwprintf_chk.c (__vfwprintf_chk)
5919 * debug/vprintf_chk.c (__vprintf_chk)
5920 * debug/vsnprintf_chk.c (__vsnprintf_chk)
5921 * debug/vswprintf_chk.c (__vswprintf_chk)
5922 * debug/vwprintf_chk.c (__vwprintf_chk)
5923 * debug/wprintf_chk.c (__wprintf_chk):
5924 Directly call the corresponding vxxprintf_internal function, passing
5925 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
5926 the FILE and/or construct a temporary FILE. Minimize and normalize
5927 header inclusions and variable names. Do not libc_hidden_def anything.
5928
5929 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
5930 __obstack_vprintf_internal.
5931 (__obstack_vprintf_chk): Convert into a wrapper that calls
5932 __obstack_vprintf_internal (these two functions already had the
5933 same code) and move to new file...
5934 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
5935 file.
5936 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
5937 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
5938 * debug/Makefile (routines): Add vobprintf_chk.
5939
5940 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5941 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5942 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
5943 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5944 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
5945 (__nldbl___obstack_vfprintf_chk):
5946 Directly call the corresponding vxxprintf_internal function,
5947 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
5948 duplicate comparison of slen with 0 or maxlen from the corresponding
5949 non-__nldbl function.
5950
5951 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
5952 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
5953 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
5954 Remove libc_hidden_proto.
5955
5956 * stdio-common/vfprintf-internal.c
5957 (__vfprintf_internal, __vfwprintf_internal):
5958 Do not check _IO_FLAGS2_FORTIFY.
5959 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
5960 * libio/libioP.h: Update prototype of __vsprintf_internal and add
5961 a comment explaining why it has the maxlen argument.
5962 (_IO_acquire_lock_clear_flags2_fct): Remove.
5963 (_IO_acquire_lock_clear_flags2): Remove.
5964 (_IO_release_lock): Remove conditional statement which will
5965 now never execute.
5966 (_IO_acquire_lock): Remove variable which is now unused.
5967 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5968 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
5969
5970 * stdio-common/Makefile (tests): Add tst-bz11319 and
5971 tst-bz11319-fortify2.
5972 (CFLAGS-tst-bz11319-fortify2.c): New macro.
5973 * stdio-common/tst-bz11319-fortify2.c: New file.
5974 * stdio-common/tst-bz11319.c: Likewise.
5975
5976 2018-12-05 Zack Weinberg <zackw@panix.com>
5977 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5978
5979 * misc/syslog.c: Include libioP.h, not iolibio.h.
5980 (__vsyslog_internal): New function with the former body of
5981 __vsyslog_chk; takes mode_flags argument same as
5982 __v*printf_internal. Call __vfprintf_internal directly.
5983
5984 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
5985 Remove libc_hidden_def.
5986 (__syslog, __syslog_chk): Use __vsyslog_internal.
5987 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
5988
5989 * include/sys/syslog.h: Add multiple inclusion guard.
5990 Add prototype for __vsyslog_internal.
5991 Remove declaration and libc_hidden_proto for __vsyslog_chk.
5992
5993 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
5994 Use __vsyslog_internal.
5995
5996 2018-12-05 Zack Weinberg <zackw@panix.com>
5997 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5998
5999 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6000 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6001 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6002 New functions.
6003 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6004 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6005
6006 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6007 Include wctype.h here if COMPILE_WPRINTF is defined.
6008 Define __vfprintf_internal or __vfwprintf_internal, depending
6009 on COMPILE_WPRINTF.
6010 Temporarily, on entry to this function, update mode_flags
6011 according to the environmental settings corresponding to
6012 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6013 Throughout, check mode_flags instead of __ldbl_is_dbl and
6014 _IO_FLAGS2_FORTIFY on the destination FILE.
6015 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6016 Include vfprintf-internal.c. Don't include wctype.h.
6017 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6018 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6019 and vfprintf.
6020 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6021 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6022 and vfwprintf.
6023 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6024
6025 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6026 and add mode_flags argument; use __vfprintf_internal.
6027 (__vdprintf): New function. Alias vdprintf to this.
6028 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6029 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6030 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6031 (__obstack_printf): Use __obstack_printf_internal.
6032 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6033 public aliases __vsnprintf and vsnprintf.
6034 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6035 called internally.
6036 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6037 public aliases _IO_vsprintf and vsprintf.
6038 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6039 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6040 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6041 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6042 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6043
6044 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6045 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6046 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6047 * stdio-common/printf.c: Use __vfprintf_internal.
6048
6049 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6050 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6051 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6052
6053 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6054 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6055 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6056 __vfwprintf_internal.
6057
6058 * libio/libio.h: Remove libc_hidden_proto and declaration for
6059 _IO_vfprintf.
6060 Remove declaration of _IO_vfwprintf.
6061 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6062 _IO_vsprintf.
6063 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6064 _IO_obstack_printf.
6065 * include/stdio.h: Add prototype for __vasprintf.
6066 (__vsnprintf): Remove declaration, because there are no more
6067 internal calls.
6068 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6069 declaration, because there are no more internal calls.
6070
6071 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6072 __vsnprintf_internal, instead of _IO_vsnprintf.
6073 * argp/argp-help.c (__argp_error, __argp_failure): Use
6074 __vasprintf_internal, instead of _IO_vasprintf.
6075 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6076 redefine, because there are no more internal calls.
6077
6078 2018-12-05 Zack Weinberg <zackw@panix.com>
6079 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6080
6081 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6082 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6083 Include libio/strfile.h instead of libioP.h.
6084 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6085 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6086 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6087 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6088 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6089 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6090 necessary. Do not set __no_long_double. Normalize variable names.
6091 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6092 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6093 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6094 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6095 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6096 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6097 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6098 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6099 Do not set __no_long_double. Normalize variable names.
6100
6101 2018-12-05 Zack Weinberg <zackw@panix.com>
6102 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6103
6104 * stdio-common/isoc99_scanf.c
6105 * stdio-common/isoc99_fscanf.c
6106 * stdio-common/isoc99_sscanf.c
6107 * stdio-common/isoc99_vscanf.c
6108 * stdio-common/isoc99_vfscanf.c
6109 * stdio-common/isoc99_vsscanf.c
6110 * wcsmbs/isoc99_wscanf.c
6111 * wcsmbs/isoc99_fwscanf.c
6112 * wcsmbs/isoc99_swscanf.c
6113 * wcsmbs/isoc99_vwscanf.c
6114 * wcsmbs/isoc99_vfwscanf.c
6115 * wcsmbs/isoc99_vswscanf.c:
6116 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6117 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6118 No need to lock and unlock the FILE passed to that function.
6119
6120 * stdio-common/vfscanf-internal.c
6121 (__vfscanf_internal, __vfwscanf_internal):
6122 Don't look at _IO_FLAGS2_SCANF_STD.
6123 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6124 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6125 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6126
6127 2018-12-05 Zack Weinberg <zackw@panix.com>
6128 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6129
6130 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6131 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6132 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6133 * libio/strfile.h: Add multiple inclusion guard.
6134 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6135
6136 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6137 consistency with the other version of this file.
6138 (ldbl_compat_symbol): New macro.
6139 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6140 New macro.
6141
6142 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6143 Define __vfscanf_internal or __vfwscanf_internal, depending on
6144 COMPILE_WSCANF; don't define any other public symbols.
6145 Remove errval and code to set errp.
6146 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6147 as the mode_flags argument.
6148 (encode_error, conv_error, input_error): Don't set errval.
6149 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6150 Include vfscanf-internal.c.
6151 * stdio-common/vfscanf.c: New file defining the public entry
6152 point vfscanf, which calls __vfscanf_internal.
6153 * stdio-common/vfwscanf.c: New file defining the public entry
6154 point vfwscanf, which calls __vfwscanf_internal.
6155
6156 * stdio-common/iovfscanf.c: New file.
6157 * stdio-common/iovfwscanf.c: Likewise.
6158
6159 * stdio-common/Makefile (routines): Add vfscanf-internal,
6160 vfwscanf-internal, iovfscanf, iovfwscanf.
6161 * stdio-common/Versions: Mention GLIBC_2.29, so that
6162 it can be used in SHLIB_COMPAT expressions.
6163 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6164 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6165 Call __vfscanf_internal, instead of _IO_vfscanf.
6166 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6167 _IO_vfscanf.
6168 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6169 _IO_vfwscanf.
6170
6171 * libio/iovsscanf.c: Clean up includes, when possible. Use
6172 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6173 __vfscanf_internal or __vfwscanf_internal directly.
6174 * libio/iovswscanf.c: Likewise.
6175 * libio/swscanf.c: Likewise.
6176 * libio/vscanf.c: Likewise.
6177 * libio/vwscanf.c: Likewise.
6178 * libio/wscanf.c: Likewise.
6179 * stdio-common/isoc99_fscanf.c: Likewise.
6180 * stdio-common/isoc99_scanf.c: Likewise.
6181 * stdio-common/isoc99_sscanf.c: Likewise.
6182 * stdio-common/isoc99_vfscanf.c: Likewise.
6183 * stdio-common/isoc99_vscanf.c: Likewise.
6184 * stdio-common/isoc99_vsscanf.c: Likewise.
6185 * stdio-common/scanf.c: Likewise.
6186 * stdio-common/sscanf.c: Likewise.
6187 * wcsmbs/isoc99_fwscanf.c: Likewise.
6188 * wcsmbs/isoc99_swscanf.c: Likewise.
6189 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6190 * wcsmbs/isoc99_vswscanf.c: Likewise.
6191 * wcsmbs/isoc99_vwscanf.c: Likewise.
6192 * wcsmbs/isoc99_wscanf.c: Likewise.
6193
6194 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6195
6196 * include/time.h
6197 (__tz_compute): Replace time_t with __time64_t.
6198 (__tz_convert): Replace time_t* with __time64_t.
6199 (__offtime): Replace time_t* with __time64_t.
6200 * time/gmtime.c
6201 (__gmtime_r): Adjust call to __tz_convert.
6202 (gmtime): Likewise.
6203 * time/localtime.c
6204 (__localtime_r): Likewise.
6205 (localtime): Likewise.
6206 * time/offtime.c: Replace time_t with __time64_t.
6207 * time/tzset.c: Likewise.
6208
6209 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6210
6211 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6212 dynamic linker unless [$(run-built-tests) = yes].
6213
6214 2018-12-03 DJ Delorie <dj@delorie.com>
6215
6216 * support/test-container.c (check_for_unshare_hints): New.
6217 (main): Call it if unshare fails. Add support for "su" scriptlet
6218 command.
6219
6220 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6221
6222 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6223 'START' to indicate that start text should be output.
6224 (gen_test): Likewise.
6225 (main): Generate 'START' for first symbol or '--' line, or at end
6226 of input if not previously generated.
6227
6228 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6229
6230 [BZ #19767]
6231 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6232 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6233 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6234 ALWAYS_USE_VSYSCALL.
6235
6236 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6237
6238 [BZ #23913]
6239 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6240 new_argv by one.
6241
6242 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6243
6244 [BZ #23923]
6245 * locale/programs/localedef.c: Declare boolean hard_links default true.
6246 (options): Add --no-hard-links option.
6247 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6248 * locale/programs/localedef.h: Declare prototype for hard_links.
6249 * locale/programs/locfile.c (write_locale_data): Don't use hard
6250 links if hard_links is false.
6251
6252 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6253
6254 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6255 cpu_features_basic.
6256 (__cache_sysconf): Likewise.
6257 (init_cacheinfo): Likewise.
6258 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6259 populate COMMON_CPUID_INDEX_80000007 and
6260 COMMON_CPUID_INDEX_80000008.
6261 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6262 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6263 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6264 (init_cpu_features): Use _Static_assert on
6265 index_arch_Fast_Unaligned_Load.
6266 __get_cpuid_registers and __get_arch_feature. Updated for
6267 cpu_features_basic. Set stepping in cpu_features.
6268 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6269 (FEATURE_INDEX_2): New.
6270 (FEATURE_INDEX_MAX): Changed to enum.
6271 (COMMON_CPUID_INDEX_D_ECX_1): New.
6272 (COMMON_CPUID_INDEX_80000007): Likewise.
6273 (COMMON_CPUID_INDEX_80000008): Likewise.
6274 (cpuid_registers): Likewise.
6275 (cpu_features_basic): Likewise.
6276 (CPU_FEATURE_USABLE): Likewise.
6277 (bit_arch_XXX_Usable): Likewise.
6278 (cpu_features): Use cpuid_registers and cpu_features_basic.
6279 (bit_arch_XXX): Reweritten.
6280 (bit_cpu_XXX): Likewise.
6281 (index_cpu_XXX): Likewise.
6282 (reg_XXX): Likewise.
6283 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6284 <support/check.h>.
6285 (CHECK_CPU_FEATURE): New.
6286 (CHECK_CPU_FEATURE_USABLE): Likewise.
6287 (cpu_kinds): Likewise.
6288 (do_test): Print vendor, family, model and stepping. Check
6289 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6290 (TEST_FUNCTION): Removed.
6291 Include <support/test-driver.c> instead of
6292 "../../test-skeleton.c".
6293 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6294 Check POPCNT instead of POPCOUNT.
6295 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6296
6297 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6298
6299 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6300 there is no element in `consts'.
6301
6302 2018-12-01 Florian Weimer <fweimer@redhat.com>
6303
6304 * support/support_capture_subprocess.c
6305 (support_capture_subprocess): Check that pipe descriptors have
6306 expected values. Close original pipe descriptors in subprocess.
6307
6308 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6309
6310 [BZ #23032]
6311 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6312 attr with __pthread_default_barrierattr.
6313 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6314 attr with __pthread_default_condattr.
6315 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6316 attr with __pthread_default_mutexattr.
6317 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6318 attr with __pthread_default_rwlockattr.
6319
6320 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6321
6322 * manual/tunables.texi (POSIX Thread Tunables): New node.
6323 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6324 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6325 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6326 __pthread_tunables_init.
6327 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6328 (max_adaptive_count): Define.
6329 * nptl/pthread_mutex_conf.c: New file.
6330 * nptl/pthread_mutex_conf.h: New file.
6331 * sysdeps/generic/adaptive_spin_count.h: New file.
6332 * sysdeps/nptl/dl-tunables.list: New file.
6333 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6334 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6335 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6336 Likewise.
6337
6338 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6339
6340 [BZ #20544]
6341 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6342 * stdlib/on_exit.c (__on_exit): Likewise.
6343 * stdlib/Makefile (tests): Add tst-bz20544.
6344 * stdlib/tst-bz20544.c: New test.
6345
6346 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6347
6348 [BZ #19767]
6349 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6350 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6351 New.
6352
6353 2018-11-30 Florian Weimer <fweimer@redhat.com>
6354
6355 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6356 Extend error logging.
6357 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6358 symbol.
6359
6360 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6361
6362 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6363 __sigismember instead of sigismember.
6364 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6365 cancel_handler): New definitions.
6366 (do_system): Use posix_spawn instead of fork and execl and remove
6367 reentracy code.
6368 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6369 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6370 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6371 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6372 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6373 * sysdeps/unix/sysv/linux/system.c: Likewise.
6374
6375 [BZ #22834]
6376 [BZ #17490]
6377 * NEWS: Add new semantic for atfork with popen and system.
6378 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6379 fork and execl.
6380
6381 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6382
6383 [BZ #23690]
6384 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6385 modification order when accessing reloc_result->addr.
6386 * include/link.h (reloc_result): Add field init.
6387 * nptl/Makefile (tests): Add tst-audit-threads.
6388 (modules-names): Add tst-audit-threads-mod1 and
6389 tst-audit-threads-mod2.
6390 Add rules to build tst-audit-threads.
6391 * nptl/tst-audit-threads-mod1.c: New file.
6392 * nptl/tst-audit-threads-mod2.c: Likewise.
6393 * nptl/tst-audit-threads.c: Likewise.
6394 * nptl/tst-audit-threads.h: Likewise.
6395
6396 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6397
6398 * scripts/gen-as-const.py: New file.
6399 * scripts/gen-as-const.awk: Remove.
6400 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6401 gen-as-const.py.
6402 ($(objpfx)test-as-const-%.c): Likewise.
6403
6404 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6405
6406 * elf/dl-exception.c: Include <_itoa.h>.
6407
6408 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6409
6410 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6411 returned by __f_setlk.
6412
6413 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6414 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6415
6416 * elf/Makefile (tests-internal): Add tst-create_format1.
6417 * elf/dl-exception.c (_dl_exception_create_format): Support
6418 %x, %lx and %zx.
6419 * elf/tst-create_format1.c: New file.
6420
6421 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6422
6423 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6424 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6425 gnulib.)
6426 * argp/argp-help.c (__argp_failure): Likewise.
6427
6428 2018-11-29 Mao Han <han_mao@c-sky.com>
6429
6430 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6431 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6432 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6433 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6434 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6435 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6436 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6437 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6438 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6439 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6440 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6441 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6442 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6443 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6444 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6445 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6446 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6447 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6448 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6449 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6450 (R_CKCORE_TLS_TPOFF32): New defines.
6451
6452 2018-11-29 Florian Weimer <fweimer@redhat.com>
6453
6454 * posix/Makefile (before-compile): Remove testcases.h and
6455 ptestcases.h.
6456 (generated): Add testcases.h and ptestcases.h.
6457 (testcases.h, ptestcases.h): Move to $(objpfx).
6458 (runtests.o): Add dependency on testcases.h.
6459 (runptests.o): Add dependency on ptestcases.h.
6460 * posix/testcases.h, posix/ptestcases.h: Remove files.
6461 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6462 not touch posix/testcases.h and posix/ptestcases.h.
6463
6464 2018-11-28 Florian Weimer <fweimer@redhat.com>
6465
6466 support: Add signal support to support_capture_subprocess_check.
6467 * support/capture_subprocess.h (support_capture_subprocess_check):
6468 Adjust comment and rename parameter.
6469 * support/support_capture_subprocess_check.c
6470 (print_actual_status): New function.
6471 (support_capture_subprocess_check): Support negative
6472 status_or_signal. Call print_actual_status.
6473 * support/tst-support_capture_subprocess.c (do_test): Call
6474 support_capture_subprocess_check.
6475 * libio/tst-vtables-common.c (termination_status)
6476 (init_termination_status): Remove.
6477 (check_for_termination): Adjust support_capture_subprocess_check
6478 call.
6479 (do_test): Remove call to init_termination_status.
6480
6481 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6482
6483 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6484 source directory instead of a copy.
6485 (CommandList.create_copy_dir): Remove.
6486
6487 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6488
6489 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6490
6491 2018-11-28 Florian Weimer <fweimer@redhat.com>
6492
6493 * support/support.h (support_quote_string): Do not use str
6494 parameter name.
6495
6496 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6497
6498 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6499 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6500
6501 2018-11-27 Florian Weimer <fweimer@redhat.com>
6502
6503 * support/support.h (support_quote_string): Declare.
6504 * support/support_quote_string.c: New file.
6505 * support/tst-support_quote_string.c: Likewise.
6506 * support/Makefile (libsupport-routines): Add
6507 support_quote_string.
6508 (tests): Add tst-support_quote_string.
6509
6510 2018-11-27 Florian Weimer <fweimer@redhat.com>
6511
6512 [BZ #23927]
6513 CVE-2018-19591
6514 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6515 descriptor leak in case of ENODEV error.
6516
6517 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6518
6519 [BZ #19767]
6520 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6521 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6522 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6523
6524 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6525
6526 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6527 Error for unknown lines.
6528
6529 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6530
6531 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6532 Touch additional files.
6533
6534 2018-11-26 Florian Weimer <fweimer@redhat.com>
6535
6536 [BZ #23907]
6537 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6538 double-frees.
6539
6540 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6541
6542 [BZ #19767]
6543 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6544 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6545 SHARED. Include sysdep.h.
6546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6547 ALWAYS_USE_VSYSCALL.
6548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6549 ALWAYS_USE_VSYSCALL.
6550
6551 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6552
6553 [BZ #19767]
6554 * nptl/Makefile (tests-static): Add tst-cond11-static.
6555 (tests): Likewise.
6556 * nptl/tst-cond11-static.c: New File.
6557 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6558 tst-affinity-static.
6559 (tests): Likewise.
6560 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6561 instead of SHARED.
6562 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6563 (USE_VSYSCALL): Likewise.
6564 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6565 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6566 instead of SHARED.
6567 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6568 SHARED.
6569 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6570 New.
6571
6572 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6573
6574 [BZ #23915]
6575 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6576 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6577 Undefine.
6578
6579 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6580
6581 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6582 (tst-cet-legacy-1a-ARGS): New.
6583 ($(objpfx)tst-cet-legacy-1a): New target.
6584 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6585
6586 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6587
6588 * conform/conformtest.py (CompileSubTest.__init__): Set
6589 self.run_early to False.
6590 (ExecuteSubTest.__init__): Likewise.
6591 (HeaderTests.run): Try running all non-optional, non-XFAILed
6592 compilation tests in a single execution of the compiler.
6593
6594 * conform/conformtest.py (CompileSubTest): New class.
6595 (ExecuteSubTest): Likewise.
6596 (ElementTest.run): Rename to gen_subtests. Append tests to
6597 self.subtests instead of running them.
6598 (ConstantTest.run): Likewise.
6599 (SymbolTest.run): Likewise.
6600 (TypeTest.run): Likewise.
6601 (TagTest.run): Likewise.
6602 (FunctionTest.run): Likewise.
6603 (VariableTest.run): Likewise.
6604 (MacroFunctionTest.run): Likewise.
6605 (MacroStrTest.run): Likewise.
6606 (HeaderTests.handle_test_line): Generate subtests for tests.
6607 (HeaderTests.run): Run subtests for tests.
6608
6609 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6610
6611 * math/Versions (GLIBC_2.29): Add pow.
6612 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6613 symbol.
6614 * math/w_pow.c: New file.
6615 * sysdeps/i386/fpu/w_pow.c: New file.
6616 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6617 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6618 and add necessary aliases.
6619 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6620 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6621 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6622 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6623 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6624 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6625 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6626 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6627 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6628 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6629 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6630 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6631 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6632 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6633 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6638 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6639 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6640 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6641 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6642 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6643 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6644 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6645 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6646 __pow.
6647 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6648 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6649 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6650
6651 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6652
6653 * math/Versions (GLIBC_2.29): Add log2.
6654 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6655 symbol.
6656 * math/w_log2.c: New file.
6657 * sysdeps/i386/fpu/w_log2.c: New file.
6658 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6659 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6660 and add necessary aliases.
6661 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6662 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6663 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6664 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6665 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6666 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6667 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6668 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6669 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6670 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6671 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6672 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6673 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6674 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6675 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6680 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6681 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6682 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6683 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6684 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6685 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6686 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6687
6688 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6689
6690 * math/Versions (GLIBC_2.29): Add log.
6691 * math/w_log_compat.c (__log_compat): Change to versioned compat
6692 symbol.
6693 * math/w_log.c: New file.
6694 * sysdeps/i386/fpu/w_log.c: New file.
6695 * sysdeps/ia64/fpu/e_log.S: Update.
6696 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6697 and add necessary aliases.
6698 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6699 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6700 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6701 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6702 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6703 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6704 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6705 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6706 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6707 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6708 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6709 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6710 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6711 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6712 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6715 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6717 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6718 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6719 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6720 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6721 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6722 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6723 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6724 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6725 __log.
6726 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6727 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6728 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6729 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6730
6731 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6732
6733 * math/Versions (GLIBC_2.29): Add exp and exp2.
6734 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6735 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6736 * math/w_exp_compat.c (__exp_compat): Likewise.
6737 * math/w_exp.c: New file.
6738 * math/w_exp2.c: New file.
6739 * sysdeps/i386/fpu/w_exp.c: New file.
6740 * sysdeps/i386/fpu/w_exp2.c: New file.
6741 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6742 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6743 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6744 and add necessary aliases.
6745 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6746 and add necessary aliases.
6747 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6748 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6749 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6750 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6751 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6752 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6753 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6754 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6755 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6756 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6757 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6758 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6759 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6760 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6761 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6762 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6763 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6768 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6769 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6770 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6771 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6772 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6773 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6774 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6775 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6776 (__ieee754_exp): Rename to __exp.
6777 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6778 (__ieee754_exp): Rename to __exp.
6779 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6780 (__ieee754_exp): Rename to __exp.
6781 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6782 __exp.
6783 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6784
6785 2018-11-20 DJ Delorie <dj@redhat.com>
6786
6787 * malloc/malloc.c (tcache_entry): Add key field.
6788 (tcache_put): Set it.
6789 (tcache_get): Likewise.
6790 (_int_free): Check for double free in tcache.
6791 * malloc/tst-tcfree1.c: New.
6792 * malloc/tst-tcfree2.c: New.
6793 * malloc/Makefile: Run the new tests.
6794 * manual/probes.texi: Document memory_tcache_double_free probe.
6795
6796 * dlfcn/dlerror.c (check_free): Prevent double frees.
6797
6798 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6799
6800 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6801
6802 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6803
6804 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6805 in tests. Use names for format arguments.
6806 (ConstantTest.run): Likewise.
6807 (SymbolTest.run): Likewise.
6808 (TypeTest.run): Likewise.
6809 (TagTest.run): Likewise.
6810 (FunctionTest.run): Likewise.
6811 (VariableTest.run): Likewise.
6812 (MacroFunctionTest.run): Likewise.
6813 (MacroStrTest.run): Likewise.
6814 (HeaderTests.__init__): Set self.num_tests.
6815 (HeaderTests.handle_test_line): Set test.num. Increment
6816 self.num_tests.
6817
6818 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6819
6820 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6821 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6822 SEEK_SET.
6823
6824 2018-11-19 Mao Han <han_mao@c-sky.com>
6825
6826 * scripts/config.guess: Update to version 2018-08-29.
6827 * scripts/config.sub: Update to version 2018-08-29.
6828
6829 2018-11-19 Florian Weimer <fweimer@redhat.com>
6830
6831 support: Print timestamps in timeout handler.
6832 * support/support_test_main.c (print_timestamp): New function.
6833 (signal_handler): Use it to print the termination time and the
6834 time of the last write to standard output.
6835
6836 2018-11-16 Zack Weinberg <zackw@panix.com>
6837 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6838
6839 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6840 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6841 argument.
6842 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6843 and add flags argument. Check flags instead of __ldbl_is_dbl when
6844 deciding whether to set is_long_double.
6845 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6846 passing zero for flags argument.
6847 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6848
6849 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6850 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6851 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6852 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6853 variable names. Remove libc_hidden_def/libc_hidden_proto from
6854 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6855 longer called from within the library.
6856 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6857 for __nldbl___vstrfmon_l, declare it explicitly.
6858
6859 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6860
6861 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6862
6863 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6864 macros
6865 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6866 F_SETLK64, F_SETLKW64, respectively.
6867 * sysdeps/mach/hurd/f_setlk.c: New file.
6868 * sysdeps/mach/hurd/f_setlk.h: New file.
6869 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6870 f_setlk.
6871 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6872 (__libc_fcntl): Move non-flock operations to...
6873 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6874 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6875
6876 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6877
6878 mktime: DEBUG_MKTIME cleanup
6879 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6880 And it’s no longer needed now that glibc and Gnulib both have
6881 their own testing mechanisms for mktime.
6882 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6883
6884 mktime: fix non-EOVERFLOW errno handling
6885 [BZ#23789]
6886 mktime was not properly reporting failures when the underlying
6887 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6888 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6889 The problem could happen on non-glibc platforms, with Gnulib.
6890 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6891 (tm_diff): ... this simpler function, which does not change errno.
6892 All callers changed to deal with errno themselves.
6893 (ranged_convert, __mktime_internal): Return failure immediately if
6894 the underlying function reports any failure other than EOVERFLOW.
6895 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6896 gap code fails.
6897
6898 mktime: fix bug with Y2038 DST transition
6899 [BZ#23789]
6900 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6901 mishandle a DST transition that jumps over the Y2038 boundary.
6902 No such DST transitions are known so this is only a theoretical
6903 bug, but we might as well do things right.
6904
6905 mktime: make more room for overflow
6906 [BZ#23789]
6907 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
6908 This is so that we can add tm_diff results to a previous guess,
6909 which will be useful in a later patch.
6910
6911 mktime: simplify offset guess
6912 [BZ#23789]
6913 * time/mktime.c (__mktime_internal): Omit excess precision.
6914
6915 mktime: new test for mktime failure
6916 [BZ#23789]
6917 Based on a test suggested by Albert Aribaud in:
6918 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
6919 * time/Makefile (tests): Add bug-mktime4.
6920 * time/bug-mktime4.c: New file.
6921
6922 mktime: fix EOVERFLOW bug
6923 [BZ#23789]
6924 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
6925 Include libc-config.h, not config.h, for __set_errno.
6926 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
6927
6928 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6929
6930 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
6931 __attribute_copy__ to copy attributes from name. Drop static qualifier
6932 to avoid warnings about leaf attribute not having effect on static
6933 functions.
6934
6935 2018-11-13 Florian Weimer <fweimer@redhat.com>
6936
6937 * malloc/malloc.c (fastbin_push_entry): New function.
6938 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
6939 (REMOVE_FB): Remove macro.
6940 (_int_malloc): Use fastbin_pop_entry and reindent.
6941 (_int_free): Use fastbin_push_entry.
6942 (malloc_consolidate): Use atomic_exchange_acquire.
6943
6944 2018-11-13 Joseph Myers <joseph@codesourcery.com>
6945
6946 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
6947 alias attribute, not with strong_alias.
6948
6949 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
6950 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
6951 with additional parameter thread.
6952 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
6953 in terms of __hidden_ver2.
6954 (hidden_tls_def): New macro.
6955 (libc_hidden_tls_def): Likewise.
6956 (rtld_hidden_tls_def): Likewise.
6957 (libm_hidden_tls_def): Likewise.
6958 (libmvec_hidden_tls_def): Likewise.
6959 (libresolv_hidden_tls_def): Likewise.
6960 (librt_hidden_tls_def): Likewise.
6961 (libdl_hidden_tls_def): Likewise.
6962 (libnss_files_hidden_tls_def): Likewise.
6963 (libnsl_hidden_tls_def): Likewise.
6964 (libnss_nisplus_hidden_tls_def): Likewise.
6965 (libutil_hidden_tls_def): Likewise.
6966 (libutil_hidden_tls_def): Likweise.
6967 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
6968 libc_hidden_tls_def.
6969 (__sim_disabled_exceptions_thread): Likewise.
6970 (__sim_round_mode_thread): Likewise.
6971
6972 * sysdeps/sparc/sparc-ifunc.h [SHARED]
6973 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
6974 copy attributes from name.
6975
6976 2018-11-12 Joseph Myers <joseph@codesourcery.com>
6977
6978 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
6979 Use __attribute_copy__ to copy attributes from name.
6980
6981 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
6982 with __hidden_ver1 call.
6983 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
6984 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
6985 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
6986 (__cosf): Do not declare here.
6987 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
6988 (__sincosf): Do not declare here.
6989 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
6990 (__sinf): Do not declare here.
6991
6992 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
6993 (__BIG_ENDIAN): Likewise.
6994 (__BYTE_ORDER): Likewise.
6995 (strong_alias): Likewise.
6996 (_strong_alias): Likewise.
6997
6998 2018-11-12 Florian Weimer <fweimer@redhat.com>
6999
7000 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7001 function. Move after the definition of in_smallbin_range. Do not
7002 use __builtin_expect for paths that lead to a noreturn function.
7003 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7004 because it is unclear whether this is in fact an unlikely
7005 condition.
7006 (_int_malloc, _int_free): Adjust.
7007 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7008 variables.
7009 * malloc/arena.c (heap_trim): Likewise.
7010
7011 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7012
7013 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7014 it, free it if needed.
7015 (reauthenticate): Test and use ccwdir.
7016 (child_init_port): In non-resetids case, test and use ccwdir.
7017 (child_chdir): New nested function to set ccwdir.
7018 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7019 * hurd/hurd/port.h (_hurd_port_move): New function.
7020 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7021 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7022 * hurd/Versions (_hurd_port_move): Export function.
7023 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7024 symbol.
7025 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7026 of dtablesize for allocating dtable_cloexec.
7027
7028 2018-11-09 Martin Sebor <msebor@redhat.com>
7029
7030 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7031 it's already defined.
7032 (_strong_alias): Use __attribute_copy__.
7033 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7034 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7035 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7036 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7037 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7038 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7039 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7040 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7041 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7042 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7043 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7044 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7045 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7046 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7047 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7048 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7049 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7050 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7051 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7052
7053 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7054
7055 * misc/tst-efgcvt.c: Include support/check.h and
7056 support/test-driver.c. Do not include test-skeleton.c.
7057 (error_count): Remove.
7058 (output_error): Replace increments to error_count with calls to
7059 support_record_failure.
7060 (output_r_error): Likewise.
7061 (special): Likewise.
7062 (do_test): Unconditionally return zero.
7063 (TEST_FUNCTION): Remove.
7064
7065 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7066
7067 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7068 not $(@D)/scratch.
7069 ($(linknamespace-header-tests)): Likewise.
7070
7071 * conform/conformtest.py: New file.
7072 * conform/conformtest.pl: Remove.
7073 * conform/GlibcConform.pm: Likewise.
7074 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7075 (KEYWORDS_C99): Likewise.
7076 (KEYWORDS): Likewise.
7077 * conform/Makefile ($(conformtest-header-tests)): Use
7078 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7079 option. Use --header instead of --headers.
7080 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7081 function entries.
7082 * conform/data/spawn.h-data: Likewise.
7083 * conform/data/fcntl.h-data (openat): Add space after function
7084 name.
7085 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7086 (wcscasecmp_l): Likewise.
7087 * conform/data/termios.h-data (c_cc): Add space after element
7088 name.
7089
7090 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7091
7092 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7093 instead of manually comparing and reporting mismatching strings.
7094 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7095 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7096
7097 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7098
7099 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7100 __ASSUME_SOCKETCALL.
7101 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7102 (__ASSUME_SOCKETCALL): Remove.
7103 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7104 (__ASSUME_SOCKETCALL): Likewise.
7105 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7106 (__ASSUME_SOCKETCALL): Likewise.
7107 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7108 (__ASSUME_SOCKETCALL): Likewise.
7109 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7110 (__ASSUME_SOCKETCALL): Likewise.
7111 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7112 (__ASSUME_SOCKETCALL): Likewise.
7113 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7114 (__ASSUME_SOCKETCALL): Likewise.
7115
7116 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7117
7118 [BZ #23509]
7119 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7120 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7121 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7122 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7123 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7124 lc_unknown.
7125
7126 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7127
7128 [BZ #17630]
7129 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7130
7131 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7132
7133 [BZ #23867]
7134 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7135 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7136 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7137 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7138
7139 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7140
7141 * support/support_test_compare_string.c
7142 (support_test_compare_string): Fix printf format.
7143
7144 2018-11-07 Florian Weimer <fweimer@redhat.com>
7145
7146 Implement TEST_COMPARE_STRING.
7147 * support/check.h (TEST_COMPARE_STRING): Define.
7148 (support_test_compare_string): Declare.
7149 * support/Makefile (libsupport-routines): Add
7150 support_test_compare_string.
7151 (tests): Add tst-test_compare_string.
7152 * support/support_test_compare_string.c: New file.
7153 * support/tst-test_compare_string.c: Likewise.
7154
7155 2018-11-07 Andreas Schwab <schwab@suse.de>
7156
7157 [BZ #23864]
7158 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7159 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7160 Undef.
7161
7162 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7163
7164 [BZ #23862]
7165 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7166 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7167 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7168 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7169 Likewise.
7170
7171 2018-11-06 Florian Weimer <fweimer@redhat.com>
7172
7173 [BZ #17405]
7174 * posix/Makefile (routines): Add spawn_faction_addchdir.
7175 (tests): Add tst-spawn-chdir.
7176 * posix/Versions (GLIBC_2.29): Add
7177 posix_spawn_file_actions_addchdir_np.
7178 * posix/spawn_faction_addchdir.c: New file.
7179 * posix/spawn_faction_destroy.c
7180 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7181 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7182 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7183 chdir_action.
7184 * posix/tst-spawn-chdir.c: New file.
7185 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7186 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7187 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7188 posix_spawn_file_actions_addchdir_np.
7189 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7190 Likewise.
7191 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7192 Likewise.
7193 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7194 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7195 Likewise.
7196 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7197 Likewise.
7198 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7199 Likewise.
7200 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7201 Likewise.
7202 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7203 Likewise.
7204 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7205 Likewise.
7206 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7207 (GLIBC_2.29): Likewise.
7208 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7209 (GLIBC_2.29): Likewise.
7210 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7211 (GLIBC_2.29): Likewise.
7212 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7213 (GLIBC_2.29): Likewise.
7214 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7215 Likewise.
7216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7217 (GLIBC_2.29): Likewise.
7218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7219 (GLIBC_2.29): Likewise.
7220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7221 (GLIBC_2.29): Likewise.
7222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7223 (GLIBC_2.29): Likewise.
7224 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7225 Likewise.
7226 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7227 Likewise.
7228 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7229 Likewise.
7230 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7231 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7232 Likewise.
7233 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7234 Likewise.
7235 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7236 Likewise.
7237 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7238 Likewise.
7239
7240 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7241
7242 * misc/Makefile (tests): Add tst-ldbl-error.
7243 * misc/tst-ldbl-error.c: New file.
7244
7245 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7246
7247 * misc/Makefile (tests): Add tst-ldbl-warn.
7248 * misc/tst-ldbl-warn.c: New file.
7249
7250 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7251
7252 * argp/Makefile (tests): Add tst-ldbl-argp.
7253 * argp/tst-ldbl-argp.c: New file.
7254
7255 2018-11-05 Arjun Shankar <arjun@redhat.com>
7256
7257 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7258 __gconv_path_elem and call __gconv_get_path unconditionally.
7259
7260 2018-11-05 Andreas Schwab <schwab@suse.de>
7261
7262 [BZ #22927]
7263 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7264 creating the first helper thread failed.
7265
7266 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7267
7268 * sysdeps/mach/hurd/msync.c: New file.
7269
7270 2018-11-02 Florian Weimer <fweimer@redhat.com>
7271
7272 * support/shell-container.c (copy_func): Call
7273 support_copy_file_range instead of copy_file_range to support
7274 cross-device copies.
7275
7276 2018-11-02 Florian Weimer <fweimer@redhat.com>
7277
7278 * support/test-container.c: Include <libc-pointer-arith.h> for
7279 ALIGN_UP.
7280
7281 2018-11-01 Zong Li <zong@andestech.com>
7282
7283 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7284 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7285 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7286 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7287
7288 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7289 variable to avoid overlap arguments.
7290
7291 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7292
7293 * posix/bug-regex22.c (main): Use puts with distinct error
7294 messages for unexpected success of re_compile_pattern, not printf
7295 with NULL argument to %s.
7296
7297 * stdio-common/bug22.c: Include <libc-diag.h>.
7298 (do_test): Disable -Wformat-overflow= warnings around fprintf
7299 calls outputting more than INT_MAX characters.
7300 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7301 around printf call with NULL %s argument.
7302
7303 [BZ #23848]
7304 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7305 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7306 Undefine.
7307 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7308 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7309 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7310 (__ASSUME_SENDTO_SYSCALL): Likewise.
7311 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7312 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7313 [!__arch64__].
7314 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7315 (__ASSUME_CONNECT_SYSCALL): Likewise.
7316 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7317 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7318 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7319 Define.
7320 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7321 Likewise.
7322 [__LINUX_KERNEL_VERSION >= 0x040400]
7323 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7324 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7325 Remove.
7326 (listen): Likewise.
7327 (setsockopt): Likewise.
7328
7329 2018-11-01 Fredrik Noring <noring@nocrew.org>
7330
7331 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7332 with the ISA override.
7333
7334 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7335
7336 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7337 #endif.
7338
7339 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7340
7341 * manual/errno.texi (EIEIO): Document how translators should
7342 translate the error message.
7343 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7344 printing trailing whitespaces refused by git.
7345 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7346 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7347 * hurd/Makefile (user-interfaces): Add pci.
7348
7349 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7350
7351 * conform/linknamespace.py: New file.
7352 * conform/linknamespace.pl: Remove file.
7353 * conform/Makefile ($(linknamespace-header-tests)): Use
7354 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7355 option.
7356
7357 2018-10-30 Florian Weimer <fweimer@redhat.com>
7358
7359 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7360 memory leaks.
7361
7362 2018-10-30 Florian Weimer <fweimer@redhat.com>
7363
7364 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7365
7366 2018-10-30 Florian Weimer <fweimer@redhat.com>
7367
7368 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7369 support_blob_repeat.
7370
7371 2018-10-30 Florian Weimer <fweimer@redhat.com>
7372
7373 Avoid spurious test failures in stdlib/test-bz22786.
7374 * support/Makefile (libsupport-routines): Add blob_repeat.
7375 (tests): Add tst-support_blob_repeat.
7376 * support/blob_repeat.h: New file.
7377 * support/blob_repeat.c: Likewise.
7378 * support/tst-support_blob_repeat.c: Likewise.
7379 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7380 support_blob_repeat_allocate.
7381
7382 2018-10-30 Andreas Schwab <schwab@suse.de>
7383
7384 [BZ #23125]
7385 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7386 Don't use tail call.
7387 * elf/tst-unwind-main.c: New file.
7388 * elf/Makefile (tests): Add tst-unwind-main.
7389 (CFLAGS-tst-unwind-main.c): Define.
7390
7391 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7392
7393 [BZ #23791]
7394 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7395 n_cs_precedes to 0.
7396 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7397
7398 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7399
7400 * conform/glibcconform.py: Do not import shutil.
7401 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7402 of mkdtemp.
7403
7404 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7405 critic_missing for versions before 3.4.
7406 * configure: Regenerated.
7407 * manual/install.texi (Tools for Compilation): Document
7408 requirement for Python to build glibc.
7409 * INSTALL: Regenerated.
7410 * Rules [PYTHON]: Make code unconditional.
7411 * benchtests/Makefile [PYTHON]: Likewise.
7412 * conform/Makefile [PYTHON]: Likewise.
7413 * manual/Makefile [PYTHON]: Likewise.
7414 * math/Makefile [PYTHON]: Likewise.
7415
7416 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7417
7418 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7419 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7420 answer to interrupt_operation, return EIEIO instead of EINTR.
7421 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7422 _hurd_intr_rpc_msg_about_to global point to start of controlled
7423 assembly snippet. Make it check canceled flag.
7424 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7425 the _hurd_intr_rpc_msg_about_to point.
7426 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7427 issue, remove cancel flag check.
7428
7429 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7430
7431 * scripts/build-many-glibcs.py: Remove compatibility for missing
7432 os.cpu_count and re.fullmatch.
7433
7434 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7435
7436 [BZ #23822]
7437 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7438 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7439 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7440
7441 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7442
7443 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7444 macro.
7445
7446 2018-10-25 Florian Weimer <fweimer@redhat.com>
7447
7448 [BZ #23562]
7449 [BZ #23821]
7450 XFAIL siginfo_t si_band conform test on sparc64.
7451 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7452 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7453 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7454 (conformtest-xfail-conds): Add sparc64-linux.
7455 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7456 sparc64.
7457 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7458
7459 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7460
7461 * elf/elf.h (NT_MIPS_DSP): New macro.
7462 (NT_MIPS_FP_MODE): Likewise.
7463
7464 2018-10-25 Zong Li <zong@andestech.com>
7465
7466 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7467 name by adding the file extension (.so).
7468
7469 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7470
7471 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7472 (test-xfail-ISO11/threads.h/linknamespace,
7473 test-xfail-ISO11/threads.h/conform): Add.
7474
7475 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7476
7477 * math/gen-libm-test.py: Import os.
7478 (ALL_FLOATS_MANUAL): New constant.
7479 (ALL_FLOATS_SUFFIX): Likewise.
7480 (Ulps.all_functions): New function.
7481 (real_all_ulps): Likewise.
7482 (generate_err_table_sub): Likewise.
7483 (generate_err_table): Likewise.
7484 (main): Handle -s and -m options.
7485 * manual/libm-err-tab.pl: Remove.
7486 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7487 instead of libm-err-tab.pl.
7488 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7489 != no].
7490 * manual/install.texi (Tools for Compilation): Document
7491 requirement for Python to build manual.
7492 * INSTALL: Regenerated.
7493
7494 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7495
7496 * bits/time64.h: New file.
7497 * include/time.h: Replace internal_time_t with __time64_t.
7498 * posix/bits/types (__time64_t): Add.
7499 * stdlib/Makefile: Add bits/time64.h to includes.
7500 * time/tzfile.c: Replace internal_time_t with __time64_t.
7501
7502 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7503
7504 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7505 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7506 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7507 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7508 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7509 prototype.
7510 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7511 * posix/spawn_faction_addclose.c
7512 (__posix_spawn_file_actions_addclose): Add hidden definition.
7513 * posix/spawn_faction_adddup2.c
7514 (__posix_spawn_file_actions_adddup2): Likewise.
7515 * posix/spawn_faction_destroy.c
7516 (__posix_spawn_file_actions_destroy): Likewise.
7517 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7518 Likewise.
7519 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7520 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7521 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7522 Likewise.
7523 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7524 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7525 Likewise.
7526
7527 2018-10-24 Andreas Schwab <schwab@suse.de>
7528
7529 [BZ #18093]
7530 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7531 format cache.
7532 * elf/cache.c (print_cache): Likewise.
7533
7534 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7535
7536 * bits/timesize.h: New file.
7537 * stdlib/Makefile (headers): Add bits/timesize.h.
7538 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7539 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7540 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7541 (__SEM_PAD_AFTER_TIME): Likewise.
7542 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7543 (__SHM_PAD_AFTER_TIME): Likewise.
7544 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7545 (__MSQ_PAD_BEFORE_TIME): Likewise.
7546 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7547 (__SEM_PAD_BEFORE_TIME): Likewise.
7548 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7549 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7550 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7551 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7552 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7553 (__MSQ_PAD_BEFORE_TIME): Likewise.
7554 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7555 (__SEM_PAD_BEFORE_TIME): Likewise.
7556 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7557 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7558 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7559 (__MSQ_PAD_BEFORE_TIME): Likewise.
7560 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7561 (__SEM_PAD_BEFORE_TIME): Likewise.
7562 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7563 (__SHM_PAD_BEFORE_TIME): Likewise.
7564 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7565 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7566 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7567
7568 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7569
7570 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7571 USE_RDTSCP is defined.
7572 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7573 USE_RDTSCP is defined.
7574
7575 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7576
7577 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7578 defined.
7579
7580 [BZ #23709]
7581 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7582 independently of other flags.
7583
7584 2018-10-23 Florian Weimer <fweimer@redhat.com>
7585
7586 * time/tst-mktime2.c (N_STRINGS): Remove.
7587 (set_timezone): New function.
7588 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7589 (mktime_test1): Report localtime failure and check errno value.
7590 Use TEST_COMPARE.
7591 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7592 (do_test): Remove alarm call. Use set_timezone and array_length.
7593
7594 2018-10-23 Andreas Schwab <schwab@suse.de>
7595
7596 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7597 (__start_context): Use END instead of PSEUDO_END.
7598
7599 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7600
7601 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7602 version to 4.19.
7603
7604 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7605 version to 4.19.
7606
7607 [BZ #23793]
7608 * wcsmbs/c32rtomb.c: New file.
7609 * wcsmbs/mbrtoc32.c: Likewise.
7610 * wcsmbs/tst-c32-state.c: Likewise.
7611 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7612 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7613 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7614 (tests): Add tst-c32-state.
7615 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7616 $(gen-locales).
7617
7618 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7619
7620 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7621 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7622
7623 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7624
7625 [BZ #23794]
7626 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7627 pair and return 0 in that case, and use saved character to
7628 interpret following character.
7629 * wcsmbs/tst-c16-surrogate.c: New file.
7630 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7631 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7632 Depend on $(gen-locales)
7633
7634 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7635
7636 [BZ #23562]
7637 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7638 (struct siginfo_t): Use correct type for si_band.
7639
7640 2018-10-19 Florian Weimer <fweimer@redhat.com>
7641
7642 [BZ #23689]
7643 * resource/bits/types/struct_rusage.h (struct rusage): Update
7644 comment on struct. Remove extraneous field comment.
7645
7646 2018-10-18 David S. Miller <davem@davemloft.net>
7647
7648 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7649 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7650 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7651 sysdep_routines in subdir elf.
7652 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7653 version for __vdso_clock_gettime.
7654 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7655 Define.
7656 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7657 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7658
7659 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7660
7661 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7662
7663 * sysdeps/i386/init-arch.h: Removed.
7664 * sysdeps/i386/i586/init-arch.h: Likewise.
7665 * sysdeps/i386/i686/init-arch.h: Likewise.
7666 * sysdeps/i386/i686/hp-timing.h: Likewise.
7667 * sysdeps/x86_64/hp-timing.h: Likewise.
7668 * sysdeps/i386/isa.h: New file.
7669 * sysdeps/i386/i586/isa.h: Likewise.
7670 * sysdeps/i386/i686/isa.h: Likewise.
7671 * sysdeps/x86_64/isa.h: Likewise.
7672 * sysdeps/x86/hp-timing.h: New file.
7673 * sysdeps/x86/init-arch.h: Include <isa.h>.
7674
7675 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7676
7677 * math/libm-test-pow.inc (pow_test_data): Do not allow
7678 divide-by-zero exception for pow(+/- 0, -Inf).
7679
7680 2018-10-17 Zack Weinberg <zackw@panix.com>
7681
7682 * manual/job.texi (Job Control is Optional): Remove node, as
7683 job control has not been optional in quite some time.
7684 (Job Control): Mention briefly that systems older than
7685 POSIX.1-2001 might not support job control.
7686 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7687 defined on systems conforming to POSIX.1-2001.
7688
7689 2018-10-17 Arjun Shankar <arjun@redhat.com>
7690
7691 [BZ #22062]
7692 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7693 indentation.
7694 * (__gconv_read_conf): Mark function static.
7695 * (once): New static variable.
7696 * (__gconv_load_conf): New function.
7697 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7698 * iconv/gconv_db.c (once): Remove static variable.
7699 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7700 __gconv_read_conf.
7701 * (__gconv_find_transform): Likewise.
7702 * iconv/tst-iconv-mt.c: New test.
7703 * iconv/Makefile: Add tst-iconv_mt.
7704
7705 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7706
7707 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7708 bits/shm-pad.h.
7709 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7710 (shmatt_t): Define as __syscall_ulong_t.
7711 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7712 and [__SHM_PAD_AFTER_TIME].
7713 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7714 Define shm_segsz and associated padding based on
7715 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7716 Use __syscall_ulong_t instead of unsigned long int.
7717 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7718 unsigned long int.
7719 [__USE_MISC] (struct shm_info): Likewise.
7720 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7721 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7722 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7723 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7724 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7725 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7726 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7727 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7728 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7729 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7730 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7731
7732 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7733 bits/shmlba.h.
7734 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7735 (SHMLBA): Remove macro.
7736 (__getpagesize): Remove function declaration.
7737 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7738 <bits/shmlba.h>.
7739 (SHMLBA): Remove macro.
7740 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7741 <bits/shmlba.h>.
7742 (SHMLBA): Remove macro.
7743 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7744 <bits/shmlba.h>.
7745 (SHMLBA): Remove macro.
7746 (__getpagesize): Remove function declaration.
7747 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7748 <bits/shmlba.h>.
7749 (SHMLBA): Remove macro.
7750 (__getshmlba): Remove function declaration.
7751 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7752 (SHMLBA): Remove macro.
7753 (__getpagesize): Remove function declaration.
7754 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7755 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7756 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7757 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7758 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7759 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7760 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7761 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7762 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7763 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7764
7765 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7766
7767 [BZ #23275]
7768 * nptl/tst-mutex10.c: New File.
7769 * nptl/Makefile (tests): Add tst-mutex10.
7770 (tst-mutex10-ENV): New variable.
7771 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7772 Ensure that elision path is used if elision is available.
7773 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7774 Likewise.
7775 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7776 Likewise.
7777 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7778 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7779 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7780 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7781 Likewise.
7782 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7783 (__pthread_mutex_cond_lock_adjust): Likewise.
7784 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7785 Likewise.
7786 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7787 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7788 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7789 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7790 Add comments.
7791 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7792 Use atomic_load_relaxed and atomic_store_relaxed.
7793 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7794 Use atomic_store_relaxed.
7795
7796 2018-10-17 Andreas Schwab <schwab@suse.de>
7797
7798 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7799 * crypt/badsalttest.c (TIMEOUT): Likewise.
7800 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7801 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7802 * io/test-lfs.c (TIMEOUT): Likewise.
7803 * libio/tst-atime.c (TIMEOUT): Likewise.
7804 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7805 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7806 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7807 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7808 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7809 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7810 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7811 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7812 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7813 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7814 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7815 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7816 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7817 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7818 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7819 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7820 * nptl/tst-once2.c (TIMEOUT): Likewise.
7821 * nptl/tst-once3.c (TIMEOUT): Likewise.
7822 * nptl/tst-once4.c (TIMEOUT): Likewise.
7823 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7824 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7825 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7826 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7827 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7828 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7829 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7830 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7831 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7832 * posix/tst-chmod.c (TIMEOUT): Likewise.
7833 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7834 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7835 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7836 * posix/tst-regex2.c (TIMEOUT): Likewise.
7837 * posix/tst-waitid.c (TIMEOUT): Likewise.
7838 * rt/tst-aio.c (TIMEOUT): Likewise.
7839 * rt/tst-aio10.c (TIMEOUT): Likewise.
7840 * rt/tst-aio4.c (TIMEOUT): Likewise.
7841 * rt/tst-aio5.c (TIMEOUT): Likewise.
7842 * rt/tst-aio6.c (TIMEOUT): Likewise.
7843 * rt/tst-aio64.c (TIMEOUT): Likewise.
7844 * rt/tst-aio7.c (TIMEOUT): Likewise.
7845 * rt/tst-aio9.c (TIMEOUT): Likewise.
7846 * rt/tst-clock.c (TIMEOUT): Likewise.
7847 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7848 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7849 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7850 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7851 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7852 * rt/tst-timer4.c (TIMEOUT): Likewise.
7853 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7854 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7855 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7856 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7857 * time/tst-ftime.c (TIMEOUT): Likewise.
7858 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7859
7860 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7861
7862 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7863 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7864 for thunderX2.
7865
7866 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7867
7868 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7869 bits/sem-pad.h.
7870 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7871 instead of <bits/wordsize.h>.
7872 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7873 and [__SEM_PAD_AFTER_TIME].
7874 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7875 __syscall_ulong_t instead of unsigned long int.
7876 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7877 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7878 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7879 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7880 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7881 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7882 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7883 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7884 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7885 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7886 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7887
7888 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7889
7890 regex: simplify by using intprops.h
7891 [BZ#23744]
7892 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7893 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7894 intprops.h defines them.
7895
7896 regex: __builtin_expect → __glibc_unlikely
7897 [BZ#23744]
7898 This refactoring was prompted by a problem when the regex code is
7899 used as part of Gnulib and when the builder’s compiler does not grok
7900 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7901 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7902 Although this refactoring does not fix the problem directly,
7903 we might as well have Gawk use the now-preferred glibc style for when
7904 __builtin_expect is unavailable.
7905 * posix/regex_internal.h (BE): Remove.
7906 All uses replaced by __glibc_unlikely or __glibc_likely.
7907
7908 2018-10-11 Joseph Myers <joseph@codesourcery.com>
7909
7910 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7911 bits/msq-pad.h.
7912 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
7913 instead of <bits/wordsize.h>.
7914 (msgqnum_t): Define as __syscall_ulong_t.
7915 (msglen_t): Likewise.
7916 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
7917 and [__MSQ_PAD_AFTER_TIME].
7918 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
7919 __syscall_ulong_t instead of unsigned long int.
7920 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
7921 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
7922 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
7923 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
7924 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
7925 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
7926 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
7927 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
7928 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
7929 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
7930 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
7931
7932 2018-10-10 Joseph Myers <joseph@codesourcery.com>
7933
7934 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
7935 (struct shmid_ds): Condition padding after time fields on
7936 [__WORDSIZE == 32].
7937 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
7938 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
7939 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7940
7941 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
7942 (struct semid_ds): Condition padding after time fields on
7943 [__WORDSIZE == 32].
7944 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
7945 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
7946 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
7947 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
7948
7949 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
7950 (struct msqid_ds): Condition padding after time fields on
7951 [__WORDSIZE == 32].
7952 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
7953 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
7954 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
7955 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
7956
7957 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7958
7959 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
7960
7961 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
7962
7963 * libio/tst-readline.c (TIMEOUT): Define.
7964
7965 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
7966
7967 mktime fix for Gnulib + coreutils
7968 [BZ#23745]
7969 This fix affects only Gnulib. Problem discovered when
7970 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
7971 * time/mktime.c:
7972 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
7973 Do not define since it is not used. Defining an unused static
7974 function prompts a warning from GCC when Coreutils is configured
7975 with --enable-gcc-warnings.
7976
7977 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7978
7979 * benchtests/scripts/compare_bench.py (main): set float type on
7980 threshold argument.
7981
7982 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
7983
7984 [BZ #23740]
7985 * localedata/locales/kl_GL (mon): Update, the relative case.
7986 (alt_mon): Add, fill with month names in the nominative case.
7987 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
7988 (d_fmt): Set to "%b %d %Y".
7989
7990 2018-10-04 Joseph Myers <joseph@codesourcery.com>
7991
7992 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7993 <bits/mman-linux.h>.
7994 (PROT_READ): Don't define here.
7995 (PROT_WRITE): Likewise.
7996 (PROT_EXEC): Likewise.
7997 (PROT_NONE): Likewise.
7998 (PROT_GROWSDOWN): Likewise.
7999 (PROT_GROWSUP): Likewise.
8000 (MAP_SHARED): Likewise.
8001 (MAP_PRIVATE): Likewise.
8002 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8003 [__USE_MISC] (MAP_FILE): Likewise.
8004 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8005 [__USE_MISC] (MAP_ANON): Likewise.
8006 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8007 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8008 (MCL_CURRENT): Likewise.
8009 (MCL_FUTURE): Likewise.
8010 (MCL_ONFAULT): Likewise.
8011 [__USE_MISC] (MADV_NORMAL): Likewise.
8012 [__USE_MISC] (MADV_RANDOM): Likewise.
8013 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8014 [__USE_MISC] (MADV_WILLNEED): Likewise.
8015 [__USE_MISC] (MADV_DONTNEED): Likewise.
8016 [__USE_MISC] (MADV_FREE): Likewise.
8017 [__USE_MISC] (MADV_REMOVE): Likewise.
8018 [__USE_MISC] (MADV_DONTFORK): Likewise.
8019 [__USE_MISC] (MADV_DOFORK): Likewise.
8020 [__USE_MISC] (MADV_HWPOISON): Likewise.
8021 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8022 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8023 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8024 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8025 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8026 (__MAP_ANONYMOUS): New macro.
8027 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8028 <bits/mman-linux.h> inclusion.
8029 (MAP_FIXED): Likewise.
8030 (MS_SYNC): Likewise.
8031 (MS_ASYNC): Likewise.
8032 (MS_INVALIDATE): Likewise.
8033 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8034 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8035 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8036 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8037 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8038 [__USE_MISC] (MADV_DODUMP): Likewise.
8039 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8040 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8041
8042 [BZ #23735]
8043 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8044 Define.
8045 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8046 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8047 Add test-nldbl-redirect.
8048 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8049 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8050 $(objpfx)libnldbl_nonshared.a.
8051
8052 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8053
8054 * support/support.h (support_objdir_elf_ldso): New variable.
8055 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8056 * support/Makefile (CFLAGS-support_paths.c): Add definition
8057 for OBJDIR_ELF_LDSO_PATH.
8058 * support/test-container.c (main): Search for the ld.so
8059 which is also used by the testsuite.
8060
8061 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8062
8063 [BZ #20209]
8064 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8065 should be "sap" rather than "sab".
8066 (day): Fix spelling of Sunday, should be "sapaat" rather than
8067 "sabaat".
8068
8069 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8070
8071 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8072
8073 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8074
8075 [BZ #19444]
8076 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8077 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8078 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8079
8080 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8081
8082 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8083
8084 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8085
8086 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8087 Add -mrtm.
8088 (CFLAGS-elision-unlock.c): Likewise.
8089 (CFLAGS-elision-timed.c): Likewise.
8090 (CFLAGS-elision-trylock.c): Likewise.
8091 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8092
8093 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8094
8095 [BZ #21037]
8096 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8097 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8098 new fd_to_filename interface.
8099 * libio/freopen64.c (freopen64): Likewise.
8100 * libio/tst-memstream.h: New file.
8101 * libio/tst-memstream4.c: Likewise.
8102 * libio/tst-wmemstream4.c: Likewise.
8103 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8104 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8105 and remove internal dynamic allocation.
8106
8107 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8108
8109 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8110 (MREMAP_MAYMOVE): Do not define here.
8111 [__USE_GNU] (MREMAP_FIXED): Likewise.
8112 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8113 (MREMAP_MAYMOVE): Define here instead.
8114 [__USE_GNU] (MREMAP_FIXED): Likewise.
8115 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8116 (MREMAP_MAYMOVE): Remove.
8117 [__USE_GNU] (MREMAP_FIXED): Likewise.
8118
8119 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8120
8121 * math/fromfp.h: Do not include <math_private.h>.
8122 * math/s_cacosh_template.c: Likewise.
8123 * math/s_casin_template.c: Likewise.
8124 * math/s_casinh_template.c: Likewise.
8125 * math/s_ccos_template.c: Likewise.
8126 * math/s_cproj_template.c: Likewise.
8127 * math/s_fdim_template.c: Likewise.
8128 * math/s_fmaxmag_template.c: Likewise.
8129 * math/s_fminmag_template.c: Likewise.
8130 * math/s_iseqsig_template.c: Likewise.
8131 * math/s_ldexp_template.c: Likewise.
8132 * math/s_nextdown_template.c: Likewise.
8133 * math/w_log1p_template.c: Likewise.
8134 * math/w_scalbln_template.c: Likewise.
8135 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8136 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8137 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8138 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8139 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8140 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8141 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8142 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8143 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8144 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8145 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8146 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8147 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8148 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8149 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8150 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8151 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8152 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8153 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8154 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8155 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8156 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8157 * sysdeps/ieee754/k_standardf.c: Likewise.
8158 * sysdeps/ieee754/k_standardl.c: Likewise.
8159 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8160 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8161 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8162 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8163 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8164 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8165 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8166 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8167 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8168 * sysdeps/ieee754/s_signgam.c: Likewise.
8169 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8170 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8171 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8172 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8173 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8174 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8175 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8176 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8177 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8178 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8179 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8180 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8181 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8182 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8183 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8184 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8185 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8186 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8187 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8188 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8189 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8190 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8191 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8192 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8193 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8194 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8195 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8196 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8197 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8198 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8199 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8200 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8201 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8202 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8203 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8204 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8205 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8206 <math_private.h>.
8207 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8208
8209 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8210
8211 [BZ #23716]
8212 * sysdeps/i386/dl-cet.c: Removed.
8213 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8214 prototype.
8215 (_dl_runtime_profile_shstk): Likewise.
8216 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8217 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8218
8219 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8220
8221 [BZ #23579]
8222 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8223 do_test_with_invalid_iov): New tests.
8224 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8225 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8226 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8227 errno is ENOSYS.
8228 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8229 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8230 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8231
8232 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8233
8234 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8235 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8236 (MATH_REDIRECT_BINARY_ARGS): New macro.
8237 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8238 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8239 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8240 header inclusion.
8241 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8242 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8243 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8244 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8245 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8246 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8247 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8249 Likewise.
8250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8251 Likewise.
8252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8254 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8255 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8257 Likewise.
8258 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8259 Likewise.
8260 * sysdeps/generic/math_private_calls.h
8261 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8262 Do not declare and define as an inline function.
8263 * math/divtc3.c (__divtc3): Use copysign functions instead of
8264 __copysign variants.
8265 * math/multc3.c (__multc3): Likewise.
8266 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8267 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8268 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8269 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8270 Likewise.
8271 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8272 (__ieee754_yn): Likewise.
8273 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8274 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8275 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8276 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8277 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8278 (__sin): Likewise.
8279 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8280 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8281 Likewise.
8282 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8283 Likewise.
8284 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8285 Likewise.
8286 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8287 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8288 Likewise.
8289 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8290 (__ieee754_ynf): Likewise.
8291 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8292 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8293 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8294 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8295 Likewise.
8296 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8297 (__ieee754_ynl): Likewise.
8298 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8299 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8300 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8301 Likewise.
8302 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8303 (__ieee754_ynl): Likewise.
8304 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8305 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8306 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8307 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8308 Likewise.
8309 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8310 (__ieee754_ynl)
8311 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8312 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8313 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8314 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8315 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8316
8317 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8318 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8319 using MATH_REDIRECT.
8320 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8321 header inclusion.
8322 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8323 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8324 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8325 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8326 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8327 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8328 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8333 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8334 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8335 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8336 (round): Redirect to __round.
8337 (__roundl): Call round instead of __round.
8338 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8339 Remove macro.
8340 [_ARCH_PWR5X] (__roundf): Likewise.
8341 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8342 functions instead of __round variants.
8343 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8344 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8345 Likewise.
8346 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8347 Likewise.
8348 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8349 Likewise.
8350 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8351 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8352 __lroundl.
8353 (__ieee754_expl): Call roundl instead of __roundl.
8354
8355 2018-09-27 Andreas Schwab <schwab@suse.de>
8356
8357 [BZ #23717]
8358 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8359 (do_test): Make st1 static.
8360
8361 2018-09-26 Andreas Schwab <schwab@suse.de>
8362
8363 [BZ #23707]
8364 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8365 * elf/Makefile (tests): Add tst-unwind-ctor.
8366 (modules-names): Add tst-unwind-ctor-lib.
8367 ($(objpfx)tst-unwind-ctor): Depend on
8368 $(objpfx)tst-unwind-ctor-lib.so.
8369
8370 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8371
8372 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8373 file. Most contents moved from ....
8374 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8375 and include <bits/mman-map-flags-generic.h>.
8376 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8377 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8378 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8379 <bits/mman-map-flags-generic.h>.
8380 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8381 macros defined in <bits/mman-map-flags-generic.h>.
8382 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8383 <bits/mman-map-flags-generic.h>.
8384 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8385 defined in <bits/mman-map-flags-generic.h>.
8386
8387 2018-09-26 Andreas Schwab <schwab@suse.de>
8388
8389 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8390 output.
8391
8392 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8393 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8394 Fangrui Song <maskray@google.com>
8395
8396 [BZ #20480]
8397 * config.make.in (have-textrel_ifunc): New define.
8398 * configure.ac: Add check if linker supports textrel relocation with
8399 ifunc.
8400 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8401 tst-ifunc-textrel.
8402 (CFLAGS-tst-ifunc-textrel.c): New rule.
8403 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8404 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8405 * elf/tst-ifunc-textrel.c: New file.
8406
8407 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8408
8409 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8410 <bits/procfs-prregset.h>.
8411 (prgregset_t): Define using __prgregset_t.
8412 (prfpregset_t): Define using __prfpregset_t.
8413 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8414 (sysdep_headers): Add bits/procfs-prregset.h.
8415 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8416 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8417 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8418 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8419
8420 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8421 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8422 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8423 pr_uid and pr_gid.
8424 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8425 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8426 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8427 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8428 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8429 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8430 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8431 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8432 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8433 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8434 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8435 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8436 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8437 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8438 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8439 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8440 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8441 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8442 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8443 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8444 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8445 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8446 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8447 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8448
8449 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8450 AArch64 version. Include <bits/procfs.h>.
8451 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8452 (sysdep_headers): Add bits/procfs.h.
8453 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8454 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8455 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8456 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8457 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8458 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8459 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8460 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8461 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8462 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8463 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8464 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8465 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8466 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8467 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8468 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8469 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8470
8471 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8472
8473 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8474 Use libsupport.
8475
8476 2018-09-25 Arjun Shankar <arjun@redhat.com>
8477
8478 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8479 (__gconv_max_path_elem_len): Likewise.
8480 (__gconv_nmodules): Likewise.
8481 (__gconv_get_path): Likewise.
8482 (path_elem): Move to ...
8483 * iconv/gconv_conf.c: ... here.
8484 (__gconv_get_path): Mark function static.
8485 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8486 * iconv/gconv_open.c: ... here.
8487
8488 2018-09-24 Andreas Schwab <schwab@suse.de>
8489
8490 * scripts/haveversions.awk: New file.
8491 * Makerules ($(common-objpfx)Versions.def)
8492 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8493 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8494 Move rules ...
8495 * Makeconfig ($(common-objpfx)Versions.def)
8496 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8497 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8498 ... here.
8499 ($(common-objpfx)Versions.mk): New rule. Include it.
8500 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8501 Emit error if build-obsolete-nsl = yes.
8502 * manual/install.texi (Configuring and compiling): Describe
8503 --enable-obsolete-nsl as unavaiable after version 2.28.
8504 * INSTALL: Regenerate.
8505
8506 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8507
8508 * NEWS: Add note about new TLE support on powerpc64le.
8509 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8510 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8511 __ununsed1.
8512 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8513 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8514 * sysdeps/powerpc/powerpc32/sysdep.h,
8515 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8516 ABORT_TRANSACTION): Remove macros.
8517 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8518 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8519 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8520 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8521 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8522 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8523 usage.
8524 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8525
8526 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8527
8528 [BZ #10425]
8529 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8530 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8531 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8532 which is the same as in it_IT.
8533 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8534 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8535
8536 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8537
8538 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8539 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8540 using MATH_REDIRECT.
8541 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8542 header inclusion.
8543 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8544 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8545 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8546 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8547 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8548 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8550 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8553 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8554 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8555 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8556 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8557 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8558 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8559 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8560 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8561 (ceil): Redirect to __ceil.
8562 (floor): Redirect to __floor.
8563 (trunc): Redirect to __trunc.
8564 (__truncl): Call trunc instead of __trunc.
8565 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8566 Remove macro.
8567 [_ARCH_PWR5X] (__truncf): Likewise.
8568 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8569 trunc functions instead of __trunc variants.
8570 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8571 Likewise.
8572 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8573 Likewise.
8574 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8575 Likewise.
8576 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8577 Likewise.
8578
8579 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8580 [__i586__ || __pentium__].
8581 [__i486__]: Handle explicitly.
8582 (HAS_CPUID): Define to 1 if above macros are undefined.
8583 (HAS_I586): Likewise.
8584 (HAS_I686): Likewise.
8585
8586 2018-09-20 Florian Weimer <fweimer@redhat.com>
8587
8588 * misc/tst-gethostid.c: New file.
8589 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8590 (tst-gethostid): Link with -ldl.
8591
8592 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8593
8594 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8595 value from gethostbyname_r.
8596
8597 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8598
8599 * stdlib/tst-setcontext9.c (f1): Rename to...
8600 (f1a): ... this.
8601 (f1b): New function implementing lower half of f1 in alternate stack.
8602
8603 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8604
8605 Fix mktime localtime offset confusion
8606 [BZ #23603]
8607 * include/time.h (__mktime_internal): The localtime offset is now
8608 of type long int instead of time_t. This is the longstanding type
8609 in glibc, and it is more than enough to represent difference
8610 between localtime and gmtime even if it is 32 bits and time_t is
8611 64. Changing it now will let us avoid an unnecessary change when
8612 time_t is widened to 64 bits on 32-bit platforms.
8613 * time/mktime-internal.h (mktime_offset_t): Now long int.
8614
8615 Merge mktime, timegm from upstream Gnulib
8616 [BZ #23603][BZ #16346]
8617 This fixes some obscure problems with integer overflow.
8618 Although it looks scary, it is almost all a byte-for-byte copy
8619 from Gnulib, and the Gnulib code has been tested reasonably well.
8620 * include/intprops.h: New file, copied from Gnulib.
8621 * include/verify.h, time/mktime-internal.h:
8622 New tiny files, simplified from Gnulib.
8623 * time/mktime.c: Copy from Gnulib. This has the following changes:
8624 Do not include config.h if DEBUG_MKTIME is nonzero.
8625 Include stdbool.h, intprops.h, verify.h.
8626 Include string.h only if needed.
8627 Include stdlib.h on MS-Windows.
8628 Include mktime-internal.h.
8629 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8630 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8631 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8632 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8633 simplify later conditionals; default the others to zero. Use
8634 these conditionals to express only the code needed on the current
8635 platform. In uses of these conditionals, explicitly spell out how
8636 _LIBC affects things, so it’s easier to review from a glibc
8637 viewpoint.
8638 (WRAPV): Remove; no longer needed now that we have
8639 systematic overflow checking.
8640 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8641 compartmentalize tzset issues. Move system-dependent tzsettish
8642 code here from mktime.
8643 (verify): Remove; now done by verify.h. All uses changed.
8644 (long_int): Use a more-conservative definition, to avoid
8645 integer overflow.
8646 (SHR): Remove, replacing with ...
8647 (shr): New function, which means we needn’t worry about side
8648 effects in args, and conversion analysis is simpler.
8649 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8650 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8651 (time_t_avg, time_t_add_ok): Remove.
8652 (mktime_min, mktime_max): New constants.
8653 (leapyear, isdst_differ): Use bool for booleans.
8654 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8655 Use long_int, not time_t, for mktime differences.
8656 (long_int_avg): New function, replacing time_t_avg.
8657 INT_ADD_WRAPV replaces time_t_add_ok.
8658 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8659 All uses changed.
8660 (convert_time): New function.
8661 (ranged_convert): Use it.
8662 (__mktime_internal): Last arg now points to mktime_offset_t, not
8663 time_t. All uses changed. This is a no-op on glibc, where
8664 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8665 offset guess. Directly check for integer overflow instead of
8666 using a heuristic that works only 99.9...% of the time.
8667 Access *OFFSET only once, to avoid an unlikely race if the
8668 compiler delays a load and if this cascades into a signed integer
8669 overflow.
8670 (mktime): Move tzsettish code to my_tzset, and move
8671 localtime_offset to within mktime so that it doesn’t
8672 need a separate ifdef.
8673 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8674 instead of localtime.
8675 * time/timegm.c: Copy from Gnulib. This has the following changes:
8676 Include mktime-internal.h.
8677 [!_LIBC]: Include config.h and time.h. Do not include
8678 timegm.h or time_r.h. Make __mktime_internal a macro,
8679 and include mktime-internal.h to get its declaration.
8680 (timegm): Temporary is now mktime_offset_t, not time_t.
8681 This affects only Gnulib.
8682
8683 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8684
8685 [BZ #23637]
8686 * string/test-strstr.c (pr23637): New function.
8687 (test_main): Add tests with longer needles.
8688 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8689 * string/strstr.c (AVAILABLE): Likewise.
8690
8691 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8692
8693 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8694
8695 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8696
8697 * NEWS: Mention pow improvements.
8698 * math/Makefile (type-double-routines): Add e_pow_log_data.
8699 * sysdeps/generic/math_private.h (__exp1): Remove.
8700 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8701 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8702 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8703 contraction.
8704 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8705 (exp_inline): Remove.
8706 (__ieee754_exp): Only single double input is handled.
8707 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8708 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8709 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8710 (__pow_log_data): Define.
8711 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8712 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8713 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8714 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8715 contraction.
8716 (CFLAGS-e_pow-fma4.c): Likewise.
8717
8718 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8719
8720 Simplify tzfile fstat failure code
8721 [BZ #21716]
8722 * time/tzfile.c (__tzfile_read): Simplify slightly.
8723
8724 Fix tzfile low-memory assertion failure
8725 [BZ #21716]
8726 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8727 when registering time zone abbreviations.
8728
8729 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8730
8731 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8732 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8733 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8734 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8735 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8736 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8737 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8738 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8739 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8740
8741 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8742 __ceil.
8743 (__ceill): Call ceil instead of __ceil.
8744 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8745 __floor.
8746 (__floorl): Call floor instead of __floor.
8747
8748 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8749
8750 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8751 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8752 using MATH_REDIRECT.
8753 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8754 header inclusion.
8755 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8756 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8757 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8758 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8759 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8760 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8761 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8762 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8763 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8767 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8768 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8769 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8770 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8771 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8772 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8773 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8774 Remove macro.
8775 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8776 functions instead of __ceil variants.
8777 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8778 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8779 Likewise.
8780 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8781 Likewise.
8782 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8783 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8784 Likewise.
8785 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8786 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8787
8788 [BZ #21286]
8789 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8790 constant.
8791 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8792 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8793 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8794 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8795 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8796 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8797 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8798 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8799 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8800 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8801 (ILL_BADIADDR): Remove constant.
8802 (TRAP_BRANCH): Likewise.
8803 (TRAP_HWBKPT): Likewise.
8804
8805 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8806
8807 [BZ #23656]
8808 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8809 Remove [_MIPS_SIM = _ABIN32] conditional case.
8810 (struct elf_prpsinfo): Likewise.
8811
8812 [BZ #23649]
8813 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8814 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8815 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8816 Likewise.
8817 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8818 elf_prpsinfo): Likewise.
8819 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8820 elf_prpsinfo): Likewise.
8821 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8822 Likewise.
8823
8824 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8825 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8826 using MATH_REDIRECT.
8827 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8828 header inclusion.
8829 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8830 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8831 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8832 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8833 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8834 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8835 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8836 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8837 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8838 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8839 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8840 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8841 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8842 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8843 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8844 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8845 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8846 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8847 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8850 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8851 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8852 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8853 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8854 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8855 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8856 __rint variants.
8857 * math/e_scalbf.c (invalid_fn): Likewise.
8858 * math/e_scalbl.c (invalid_fn): Likewise.
8859 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8860 Likewise.
8861 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8862 Likewise.
8863 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8864 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8865 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8866 Likewise.
8867 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8868 Likewise.
8869 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8870 Likewise.
8871 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8872 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8873
8874 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8875 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8876 New macro.
8877 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8878 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8879 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8880 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8881 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8882 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8883 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8884 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8885 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8886 && !NO_MATH_REDIRECT] (floor): Likewise.
8887 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8888 header inclusion.
8889 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8890 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8891 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8892 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8893 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8894 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8895 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8896 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8898 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8901 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8902 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8903 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8904 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8905 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8906 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8907 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
8908 Remove macro.
8909 [_ARCH_PWR5X] (__floorf): Likewise.
8910 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
8911 inline function.
8912 [__SSE4_1__] (__floorf): Likewise.
8913 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
8914 instead of __floor variants.
8915 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
8916 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
8917 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
8918 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
8919 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
8920 * math/w_tgamma_compat.c (__tgamma): Likewise.
8921 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
8922 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
8923 * math/w_tgammal_compat.c (__tgammal): Likewise.
8924 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
8925 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
8926 Likewise.
8927 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
8928 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
8929 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
8930 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8931 Likewise.
8932 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8933 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
8934 Likewise.
8935 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
8936 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
8937 Likewise.
8938 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8939 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
8940 Likewise.
8941 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
8942 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8943 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8944 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
8945 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8946 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8947
8948 2018-09-12 Joseph Myers <joseph@codesourcery.com>
8949
8950 * elf/Makefile (modules-names-tests): New variable.
8951
8952 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8953
8954 * NEWS: Mention log2 improvements.
8955 * math/Makefile (type-double-routines): Add e_log2_data.
8956 * sysdeps/i386/fpu/e_log2_data.c: New file.
8957 * sysdeps/ia64/fpu/e_log2_data.c: New file.
8958 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
8959 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
8960 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
8961 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
8962 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
8963
8964 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8965
8966 * NEWS: Mention log improvement.
8967 * math/Makefile (type-double-routines): Add e_log_data.
8968 * sysdeps/i386/fpu/e_log_data.c: New file.
8969 * sysdeps/ia64/fpu/e_log_data.c: New file.
8970 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8971 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
8972 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
8973 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
8974 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
8975 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
8976
8977 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
8978 Xuepeng Guo <xuepeng.guo@intel.com>
8979
8980 [BZ #23606]
8981 * sysdeps/i386/start.S: Include <sysdep.h>
8982 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
8983 enabled. Add cfi_undefined (eip).
8984
8985 2018-09-11 Joseph Myers <joseph@codesourcery.com>
8986
8987 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
8988 (MOVQ): Likewise.
8989 (EXTRACT_WORDS64): Likewise.
8990 (INSERT_WORDS64): Likewise.
8991 (GET_FLOAT_WORD): Likewise.
8992 (SET_FLOAT_WORD): Likewise.
8993
8994 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
8995 argument.
8996 (Config.build_gcc): Use --disable-libsanitizer for first GCC
8997 build, but not for second build if --full-gcc. Use
8998 --enable-languages=all for second build if --full-gcc.
8999 (get_parser): Add --full-gcc option.
9000 (main): Update call to Context.
9001
9002 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9003
9004 [BZ #10797]
9005 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9006 Single Quotation Mark).
9007 (thousands_sep): Likewise.
9008 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9009 * localedata/locales/it_IT (thousands_sep): Use ".".
9010 (grouping): Use "3;3".
9011
9012 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9013
9014 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9015 x86_64 and i686 configs using --enable-obsolete-rpc
9016 --enable-obsolete-nsl.
9017
9018 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9019
9020 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9021
9022 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9023
9024 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9025 Increment size of new_argv by one.
9026
9027 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9028
9029 [BZ #17426]
9030 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9031 * localedata/locales/ar_IN (d_fmt): Likewise.
9032 * localedata/locales/bhb_IN (d_fmt): Likewise.
9033 * localedata/locales/bho_IN (d_fmt): Likewise.
9034 * localedata/locales/bn_BD (d_fmt): Likewise.
9035 * localedata/locales/bn_IN (d_fmt): Likewise.
9036 * localedata/locales/doi_IN (d_fmt): Likewise.
9037 * localedata/locales/gu_IN (d_fmt): Likewise.
9038 * localedata/locales/hi_IN (d_fmt): Likewise.
9039 * localedata/locales/hne_IN (d_fmt): Likewise.
9040 * localedata/locales/kn_IN (d_fmt): Likewise.
9041 * localedata/locales/mag_IN (d_fmt): Likewise.
9042 * localedata/locales/mai_IN (d_fmt): Likewise.
9043 * localedata/locales/mjw_IN (d_fmt): Likewise.
9044 * localedata/locales/ml_IN (d_fmt): Likewise.
9045 * localedata/locales/mni_IN (d_fmt): Likewise.
9046 * localedata/locales/mr_IN (d_fmt): Likewise.
9047 * localedata/locales/pa_IN (d_fmt): Likewise.
9048 * localedata/locales/raj_IN (d_fmt): Likewise.
9049 * localedata/locales/sat_IN (d_fmt): Likewise.
9050 * localedata/locales/sd_IN (d_fmt): Likewise.
9051 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9052 * localedata/locales/ta_IN (d_fmt): Likewise.
9053 * localedata/locales/ta_LK (d_fmt): Likewise.
9054 * localedata/locales/tcy_IN (d_fmt): Likewise.
9055 * localedata/locales/ur_IN (d_fmt): Likewise.
9056
9057 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9058 * localedata/locales/ks_IN (d_fmt): Likewise.
9059 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9060
9061 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9062 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9063 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9064 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9065
9066 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9067
9068 * NEWS: Mention exp and exp2 improvements.
9069 * math/Makefile (libm-support): Remove t_exp.
9070 (type-double-routines): Add math_err and e_exp_data.
9071 * sysdeps/aarch64/libm-test-ulps: Update.
9072 * sysdeps/arm/libm-test-ulps: Update.
9073 * sysdeps/i386/fpu/e_exp_data.c: New file.
9074 * sysdeps/i386/fpu/math_err.c: New file.
9075 * sysdeps/i386/fpu/t_exp.c: Remove.
9076 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9077 * sysdeps/ia64/fpu/math_err.c: New file.
9078 * sysdeps/ia64/fpu/t_exp.c: Remove.
9079 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9080 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9081 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9082 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9083 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9084 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9085 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9086 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9087 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9088 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9089 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9090 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9091 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9092 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9093 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9094 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9095
9096 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9097
9098 * sysdeps/alpha/fpu/math_private.h: Remove.
9099
9100 * sysdeps/generic/math_private.h
9101 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9102 Move this inline function ....
9103 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9104 * include/math.h [!_ISOMAC]: To here....
9105
9106 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9107
9108 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9109 code ....
9110 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9111 * include/fenv.h [!_ISOMAC]: ... to here.
9112 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9113 (feraiseexcept): Likewise.
9114 * math/fromfp.h: Do not include <fenv_private.h>.
9115 * math/s_cexp_template.c: Likewise.
9116 * math/s_csin_template.c: Likewise.
9117 * math/s_csinh_template.c: Likewise.
9118 * math/s_ctan_template.c: Likewise.
9119 * math/s_ctanh_template.c: Likewise.
9120 * math/s_iseqsig_template.c: Likewise.
9121 * math/w_acos_compat.c: Likewise.
9122 * math/w_acosf_compat.c: Likewise.
9123 * math/w_acosl_compat.c: Likewise.
9124 * math/w_asin_compat.c: Likewise.
9125 * math/w_asinf_compat.c: Likewise.
9126 * math/w_asinl_compat.c: Likewise.
9127 * math/w_j0_compat.c: Likewise.
9128 * math/w_j0f_compat.c: Likewise.
9129 * math/w_j0l_compat.c: Likewise.
9130 * math/w_j1_compat.c: Likewise.
9131 * math/w_j1f_compat.c: Likewise.
9132 * math/w_j1l_compat.c: Likewise.
9133 * math/w_jn_compat.c: Likewise.
9134 * math/w_jnf_compat.c: Likewise.
9135 * math/w_log10_compat.c: Likewise.
9136 * math/w_log10f_compat.c: Likewise.
9137 * math/w_log10l_compat.c: Likewise.
9138 * math/w_log2_compat.c: Likewise.
9139 * math/w_log2f_compat.c: Likewise.
9140 * math/w_log2l_compat.c: Likewise.
9141 * math/w_log_compat.c: Likewise.
9142 * math/w_logf_compat.c: Likewise.
9143 * math/w_logl_compat.c: Likewise.
9144 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9145 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9146 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9147 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9148 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9149 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9150 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9151 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9152 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9153 * sysdeps/ieee754/k_standardl.c: Likewise.
9154 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9155 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9156 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9157 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9158 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9159 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9160 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9161 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9162 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9163 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9164 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9165 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9166 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9167 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9168 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9169 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9170 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9171 * math/w_ilogb_template.c: Include <fenv.h> instead of
9172 <fenv_private.h>.
9173 * math/w_llogb_template.c: Likewise.
9174 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9175 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9176
9177 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9178
9179 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9180 * math/fromfp.h: Include <fenv_private.h>.
9181 * math/math-narrow.h: Likewise.
9182 * math/s_cexp_template.c: Likewise.
9183 * math/s_csin_template.c: Likewise.
9184 * math/s_csinh_template.c: Likewise.
9185 * math/s_ctan_template.c: Likewise.
9186 * math/s_ctanh_template.c: Likewise.
9187 * math/s_iseqsig_template.c: Likewise.
9188 * math/w_acos_compat.c: Likewise.
9189 * math/w_acosf_compat.c: Likewise.
9190 * math/w_acosl_compat.c: Likewise.
9191 * math/w_asin_compat.c: Likewise.
9192 * math/w_asinf_compat.c: Likewise.
9193 * math/w_asinl_compat.c: Likewise.
9194 * math/w_ilogb_template.c: Likewise.
9195 * math/w_j0_compat.c: Likewise.
9196 * math/w_j0f_compat.c: Likewise.
9197 * math/w_j0l_compat.c: Likewise.
9198 * math/w_j1_compat.c: Likewise.
9199 * math/w_j1f_compat.c: Likewise.
9200 * math/w_j1l_compat.c: Likewise.
9201 * math/w_jn_compat.c: Likewise.
9202 * math/w_jnf_compat.c: Likewise.
9203 * math/w_llogb_template.c: Likewise.
9204 * math/w_log10_compat.c: Likewise.
9205 * math/w_log10f_compat.c: Likewise.
9206 * math/w_log10l_compat.c: Likewise.
9207 * math/w_log2_compat.c: Likewise.
9208 * math/w_log2f_compat.c: Likewise.
9209 * math/w_log2l_compat.c: Likewise.
9210 * math/w_log_compat.c: Likewise.
9211 * math/w_logf_compat.c: Likewise.
9212 * math/w_logl_compat.c: Likewise.
9213 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9214 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9215 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9216 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9217 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9218 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9219 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9220 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9221 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9222 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9223 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9224 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9225 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9226 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9227 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9228 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9229 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9230 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9231 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9232 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9233 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9234 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9235 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9236 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9237 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9238 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9239 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9240 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9241 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9242 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9243 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9244 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9245 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9246 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9247 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9248 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9249 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9250 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9251 * sysdeps/ieee754/k_standardl.c: Likewise.
9252 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9253 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9254 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9255 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9256 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9257 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9258 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9259 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9260 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9261 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9262 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9263 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9264 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9265 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9266 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9267 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9268 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9269 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9270 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9271 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9272 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9273 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9274 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9275 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9276 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9277 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9278 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9279 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9280 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9281 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9282 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9283 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9284 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9285 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9286 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9287 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9288 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9289 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9290 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9291 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9292 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9293 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9294 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9295 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9296 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9297 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9298 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9299 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9300 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9301 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9302 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9303 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9304 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9305 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9306 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9307 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9308 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9309 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9310 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9311 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9312 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9313 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9314 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9315 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9316 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9317 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9318 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9319 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9320 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9321 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9322 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9323
9324 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9325
9326 [BZ #20271]
9327 * include/stdio.h (__libc_fatal): Mention newline in comment.
9328 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9329 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9330 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9331 * nss/nsswitch.c (__nss_next2): Likewise.
9332 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9333 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9334 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9335 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9336 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9337 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9338 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9339 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9340 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9341 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9342 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9343 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9344 (__netlink_assert_response): Likewise.
9345
9346 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9347
9348 * conform/glibcconform.py: New file.
9349 * conform/list-header-symbols.py: Likewise.
9350 * conform/list-header-symbols.pl: Remove.
9351 * conform/Makefile (tests-special): Only add linknamespace tests
9352 if [PYTHON].
9353 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9354
9355 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9356
9357 [BZ #23597]
9358 * support/Makefile (libsupport-routines): Add
9359 support_copy_file_range and xcopy_file_range.
9360 * support/support.h: Include <sys/types.h>.
9361 (support_copy_file_range): New prototype.
9362 * support/support_copy_file_range.c: New file. Copied and
9363 modified from io/copy_file_range-compat.c.
9364 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9365 instead of copy_file_range.
9366 * support/xcopy_file_range.c: New file.
9367 * support/xunistd.h (xcopy_file_range): New prototype.
9368
9369 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9370
9371 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9372 xpthread_create and xpthread_join.
9373
9374 2018-08-30 Florian Weimer <fweimer@redhat.com>
9375
9376 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9377
9378 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9379
9380 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9381 if malloc fails.
9382
9383 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9384
9385 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9386 and minus_oflow as non-finite.
9387
9388 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9389
9390 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9391 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9392 moved to fenv_private.h except for ...
9393 (TOINT_INTRINSICS): Kept in math_private.h.
9394 (roundtoint): Likewise.
9395 (converttoint): Likewise.
9396 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9397 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9398 * sysdeps/arm/math_private.h: Remove.
9399 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9400 ....
9401 * sysdeps/generic/math_private.h: ... this file. Include
9402 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9403 Include <fenv_private.h>. Remove functions and macros moved to
9404 fenv_private.h.
9405 * sysdeps/i386/fpu/math_private.h: Remove.
9406 * sysdeps/mips/math_private.h: Move to ....
9407 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9408 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9409 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9410 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9411 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9412 * sysdeps/powerpc/fpu/math_private.h: Do not include
9413 <fenv_private.h>.
9414 * sysdeps/riscv/rvf/math_private.h: Move to ....
9415 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9416 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9417 <fenv_private.h>.
9418 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9419 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9420 * sysdeps/sparc/fpu/math_private.h: Remove.
9421 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9422 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9423 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9424 <fenv_private.h>.
9425 * sysdeps/x86_64/fpu/math_private.h: Do not include
9426 <sysdeps/i386/fpu/fenv_private.h>.
9427
9428 2018-08-28 Florian Weimer <fweimer@redhat.com>
9429
9430 [BZ #23578]
9431 * posix/tst-regcomp-truncated.c: New file.
9432 * posix/Makefile (tests): Add it.
9433 (tst-regcomp-truncated.out): Depend on generated locales.
9434
9435 2018-08-28 Florian Weimer <fweimer@redhat.com>
9436
9437 * support/test-container.c (main): Treat unshare failure with
9438 EPERM as an unsupported test.
9439
9440 2018-08-28 Florian Weimer <fweimer@redhat.com>
9441
9442 [BZ #23520]
9443 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9444 * nscd/netgroupcache.c
9445 (addgetnetgrentX): Add tofreep parameter. Do not free
9446 heap-allocated buffer.
9447 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9448 (addgetnetgrentX_ignore): New function.
9449 (addgetnetgrent): Call it.
9450 (readdgetnetgrent): Likewise.
9451
9452 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9453
9454 * string/memmem.c: Use memcmp for first match.
9455
9456 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9457
9458 [BZ #17426]
9459 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9460
9461 2018-08-27 DJ Delorie <dj@redhat.com>
9462
9463 * support/Makefile (others): Don't list programs explicitly as a
9464 dependency of "others".
9465
9466 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9467
9468 * sysdeps/generic/math-tests-trap-force.h: New file.
9469 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9470 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9471 * sysdeps/powerpc/math-tests.h: Remove file.
9472 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9473
9474 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9475 Torvald Riegel <triegel@redhat.com>
9476
9477 [BZ #23538]
9478 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9479 Update r to include the set wake-request flag if waiters are
9480 remaining after spinning.
9481
9482 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9483
9484 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9485
9486 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9487
9488 [BZ #23578]
9489 regex: fix uninitialized memory access
9490 I introduced this bug into gnulib in commit
9491 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9492 eventually it was merged into glibc. The bug was found by
9493 project-repo <bugs@feusi.co> and reported here:
9494 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9495 Diagnosis and draft fix reported by Assaf Gordon here:
9496 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9497 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9498 * posix/regex_internal.c (build_wcs_upper_buffer):
9499 Fix bug when mbrtowc returns 0.
9500
9501 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9502
9503 * po/be.po: Update translation.
9504
9505 2018-08-24 DJ Delorie <dj@delorie.com>
9506
9507 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9508 $(libunwind).
9509
9510 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9511
9512 [BZ #23400]
9513 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9514 create temporary files in source tree.
9515
9516 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9517
9518 * sysdeps/generic/math-tests-trap.h: New file.
9519 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9520 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9521 * sysdeps/aarch64/math-tests.h: Remove file.
9522 * sysdeps/arm/math-tests.h: Likewise.
9523 * sysdeps/riscv/math-tests.h: Likewise.
9524 * sysdeps/aarch64/math-tests-trap.h: New file.
9525 * sysdeps/arm/math-tests-trap.h: Likewise.
9526 * sysdeps/riscv/math-tests-trap.h: Likewise.
9527
9528 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9529
9530 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9531 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9532 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9533 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9534 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9535 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9536 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9537 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9538 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9539 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9540 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9541 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9542 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9543 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9544 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9545 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9546 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9547 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9548
9549 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9550
9551 * sysdeps/generic/math-tests-exceptions.h: New file.
9552 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9553 (EXCEPTION_TESTS_float): Do not define here.
9554 (EXCEPTION_TESTS_double): Likewise.
9555 (EXCEPTION_TESTS_long_double): Likewise.
9556 (EXCEPTION_TESTS_float128): Likewise.
9557 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9558 Likewise.
9559 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9560 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9561 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9562 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9563 * sysdeps/mips/math-tests.h: Likewise.
9564 * sysdeps/nios2/math-tests.h: Likewise.
9565 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9566 (EXCEPTION_TESTS_float): Do not define here.
9567 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9568 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9569 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9570
9571 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9572
9573 * NEWS: Move optimized sinf entry to 2.29.
9574
9575 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9576
9577 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9578
9579 2018-08-22 DJ Delorie <dj@redhat.com>
9580
9581 * Makefile (testroot.pristine): New rules to initialize the
9582 test-in-container "testroot".
9583 * Makerules (all-testsuite): Add tests-container.
9584 * Rules (tests-expected): Add tests-container.
9585 (binaries-all-tests): Likewise.
9586 (tests-container): New, run these tests in the testroot container.
9587 * support/Makefile (others): Add *-container, support_paths.c,
9588 xmkdirp, and links-dso-program.
9589 * support/links-dso-program-c.c: New.
9590 * support/links-dso-program.cc: New.
9591 * support/test-container.c: New.
9592 * support/shell-container.c: New.
9593 * support/echo-container.c: New.
9594 * support/true-container.c: New.
9595 * support/xmkdirp.c: New.
9596 * support/xsymlink.c: New.
9597 * support/support_paths.c: New.
9598 * support/support.h: Add support paths prototypes.
9599 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9600
9601 * nss/tst-nss-test3.c: Convert to test-in-container.
9602 * nss/tst-nss-test3.root/: New.
9603
9604 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9605
9606 regex: port Gnulib code to z/OS POSIX environment
9607 Problem reported by Arnold Robbins in:
9608 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9609 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9610 Undef.
9611
9612 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9613
9614 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9615 (ROUNDING_TESTS_double): Remove.
9616 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9617 (ROUNDING_TESTS_double): Remove.
9618 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9619 (ROUNDING_TESTS_double): Remove.
9620 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9621 (ROUNDING_TESTS_float): Remove.
9622 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9623 (ROUNDING_TESTS_float): Remove.
9624 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9625 (ROUNDING_TESTS_float): Remove.
9626 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9627 !TEST_MATHVEC here.
9628 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9629 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9630
9631 * sysdeps/generic/math-tests-rounding.h: New file.
9632 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9633 (ROUNDING_TESTS_float): Do not define here.
9634 (ROUNDING_TESTS_double): Likewise.
9635 (ROUNDING_TESTS_long_double): Likewise.
9636 (ROUNDING_TESTS_float128): Likewise.
9637 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9638 (ROUNDING_TESTS_double): Undefine before defining.
9639 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9640 (ROUNDING_TESTS_double): Undefine before defining.
9641 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9642 (ROUNDING_TESTS_double): Undefine before defining.
9643 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9644 (ROUNDING_TESTS_float): Undefine before defining.
9645 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9646 (ROUNDING_TESTS_float): Undefine before defining.
9647 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9648 (ROUNDING_TESTS_float): Undefine before defining.
9649 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9650 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9651 not define here.
9652 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9653 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9654 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9655 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9656 (ROUNDING_TESTS_float): Do not define here.
9657 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9658 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9659 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9660 (ROUNDING_TESTS_float): Likewise.
9661 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9662 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9663 * sysdeps/mips/math-tests.h [__mips_soft_float]
9664 (ROUNDING_TESTS_float): Likewise.
9665 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9666 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9667 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9668 (ROUNDING_TESTS_double): Likewise.
9669 (ROUNDING_TESTS_long_double): Likewise.
9670
9671 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9672
9673 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9674 (PF_XDP): New macro.
9675 (AF_XDP): New macro.
9676 (SOL_XDP): New macro.
9677
9678 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9679
9680 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9681 (TCP_INQ): Likewise.
9682 (TCP_CM_INQ): Likewise.
9683 (TCP_REPAIR_ON): Likewise.
9684 (TCP_REPAIR_OFF): Likewise.
9685 (TCP_REPAIR_OFF_NO_WP): Likewise.
9686 (struct tcp_zerocopy_receive): New type.
9687
9688 2018-08-21 Florian Weimer <fweimer@redhat.com>
9689
9690 * support/support.h (support_descriptor_supports_holes): Declare.
9691 * support/Makefile (libsupport-routines): Add
9692 support_descriptor_supports_holes.
9693 * support/support_descriptor_supports_holes.c: New file.
9694 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9695 and stop testing if holes are not supported.
9696 * io/test-lfs.c (do_prepare): Likewise.
9697 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9698 Likewise.
9699 * timezone/tst-tzset.c (create_tz_file): Likewise.
9700 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9701 variable.
9702 (do_prepare): Set it.
9703 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9704
9705 2018-08-21 Florian Weimer <fweimer@redhat.com>
9706
9707 [BZ #17248]
9708 * Makeconfig (+cflags): Do not sort (and deduplicate).
9709
9710 2018-08-21 Florian Weimer <fweimer@redhat.com>
9711
9712 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9713 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9714
9715 2018-08-20 Florian Weimer <fweimer@redhat.com>
9716
9717 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9718 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9719
9720 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9721
9722 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9723 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9724 and ssi_arch members.
9725
9726 * elf/elf.c (NT_VMCOREDD): New macro.
9727 (AT_MINSIGSTKSZ): Likewise.
9728
9729 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9730
9731 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9732 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9733 s_cosf-ppc64 and s_cosf-power8.
9734 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9735 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9736 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9737 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9739 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9744 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9745 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9746
9747 2018-08-17 Florian Weimer <fweimer@redhat.com>
9748
9749 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9750
9751 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9752
9753 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9754
9755 2018-08-16 Florian Weimer <fweimer@redhat.com>
9756
9757 * configure.ac: Add --with-nonshared-cflags option.
9758 * config.make.in (extra-nonshared-cflags): Set variable.
9759 * Makeconfig (CFLAGS-.oS): Use it.
9760 * manual/install.texi (Configuring and compiling): Document
9761 --with-nonshared-cflags.
9762 * configure: Regenerate.
9763 * INSTALL: Likewise.
9764
9765 2018-08-16 Florian Weimer <fweimer@redhat.com>
9766
9767 * Makeconfig (ASFLAGS): Always append required assembler flags.
9768
9769 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9770
9771 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9772 (malloc_consolidate): Likewise.
9773
9774 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9775
9776 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9777
9778 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9779
9780 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9781 every strlen call.
9782
9783 * benchtests/bench-strlen.c: Print performance numbers in json.
9784
9785 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9786
9787 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9788 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9789 only for little endian.
9790 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9791 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9792 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9793 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9794 Add check for little endian.
9795 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9796 (__strcmp_power9): Add check for little endian.
9797 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9798 Add check for little endian.
9799 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9800 (__strncmp_power9): Add check for little endian.
9801 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9802 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9803 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9804 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9805 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9806
9807 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9808
9809 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9810 [!STRLEN](STRLEN): Set to __strlen.
9811 * sysdeps/aarch64/multiarch/strlen.c: New file.
9812 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9813 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9814 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9815 (__libc_ifunc_impl_list): Add strlen.
9816 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9817 strlen_generic and strlen_asimd.
9818
9819 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9820
9821 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9822 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9823 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9824
9825 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9826
9827 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9828
9829 2018-08-14 Florian Weimer <fweimer@redhat.com>
9830
9831 [BZ #23519]
9832 * include/stdio.h (__vfxprintf): Declare.
9833 * stdio-common/fxprintf.c (__vfxprintf): New function.
9834 (__fxprintf): Call it.
9835 * misc/err.c (convert_and_print): Remove function.
9836 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9837 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9838 * misc/Makefile (tests): Add tst-warn-wide.
9839 * misc/tst-warn-wide.c: New file.
9840
9841 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9842 Szabolcs Nagy <szabolcs.nagy@arm.com>
9843
9844 * NEWS: Mention sinf, cosf, sincosf.
9845 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9846 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9847 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9848 constants rather than including generic sincosf.h.
9849 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9850 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9851 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9852 (reduced_cos): Remove.
9853 (sinf_poly): New function.
9854 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9855
9856 2018-08-14 Florian Weimer <fweimer@redhat.com>
9857
9858 [BZ #23521]
9859 [BZ #23522]
9860 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9861 processing, bail out if no room, and close the stream before
9862 returning ERANGE.
9863 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9864 (tst-nss-files-alias-leak): Link with libdl.
9865 (tst-nss-files-alias-leak.out): Depend on nss_files.
9866
9867 * nss/tst-nss-files-alias-leak.c: New file.
9868
9869 2018-08-14 Florian Weimer <fweimer@redhat.com>
9870
9871 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9872 server_user, stat_user.
9873
9874 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9875
9876 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9877 version to 4.18.
9878 (io_pgetevents): New syscall.
9879 (rseq): Likewise.
9880
9881 * manual/install.texi (Configuring and compiling): Do not list
9882 tools used for testing pretty printers here.
9883 (Tools for Compilation): List Python, PExpect and GDB here.
9884 Update descriptions of uses of Perl and Python.
9885 * INSTALL: Regenerate.
9886
9887 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9888 version to 4.18.
9889
9890 2018-08-13 Florian Weimer <fweimer@redhat.com>
9891
9892 * misc/error.c (error): Add missing va_end call.
9893 (error_at_line): Likewise.
9894
9895 2018-08-13 Florian Weimer <fweimer@redhat.com>
9896
9897 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9898
9899 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9900
9901 * benchtests/scripts/benchout.schema.json (properties): Add
9902 new properties.
9903
9904 * benchtests/bench-skeleton.c (main): Add duration and
9905 iterations attributes.
9906
9907 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
9908
9909 regex: Gnulib unibyte RRI uses bytes not chars
9910 Adjust the non-glibc code to agree with what Gawk needs for
9911 rational range interpretation (RRI) for regular expression ranges.
9912 In unibyte locales, Gawk wants ranges to use the underlying byte
9913 rather than the character code point. This change does not affect
9914 glibc proper.
9915 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
9916 In unibyte locales, use the byte value rather than
9917 running it through btowc.
9918
9919 2018-08-10 Joseph Myers <joseph@codesourcery.com>
9920
9921 * sysdeps/generic/math-tests-snan.h: New file.
9922 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
9923 (SNAN_TESTS_float): Do not define here.
9924 (SNAN_TESTS_double): Likewise.
9925 (SNAN_TESTS_long_double): Likewise.
9926 (SNAN_TESTS_float128): Likewise.
9927 * sysdeps/i386/fpu/math-tests-snan.h: New file.
9928 * sysdeps/i386/fpu/math-tests.h: Remove file.
9929 * sysdeps/ia64/math-tests-snan.h: New file.
9930 * sysdeps/ia64/math-tests.h: Remove file.
9931 * sysdeps/x86/math-tests.h: Likewise.
9932 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
9933
9934 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9935 Szabolcs Nagy <szabolcs.nagy@arm.com>
9936
9937 * math/Makefile: Add s_sincosf_data.c.
9938 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
9939 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
9940 (sincosf_poly): Likewise.
9941 (reduce_small): Likewise.
9942 (reduce_large): Likewise.
9943 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
9944 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
9945 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
9946 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
9947
9948 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
9949 Szabolcs Nagy <szabolcs.nagy@arm.com>
9950
9951 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
9952 (converttoint): Use lround.
9953 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
9954 document the semantics when TOINT_INTRINSICS is set.
9955 (converttoint): Likewise.
9956 (TOINT_RINT): Remove.
9957 (TOINT_SHIFT): Remove.
9958 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
9959 path.
9960
9961 2018-08-10 Florian Weimer <fweimer@redhat.com>
9962
9963 [BZ #23497]
9964 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
9965 function.
9966 (__old_getdents64): Use getdents64. Convert entries without
9967 moving them.
9968 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
9969 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
9970 tst-readdir64-compat.
9971
9972 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9973
9974 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
9975 Fix unwind.
9976
9977 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9978
9979 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
9980 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
9981 code to s390x-mcount.h and #include it.
9982 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
9983 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
9984 (__fentry__): Add.
9985
9986 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9987
9988 * stdlib/Versions: Remove __fentry__.
9989 * sysdeps/i386/Versions: Add __fentry__.
9990 * sysdeps/x86_64/Versions: Add __fentry__.
9991
9992 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
9993
9994 * sysdeps/s390/Makefile: Register the new tests.
9995 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
9996 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
9997 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
9998 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
9999 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10000 * sysdeps/s390/tst-dl-runtime.c: New file.
10001
10002 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10003
10004 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10005 Do not clobber R0.
10006
10007 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10008
10009 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10010 Do not clobber R0.
10011
10012 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10013
10014 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10015 Do not clobber R0.
10016
10017 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10018
10019 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10020 Do not clobber R0.
10021
10022 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10023
10024 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10025 Use symbolic offsets for stack variables.
10026
10027 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10028
10029 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10030 Use symbolic offsets for stack variables.
10031
10032 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10033
10034 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10035 Use symbolic offsets for stack variables.
10036
10037 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10038
10039 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10040 Use symbolic offsets for stack variables.
10041
10042 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10043
10044 * math/gen-libm-test.py: New file.
10045 * math/gen-libm-test.pl: Remove.
10046 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10047 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10048 gen-libm-test.pl.
10049 ($(libm-test-c-noauto-obj)): Likewise.
10050 ($(libm-test-c-auto-obj)): Likewise.
10051 ($(libm-test-c-narrow-obj)): Likewise.
10052 (regen-ulps): Likewise.
10053 * math/README.libm-test: Update references to gen-libm-test.pl.
10054 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10055 referencing gen-libm-test.pl.
10056 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10057 * math/libm-test-support.c: Likewise.
10058 * math/libm-test-support.h: Likewise.
10059 * sysdeps/generic/libm-test-ulps: Likewise.
10060
10061 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10062
10063 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10064 Fix value.
10065
10066 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10067
10068 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10069 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10070
10071 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10072
10073 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10074 symbols.
10075 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10076 __pthread_setspecific): Add hidden proto.
10077 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10078 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10079
10080 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10081
10082 * benchtests/bench-string.h (buf1_size, buf2_size): New
10083 variables.
10084 (init_sizes): New function.
10085 (test_init): Use it.
10086 (alloc_buf, exit_error): New functions.
10087 (alloc_bufs): Use ALLOC_BUF.
10088 (realloc_bufs): Remove.
10089 * benchtests/bench-memcmp.c (do_test): Adjust.
10090 * benchtests/bench-memset-large.c (do_test): Likewise.
10091 * benchtests/bench-memset-walk.c (do_test): Likewise.
10092 * benchtests/bench-memset.c (do_test): Likewise.
10093 * benchtests/bench-strncmp.c (do_test): Likewise.
10094
10095 2018-08-06 Andreas Schwab <schwab@suse.de>
10096
10097 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10098 of CONST_THREAD_AREA.
10099
10100 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10101
10102 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10103 (STATE_SAVE_MASK): Likewise.
10104 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10105 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10106 (STATE_SAVE_MASK): Likewise.
10107 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10108 instead of <cpu-features.h>.
10109
10110 2018-08-03 DJ Delorie <dj@redhat.com>
10111
10112 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10113 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10114
10115 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10116
10117 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10118
10119 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10120 after TEST_* calls.
10121 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10122 * math/libm-test-logb.inc (logb_test_data): Likewise.
10123
10124 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10125
10126 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10127 * string/strstr.c (AVAILABLE): Likewise.
10128
10129 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10130
10131 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10132 <init-arch.h>.
10133 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10134 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10135 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10136
10137 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10138
10139 * po/be.po: Update translation.
10140
10141 * po/be.po: Update translation.
10142
10143 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10144
10145 * sysdeps/x86/cpu-features-offsets.sym
10146 (rtld_global_ro_offsetof): Removed.
10147 (CPU_FEATURES_SIZE): Likewise.
10148 (CPUID_OFFSET): Likewise.
10149 (CPUID_SIZE): Likewise.
10150 (CPUID_EAX_OFFSET): Likewise.
10151 (CPUID_EBX_OFFSET): Likewise.
10152 (CPUID_ECX_OFFSET): Likewise.
10153 (CPUID_EDX_OFFSET): Likewise.
10154 (FAMILY_OFFSET): Likewise.
10155 (MODEL_OFFSET): Likewise.
10156 (FEATURE_OFFSET): Likewise.
10157 (FEATURE_SIZ): Likewise.
10158 (COMMON_CPUID_INDEX_1): Likewise.
10159 (COMMON_CPUID_INDEX_7): Likewise.
10160 (FEATURE_INDEX_1): Likewise.
10161 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10162
10163 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10164
10165 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10166 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10167 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10168 (install-locales): Depend on install-locale-archive.
10169 (install-locale-archive): Define.
10170 (install-locale-files): Define.
10171 (build-one-locale): Define macro.
10172 * manual/install.texi (Running make install): Document.
10173 * manual/INSTALL: Regenerate.
10174
10175 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10176
10177 * benchtests/scripts/compare_strings.py: Import traceback.
10178 (parse_file): Pretty-print error.
10179
10180 * NEWS: Mention the change.
10181 * elf/dl-tunables.list: Rename tune namespace to cpu.
10182 * sysdeps/powerpc/dl-tunables.list: Likewise.
10183 * sysdeps/x86/dl-tunables.list: Likewise.
10184 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10185 cpu.name.
10186 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10187 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10188 * manual/README.tunables: Likewise.
10189 * manual/tunables.texi: Likewise.
10190 * sysdeps/powerpc/cpu-features.c: Likewise.
10191 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10192 (init_cpu_features): Likewise.
10193 * sysdeps/x86/cpu-features.c: Likewise.
10194 * sysdeps/x86/cpu-features.h: Likewise.
10195 * sysdeps/x86/cpu-tunables.c: Likewise.
10196 * sysdeps/x86_64/Makefile: Likewise.
10197 * sysdeps/x86/dl-cet.c: Likewise.
10198
10199 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10200
10201 [BZ #23479]
10202 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10203 [__mips_hard_float].
10204 (FE_UNDERFLOW): Likewise.
10205 (FE_OVERFLOW): Likewise.
10206 (FE_DIVBYZERO): Likewise.
10207 (FE_INVALID): Likewise.
10208 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10209 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10210 (FE_UPWARD): Likewise.
10211 (FE_DOWNWARD): Likewise.
10212 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10213 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10214 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10215 [__mips_hard_float].
10216 (FP_ROUNDMODE): Likewise.
10217 (FP_RND_NEAREST): Likewise.
10218 (FP_RND_ZERO): Likewise.
10219 (FP_RND_PINF): Likewise.
10220 (FP_RND_MINF): Likewise.
10221 (FP_EX_INVALID): Likewise.
10222 (FP_EX_OVERFLOW): Likewise.
10223 (FP_EX_UNDERFLOW): Likewise.
10224 (FP_EX_DIVZERO): Likewise.
10225 (FP_EX_INEXACT): Likewise.
10226 (FP_INIT_ROUNDMODE): Likewise.
10227 * sysdeps/mips/nofpu/fesetenv.c: New file.
10228 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10229
10230 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10231
10232 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10233 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10234 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10235 conditional on [FE_UPWARD].
10236
10237 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10238
10239 regex: fix memory leak in Gnulib
10240 Problem and fix reported by Assaf Gordon in:
10241 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10242 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10243 range_ends members too, as they are defined in 'struct
10244 re_charset_t' even if not _LIBC. This affects only Gnulib.
10245
10246 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10247
10248 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10249 ...
10250 (get_common_indices): This.
10251 (init_cpu_features): Updated.
10252
10253 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10254
10255 * sysdeps/generic/math-tests-snan-payload.h: New file.
10256 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10257 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10258 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10259 * sysdeps/generic/math-tests.h: Include
10260 <math-tests-snan-payload.h>.
10261 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10262 * sysdeps/hppa/math-tests.h: Remove file.
10263 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10264 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10265 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10266 Likewise.
10267
10268 * sysdeps/generic/math-tests-snan-cast.h: New file.
10269 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10270 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10271 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10272 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10273
10274 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10275
10276 * version.h (RELEASE): Set to "development".
10277 (VERSION): Set to "2.28.9000".
10278 * NEWS (2.29): New section.
10279
10280 * version.h (RELEASE): Set to "stable".
10281 (VERSION): Set to "2.28".
10282 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10283 * NEWS: Add the list of bugs fixed in 2.28.
10284
10285 * po/ca.po: Update to latest version.
10286 * po/cs.po: Likewise
10287 * po/da.po: Likewise
10288 * po/el.po: Likewise
10289 * po/eo.po: Likewise
10290 * po/es.po: Likewise
10291 * po/fi.po: Likewise
10292 * po/fr.po: Likewise
10293 * po/gl.po: Likewise
10294 * po/hu.po: Likewise
10295 * po/ia.po: Likewise
10296 * po/id.po: Likewise
10297 * po/it.po: Likewise
10298 * po/ja.po: Likewise
10299 * po/ko.po: Likewise
10300 * po/lt.po: Likewise
10301 * po/nb.po: Likewise
10302 * po/nl.po: Likewise
10303 * po/pt_BR.po: Likewise
10304 * po/ru.po: Likewise
10305 * po/rw.po: Likewise
10306 * po/sk.po: Likewise
10307 * po/sl.po: Likewise
10308 * po/tr.po: Likewise
10309 * po/zh_CN.po: Likewise
10310 * po/zh_TW.po: Likewise
10311
10312 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10313
10314 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10315 initialization...
10316 (init): ... before initializing libpthread.
10317
10318 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10319 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10320 (__mach_setup_tls): ... new function.
10321 (mach_setup_tls): New alias.
10322 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10323 __mach_setup_thread.
10324 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10325 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10326 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10327 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10328
10329 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10330
10331 * manual/install.texi: Update versions.
10332 * INSTALL: Regenerate.
10333
10334 * manual/contrib.texi (Contributors): Update contributions.
10335
10336 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10337
10338 * po/be.po: Update translations.
10339
10340 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10341
10342 * sysdeps/sh/libm-test-ulps: Update.
10343
10344 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10345
10346 * po/bg.po: Update translations.
10347 * po/de.po: Likewise.
10348 * po/hr.po: Likewise.
10349 * po/pt_BR.po: Likewise.
10350 * po/sv.po: Likewise.
10351 * po/vi.po: Likewise.
10352
10353 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10354
10355 [BZ #23467]
10356 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10357 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10358 (CFLAGS-tst-cet-property-1.o): New.
10359 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10360 ($(objpfx)tst-cet-property-2): Likewise.
10361 ($(objpfx)tst-cet-property-2.out): Likewise.
10362 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10363 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10364 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10365 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10366 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10367
10368 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10369
10370 [BZ #23458]
10371 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10372
10373 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10374
10375 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10376 __sbrk): Do not set attribute_hidden.
10377 * sysdeps/mach/hurd/not-errno.h: New file.
10378 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10379 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10380
10381 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10382
10383 * po/uk.po: Update translations.
10384 * po/cs.po: Likewise.
10385 * po/pl.po: Likewise.
10386
10387 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10388
10389 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10390 parse beyond the note end.
10391
10392 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10393
10394 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10395 kernel does not support OFD locks.
10396 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10397
10398 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10399
10400 * sysdeps/mach/hurd/Versions (libc): Make __access and
10401 __access_noerrno external so they can override the ld symbols.
10402 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10403 __writev, __open64, __access_noerrno extern so they can be overrided.
10404 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10405 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10406
10407 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10408
10409 * po/libc.pot: Regenerate.
10410
10411 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10412
10413 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10414
10415 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10416
10417 [BZ #23459]
10418 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10419 function.
10420 (init_cpu_features): Call get_extended_indices for both Intel
10421 and AMD CPUs.
10422 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10423 Remove "for AMD" comment.
10424
10425 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10426
10427 [BZ # 23456]
10428 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10429 COMMON_CPUID_INDEX_80000001.
10430
10431 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10432
10433 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10434 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10435
10436 2018-07-26 Florian Weimer <fweimer@redhat.com>
10437
10438 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10439 aliases for symbols not in the implementation namespace.
10440
10441 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10442
10443 [BZ #23393]
10444 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10445 lowercase in LATIN script.
10446 * localedata/Makefile (test-input): Add en_US.UTF-8.
10447 * localedata/en_US.UTF-8.in: New file.
10448 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10449 and restore old tests.
10450 * posix/tst-regexloc.c (do_test): Add back range expression test.
10451
10452 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10453
10454 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10455
10456 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10457
10458 * nptl/threads.h: Move to ...
10459 * sysdeps/nptl/threads.h: ... here.
10460 * sysdeps/hurd/stdc-predef.h: New file.
10461
10462 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10463
10464 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10465 tst-cet-setcontext-1 if CET is enabled.
10466 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10467 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10468
10469 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10470
10471 * include/threads.h: Move to ...
10472 * sysdeps/nptl/threads.h: ... here.
10473 * sysdeps/htl/threads.h: New file.
10474 * conform/Makefile (linknamespace-libs-ISO11): Use
10475 static-thread-library instead of linking libpthread.
10476 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10477
10478 2018-07-25 Florian Weimer <fweimer@redhat.com>
10479
10480 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10481 nanoseconds into seconds.
10482 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10483 (do_test): Likewise.
10484 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10485 (do_test): Likewise. Avoid nanosecond overflow and spurious
10486 timeouts due to system load.
10487 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10488 (child_wait): Increment it.
10489 (do_test): Wait as long as necessary until all expected threads
10490 have arrived.
10491
10492 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10493 H.J. Lu <hongjiu.lu@intel.com>
10494
10495 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10496 __ssp.
10497 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10498 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10499 (__push___start_context): New.
10500 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10501 <asm/prctl.h>.
10502 (__getcontext): Record the current shadow stack base. Save the
10503 caller's shadow stack pointer and base.
10504 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10505 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10506 (__push___start_context): New prototype.
10507 (__makecontext): Call __push___start_context to allocate a new
10508 shadow stack, push __start_context onto the new stack as well
10509 as the new shadow stack.
10510 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10511 <asm/prctl.h>.
10512 (__setcontext): Restore the target shadow stack.
10513 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10514 <asm/prctl.h>.
10515 (__swapcontext): Record the current shadow stack base. Save
10516 the caller's shadow stack pointer and base. Restore the target
10517 shadow stack.
10518 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10519 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10520 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10521
10522 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10523
10524 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10525 tst-setcontext8 and tst-setcontext9.
10526 * stdlib/tst-setcontext6.c: New file.
10527 * stdlib/tst-setcontext7.c: Likewise.
10528 * stdlib/tst-setcontext8.c: Likewise.
10529 * stdlib/tst-setcontext9.c: Likewise.
10530
10531 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10532
10533 * stdlib/Makefile ((tests): Add tst-setcontext5.
10534 * stdlib/tst-setcontext5.c: New file.
10535
10536 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10537
10538 * stdlib/Makefile (tests): Add tst-setcontext4.
10539 * stdlib/tst-setcontext4.c: New file.
10540
10541 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 * stdlib/Makefile (tests): Add tst-swapcontext1.
10544 * stdlib/tst-swapcontext1.c: New test.
10545
10546 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10547
10548 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10549 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10550 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10551 and tst-cet-legacy-4c.
10552 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10553 and tst-cet-legacy-mod-4.
10554 (CFLAGS-tst-cet-legacy-2.c): New.
10555 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10556 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10557 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10558 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10559 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10560 ($(objpfx)tst-cet-legacy-1): Likewise.
10561 ($(objpfx)tst-cet-legacy-2): Likewise.
10562 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10563 ($(objpfx)tst-cet-legacy-2a): Likewise.
10564 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10565 ($(objpfx)tst-cet-legacy-4): Likewise.
10566 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10567 ($(objpfx)tst-cet-legacy-4a): Likewise.
10568 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10569 (tst-cet-legacy-4a-ENV): Likewise.
10570 ($(objpfx)tst-cet-legacy-4b): Likewise.
10571 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10572 (tst-cet-legacy-4b-ENV): Likewise.
10573 ($(objpfx)tst-cet-legacy-4c): Likewise.
10574 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10575 (tst-cet-legacy-4c-ENV): Likewise.
10576 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10577 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10578 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10579 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10580 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10581 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10582 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10583 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10584 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10585 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10586 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10587
10588 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10589
10590 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10591 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10592 with ssp_base.
10593 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10594 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10595 with ssp_base.
10596
10597 2018-07-25 Andreas Schwab <schwab@suse.de>
10598
10599 [BZ #23442]
10600 * locale/weightwc.h (findidx): Handle the case where usrc is a
10601 prefix of cp but one character too short.
10602
10603 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10604
10605 * NEWS: Add ISO C threads addition.
10606
10607 2018-07-24 Florian Weimer <fweimer@redhat.com>
10608
10609 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10610 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10611 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10612 4.13.
10613
10614 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10615
10616 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10617 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10618 <sys/prctl.h> and <asm/prctl.h>.
10619 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10620 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10621 and <asm/prctl.h>.
10622 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10623 ARCH_CET_LEGACY_BITMAP.
10624 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10625 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10626 * sysdeps/x86/libc-start.c: Include <startup.h>.
10627
10628 2018-07-24 Florian Weimer <fweimer@redhat.com>
10629
10630 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10631 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10632
10633 2018-07-24 Rical Jasan <rj@2c3t.io>
10634 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10635 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10636
10637 [BZ #14092]
10638 * manual/debug.texi: Update adjacent chapter name.
10639 * manual/probes.texi: Likewise.
10640 * manual/threads.texi (ISO C Threads): New section.
10641 (POSIX Threads): Convert to a section.
10642
10643 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10644 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10645
10646 [BZ# 14092]
10647 * nptl/Makefile (tests): Add new test files.
10648 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10649 * nptl/tst-cnd-basic.c: Likewise.
10650 * nptl/tst-cnd-broadcast.c: Likewise.
10651 * nptl/tst-cnd-timedwait.c: Likewise.
10652 * nptl/tst-mtx-basic.c: Likewise.
10653 * nptl/tst-mtx-recursive.c: Likewise.
10654 * nptl/tst-mtx-timedlock.c: Likewise.
10655 * nptl/tst-mtx-trylock.c: Likewise.
10656 * nptl/tst-thrd-basic.c: Likewise.
10657 * nptl/tst-thrd-detach.c: Likewise.
10658 * nptl/tst-thrd-sleep.c: Likewise.
10659 * nptl/tst-tss-basic.c: Likewise.
10660
10661 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10662
10663 [BZ #14092]
10664 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10665 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10666 symbols.
10667 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10668 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10669 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10670 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10671 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10672 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10673 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10674 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10675 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10676 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10677 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10678 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10680 Likewise.
10681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10682 Likewise.
10683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10684 Likewise.
10685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10686 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10687 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10688 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10689 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10690 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10691 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10692 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10693 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10694 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10695 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10696 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10697 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10698 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10699 Likewise.
10700 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10701 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10702 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10703 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10704 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10705 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10706 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10707 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10708 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10709 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10710 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10711 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10712 ikewise.
10713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10715 Likewise.
10716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10717 Likewise.
10718 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10719 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10720 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10721 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10722 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10723 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10724 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10725 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10726
10727 [BZ #14092]
10728 * conform/data/threads.h-data (thread_local): New macro.
10729 (TSS_DTOR_ITERATIONS): Likewise.
10730 (tss_t): New type.
10731 (tss_dtor_t): Likewise.
10732 (tss_create): New function.
10733 (tss_get): Likewise.
10734 (tss_set): Likewise.
10735 (tss_delete): Likewise.
10736 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10737 tss_get, and tss_set objects.
10738 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10739 * nptl/tss_create.c: New file.
10740 * nptl/tss_delete.c: Likewise.
10741 * nptl/tss_get.c: Likewise.
10742 * nptl/tss_set.c: Likewise.
10743 * sysdeps/nptl/threads.h (thread_local): New define.
10744 (TSS_DTOR_ITERATIONS): Likewise.
10745 (tss_t): New typedef.
10746 (tss_dtor_t): Likewise.
10747 (tss_create): New prototype.
10748 (tss_get): Likewise.
10749 (tss_set): Likewise.
10750 (tss_delete): Likewise.
10751
10752 [BZ #14092]
10753 * conform/data/threads.h-data (cnd_t): New type.
10754 (cnd_init): New function.
10755 (cnd_signal): Likewise.
10756 (cnd_broadcast): Likewise.
10757 (cnd_wait): Likewise.
10758 (cnd_timedwait): Likewise.
10759 (cnd_destroy): Likewise.
10760 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10761 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10762 object.
10763 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10764 * nptl/cnd_broadcast.c: New file.
10765 * nptl/cnd_destroy.c: Likewise.
10766 * nptl/cnd_init.c: Likewise.
10767 * nptl/cnd_signal.c: Likewise.
10768 * nptl/cnd_timedwait.c: Likewise.
10769 * nptl/cnd_wait.c: Likewise.
10770 * sysdeps/nptl/threads.h (cnd_t): New type.
10771 (cnd_init): New prototype.
10772 (cnd_signa): Likewise.
10773 (cnd_broadcast): Likewise.
10774 (cnd_wait): Likewise.
10775 (cnd_timedwait): Likewise.
10776 (cnd_destroy): Likewise.
10777
10778 [BZ #14092]
10779 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10780 (once_flag): New type.
10781 (call_once): New function.
10782 * nptl/Makefile (libpthread-routines): Add call_once object.
10783 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10784 * nptl/call_once.c: New file.
10785 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10786 (once_flag): New type.
10787 (call_once): New prototype.
10788
10789 [BZ #14092]
10790 * conform/data/threads.h-data (mtx_plain): New constant.
10791 (mtx_recursive): Likewise.
10792 (mtx_timed): Likewise.
10793 (mtx_t): New type.
10794 (mtx_init): New function.
10795 (mtx_lock): Likewise.
10796 (mtx_timedlock): Likewise.
10797 (mtx_trylock): Likewise.
10798 (mtx_unlock): Likewise.
10799 (mtx_destroy): Likewise.
10800 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10801 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10802 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10803 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10804 * nptl/mtx_destroy.c: New file.
10805 * nptl/mtx_init.c: Likewise.
10806 * nptl/mtx_lock.c: Likewise.
10807 * nptl/mtx_timedlock.c: Likewise.
10808 * nptl/mtx_trylock.c: Likewise.
10809 * nptl/mtx_unlock.c: Likewise.
10810 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10811 (mtx_recursive): Likewise.
10812 (mtx_timed): Likewise.
10813 (mtx_t): New type.
10814 (mtx_init): New prototype.
10815 (mtx_lock): Likewise.
10816 (mtx_timedlock): Likewise.
10817 (mtx_trylock): Likewise.
10818 (mtx_unlock): Likewise.
10819 (mtx_destroy): Likewise.
10820
10821 [BZ #14092]
10822 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10823 (linknamespace-libs-ISO11): Add libpthread.a.
10824 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10825 functions.
10826 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10827 * nptl/Makefile (headers): Add threads.h.
10828 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10829 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10830 thrd_yield.
10831 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10832 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10833 thrd_join, thrd_sleep, and thrd_yield symbols.
10834 * nptl/descr.h (struct pthread): Add c11 field.
10835 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10836 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10837 routine with expected function prototype.
10838 (__pthread_create_2_1): Add C11 threads check based on attribute
10839 value.
10840 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10841 * nptl/thrd_create.c: New file.
10842 * nptl/thrd_current.c: Likewise.
10843 * nptl/thrd_detach.c: Likewise.
10844 * nptl/thrd_equal.c: Likewise.
10845 * nptl/thrd_exit.c: Likewise.
10846 * nptl/thrd_join.c: Likewise.
10847 * nptl/thrd_priv.h: Likewise.
10848 * nptl/thrd_sleep.c: Likewise.
10849 * nptl/thrd_yield.c: Likewise.
10850 * include/threads.h: Likewise.
10851
10852 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10853
10854 * bits/indirect-return.h: New file.
10855 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10856 * sysdeps/x86/bits/indirect-return.h: Likewise.
10857 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10858 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10859 (swapcontext): Add __INDIRECT_RETURN.
10860 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10861 (prepare_test_buffer): Use it.
10862
10863 2018-07-24 Andreas Schwab <schwab@suse.de>
10864
10865 [BZ #23448]
10866 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10867 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10868
10869 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10870
10871 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10872 Redefine if shadow stack is enabled.
10873 (SYSCALL_ERROR_LABEL): Likewise.
10874 (__vfork): Pop shadow stack and jump back to to caller directly
10875 when shadow stack is in use.
10876 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10877 Redefine if shadow stack is enabled.
10878 (SYSCALL_ERROR_LABEL): Likewise.
10879 (__vfork): Pop shadow stack and jump back to to caller directly
10880 when shadow stack is in use.
10881
10882 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10885 enabled.
10886 (foo): Likewise.
10887 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10888 (foo): Likewise.
10889
10890 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10891
10892 * scripts/build-many-glibcs.py (Context.checkout): Default
10893 binutils version to 2.31 branch.
10894
10895 2018-07-20 Zong Li <zong@andestech.com>
10896
10897 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10898 URL of gcc's tarball.
10899
10900 2018-07-20 Florian Weimer <fweimer@redhat.com>
10901
10902 [BZ #23396]
10903 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10904 not compare an extra byte after the end of the weights.
10905
10906 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10907
10908 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
10909 to 1.
10910 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
10911 hidden prototypes.
10912 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
10913 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
10914 * scripts/check-execstack.awk: Consider `xfail' variable containing a
10915 list of libraries whose stack executability is expected.
10916 * elf/Makefile ($(objpfx)check-execstack.out): Pass
10917 $(check-execstack-xfail) to check-execstack.awk through `xfail'
10918 variable.
10919 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
10920 libc.so libpthread.so.
10921
10922 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
10923
10924 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
10925 SOCK_NONBLOCK.
10926 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
10927 and SOCK_NONBLOCK.
10928 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
10929 implement __pipe2.
10930 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
10931
10932 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10933
10934 * benchtests/scripts/compare_bench.py (__main__): use the argparse
10935 library to improve command line parsing.
10936 (__main__): make schema file as optional parameter (--schema),
10937 defaulting to benchtests/scripts/benchout.schema.json.
10938 (main): move out of the parsing stuff to __main_  and leave it
10939 only as caller of main comparison functions.
10940
10941 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
10942
10943 * NEWS: Add a note for Intel CET status.
10944 * manual/install.texi: Likewise.
10945 * INSTALL: Regenerated.
10946
10947 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
10948
10949 [BZ #23140]
10950 * localedata/locales/oc_FR (mon): Rename to...
10951 (alt_mon): This, then update October (typo fix).
10952 (mon): New content (genitive case, month names preceded by
10953 "de" or "d’").
10954
10955 [BZ #23422]
10956 * localedata/locales/oc_FR (abday): Update all items.
10957 (day): Update Wednesday and Saturday (typo fixes).
10958 (abmon): Update all items, except May.
10959 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
10960 (LC_IDENTIFICATION): Bump the revision number and date.
10961 Keep the "category" entries in alphabetic order.
10962 (LC_ADDRESS): Remove no longer needed comment.
10963 (LC_COLLATE): Use “copy "ca_ES"”.
10964 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
10965 "name_mrs".
10966
10967 2018-07-18 Joseph Myers <joseph@codesourcery.com>
10968
10969 * grp/tst_fgetgrent.c: Include <unistd.h>.
10970 (main): Use mkstemp instead of tmpnam.
10971 * io/test-utime.c (main): Likewise.
10972 * posix/annexc.c (macrofile): Change to modifiable array.
10973 (main): Remove macrofile here.
10974 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10975 macrofile here.
10976 (check_header): Do not remove macrofile here.
10977 * posix/bug-getopt1.c: Include <stdlib.h>.
10978 (do_test): Use mkstemp instead of tmpnam.
10979 * posix/bug-getopt2.c: Include <stdlib.h>.
10980 (do_test): Use mkstemp instead of tmpnam.
10981 * posix/bug-getopt3.c: Include <stdlib.h>.
10982 (do_test): Use mkstemp instead of tmpnam.
10983 * posix/bug-getopt4.c: Include <stdlib.h>.
10984 (do_test): Use mkstemp instead of tmpnam.
10985 * posix/bug-getopt5.c: Include <stdlib.h>.
10986 (do_test): Use mkstemp instead of tmpnam.
10987 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
10988 (main): Use mkstemp instead of tmpnam.
10989 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
10990 (main): Use mkstemp instead of tmpnam.
10991 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
10992 (main): use mkstemp instead of tmpnam.
10993 * stdlib/isomac.c (macrofile): Change to modifiable array.
10994 (main): Remove macrofile here.
10995 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
10996 macrofile here.
10997 (check_header): Do not remove macrofile here.
10998
10999 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11000
11001 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11002 glibc.tune.x86_shstk.
11003
11004 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11005
11006 * NEWS: Mention --enable-cet.
11007 * manual/install.texi: Document --enable-cet.
11008 * INSTALL: Regenerated.
11009
11010 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11011
11012 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11013 Add _CET_NOTRACK before indirect jump to jump table.
11014
11015 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11016
11017 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11018 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11019 to jump table.
11020
11021 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11022
11023 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11024 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11025 to jump table.
11026
11027 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11028
11029 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11030 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11031 to jump table.
11032
11033 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11034
11035 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11036 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11037 to jump table.
11038
11039 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11040
11041 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11042 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11043 to jump table.
11044 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11045
11046 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11047
11048 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11049 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11050 to jump table.
11051
11052 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11053
11054 * sysdeps/i386/i686/multiarch/memset-sse2.S
11055 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11056 to jump table.
11057
11058 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11059
11060 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11061 indirect jump to jump table.
11062
11063 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11064
11065 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11066 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11067 to jump table.
11068 (MEMCPY): Likewise.
11069
11070 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11071
11072 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11073 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11074 to jump table.
11075 (MEMCPY): Likewise.
11076
11077 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11080 _CET_NOTRACK before indirect jump to jump table.
11081
11082 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11083
11084 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11085 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11086 to jump table.
11087
11088 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11089
11090 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11091 indirect jump to jump table.
11092
11093 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11094
11095 [BZ #22241]
11096 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11097 (LOCALES): Likewise.
11098 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11099 * localedata/locales/sah_RU: New file.
11100 * localedata/sah_RU.UTF-8.in: New file.
11101
11102 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11103
11104 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11105 "sysdep.h".
11106 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11107 _CET_ENDBR to indirect jump targets and adjust jump destination
11108 for _CET_ENDBR.
11109 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11110 "sysdep.h".
11111 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11112 _CET_ENDBR to indirect jump targets and adjust jump destination
11113 for _CET_ENDBR.
11114 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11115 "sysdep.h".
11116 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11117 _CET_ENDBR to indirect jump targets and adjust jump destination
11118 for _CET_ENDBR.
11119
11120 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11121
11122 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11123 _CET_ENDBR.
11124
11125 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11126
11127 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11128 _CET_ENDBR.
11129 (_dl_tlsdesc_undefweak): Likewise.
11130 (_dl_tlsdesc_dynamic): Likewise.
11131 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11132 (_dl_tlsdesc_resolve_rel): Likewise.
11133 (_dl_tlsdesc_resolve_rela): Likewise.
11134 (_dl_tlsdesc_resolve_hold): Likewise.
11135 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11136 (_dl_tlsdesc_undefweak): Likewise.
11137 (_dl_tlsdesc_dynamic): Likewise.
11138 (_dl_tlsdesc_resolve_rela): Likewise.
11139 (_dl_tlsdesc_resolve_hold): Likewise.
11140
11141 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11142
11143 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11144 (_fini): Likewise.
11145 * sysdeps/x86_64/crti.S (_init): Likewise.
11146 (_fini): Likewise.
11147
11148 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11149
11150 [BZ #23140]
11151 * localedata/locales/os_RU (mon): Rename to...
11152 (alt_mon): This.
11153 (mon): Import from CLDR (genitive case).
11154
11155 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11156
11157 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11158 cet-tunables.h> when CET is enabled.
11159
11160 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11161
11162 [BZ #21598]
11163 * configure.ac: Add --enable-cet.
11164 * configure: Regenerated.
11165 * elf/Makefille (all-built-dso): Add a comment.
11166 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11167 Include <dl-prop.h>.
11168 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11169 segment.
11170 * elf/dl-open.c: Include <dl-prop.h>.
11171 (dl_open_worker): Call _dl_open_check.
11172 * elf/rtld.c: Include <dl-prop.h>.
11173 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11174 _rtld_main_check.
11175 * sysdeps/generic/dl-prop.h: New file.
11176 * sysdeps/i386/dl-cet.c: Likewise.
11177 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11178 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11179 * sysdeps/x86/cet-tunables.h: Likewise.
11180 * sysdeps/x86/check-cet.awk: Likewise.
11181 * sysdeps/x86/configure: Likewise.
11182 * sysdeps/x86/configure.ac: Likewise.
11183 * sysdeps/x86/dl-cet.c: Likewise.
11184 * sysdeps/x86/dl-procruntime.c: Likewise.
11185 * sysdeps/x86/dl-prop.h: Likewise.
11186 * sysdeps/x86/libc-start.h: Likewise.
11187 * sysdeps/x86/link_map.h: Likewise.
11188 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11189 _CET_ENDBR.
11190 (_dl_runtime_profile): Likewise.
11191 (_dl_runtime_resolve_shstk): New.
11192 (_dl_runtime_profile_shstk): Likewise.
11193 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11194 if CET is enabled.
11195 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11196 (CFLAGS-.os): Likewise.
11197 (CFLAGS-.op): Likewise.
11198 (CFLAGS-.oS): Likewise.
11199 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11200 is enabled.
11201 (tests-special): Add $(objpfx)check-cet.out.
11202 (cet-built-dso): New.
11203 (+$(cet-built-dso:=.note)): Likewise.
11204 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11205 ($(objpfx)check-cet.out): New.
11206 (generated): Add check-cet.out.
11207 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11208 <cet-tunables.h>.
11209 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11210 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11211 (init_cpu_features): Call get_cet_status to check CET status
11212 and update dl_x86_feature_1 with CET status. Call
11213 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11214 (set_x86_shstk). Disable and lock CET in libc.a.
11215 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11216 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11217 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11218 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11219 (_CET_ENDBR): Define if not defined.
11220 (ENTRY): Add _CET_ENDBR.
11221 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11222 x86_shstk.
11223 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11224 _CET_ENDBR.
11225 (_dl_runtime_profile): Likewise.
11226
11227 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11228
11229 [BZ #21895]
11230 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11231 restore r2 on longjmp.
11232 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11233 test list.
11234 Added rules to build test tst-setjmp-bug21895-static.
11235 Added module setjmp-bug21895 and rules to build a shared object from it.
11236 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11237 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11238
11239 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11240
11241 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11242 * benchtests/bench-strstr.c: Likewise.
11243 * string/memmem.c (FASTSEARCH): Define.
11244 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11245 Add support for FASTSEARCH.
11246 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11247 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11248 (FASTSEARCH): Define.
11249 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11250 * string/test-strstr.c: Likewise.
11251
11252 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11253
11254 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11255 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11256
11257 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11258 H.J. Lu <hongjiu.lu@intel.com>
11259
11260 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11261 (__longjmp): Restore shadow stack pointer if shadow stack is
11262 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11263 isn't defined for __longjmp_cancel.
11264 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11265 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11266 and SHADOW_STACK_POINTER_OFFSET is defined.
11267 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11268 (setjmp): Save shadow stack pointer if shadow stack is enabled
11269 and SHADOW_STACK_POINTER_OFFSET is defined.
11270 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11271 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11272 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11273 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11274 <jmp_buf-ssp.h>.
11275 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11276 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11277 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11278 Remove jmp_buf-ssp.sym.
11279 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11280 <jmp_buf-ssp.h>.
11281 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11282 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11283 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11284 jmp_buf-ssp.sym.
11285 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11286 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11287 (__longjmp): Restore shadow stack pointer if shadow stack is
11288 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11289 isn't defined for __longjmp_cancel.
11290 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11291 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11292 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11293
11294 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11295
11296 [BZ #22563]
11297 * nptl/pthread_create.c: Include <tls-setup.h>.
11298 (__pthread_create_2_1): Call tls_setup_tcbhead.
11299 * sysdeps/generic/tls-setup.h: New file.
11300 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11301 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11302 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11303 Likewise.
11304 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11305 to feature_1.
11306 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11307 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11308 (X86_FEATURE_1_SHSTK): Likewise.
11309 (CET_ENABLED): Likewise.
11310 (IBT_ENABLED): Likewise.
11311 (SHSTK_ENABLED): Likewise.
11312
11313 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11314
11315 [BZ #23208]
11316 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11317 (LOCALES): Likewise.
11318 * localedata/dsb_DE.UTF-8.in: New file.
11319 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11320
11321 2018-07-12 Florian Weimer <fweimer@redhat.com>
11322
11323 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11324 __mprotect, not mprotect.
11325
11326 2018-07-11 Florian Weimer <fweimer@redhat.com>
11327
11328 * io/Makefile (headers): Add bits/statx.h.
11329
11330 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11331
11332 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11333 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11334 and headers.
11335 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11336 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11337 for utf8_gen.py
11338
11339 2018-07-10 Florian Weimer <fweimer@redhat.com>
11340
11341 * io/Makefile (routines): Add statx.
11342 (tests-internal): Add tst-statx.
11343 * io/Versions (GLIBC_2.28): Export statx.
11344 * io/bits/statx.h: New file.
11345 * io/sys/stat.h [__USE_GNU]: Include it.
11346 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11347 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11348 Define.
11349 * io/statx.c: New file.
11350 * io/statx_generic.: Likewise.
11351 * io/tst-statx.: Likewise.
11352 * include/bits/statx.h: Likewise.
11353 * sysdeps/unix/sysv/linux/kernel-features.h
11354 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11355 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11356 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11357 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11358 Undefine.
11359 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11360 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11361 * sysdeps/unix/sysv/linux/statx.c: New file.
11362 * manual/filesys.texi: Note that statx is undocumented.
11363 * sysdeps/**/libc*.abilist: Update.
11364
11365 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11366
11367 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11368 a kernel issue which lead to test failure in some cases.
11369
11370 2018-07-10 Florian Weimer <fweimer@redhat.com>
11371
11372 [BZ #23036]
11373 * posix/regexec.c (check_node_accept_bytes): When comparing
11374 weights, do not compare an extra byte after the end of the
11375 weights.
11376
11377 2018-07-10 Florian Weimer <fweimer@redhat.com>
11378
11379 * libio/readline.c: Fix copyright year.
11380 * libio/tst-readline.c Likewise.
11381 * nss/tst-nss-files-hosts-getent.c: Likewise.
11382
11383 2018-07-06 Florian Weimer <fweimer@redhat.com>
11384
11385 [BZ #18991]
11386 * nss/nss_files/files-XXX.c (internal_getent): Use
11387 __libc_readline_unlocked. Seek back to the start of the line if
11388 parsing failes with ERANGE.
11389 (get_contents_ret, get_contents): Remove.
11390 * nss/tst-nss-files-hosts-getent.c: New file.
11391 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11392 (tst-nss-files-hosts-getent): Link with -ldl.
11393
11394 2018-07-06 Florian Weimer <fweimer@redhat.com>
11395
11396 * include/stdio.h (__libc_readline_unlocked): Declare.
11397 (__ftello64, __fseeko64): Declare aliases.
11398 * libio/readline.c: New file.
11399 * libio/tst-readline.c: Likewise.
11400 (routines): Add readline.
11401 (tests-internal): Add tst-readlime.
11402 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11403 __libc_readline_unlocked.
11404 * libio/fseeko.c (__fseeko): Rename from fseeko.
11405 (fseeko): Add alias.
11406 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11407 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11408 (fseeko64): Add alias.
11409 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11410 * libio/ftello64.c (__ftello64): Rename from ftello64.
11411 (ftello64): Add alias.
11412
11413 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11414
11415 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11416 HWCAP_ATOMICS.
11417
11418 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11419
11420 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11421 Use dl_hwcap without masking.
11422 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11423 Remove HWCAP_CPUID.
11424
11425 2018-07-06 Florian Weimer <fweimer@redhat.com>
11426
11427 * conform/conformtest.pl (checknamespace): Escape literal braces
11428 in regular expressions.
11429
11430 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11431
11432 * sysdeps/x86/cpu-features.c (get_common_indeces):
11433 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11434 * sysdeps/x86/cpu-features.c (init_cpu_features):
11435 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11436
11437 2018-07-05 Florian Weimer <fweimer@redhat.com>
11438
11439 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11440 protector.
11441 (CFLAGS-elf-init.oS): Likewise.
11442
11443 2018-07-05 Florian Weimer <fweimer@redhat.com>
11444 Carlos O'Donell <carlos@redhat.com>
11445
11446 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11447 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11448 with stack protector enabled because there is no risk of infinite
11449 recursion.
11450
11451 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11452
11453 [BZ #19818]
11454 [BZ #23307]
11455 * libc-abis (ABSOLUTE): New ABI.
11456 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11457 * NEWS: Mention the new ABI.
11458
11459 2018-07-05 Florian Weimer <fweimer@redhat.com>
11460
11461 [BZ # 17662]
11462 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11463 (RENAME_WHITEOUT): Define.
11464 [__USE_GNU] (renameat2): Declare.
11465 * stdio-common/Makefile (routines): Add renameat2.
11466 (tests): Add tst-renameat2.
11467 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11468 * stdio-common/renameat2.c: New file.
11469 * stdio-common/tst-renameat2.c: Likewise.
11470 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11471 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11472 undocumented.
11473 * sysdeps/unix/sysv/linux/kernel-features.h
11474 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11475 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11476 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11477 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11478 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11479 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11480 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11481 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11482 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11483 * include/stdio.h (__renameat): Add alias for renameat.
11484 * stdio-common/renameat.c (__renameat): Rename from renameat.
11485 Add hidden definition and alias.
11486 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11487 * sysdeps/mach/hurd/renameat.c: Likewise.
11488 * sysdeps/**/libc*.abilist: Add renameat2.
11489
11490 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11491
11492 * posix/bug-regex33.c: Fix build after regex sync.
11493
11494 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11495
11496 [BZ #23164]
11497 * localedata/tst-langinfo-setlocale.c: New file.
11498 * localedata/tst-langinfo-setlocale-static.c: New file.
11499 * localedata/tst-langinfo-newlocale.c: New file.
11500 * localedata/tst-langinfo-newlocale-static.c: New file.
11501 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11502 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11503 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11504 (tests-static): Remove tst-langinfo-static. Add
11505 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11506 (tests-special): Remove $(objpfx)tst-langinfo.out,
11507 $(objpfx)tst-langinfo-static.out. Add
11508 $(objpfx)tst-langinfo-setlocale.out,
11509 $(objpfx)tst-langinfo-newlocale.out,
11510 $(objpfx)tst-langinfo-setlocale-static.out,
11511 $(objpfx)tst-langinfo-newlocale-static.out.
11512 ($(objpfx)tst-langinfo.out): Remove.
11513 ($(objpfx)tst-langinfo-static.out): Remove.
11514 ($(objpfx)tst-langinfo-newlocale.out): New target.
11515 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11516 (test-xfail-tst-langinfo-newlocale-static): Add.
11517 ($(objpfx)tst-langinfo-setlocale.out): New target.
11518 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11519 * localedata/tst-langinfo.c: Call test_locale.
11520 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11521 data.
11522
11523 2018-07-04 Florian Weimer <fweimer@redhat.com>
11524
11525 testrun.sh: Implement --tool=strace, --tool=valgrind
11526 * Makefile (testrun-script): Define variable.
11527 (testrun.sh): Use variable.
11528 * manual/install.texi (Tools for Compilation): make 4.0 or later
11529 is required.
11530 * configure.ac: Check for make 4.0 or later.
11531 * INSTALL: Regenerate.
11532 * configure: Likewise.
11533
11534 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11535
11536 [BZ #23233]
11537 [BZ #21163]
11538 [BZ #18986]
11539 [BZ #13762]
11540 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11541 * posix/PCRE.tests: Remove invalid test.
11542 * posix/bug-regex28.c: Fix expected values for used syntax.
11543 * posix/bug-regex37.c: New file.
11544 * posix/bug-regex38.c: Likewise.
11545 * posix/regcomp.c: Sync with gnulib.
11546 * posix/regex.c: Likewise.
11547 * posix/regex.h: Likewise.
11548 * posix/regex_internal.c: Likewise.
11549 * posix/regex_internal.h: Likewise.
11550 * posix/regexec.c: Likewise.
11551
11552 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11553
11554 [BZ #23308]
11555 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11556 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11557 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11558 * localedata/unicode-gen/PropList.txt: likewise.
11559 * localedata/unicode-gen/UnicodeData.txt: likewise.
11560 * localedata/charmaps/UTF-8: Regenerate.
11561 * localedata/locales/i18n_ctype: likewise.
11562 * localedata/locales/tr_TR: likewise.
11563 * localedata/locales/translit_circle: likewise.
11564 * localedata/locales/translit_cjk_compat: likewise.
11565 * localedata/locales/translit_combining: likewise.
11566 * localedata/locales/translit_compat: likewise.
11567 * localedata/locales/translit_font: likewise.
11568 * localedata/locales/translit_fraction: likewise.
11569
11570 2018-07-03 Florian Weimer <fweimer@redhat.com>
11571
11572 [BZ #23363]
11573 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11574 * stdio-common/tst-printf.sh: Adjust expected output.
11575 * LICENSES: Update.
11576
11577 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11578
11579 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11580 symbol.
11581
11582 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11583
11584 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11585 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11586 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11587 * stdio-common/tst-printfsz-islongdouble.c: New file.
11588 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11589 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11590 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11591 [subdir == stdio-common] (tests-internal): Add
11592 test-printf-size-ieee128, and test-printf-size-ibm128.
11593 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11594 (CFLAGS-test-printf-size-ibm128.c): New variables.
11595 [subdir == stdio-common] (tests-special): Add
11596 $(objpfx)test-printf-size-ieee128.out and
11597 $(objpfx)test-printf-size-ibm128.out.
11598 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11599 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11600 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11601 __printf_sizeieee128.
11602 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11603 New file.
11604 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11605 Likewise.
11606 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11607 Likewise.
11608
11609 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11610
11611 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11612 (exp2f_inline): Likewise.
11613 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11614 (__math_uflowf): Likewise.
11615 (__math_may_uflowf): Likewise.
11616 (__math_divzerof): Likewise.
11617 (__math_invalidf): Likewise.
11618 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11619 (__math_oflowf): Likewise.
11620 (__math_uflowf): Likewise.
11621 (__math_may_uflowf): Likewise.
11622 (__math_divzerof): Likewise.
11623 (__math_invalidf): Likewise.
11624
11625 2018-06-29 DJ Delorie <dj@redhat.com>
11626 Carlos O'Donell <carlos@redhat.com>
11627
11628 [BZ #23329]
11629 * include/libc-symbols.h: Comment the freeres framework.
11630 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11631 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11632 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11633 * dlfcn/dlerror.c: Include libc-symbols.h
11634 (__dlerror_main_freeres): New function.
11635 * dlfcn/dlfreeres.c: New file.
11636 * dlfcn/sdlfreeres.c: New file.
11637 * include/dlfcn.h: Declare __dlerror_main_freeres.
11638 * malloc/set-freeres.c: Declare __libdl_freeres, and
11639 __libpthread_freeres.
11640 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11641 the releavant libraries are loaded.
11642 * malloc/thread-freeres.c: Add comments.
11643 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11644 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11645 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11646 (__free_stacks): Rename to...
11647 (free_stacks): ...this. Mark static.
11648 (queue_stack): Call free_stacks.
11649 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11650 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11651 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11652 ptr_freeres element from struct.
11653 (pthread_functions): Remove .ptr_freeres from struct initializer.
11654 [SHARED] (nptl_freeres): Remove.
11655 * nptl/nptlfreeres.c: New file.
11656 * nptl/pthreadP.h
11657 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11658 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11659 attribute_hidden.
11660 (__free_stacks): Rename to...
11661 (__nptl_stacks_freeres): ...this.
11662 (__shm_directory_freeres): Declare.
11663 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11664 (__nptl_unwind_freeres): ...this.
11665 * resolv/res-close.c: Add comment.
11666 * resolv/resolv_conf.c: Include libc-symbols.h.
11667 * string/strerror_l.c: Include libc-symbols.h.
11668 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11669 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11670 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11671 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11672
11673 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11674
11675 * stdlib/tst-strfmon_l.c: Add tests for long double.
11676
11677 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11678
11679 [BZ #23208]
11680 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11681 * localedata/locales/dsb_DE: New file.
11682
11683 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11684
11685 [BZ #23140]
11686 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11687 genitive case).
11688 (alt_mon): New entry, import from CLDR (nominative case).
11689
11690 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11691
11692 [BZ #22996]
11693 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11694
11695 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11696
11697 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11698 Use vector registers.
11699
11700 * sysdeps/aarch64/multiarch/memmove_falkor.S
11701 (__memcpy_falkor): Use vector registers.
11702
11703 2018-06-29 Martin Sebor <msebor@redhat.com>
11704
11705 * manual/stdio.texi (Customizing Printf): Mention interaction
11706 with GCC built-ins.
11707
11708 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11709
11710 [BZ #23307]
11711 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11712 `st_value' is 0 if `st_shndx' is SHN_ABS.
11713 * elf/tst-absolute-zero.c: New file.
11714 * elf/tst-absolute-zero-lib.c: New file.
11715 * elf/tst-absolute-zero-lib.lds: New file.
11716 * elf/Makefile (tests): Add `tst-absolute-zero'.
11717 (modules-names): Add `tst-absolute-zero-lib'.
11718 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11719 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11720 ($(objpfx)tst-absolute-zero: New dependency.
11721
11722 2018-06-29 Zack Weinberg <zackw@panix.com>
11723
11724 * configure.ac: New command-line option --disable-crypt.
11725 Force --disable-nss-crypt when --disable-crypt is given, with a
11726 warning if it was explicitly enabled.
11727 * configure: Regenerate.
11728 * config.make.in: New boolean substitution variable $(build-crypt).
11729 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11730 when $(build-crypt).
11731 * manual/install.texi: Document --disable-crypt.
11732 * INSTALL: Regenerate.
11733
11734 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11735 which is never set.
11736 * conform/Makefile: Only include libcrypt.a in
11737 linknamespace-libs-xsi and linknamespace-libs-XPG4
11738 when $(build-crypt).
11739 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11740 USE_CRYPT to 1 when $(build-crypt).
11741 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11742 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11743 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11744
11745 2018-06-29 Zack Weinberg <zackw@panix.com>
11746
11747 * crypt/crypt.h, posix/unistd.h: Update comments and
11748 prototypes for crypt and crypt_r.
11749
11750 * manual/crypt.texi (Cryptographic Functions): New initial
11751 exposition.
11752 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11753 (Unpredictable Bytes): Improve initial exposition. Clarify error
11754 behavior of getentropy and getrandom.
11755 * manual/examples/genpass.c: Generate a salt using getentropy
11756 instead of the current time. Use hash $5$ (SHA-2-256).
11757 * manual/examples/testpass.c: Demonstrate validation against
11758 hashes generated with three different one-way functions.
11759
11760 * manual/intro.texi: crypt.texi does not need an overview
11761 anymore.
11762
11763 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11764 * manual/terminal.texi: Consistently refer to "passphrases"
11765 * instead of "passwords", and to the "user database" instead
11766 * of the "password database".
11767 * manual/users.texi: Similarly. Add notes about how actual
11768 passphrase hashes are now stored in the shadow database.
11769 Remove 20-year-old junk todo note.
11770
11771 2018-06-29 Zack Weinberg <zackw@panix.com>
11772
11773 * manual/crypt.texi: Use a normal top-level @node declaration.
11774 Move most of the introductory text to the 'crypt' section.
11775 Move the example programs below the @deftypefun for 'crypt_r'.
11776 Move the 'getpass' section...
11777 * manual/terminal.texi: ...here.
11778
11779 2018-06-29 Zack Weinberg <zackw@panix.com>
11780 Florian Weimer <fweimer@redhat.com>
11781
11782 * posix/unistd.h: Do not declare encrypt.
11783 (_XOPEN_CRYPT): Remove macro definition.
11784 (crypt): Declare only for _USE_MISC.
11785 * stdlib/stdlib.h: Do not declare setkey.
11786 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11787 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11788
11789 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11790 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11791 into compat symbols. Don't define initial_perm if it's not
11792 going to be used.
11793 * crypt/cert.c: Link explicitly with the expected versions for
11794 setkey and encrypt. If they are not available at all, mark
11795 the test as unsupported.
11796
11797 * sunrpc/des_crypt.c: Unconditionally block linkage with
11798 cbc_crypt and ecb_crypt for new binaries.
11799 * sunrpc/des_soft.c: Unconditionally block linkage with
11800 des_setparity for new binaries.
11801
11802 * manual/crypt.texi: Remove the entire "DES Encryption"
11803 section. Also remove the paragraph talking about FIPS 140-2
11804 from the introduction.
11805 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11806 of libgcrypt for "real" encryption, not DES.
11807 * manual/conf.texi (Constants for Sysconf): Mention that
11808 _XOPEN_CRYPT is no longer impelemented.
11809
11810 * conform/data/unistd.h-data: Remove crypt function declaration.
11811
11812 2018-06-29 Florian Weimer <fweimer@redhat.com>
11813
11814 [BZ #23351]
11815 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11816 (disallow_malloc_check): Remove variable.
11817 (__malloc_check_init): Adjust.
11818 (malloc_set_state): Update comment.
11819 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11820 declarations.
11821
11822 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11823
11824 [BZ #23140]
11825 * localedata/locales/ast_ES (mon): Rename to...
11826 (alt_mon): This.
11827 (mon): Import from CLDR (genitive case).
11828
11829 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11830 Jakub Sitnicki <jkbs@redhat.com>
11831
11832 [BZ #21812]
11833 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11834 on NLM_F_DUMP_INTR.
11835
11836 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11837
11838 * manual/llio.texi: Remove spurious space.
11839
11840 2018-06-28 Florian Weimer <fweimer@redhat.com>
11841
11842 [BZ #23349]
11843 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11844 _STRUCT_TIMESPEC.
11845
11846 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11847
11848 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11849 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11850 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11851 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11852 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11853 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11854 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11855
11856 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11857
11858 [BZ #23266]
11859 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11860 Copy and null-terminate entries that are not terminated, in
11861 addition to empty ones.
11862
11863 2018-06-27 Florian Weimer <fweimer@redhat.com>
11864
11865 [BZ #18023]
11866 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11867 (extend_alloca_account): Remove.
11868 * manual/stdio.texi (Variable Arguments Output): Update comment.
11869
11870 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11871
11872 * nptl/sockperf.c: Remove file.
11873
11874 2018-06-27 Florian Weimer <fweimer@redhat.com>
11875
11876 [BZ #18023]
11877 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11878 scratch_buffer instead of extend_alloca.
11879
11880 2018-06-27 Florian Weimer <fweimer@redhat.com>
11881
11882 [BZ #18023]
11883 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11884 scratch_buffer instead of extend_alloca. Update comments.
11885
11886 2018-06-27 Florian Weimer <fweimer@redhat.com>
11887
11888 [BZ #18023]
11889 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11890 instead of extend_alloca.
11891
11892 2018-06-26 Joseph Myers <joseph@codesourcery.com>
11893
11894 [BZ #13888]
11895 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11896 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11897 /tmp.
11898 * scripts/test-installation.pl: Put temporary files in build
11899 directory, not /tmp.
11900 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11901 (CFLAGS-bug4.c): Likewise.
11902 (CFLAGS-bug5.c): Likewise.
11903 (CFLAGS-test-fseek.c): Likewise.
11904 (CFLAGS-test-popen.c): Likewise.
11905 (CFLAGS-test_rdwr.c): Likewise.
11906 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11907 /tmp.
11908 * stdio-common/bug4.c (main): Likewise.
11909 * stdio-common/bug5.c (main): Likewise.
11910 * stdio-common/test-fseek.c (TESTFILE): Likewise.
11911 * stdio-common/test-popen.c (do_test): Likewise.
11912 * stdio-common/test_rdwr.c (main): Likewise.
11913
11914 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
11915
11916 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
11917 (sem_open): Set sem.newsem.pad to zero for valgrind.
11918
11919 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11920
11921 [BZ #20251]
11922 * NEWS: Mention fcntl64 addition.
11923 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
11924 * login/utmp_file.c: Likewise.
11925 * sysdeps/posix/fdopendir.c: Likewise.
11926 * sysdeps/posix/opendir.c: Likewise.
11927 * sysdeps/unix/pt-fcntl.c: Likewise.
11928 * include/fcntl.h (__libc_fcntl64, __fcntl64,
11929 __fcntl64_nocancel_adjusted): New prototype.
11930 (__fcntl_nocancel_adjusted): Remove prototype.
11931 * io/Makefile (routines): Add fcntl64.
11932 (CFLAGS-fcntl64.c): New rule.
11933 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
11934 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
11935 * io/fcntl.h (fcntl64): Add prototype and redirect if
11936 __USE_FILE_OFFSET64 is defined.
11937 * io/fcntl64.c: New file.
11938 * manual/llio.text: Add a note for which commands fcntl acts a
11939 cancellation point.
11940 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
11941 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
11942 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
11943 New symbols.
11944 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
11945 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
11946 non-LFS case.
11947 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
11948 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
11949 to __fcntl64_nocancel.
11950 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
11951 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
11952 to __fcntl64_nocancel.
11953 * sysdeps/generic/not-cancel.h: Likewise.
11954 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
11955 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
11956 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11957 (fcntl64): New symbol.
11958 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
11969 fcntl64): Likewise.
11970 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
11972 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11980 Likewise.
11981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11982 Likewise.
11983 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11986
11987 2018-06-26 Florian Weimer <fweimer@redhat.com>
11988
11989 Run thread shutdown functions in an explicit order.
11990 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
11991 definition.
11992 (__libc_thread_freeres): Call thread shutdown functions
11993 explicitly.
11994 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
11995 * include/string.h (__strerror_thread_freeres): Declare.
11996 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
11997 arena_thread_freeres. No longer static. Remove thread shutdown
11998 hook registration.
11999 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12000 Declare.
12001 * resolv/res-close.c (__res_thread_freeres): Renamed from
12002 res_thread_freeres. No longer static. Remove thread shutdown
12003 hook registration.
12004 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12005 * resolv/resolv_conf.c (freeres): Remove incorrect section
12006 attribute and use libc_freeres_fn.
12007 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12008 strerror_thread_freeres. No longer static. Remove thread
12009 shutdown hook registration.
12010 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12011 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12012 shutdown hook registration.
12013 * Makerules (shlib.lds): Do not provide section boundary symbols
12014 for __libc_thread_subfreeres.
12015 * manual/memory.texi (Basic Allocation): Update comment.
12016
12017 2018-06-26 Florian Weimer <fweimer@redhat.com>
12018
12019 Remove always-defined _RPC_THREAD_SAFE_ macro.
12020 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12021 Do not define _RPC_THREAD_SAFE_.
12022 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12023 conditional.
12024 * sunrpc/clnt_perr.c: Likewise.
12025 * sunrpc/clnt_raw.c: Likewise.
12026 * sunrpc/clnt_simp.c: Likewise.
12027 * sunrpc/key_call.c: Likewise.
12028 * sunrpc/rpc_common.c: Likewise.
12029 * sunrpc/rpc_main.c: Likewise.
12030 * sunrpc/rpc_thread.c: Likewise.
12031 * sunrpc/svc.c: Likewise.
12032 * sunrpc/svc_raw.c: Likewise.
12033 * sunrpc/svc_simple.c: Likewise.
12034 * sumrpc/svcauth_des.c: Likewise.
12035
12036 2018-06-26 Florian Weimer <fweimer@redhat.com>
12037
12038 * libio/Makefile (tests-internal): Add tst-vtables,
12039 tst-vtables-interposed.
12040 * libio/tst-vtables.c: New file.
12041 * libio/tst-vtables-common.c: Likewise.
12042 * libio/tst-vtables-interposed.c: Likewise.
12043
12044 2018-06-26 Florian Weimer <fweimer@redhat.com>
12045
12046 * support/support_test_main.c (support_test_main): Only call
12047 setvbuf if not disables.
12048 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12049 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12050
12051 2018-06-26 Florian Weimer <fweimer@redhat.com>
12052
12053 [BZ #23313]
12054 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12055
12056 2018-06-25 Florian Weimer <fweimer@redhat.com>
12057
12058 [BZ #18023]
12059 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12060 Use struct scratch_buffer instead of extend_alloca.
12061
12062 2018-06-25 Florian Weimer <fweimer@redhat.com>
12063
12064 [BZ #18023]
12065 * nss/getent.c (initgroups_keys): Use dynarray instead of
12066 extend_alloca.
12067
12068 2018-06-25 Florian Weimer <fweimer@redhat.com>
12069
12070 [BZ #18023]
12071 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12072 Use struct scratch_buffer instead of extend_alloca.
12073
12074 2018-06-25 Florian Weimer <fweimer@redhat.com>
12075
12076 [BZ #18023]
12077 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12078 back to malloc directly, without stack allocations.
12079
12080 2018-06-25 Florian Weimer <fweimer@redhat.com>
12081
12082 [BZ #18023]
12083 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12084 of extend_alloca.
12085
12086 2018-06-25 Florian Weimer <fweimer@redhat.com>
12087
12088 [BZ #18023]
12089 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12090 of extend_alloca.
12091 * nscd/hstcache.c (addhstbyX): Likewise.
12092 * nscd/pwdcache.c (addpwbyX): Likewise.
12093 * nscd/servicescache.c (addservbyX): Likewise.
12094
12095 2018-06-25 Florian Weimer <fweimer@redhat.com>
12096
12097 [BZ #18023]
12098 * nscd/connections.c (read_cmdline): New function.
12099 (restart): Use it. Update comment.
12100
12101 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12102
12103 [BZ #23140]
12104 * localedata/locales/csb_PL (mon): Rename to...
12105 (alt_mon): This.
12106 (abmon): Rename to...
12107 (ab_alt_mon): This.
12108 (mon): Add with proper genitive forms, copy from Wikipedia.
12109 (abmon): Likewise.
12110
12111 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12112
12113 [BZ #19485]
12114 * localedata/locales/csb_PL (mon): Fix typos:
12115 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12116 (yesstr): Add, value is "jo".
12117 (nostr): Add, value is "nié".
12118
12119 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12120
12121 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12122 all log1p and significand functions on m680x0.
12123 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12124 of s_significand.c..
12125 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12126 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12127 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12128 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12129 s_log1p.c and include it..
12130
12131 2018-06-21 Vincent Chen <vincentc@andestech.com>
12132
12133 * elf/elf.h (R_NDS32_NONE): New define.
12134 (R_NDS32_32_RELA): Likewise.
12135 (R_NDS32_COPY): Likewise.
12136 (R_NDS32_GLOB_DAT): Likewise.
12137 (R_NDS32_JUMP_SLOT): Likewise.
12138 (R_NDS32_RELATIVE): Likewise.
12139 (R_NDS32_TLS_TPOFF): Likewise.
12140 (R_NDS32_TLS_DESC): Likewise.
12141
12142 2018-06-21 Mark Wielaard <mark@klomp.org>
12143
12144 * elf/elf.h (R_BPF_MAP_FD): Removed.
12145 (R_BPF_64_64, R_BPF_64_32): New.
12146
12147 2018-06-21 Florian Weimer <fweimer@redhat.com>
12148
12149 [BZ #23253]
12150 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12151 Renamed from libc_feholdsetround_ctx.
12152 (default_libc_feresetround_ctx): Renamed from
12153 libc_feresetround_ctx.
12154 (default_libc_feholdsetround_noex_ctx): Renamed from
12155 libc_feholdsetround_noex_ctx.
12156 (default_libc_feresetround_noex_ctx): Renamed from
12157 libc_feresetround_noex_ctx.
12158 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12159 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12160 forwardning to the old implementations under the new names.
12161 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12162 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12163 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12164 (libc_feresetround_ctx): Forward to default implements for i386
12165 and MATH_SET_BOTH_ROUNDING_MODES.
12166 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12167 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12168
12169 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12170
12171 * string/tst-cmp.c: Include <libc-diag.h>.
12172 (strncmp_max): Disable -Wstringop-overflow= around call to
12173 strncmp.
12174 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12175 strncasecmp.
12176
12177 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12178 (main): Disable -Wunused-value around call to strpbrk.
12179 * string/bug-strspn1.c: Include <libc-diag.h>.
12180 (main): Disable -Wunused-value around call to strspn.
12181
12182 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12183 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12184
12185 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12186 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12187
12188 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12189
12190 * math/Makefile (libm-calls): Move s_significandF to...
12191 (gen-libm-calls): ... here.
12192 * math/s_significand_template.c: New file.
12193 * math/s_significand.c: Removed.
12194 * math/s_significandf.c: Removed.
12195 * math/s_significandl.c: Removed.
12196 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12197 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12198
12199 * math/e_exp2_template.c (declare_mgen_finite_alias,
12200 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12201 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12202 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12203
12204 2018-06-20 Florian Weimer <fweimer@redhat.com>
12205
12206 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12207
12208 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12209
12210 [BZ #23280]
12211 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12212 floating-point number to strtod functions rather than possibly
12213 negating result of those functions.
12214 * stdio-common/tst-scanf-round.c: New file.
12215 * stdio-common/Makefile (tests): Add tst-scanf-round.
12216 ($(objpfx)tst-scanf-round): Depend on $(libm).
12217
12218 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12219
12220 * sysdeps/mach/hurd/localplt.data: Move to...
12221 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12222 R_386_GLOB_DAT like on Linux i386.
12223
12224 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12225
12226 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12227 (SHM_STAT_ANY): New macro.
12228 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12229 (SHM_STAT_ANY): Likewise.
12230 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12231 (SHM_STAT_ANY): Likewise.
12232 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12233 (SHM_STAT_ANY): Likewise.
12234 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12235 (SHM_STAT_ANY): Likewise.
12236 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12237 (SHM_STAT_ANY): Likewise.
12238 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12239 (SHM_STAT_ANY): Likewise.
12240 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12241 (SHM_STAT_ANY): Likewise.
12242 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12243 (SHM_STAT_ANY): Likewise.
12244 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12245 (SHM_STAT_ANY): Likewise.
12246 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12247 (SHM_STAT_ANY): Likewise.
12248 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12249 (SHM_STAT_ANY): Likewise.
12250
12251 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12252 (SEM_STAT_ANY): New macro.
12253 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12254 (SEM_STAT_ANY): Likewise.
12255 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12256 (SEM_STAT_ANY): Likewise.
12257 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12258 (SEM_STAT_ANY): Likewise.
12259 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12260 (SEM_STAT_ANY): Likewise.
12261 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12262 (SEM_STAT_ANY): Likewise.
12263 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12264 (SEM_STAT_ANY): Likewise.
12265 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12266 (SEM_STAT_ANY): Likewise.
12267 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12268 (SEM_STAT_ANY): Likewise.
12269 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12270 (SEM_STAT_ANY): Likewise.
12271
12272 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12273 (MSG_STAT_ANY): New macro.
12274 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12275 (MSG_STAT_ANY): Likewise.
12276 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12277 (MSG_STAT_ANY): Likewise.
12278 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12279 (MSG_STAT_ANY): Likewise.
12280 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12281 (MSG_STAT_ANY): Likewise.
12282 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12283 (MSG_STAT_ANY): Likewise.
12284 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12285 (MSG_STAT_ANY): Likewise.
12286 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12287 (MSG_STAT_ANY): Likewise.
12288 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12289 (MSG_STAT_ANY): Likewise.
12290 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12291 (MSG_STAT_ANY): Likewise.
12292
12293 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12294 (MAP_TYPE): Change value to 0x2b.
12295
12296 2018-06-18 Florian Weimer <fweimer@redhat.com>
12297
12298 [BZ #15722]
12299 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12300 socket with SOCK_CLOEXEC.
12301
12302 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12303
12304 [BZ #23303]
12305 * sysdeps/powerpc/powerpc64/le/Makefile
12306 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12307 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12308 (gnulib-tests): Also add $(f128-loader-link) for
12309 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12310
12311 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12312
12313 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12314 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12315 of sendfile.
12316 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12317 (sendfile64): New strong alias.
12318 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12319 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12320 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12321 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12322 attribute.
12323 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12324 ___pthread_get_cleanup_stack.
12325 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12326 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12327 * mach/shortcut.awk: Make syscall stubs include
12328 <mach-shortcuts-hidden.h> and add hidden definition.
12329 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12330 (__mach_msg): Add hidden prototype.
12331 * mach/msg.c: Include <mach.h>.
12332 (__mach_msg): Add hidden definition.
12333 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12334 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12335 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12336 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12337 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12338 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12339 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12340 prototype and definition.
12341 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12342 hidden target for _hurd_self_sigstate.
12343
12344 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12345
12346 [BZ #23007]
12347 * stdlib/tst-strtod-nan-sign-main.c: New file.
12348 * stdlib/tst-strtod-nan-sign.c: Likewise.
12349 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12350 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12351 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12352 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12353 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12354
12355 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12356
12357 [BZ #23007]
12358 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12359 appropriate sign.
12360
12361 2018-06-14 Florian Weimer <fweimer@redhat.com>
12362
12363 [BZ #23290]
12364 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12365 that the result stays within the ISO-8859-1 range.
12366 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12367 characters are defined in IBM273.
12368
12369 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12370
12371 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12372 __mach_task_self): Remove attribute_hidden.
12373
12374 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12375
12376 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12377 ignore -Wrestrict for one test.
12378
12379 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12380 Szabolcs Nagy <szabolcs.nagy@arm.com>
12381
12382 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12383
12384 2018-06-14 Florian Weimer <fweimer@redhat.com>
12385
12386 * scripts/update-abilist.sh: Accept empty list of files to patch.
12387
12388 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12389
12390 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12391 test-xfail-check-abi-libmachuser): Add.
12392 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12393 __libc_read and __libc_write to __read and __write.
12394 * sysdeps/hurd/include/hurd/port.h: New file.
12395 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12396 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12397 __thread_switch, __evc_wait): Move declarations to...
12398 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12399 attribute_hidden.
12400 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12401 use PLT to call _hurd_self_sigstate.
12402
12403 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12404
12405 [BZ #23279]
12406 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12407 MAX_EXP as overflowing.
12408 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12409 overflow flag.
12410 (round_str): Output also whether result overflows in each rounding
12411 mode.
12412 * stdlib/tst-strtod-round-data: Add more tests.
12413 * stdlib/tst-strtod-round-data.h: Regenerated.
12414 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12415 (TEST): Handle extra arguments for overflow flags.
12416 (struct test_overflow): New type.
12417 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12418 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12419 (test_in_one_mode): Take argument with overflow information.
12420 (do_test): Update calls to test_in_one_mode.
12421
12422 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12423
12424 * elf/dl-load (_dl_dst_substitute): Correct comment.
12425 (_dl_dst_count): Likewise.
12426
12427 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12428 lll_futex_timed_wait.
12429
12430 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12431
12432 [BZ #23277]
12433 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12434 attribute.
12435 * math/test-nan-const.c: New file.
12436 * math/Makefile (tests): Add test-nan-const.
12437 (CFLAGS-test-nan-const.c): New variable.
12438
12439 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12440
12441 * benchtests/scripts/compare_strings.py (process_results): Add
12442 funcs argument. Compare only functions which are selected.
12443 (main): Check if base function is among selected functions.
12444 Pass selected functions to process_results.
12445 (__main__): Add -f/--functions argument.
12446
12447 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12448 Hongbo Zhang <hongbo.zhang@linaro.org>
12449
12450 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12451 __memcpy_falkor for phecda core.
12452 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12453 __memmove_falkor for phecda core.
12454 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12455 __memset_falkor for phecda core.
12456 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12457 for phecda core.
12458 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12459 macro to identify phecda core.
12460
12461 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12462 Andreas Schwab <schwab@suse.de>
12463 Dmitry V. Levin <ldv@altlinux.org>
12464 Florian Weimer <fweimer@redhat.com>
12465
12466 [BZ #23102]
12467 [BZ #21942]
12468 [BZ #18018]
12469 [BZ #23259]
12470 CVE-2011-0536
12471 * elf/dl-dst.h: Remove DL_DST_COUNT.
12472 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12473 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12474 (is_dst): Comment. Support ELF gABI.
12475 (_dl_dst_count): Comment. Simplify and count DSTs.
12476 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12477 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12478 locals.
12479
12480 2018-06-12 Zack Weinberg <zackw@panix.com>
12481
12482 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12483 * sysdeps/unix/sysv/linux/dl-sysdep.c
12484 Include not-cancel.h. Use __close_nocancel instead of __close,
12485 __open64_nocancel instead of __open, __read_nocancel instead of
12486 __libc_read, and __write_nocancel instead of __libc_write.
12487
12488 * csu/check_fds.c (check_one_fd)
12489 * sysdeps/posix/fdopendir.c (__fdopendir)
12490 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12491 instead of __fcntl and/or __libc_fcntl.
12492
12493 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12494 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12495 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12496 Use __open64_nocancel instead of __open_nocancel.
12497
12498 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12499 hidden_proto declarations to the end and issue them if either
12500 IS_IN(libc) or IS_IN(rtld).
12501 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12502 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12503 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12504 read_nocancel, waitpid_nocancel, write_nocancel.
12505
12506 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12507 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12508 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12509
12510 * nptl/pt-fcntl.c: New file.
12511 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12512 (libpthread-routines): Add pt-fcntl.
12513 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12514 (__libc_fcntl): Remove attribute_hidden.
12515 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12516 __fcntl_nocancel_adjusted, not fcntl_common.
12517 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12518 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12519 to fcntl_nocancel.c.
12520 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12523 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12524
12525 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12526 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12527 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12528 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12529 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12530 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12531 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12532 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12533 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12534 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12535 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12536 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12537 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12538 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12539 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12540 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12541 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12542 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12543 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12544 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12545
12546 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12547 libpthread-routines.
12548 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12549 defines nothing.
12550
12551 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12552 __libc_read, and __write instead of __libc_write. Define
12553 __open64 in addition to __open.
12554
12555 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12556
12557 [BZ #23250]
12558 [BZ #10686]
12559 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12560 to _private_tm[3] and add __glibc_reserved2.
12561 Add _Static_assert of offset of __private_ss == 0x30.
12562 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12563 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12564
12565 2018-06-12 Florian Weimer <fweimer@redhat.com>
12566
12567 x86: Make strncmp usable from rtld.
12568 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12569 __strncmp_ia32 if in libc (and not in rtld).
12570 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12571 strncmp if not in libc (and not to __strncmp_sse2).
12572
12573 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12574
12575 [BZ #23140]
12576 * localedata/locales/gd_GB (mon): Rename to...
12577 (alt_mon): This.
12578 (mon): Import from CLDR (genitive case).
12579 * localedata/locales/hsb_DE (mon): Rename to...
12580 (alt_mon): This.
12581 (mon): Import from CLDR (genitive case).
12582 * localedata/locales/wa_BE (mon): Rename to...
12583 (alt_mon): This.
12584 (mon): Add, fill with the proper genitive forms, but CLDR data
12585 is incomplete; completed according to the comments in this file.
12586 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12587
12588 * localedata/locales/wa_BE (country_name): Reword
12589 "Beljike" -> "Beldjike".
12590
12591 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12592
12593 [BZ #23272]
12594 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12595 cases of non-finite arguments.
12596 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12597
12598 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12599
12600 [BZ #23174]
12601 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12602
12603 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12604
12605 [BZ #23264]
12606 * include/unistd.h (__execvpex): New prototype.
12607 * posix/Makefile (tests): Add tst-spawn4.
12608 (tests-internal): Add tst-spawn4-compat.
12609 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12610 * posix/tst-spawn4-compat.c: New file.
12611 * posix/tst-spawn4.c: Likewise.
12612 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12613 binaries as shell scripts.
12614 * sysdeps/posix/spawni.c (__spawni): Likewise.
12615
12616 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12617
12618 [BZ #23145]
12619 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12620 ($(all-built-dso:=.dynsym): New target.
12621 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12622 ($(objpfx)check-initfini.out): New target.
12623 (generated): Add check-initfini.out.
12624 * scripts/check-initfini.awk: New file.
12625 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12626 (_fini): Likewise.
12627 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12628 (_fini): Likewise.
12629 * sysdeps/arm/crti.S (_init): Mark as hidden.
12630 (_fini): Likewise.
12631 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12632 (_fini): Likewise.
12633 * sysdeps/i386/crti.S (_init): Mark as hidden.
12634 (_fini): Likewise.
12635 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12636 (_fini): Likewise.
12637 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12638 (_fini): Likewise.
12639 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12640 (_fini): Likewise.
12641 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12642 (_fini): Likewise.
12643 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12644 (_fini): Likewise.
12645 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12646 (_fini): Likewise.
12647 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12648 (_fini): Likewise.
12649 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12650 (_fini): Likewise.
12651 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12652 (_fini): Likewise.
12653 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12654 (_fini): Likewise.
12655 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12656 (_fini): Likewise.
12657 * sysdeps/sh/crti.S (_init): Mark as hidden.
12658 (_fini): Likewise.
12659 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12660 (_fini): Likewise.
12661 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12662 (_fini): Likewise.
12663
12664 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12665
12666 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12667 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12668 and TF redirection to KFtype and KF only when the default
12669 long double type is not the IEEE 128-bit floating point type.
12670
12671 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12672
12673 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12674 macro.
12675 (HWCAP_USCAT): Likewise.
12676 (HWCAP_ILRCPC): Likewise.
12677 (HWCAP_FLAGM): Likewise.
12678 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12679 Increase to 28.
12680 (_dl_aarch64_cap_flags): Add new flag names.
12681
12682 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12683 (MAP_FIXED_NOREPLACE): New macro.
12684 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12685 (MAP_FIXED_NOREPLACE): Likewise.
12686 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12687 (MAP_FIXED_NOREPLACE): Likewise.
12688 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12689 (MAP_FIXED_NOREPLACE): Likewise.
12690 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12691 (MAP_FIXED_NOREPLACE): Likewise.
12692 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12693 (MAP_FIXED_NOREPLACE): Likewise.
12694 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12695 (MAP_FIXED_NOREPLACE): Likewise.
12696 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12697 (MAP_FIXED_NOREPLACE): Likewise.
12698 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12699 (MAP_FIXED_NOREPLACE): Likewise.
12700 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12701 (MAP_FIXED_NOREPLACE): Likewise.
12702 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12703 (MAP_FIXED_NOREPLACE): Likewise.
12704 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12705 (MAP_FIXED_NOREPLACE): Likewise.
12706 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12707 (MAP_FIXED_NOREPLACE): Likewise.
12708 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12709 (MAP_FIXED_NOREPLACE): Likewise.
12710 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12711 (MAP_FIXED_NOREPLACE): Likewise.
12712
12713 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12714 version to 4.17.
12715
12716 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12717
12718 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12719 version to 4.17
12720
12721 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12722
12723 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12724 int.
12725 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12726
12727 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12728
12729 * benchtests/scripts/compare_string.py: (process_results) Catch
12730 exception in non-existent base_func and catch exception in
12731 non-existent attribute.
12732 (parse_file) Catch exception if input file does not exist.
12733
12734 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12735
12736 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12737 options to avoid diff calculation and omit header, respectively.
12738 (main): process --no-diff and --no-header
12739
12740 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12741 H.J. Lu <hongjiu.lu@intel.com>
12742
12743 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12744 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12745 wcsncmp-sse2.
12746 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12747 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12748 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12749 and __wcsncmp_sse2.
12750 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12751 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12752 AVX unaligned load is fast and vzeroupper is preferred.
12753 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12754 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12755 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12756 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12757 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12758 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12759 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12760 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12761 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12762 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12763 is undefined.
12764
12765 2018-06-01 Florian Weimer <fweimer@redhat.com>
12766
12767 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12768 configuring with --disable-multi-arch, building with
12769 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12770 Haswell-era CPU.
12771
12772 2018-06-01 Florian Weimer <fweimer@redhat.com>
12773
12774 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12775 results from building with “-march=x86-64 -mtune=generic
12776 -mfpmath=sse” and running on a Haswell-era CPU.
12777
12778 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12779
12780 [BZ #18473]
12781 * soft-fp/sqrttf2.c: Remove file.
12782 * soft-fp/sqrtdf2.c: Move to ....
12783 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12784 <shlib-compat.h>.
12785 (__sqrtdf2): Make conditional on
12786 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12787 symbol.
12788 * soft-fp/sqrtsf2.c: Move to ....
12789 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12790 <shlib-compat.h>.
12791 (__sqrtsf2): Make conditional on
12792 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12793 symbol.
12794 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12795 (gcc-double-routines): Remove sqrtdf2.
12796 (gcc-quad-routines): Remove sqrttf2.
12797 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12798 Do not filter out sqrtsf2 and sqrtdf2.
12799 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12800 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12801
12802 2018-06-01 Florian Weimer <fweimer@redhat.com>
12803
12804 * sysdeps/generic/libcidn.abilist: Remove file.
12805
12806 2018-06-01 Florian Weimer <fweimer@redhat.com>
12807
12808 [BZ #23236]
12809 * libio/strfile.h (struct _IO_str_fields): Rename members to
12810 discourage their use and add comment.
12811 (_IO_STR_DYNAMIC): Remove unused macro.
12812 * libio/strops.c (_IO_str_init_static_internal): Do not use
12813 callback pointers. Call malloc and free.
12814 (_IO_str_overflow): Do not use callback pointers. Call malloc
12815 and free.
12816 (enlarge_userbuf): Likewise.
12817 (_IO_str_finish): Call free.
12818 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12819 _allocate_buffer_unused.
12820 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12821 and free.
12822 (enlarge_userbuf): Likewise.
12823 (_IO_wstr_finish): Call free.
12824 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12825 _allocate_buffer_unused, _free_buffer_unused.
12826 * libio/memstream.c (__open_memstream): Likewise.
12827 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12828 * libio/wmemstream.c (open_wmemstream): Likewise.
12829
12830 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12831
12832 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12833 AMD Ryzen 7 1800X.
12834
12835 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12836
12837 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12838 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12839 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12840 New file.
12841 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12842 Likewise.
12843 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12844
12845 2018-05-29 Florian Weimer <fweimer@redhat.com>
12846
12847 * support/Makefile (libsupport-routines): Add
12848 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12849 xpthread_barrierattr_setpshared.
12850 * support/xpthread_barrierattr_destroy.c: New file.
12851 * support/xpthread_barrierattr_init.c: Likewise.
12852 * support/xpthread_barrierattr_setpshared.c: Likewise.
12853
12854 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12855
12856 [BZ #23206]
12857 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12858 _r_debug and update DT_DEBUG for debugger.
12859
12860 2018-05-29 Florian Weimer <fweimer@redhat.com>
12861
12862 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12863 (tst-strtod5i.out): Likewise.
12864
12865 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12866
12867 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12868 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12869 (sparc64-quad-routines): New variable. Moved from ....
12870 [$(subdir) = soft-fp] (sysdep_routines): Add
12871 $(sparc64-quad-routines). Moved from ....
12872 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12873 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12874 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12875 moved from ....
12876 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12877 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12878 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12879 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12880 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12881 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12882 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12883 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12884 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12885 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12886 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12887 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12888 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12889 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12890 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12891 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12892 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12893 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12894 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12895 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12896 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12897 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12898 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12899 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12900 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12901 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12902 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12903 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12904 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12905 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12906 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12907 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
12908 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
12909 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
12910 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
12911 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
12912 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
12913 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
12914 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
12915 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
12916 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
12917 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
12918 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
12919 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
12920 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
12921 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
12922 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
12923 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
12924 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
12925 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
12926 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
12927 * sysdeps/sparc/sparc64/qp_util.c: ... here.
12928 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
12929 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
12930 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
12931 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
12932 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
12933 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
12934
12935 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
12936 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
12937 (sparc32-quad-routines): New variable. Moved from ....
12938 [$(subdir) = soft-fp] (sysdep_routines): Add
12939 $(sparc32-quad-routines). Moved from ....
12940 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
12941 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
12942 moved from ....
12943 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
12944 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
12945 * sysdeps/sparc/sparc32/q_add.c: ... here.
12946 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
12947 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
12948 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
12949 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
12950 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
12951 * sysdeps/sparc/sparc32/q_div.c: ... here.
12952 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
12953 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
12954 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
12955 * sysdeps/sparc/sparc32/q_feq.c: ... here.
12956 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
12957 * sysdeps/sparc/sparc32/q_fge.c: ... here.
12958 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
12959 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
12960 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
12961 * sysdeps/sparc/sparc32/q_fle.c: ... here.
12962 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
12963 * sysdeps/sparc/sparc32/q_flt.c: ... here.
12964 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
12965 * sysdeps/sparc/sparc32/q_fne.c: ... here.
12966 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
12967 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
12968 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
12969 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
12970 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
12971 * sysdeps/sparc/sparc32/q_mul.c: ... here.
12972 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
12973 * sysdeps/sparc/sparc32/q_neg.c: ... here.
12974 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
12975 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
12976 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
12977 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
12978 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
12979 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
12980 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
12981 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
12982 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
12983 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
12984 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
12985 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
12986 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
12987 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
12988 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
12989 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
12990 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
12991 * sysdeps/sparc/sparc32/q_sub.c: ... here.
12992 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
12993 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
12994 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
12995 * sysdeps/sparc/sparc32/q_util.c: ... here.
12996 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
12997 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
12998 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
12999 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13000
13001 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13002 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13003
13004 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13005 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13006 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13007 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13008
13009 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13010
13011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13012 powerpc/soft-fp.
13013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13014 Likewise.
13015 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13016 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13017
13018 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13019
13020 [BZ #23171]
13021 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13022 double version.
13023
13024 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13025
13026 * sysdeps/sh/Implies: Remove sh/soft-fp.
13027 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13028 * sysdeps/sh/sfp-machine.h: ... here.
13029
13030 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13031
13032 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13033 (__mempcpy_erms): Skip zero length.
13034 (__memmove_erms): Likewise.
13035 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13036 (__memset_erms): Likewise.
13037
13038 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13039
13040 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13041 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13042 Add functions moved from ....
13043 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13044 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13045 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13046 from ....
13047 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13048 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13049 * sysdeps/alpha/e_sqrtl.c: ... here.
13050 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13051 * sysdeps/alpha/local-soft-fp.h: ... here.
13052 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13053 * sysdeps/alpha/ots_add.c: ... here.
13054 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13055 * sysdeps/alpha/ots_cmp.c: ... here.
13056 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13057 * sysdeps/alpha/ots_cmpe.c: ... here.
13058 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13059 * sysdeps/alpha/ots_cvtqux.c: ... here.
13060 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13061 * sysdeps/alpha/ots_cvtqx.c: ... here.
13062 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13063 * sysdeps/alpha/ots_cvttx.c: ... here.
13064 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13065 * sysdeps/alpha/ots_cvtxq.c: ... here.
13066 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13067 * sysdeps/alpha/ots_cvtxt.c: ... here.
13068 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13069 * sysdeps/alpha/ots_div.c: ... here.
13070 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13071 * sysdeps/alpha/ots_mul.c: ... here.
13072 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13073 * sysdeps/alpha/ots_nintxq.c: ... here.
13074 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13075 * sysdeps/alpha/ots_sub.c: ... here.
13076 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13077 * sysdeps/alpha/sfp-machine.h: ... here.
13078
13079 2018-05-23 Florian Weimer <fweimer@redhat.com>
13080
13081 [BZ #19728]
13082 [BZ #19729]
13083 [BZ #22247]
13084 CVE-2016-6261
13085 CVE-2016-6263
13086 CVE-2017-14062
13087 Switch to extern IDNA implementation (libidn2).
13088 * libidn: Remove subdirectory.
13089 * LICENSES: Do not mention licensing conditions for the removed
13090 libidn code.
13091 * config.h.in (HAVE_LIBIDN): Remove.
13092 * include/dlfcn.h (__libc_dlopen): Update comment.
13093 * include/idna.h: Remove file.
13094 * inet/Makefile (routines): Add idna.
13095 (tests-static, tests-internal): Add tst-idna_name_classify.
13096 (LOCALES): Generate locales for tests.
13097 (tst-idna_name_classify.out): Depend on generated locales.
13098 * inet/idna_name_classify.c: New file.
13099 * inet/tst-idna_name_classify.c: Likewise.
13100 * inet/net-internal.h (__idna_to_dns_encoding)
13101 (__idna_from_dns_encoding): Declare.
13102 * inet/net-internal.h (enum idna_name_classification): Define.
13103 (__idna_name_classify): Declare.
13104 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13105 __idna_from_dns_encoding.
13106 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13107 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13108 name as a fallback in case of encoding errors.
13109 (getnameinfo): Use DEPRECATED_NI_IDN.
13110 * inet/idna.c: New file.
13111 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13112 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13113 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13114 (modules-names): Add tst-no-libidn2.
13115 (extra-test-objs): Add tst-no-libidn2.os.
13116 (LDFLAGS-tst-no-libidn2.so): Set soname.
13117 (LOCALES): Set, and generate locales.
13118 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13119 (tst-resolv-ai_idn-latin1): Likewise.
13120 (tst-resolv-ai_idn-nolibidn2): Likewise.
13121 (tst-resolv-ai_idn.out): Depend on locales.
13122 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13123 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13124 tst-no-libidn2.so.
13125 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13126 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13127 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13128 * resolv/tst-resolv-ai_idn.c: New file.
13129 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13130 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13131 * resolv/tst-no-libidn2.c: Likewise.
13132 * support/support_format_addrinfo.c (format_ai_flags): Do not
13133 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13134 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13135 (gaih_inet): Call __idna_to_dns_encoding and
13136 __idna_from_dns_encoding, and use the original (punycode) name if
13137 __idna_from_dns_encoding fails due to an encoding error.
13138 (getaddrinfo): Use DEPRECATED_AI_IDN.
13139 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13140 * sysdeps/unix/inet/configure: Remove file.
13141 * sysdeps/unix/inet/configure.ac: Likewise.
13142
13143 2018-05-23 Florian Weimer <fweimer@redhat.com>
13144
13145 Implement allocate_once.
13146 * include/allocate_once.h: New file.
13147 * misc/allocate_once.c: Likewise.
13148 * misc/tst-allocate_once.c: Likewise.
13149 * misc/Makefile (routines): Add allocate_once.
13150 (tests-internal): Add tst-allocate_once.
13151 (generated): Add tst-allocate_once.mtrace,
13152 tst-allocate_once-mem.out.
13153 (tests-special): Add tst-allocate_once-mem.out.
13154 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13155 (tst-allocate_once-mem.out): Call mtrace.
13156 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13157
13158 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13159
13160 [BZ #23196]
13161 * string/test-memcpy.c (do_test1): New function.
13162 (test_main): Call it.
13163
13164 2018-05-23 Andreas Schwab <schwab@suse.de>
13165
13166 [BZ #23196]
13167 CVE-2018-11237
13168 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13169 (L(preloop_large)): Save initial destination pointer in %r11 and
13170 use it instead of %rax after the loop.
13171 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13172
13173 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13174
13175 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13176 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13177 -I../soft-fp. Moved from ....
13178 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13179 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13180 * sysdeps/aarch64/e_sqrtl.c: ... here.
13181 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13182 * sysdeps/aarch64/sfp-machine.h: ... here.
13183
13184 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13185 -Wmaybe-uninitialized around access to fq[0].
13186 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13187 Likewise.
13188
13189 [BZ #18471]
13190 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13191 aliases for non-libc case of versioned symbols.
13192 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13193 (llseek): Define as compat symbol if
13194 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13195 with link warning.
13196 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13197 Make into a compat symbol, disabled for minimum symbol version
13198 GLIBC_2.28 and later.
13199 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13200
13201 2018-05-22 Florian Weimer <fweimer@redhat.com>
13202
13203 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13204 not add -mpreferred-stack-boundary=4.
13205 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13206 (stack-align-test-flags): Likewise.
13207 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13208 Likewise.
13209 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13210 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13211 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13212 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13213 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13214 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13215 (CFLAGS-tst-align2.c): Likewise.
13216
13217 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13218
13219 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13220 (index_arch_Prefer_FSRM): Likewise.
13221 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13222 Also check Prefer_FSRM.
13223 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13224 Also return OPTIMIZE (erms) for Prefer_FSRM.
13225
13226 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13227
13228 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13229 (index_cpu_FSRM): Likewise.
13230 (reg_FSRM): Likewise.
13231
13232 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13233
13234 * math/gen-tgmath-tests.py: Import sys.
13235 (Tests.__init__): Initialize macros_seen.
13236 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13237 if requested to do so for this macro.
13238 (Tests.add_all_tests): Take argument for macro for which to
13239 generate tests.
13240 (Tests.check_macro_list): New function.
13241 (main): Handle check-list argument and argument specifying macro
13242 for which to generate tests.
13243 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13244 [PYTHON] (tgmath3-macro-tests): Likewise.
13245 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13246 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13247 not test-tgmath3.c.
13248 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13249 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13250 to CFLAGS.
13251 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13252 [PYTHON] ($(foreach
13253 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13254 rule.
13255 [PYTHON] (tests-special): Add
13256 $(objpfx)test-tgmath3-macro-list.out.
13257 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13258
13259 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13260 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13261 later.
13262
13263 [BZ #22639]
13264 * time/tzset.c (SECSPERDAY): Cast to time_t.
13265 * time/tst-y2039.c: New file.
13266 * time/Makefile (tests): Add tst-y2039.
13267
13268 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13269
13270 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13271 (PREFETCH_ONE_SET): Remove duplicate line.
13272
13273 2018-05-17 Florian Weimer <fweimer@redhat.com>
13274
13275 * sysdeps/generic/math-type-macros-double.h: Include
13276 <math-nan-payload-double.h> after <libm-alias-double.h>.
13277 * sysdeps/generic/math-type-macros-float.h: Include
13278 <math-nan-payload-float.h> after <libm-alias-float.h>.
13279 * sysdeps/generic/math-type-macros-float128.h: Include
13280 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13281 * sysdeps/generic/math-type-macros-ldouble.h: Include
13282 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13283
13284 2018-05-17 Andreas Schwab <schwab@suse.de>
13285
13286 * resolv/res_send.c (__res_context_send): Don't set errno when
13287 returing error after malloc failure.
13288
13289 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13290
13291 * nptl/allocatestack.c (allocate_stack): Remove the
13292 !__ASSUME_PRIVATE_FUTEX paths.
13293 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13294 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13295 Likewise.
13296 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13297 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13298 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13299 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13300 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13301 !__ASSUME_PRIVATE_FUTEX path.
13302 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13303 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13304 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13305 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13306 !__ASSUME_PRIVATE_FUTEX macros.
13307 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13308 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13309 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13310 * sysdeps/unix/sysv/linux/kernel-features.h
13311 (__ASSUME_PRIVATE_FUTEX): Removed.
13312
13313 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13314
13315 * math/Makefile (libm-narrow-fns): Add div.
13316 (libm-test-funcs-narrow): Likewise.
13317 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13318 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13319 * math/gen-auto-libm-tests.c (test_functions): Add div.
13320 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13321 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13322 (NARROW_DIV_TRIVIAL): Likewise.
13323 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13324 macro.
13325 (__ddivl): Likewise.
13326 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13327 ddiv.
13328 (CFLAGS-nldbl-ddiv.c): New variable.
13329 (CFLAGS-nldbl-fdiv.c): Likewise.
13330 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13331 __nldbl_ddivl.
13332 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13333 prototype.
13334 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13335 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13336 * math/auto-libm-test-in: Add tests of div.
13337 * math/auto-libm-test-out-narrow-div: New generated file.
13338 * math/libm-test-narrow-div.inc: New file.
13339 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13340 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13341 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13342 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13343 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13344 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13345 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13346 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13347 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13348 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13349 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13350 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13351 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13352 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13353 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13354 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13355 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13356 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13357 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13358 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13359 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13360 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13361 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13362 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13363 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13364 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13365 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13366 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13367 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13368 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13369 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13370 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13375 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13376 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13377 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13378 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13379 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13380 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13381 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13382 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13383
13384 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13385
13386 [BZ #23178]
13387 * nscd/nscd-client.h (sendfileall): Remove prototype.
13388 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13389 (handle_request): Use writeall instead of sendfileall.
13390 * nscd/aicache.c (addhstaiX): Likewise.
13391 * nscd/grpcache.c (cache_addgr): Likewise.
13392 * nscd/hstcache.c (cache_addhst): Likewise.
13393 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13394 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13395 * nscd/pwdcache.c (cache_addpw): Likewise.
13396 * nscd/servicescache.c (cache_addserv): Likewise.
13397 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13398 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13399 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13400 Remove define.
13401
13402 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13403
13404 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13405 Include <string/strncat.c>.
13406 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13407 alias.
13408 (__GI___strncat): New hidden alias.
13409
13410 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13411
13412 * sysdeps/mips/mips32/libm-test-ulps: Update.
13413 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13414
13415 2018-05-16 Florian Weimer <fweimer@redhat.com>
13416
13417 * support/Makefile (libsupport-routines): Add support_quote_blob,
13418 support_test_compare_blob.
13419 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13420 * support/check.h (TEST_COMPARE_BLOB): Define.
13421 (support_test_compare_blob): Declare.
13422 * support/support.h (support_quote_blob): Declare.
13423 * support/support_quote_blob.c: New file.
13424 * support/support_test_compare_blob.c: Likewise.
13425 * support/tst-support_quote_blob.c: Likewise.
13426 * support/tst-test_compare_blob.c: Likewise.
13427
13428 2018-05-16 Florian Weimer <fweimer@redhat.com>
13429
13430 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13431 of <strtod_nan_double.h>.
13432 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13433 instead of SET_MANTISSA.
13434 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13435 of include <strtod_nan_float.h>.
13436 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13437 instead of <strtod_nan_ldouble.h>.
13438 * stdlib/strtod_nan_double.h: Move to ...
13439 * sysdeps/generic/math-nan-payload-double.h: ... here.
13440 (FLOAT): Remove definition.
13441 (SET_MANTISSA): Rename to ...
13442 (SET_NAN_PAYLOAD): ... this.
13443 * stdlib/strtod_nan_float.h: Move to ...
13444 * sysdeps/generic/math-nan-payload-float.h: ... here.
13445 (FLOAT): Remove definition.
13446 (SET_MANTISSA): Rename to ...
13447 (SET_NAN_PAYLOAD): ... this.
13448 * sysdeps/generic/math-type-macros-double.h: Include
13449 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13450 instead of <math-svid-compat.h>.
13451 * sysdeps/generic/math-type-macros-float.h: Include
13452 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13453 instead of <math-svid-compat.h>.
13454 * sysdeps/generic/math-type-macros-float128.h: Include
13455 <math-nan-payload-float128.h>.
13456 * sysdeps/generic/math-type-macros-ldouble.h: Include
13457 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13458 instead of <math-svid-compat.h>.
13459 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13460 check for definition.
13461 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13462 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13463 Include <ieee754_float128.h>.
13464 (FLOAT): Remove definition.
13465 (SET_MANTISSA): Rename to ...
13466 (SET_NAN_PAYLOAD): ... this.
13467 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13468 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13469 Do not include <float128_private.h>.
13470 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13471 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13472 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13473 (FLOAT): Remove definition.
13474 (SET_MANTISSA): Rename to ...
13475 (SET_NAN_PAYLOAD): ... this.
13476 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13477 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13478 (FLOAT): Remove definition.
13479 (SET_MANTISSA): Rename to ...
13480 (SET_NAN_PAYLOAD): ... this.
13481 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13482 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13483 (FLOAT): Remove definition.
13484 (SET_MANTISSA): Rename to ...
13485 (SET_NAN_PAYLOAD): ... this.
13486 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13487 of "../stdlib/strtod_nan_double.h".
13488 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13489 of "../stdlib/strtod_nan_float.h".
13490 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13491 instead of "../stdlib/strtod_nan_ldouble.h".
13492 * manual/arith.texi (Parsing of Floats): Adjust comment.
13493
13494 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13495
13496 * math/Makefile (libm-narrow-fns): Add mul.
13497 (libm-test-funcs-narrow): Likewise.
13498 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13499 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13500 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13501 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13502 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13503 (NARROW_MUL_TRIVIAL): Likewise.
13504 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13505 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13506 macro.
13507 (__dmull): Likewise.
13508 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13509 dmul.
13510 (CFLAGS-nldbl-dmul.c): New variable.
13511 (CFLAGS-nldbl-fmul.c): Likewise.
13512 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13513 __nldbl_dmull.
13514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13515 prototype.
13516 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13517 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13518 * math/auto-libm-test-in: Add tests of mul.
13519 * math/auto-libm-test-out-narrow-mul: New generated file.
13520 * math/libm-test-narrow-mul.inc: New file.
13521 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13522 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13523 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13524 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13525 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13526 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13527 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13528 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13529 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13530 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13531 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13532 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13533 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13534 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13535 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13536 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13537 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13538 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13539 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13540 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13541 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13542 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13543 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13544 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13545 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13546 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13547 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13548 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13549 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13550 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13551 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13552 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13557 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13558 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13559 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13560 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13561 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13562 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13563 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13564 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13565
13566 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13567
13568 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13569 with *%eax in call.
13570
13571 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13572
13573 * sysdeps/i386/ldsodefs.h: Removed.
13574 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13575 * sysdeps/x86/ldsodefs.h: This.
13576 (La_i86_regs): New.
13577 (La_i86_retval): Likewise.
13578 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13579 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13580
13581 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13582
13583 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13584 unnecessary testl.
13585
13586 2018-05-13 Alan Modra <amodra@gmail.com>
13587
13588 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13589 R_PARISC_TLS_DTPOFF32 reloc addend.
13590
13591 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13592
13593 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13594 * math/math.h: Restrict the prototype definition for the functions
13595 issignaling(_Float128) and iszero(_Float128); and template
13596 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13597 __HAVE_FLOAT128_UNLIKE_LDBL.
13598 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13599 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13600 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13601 __f128() constants; define the type _Float128 as long double;
13602 and reuse long double in __CFLOAT128.
13603
13604 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13605
13606 * sysdeps/generic/math_private.h: Do not include
13607 <math-barriers.h>.
13608 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13609 <math_private.h>.
13610 * math/fromfp.h: Include <math-barriers.h>.
13611 * math/math-narrow.h: Likewise.
13612 * math/s_nextafter.c: Likewise.
13613 * math/s_nexttowardf.c: Likewise.
13614 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13615 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13616 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13617 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13618 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13619 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13620 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13621 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13622 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13623 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13624 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13625 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13626 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13627 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13628 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13629 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13630 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13631 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13632 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13633 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13634 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13635 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13636 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13637 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13638 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13639 * sysdeps/ieee754/k_standardl.c: Likewise.
13640 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13641 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13642 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13643 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13644 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13645 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13646 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13647 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13648 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13649 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13650 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13651 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13652 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13653 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13654 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13655 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13656 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13657 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13658 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13659 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13660 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13661 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13662
13663 2018-05-11 Florian Weimer <fweimer@redhat.com>
13664
13665 Use 64-bit epoch values in the time zone file parser.
13666 * include/time.h (internal_time_t): Define.
13667 (__tzfile_compute): Use it.
13668 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13669 member.
13670 (transitions): Switch to internal_time_t.
13671 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13672 types.
13673 (__tzfile_compute): Use internal_time_t for timer argument. Check
13674 for truncation before calling __offtime.
13675
13676 2018-05-11 Florian Weimer <fweimer@redhat.com>
13677
13678 [BZ #23166]
13679 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13680 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13681 Likewise.
13682 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13683 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13684 export without --enable-obsolete-rpc.
13685 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13686 symbol. This should not have been exported, ever.
13687
13688 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13689
13690 [BZ #23152]
13691 * localedata/locales/gd_GB (abmon): Fix typo in May:
13692 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13693
13694 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13695
13696 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13697 Use multiple registers to copy data in loop tail.
13698
13699 * sysdeps/aarch64/multiarch/memmove_falkor.S
13700 (__memmove_falkor): Use multiple registers to move data in
13701 loop tail.
13702
13703 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13704
13705 * math/math-underflow.h: New file.
13706 * sysdeps/generic/math_private.h: Do not include <float.h>.
13707 (fabs_tg): Remove macro. Moved to math-underflow.h.
13708 (min_of_type_f): Likewise.
13709 (min_of_type_): Likewise.
13710 (min_of_type_l): Likewise.
13711 (min_of_type_f128): Likewise.
13712 (min_of_type): Likewise.
13713 (math_check_force_underflow): Likewise.
13714 (math_check_force_underflow_nonneg): Likewise.
13715 (math_check_force_underflow_complex): Likewise.
13716 * math/e_exp2_template.c: Include <math-underflow.h>.
13717 * math/k_casinh_template.c: Likewise.
13718 * math/s_catan_template.c: Likewise.
13719 * math/s_catanh_template.c: Likewise.
13720 * math/s_ccosh_template.c: Likewise.
13721 * math/s_cexp_template.c: Likewise.
13722 * math/s_clog10_template.c: Likewise.
13723 * math/s_clog_template.c: Likewise.
13724 * math/s_csin_template.c: Likewise.
13725 * math/s_csinh_template.c: Likewise.
13726 * math/s_csqrt_template.c: Likewise.
13727 * math/s_ctan_template.c: Likewise.
13728 * math/s_ctanh_template.c: Likewise.
13729 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13730 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13731 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13732 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13733 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13734 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13735 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13736 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13737 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13738 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13739 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13740 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13741 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13742 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13743 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13744 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13745 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13746 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13747 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13748 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13749 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13750 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13751 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13752 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13753 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13754 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13755 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13756 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13757 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13758 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13759 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13760 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13761 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13762 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13763 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13764 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13765 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13766 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13767 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13768 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13769 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13770 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13771 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13772 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13773 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13774 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13775 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13776 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13777 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13778 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13779 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13780 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13781 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13782 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13783 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13784 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13785 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13786 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13787 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13788 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13789 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13790 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13791 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13792 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13793 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13794 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13795 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13796 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13797 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13798 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13799 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13800 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13801 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13802 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13803 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13804 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13805 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13806 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13807 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13808 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13809 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13810 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13811 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13812 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13813
13814 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13815
13816 * sysdeps/generic/math-barriers.h: New file.
13817 * sysdeps/generic/math_private.h [!math_opt_barrier]
13818 (math_opt_barrier): Move to math-barriers.h.
13819 [!math_opt_barrier] (math_force_eval): Likewise.
13820 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13821 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13822 math-barriers.h.
13823 (math_force_eval): Likewise.
13824 * sysdeps/alpha/fpu/math-barriers.h: New file.
13825 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13826 math-barriers.h.
13827 (math_force_eval): Likewise.
13828 * sysdeps/x86/fpu/math-barriers.h: New file.
13829 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13830 math-barriers.h.
13831 (math_force_eval): Likewise.
13832 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13833 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13834 multiple-include guard for rename.
13835 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13836 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13837 math-barriers.h.
13838 (math_force_eval): Likewise.
13839
13840 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13841
13842 [BZ #22786]
13843 CVE-2018-11236
13844 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13845 computation.
13846 * stdlib/Makefile (test-bz22786): New test.
13847 * stdlib/test-bz22786.c: New test.
13848
13849 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13850
13851 * include/math-narrow-eval.h: New file. Contents moved from ....
13852 * sysdeps/generic/math_private.h: ... here.
13853 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13854 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13855 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13856 * stdlib/strtod_l.c: Likewise.
13857 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13858 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13859 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13860 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13861 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13862 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13863 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13864 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13865 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13866 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13867 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13868 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13869 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13870 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13871 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13872 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13873 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13874 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13875 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13876 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13877 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13878 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13879 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13880 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13881 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13882 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13883 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13884 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13885 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13886
13887 2018-05-08 Andreas Schwab <schwab@suse.de>
13888
13889 * sysdeps/nptl/internaltypes.h: Fix comment.
13890
13891 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13892
13893 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13894 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13895 hidden.
13896
13897 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13898
13899 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13900 of I into loop header.
13901 * benchtests/bench-memmove-walk.c
13902 (test_main): Likewise.
13903
13904 2018-05-07 Alexandre Oliva <oliva@gnu.org>
13905
13906 Revert:
13907 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
13908 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13909
13910 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
13911
13912 [BZ #20419]
13913 * elf/dl-load.c (open_verify): Fix stack overflow.
13914 * elf/Makefile (tst-big-note): New test.
13915 * elf/tst-big-note-lib.S: New.
13916 * elf/tst-big-note.c: New.
13917
13918 2018-05-04 Joseph Myers <joseph@codesourcery.com>
13919
13920 * scripts/abilist.awk: Ignore absolute symbols.
13921 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
13922 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
13923 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
13924 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
13925 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
13926 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
13927 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13928 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
13929 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
13930 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
13931 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
13932 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
13933 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
13934 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
13935 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
13936 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
13937 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
13938 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
13939 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13940 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
13941 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13942 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
13943 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
13944 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
13945 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
13946 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
13947 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
13948 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
13949 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13950 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
13951 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
13952 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13955 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
13956 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
13957 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
13958 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
13959 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
13960 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
13961 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
13962 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13963 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
13964 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
13965 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13966 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
13969 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
13970 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
13984 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
13995 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
13996 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
13997 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
13998 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14002 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14003 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14004 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14005 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14006 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14007 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14008 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14009 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14010 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14011 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14012 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14013 Likewise.
14014 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14015 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14016 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14017 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14019 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14020 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14021 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14022 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14023 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14024 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14027 Likewise.
14028 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14029 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14037 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14038 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14039 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14040 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14055 Likewise.
14056 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14058 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14062 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14063 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14064 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14065 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14066 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14067 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14068 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14069 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14070 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14071 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14072 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14073 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14074 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14075 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14076 Likewise.
14077 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14078 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14079 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14080 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14081 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14082 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14083 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14084 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14085 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14086 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14109 Likewise.
14110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14115 Likewise.
14116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14117 Likewise.
14118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14120 Likewise.
14121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14123 Likewise.
14124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14125 Likewise.
14126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14129 Likewise.
14130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14131 Likewise.
14132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14133 Likewise.
14134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14138 Likewise.
14139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14145 Likewise.
14146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14148 Likewise.
14149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14150 Likewise.
14151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14152 Likewise.
14153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14154 Likewise.
14155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14158 Likewise.
14159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14160 Likewise.
14161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14162 Likewise.
14163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14166 Likewise.
14167 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14181 Likewise.
14182 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14194 Likewise.
14195 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14215 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14216 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14217 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14218 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14220 Likewise.
14221 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14223 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14224 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14225 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14226 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14229 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14230 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14231 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14232 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14233 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14234 Likewise.
14235 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14236 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14237 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14238 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14239 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14240 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14241 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14242 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14243 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14244 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14245 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14246 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14247 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14248 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14249 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14250 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14251 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14252 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14253 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14254 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14255 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14256 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14257 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14258 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14259 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14260 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14261 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14262 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14263 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14264 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14266 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14267 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14268 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14269 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14270 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14271 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14272 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14273
14274 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14275
14276 [BZ #23137]
14277 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14278 Use atomic_load_acquire to load __tid.
14279
14280 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14281
14282 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14283 Restore the pointer into %rdx, after syscall and use %rdx,
14284 instead of %rsi, to restore context.
14285
14286 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14287
14288 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14289 Pop the pointer into %rdx after syscall and use %rdx, instead
14290 of %rsi, to restore context.
14291
14292 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14293
14294 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14295 handlers after setjmp.
14296 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14297 defined.
14298 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14299 <libc-pointer-arith.h>.
14300 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14301 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14302 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14303 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14304 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14305 * sysdeps/x86/__longjmp_cancel.S: New file.
14306 * sysdeps/x86/longjmp.c: Likewise.
14307 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14308
14309 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14310
14311 * NEWS: Add ustat.h deprecation entry.
14312 * bits/ustat.h: Remove file.
14313 * misc/sys/ustat.h: Likewise.
14314 * misc/ustat.h: Likewise.
14315 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14316 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14317 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14318 compatibility mode.
14319 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14320 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14321 generic Linux implementation.
14322
14323 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14324
14325 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14326 * math/w_expl_compat.c: Likewise.
14327 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14328
14329 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14330
14331 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14332
14333 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14334
14335 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14336 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14337 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14338 Remove.
14339 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14341 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14342 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14343 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14344 and SYSCALL_LL64.
14345
14346 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14347
14348 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14349
14350 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14351 * math/w_asin_template.c: Likewise.
14352 * math/w_atanh_template.c: Likewise.
14353
14354 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14355
14356 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14357 to powerpc/powerpc64/be for big-endian.
14358 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14359 little-endian.
14360
14361 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14362 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14363 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14364 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14365 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14366 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14367 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14368 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14369 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14370 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14371 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14372 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14373 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14374 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14375 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14376 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14377 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14378 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14379 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14380 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14381 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14382 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14383 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14384 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14385 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14386 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14387 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14388 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14389 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14390 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14391 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14392 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14393
14394 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14395 adjusted to imply powerpc64 and older processors on powerpc64/be.
14396 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14397 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14398 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14399 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14400 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14401 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14402 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14403 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14404 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14405 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14406 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14407 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14408 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14409 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14410 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14411 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14412 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14413 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14414 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14415 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14416 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14417 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14418 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14419 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14420 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14421 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14422 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14423 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14424 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14425 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14426 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14427
14428 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14429 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14430 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14431 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14432
14433 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14434 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14435 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14436 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14437
14438 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14439 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14440 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14441 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14442 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14443 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14444 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14445 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14446 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14447 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14448 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14449
14450 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14451 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14452 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14453 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14454 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14455 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14456 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14457 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14458 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14459 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14460 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14461
14462 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14463 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14464 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14465 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14466 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14467 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14468 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14469 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14470 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14471 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14472 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14473 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14474
14475 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14476 and adjusted to imply olders processors.
14477 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14478 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14479 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14480 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14481 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14482 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14483 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14484 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14485 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14486 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14487 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14488
14489 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14490 powerpc64/le.
14491 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14492 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14493
14494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14495 powerpc64le.
14496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14498
14499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14500 powerpc64/be.
14501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14504
14505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14506 powerpc64 and adjusted.
14507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14510 Likewise.
14511
14512 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14513
14514 * sysdeps/tile: Remove.
14515 * sysdeps/unix/sysv/linux/tile: Likewise.
14516 * README (tilegx-*-linux-gnu): Remove from list of supported
14517 configurations.
14518 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14519 contribution of support for generic Linux kernel syscall
14520 interface.
14521 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14522 tilegx configurations.
14523 (Config.install_linux_headers): Do not handle tile.
14524 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14525 in comment.
14526 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14527 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14528 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14529 conditional undefine and redefine.
14530 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14531 in comment.
14532 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14533 conditional undefine and redefine.
14534
14535 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14536
14537 * signal/tst-sigaction.c: New file to test BZ #23069.
14538 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14539
14540 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14541
14542 [BZ #22766]
14543 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14544 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14545 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14546 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14547
14548 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14549
14550 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14551 _DIRENT_MATCHES_DIRENT64 is not defined.
14552 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14553 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14554 is defined.
14555 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14556 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14557
14558 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14559
14560 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14561 version to GCC 8 branch.
14562
14563 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14564
14565 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14566 (check_no_hidden): Use type of original function when declaring
14567 alias.
14568
14569 * sysdeps/unix/sysv/linux/sys/ptrace.h
14570 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14571 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14572 (struct __ptrace_seccomp_metadata): New type.
14573 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14574 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14575 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14576 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14577 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14578 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14579 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14580 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14581 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14582 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14583 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14584 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14585 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14586 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14587 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14588 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14589
14590 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14591
14592 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14593 defined.
14594 * dirent/versionsort.c (versionsort): Likewise.
14595 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14596 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14597 * dirent/versionsort64.c (versionsort64): Likewise.
14598 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14599 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14600 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14601 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14602 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14603 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14604 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14605 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14606 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14607 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14610 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14611 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14612
14613 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14614
14615 * elf/elf.h (NT_PPC_PKEY): New macro.
14616
14617 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14618
14619 [BZ #23094]
14620 * localedata/locales/hr_HR: fix thousands_sep and
14621 mon_thousands_sep
14622
14623 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14624
14625 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14626 (XTABS): Define to TAB3.
14627
14628 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14629
14630 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14631
14632 * dirent/scandir-tail-common.c: New file.
14633 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14634 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14635 * dirent/scandir.c: Use scandir-tail-common.c.
14636 * dirent/scandirat.c: Likewise.
14637 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14638 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14639 if _DIRENT_MATCHES_DIRENT64 is defined.
14640 * dirent/scandirat64.c (scandirat64): Likewise.
14641 * include/dirent.h (__scandir_tail): Only define iff
14642 _DIRENT_MATCHES_DIRENT64 is not defined.
14643 (__scandir64_tail): Define regardless.
14644 (__scandirat, scandirat64): Remove libc_hidden_proto.
14645 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14646 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14648 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14649 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14650 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14651 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14652
14653 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14654
14655 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14656 New macro.
14657 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14658 Increase to 24.
14659 (_dl_aarch64_cap_flags): Add asimdfhm.
14660
14661 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14662
14663 * sysdeps/nios2/libm-test-ulps: Update.
14664
14665 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14666
14667 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14668 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14669
14670 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14671 requirements.
14672 (_DIRENT_MATCHES_DIRENT64): Undef
14673 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14674 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14675 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14676 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14677 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14678 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14679 use getdents64 syscalls as base.
14680 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14681 symbol if required.
14682 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14683 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14684 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14685 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14686 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14687 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14688 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14689 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14690 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14691 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14692 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14693
14694 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14695
14696 * scripts/test_printers_common.py (init_test): Disable lock elision.
14697
14698 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14699
14700 * math/test-tgmath.c (count_double, count_float,
14701 count_ldouble, count_cdouble, count_cfloat,
14702 count_cldouble): Use volatile int.
14703
14704 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14705
14706 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14707 (conformtest-xfail-conds): Add i386-gnu.
14708 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14709 i386-gnu.
14710 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14711 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14712 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14713 msqid_ds.msg_lrpid): Likewise.
14714 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14715 Likewise.
14716 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14717 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14718 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14719 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14720 unsigned int.
14721 (struct statvfs64): Likewise.
14722 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14723 Likewise.
14724 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14725 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14726 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14727 instead of wait_queue.
14728 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14729 instead of vm_area_struct.
14730 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14731 struct sched_param definition to it.
14732 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14733 * bits/types/struct_sched_param.h: New file.
14734 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14735 <bits/types/struct_sched_param.h> instead of <sched.h>.
14736 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14737 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14738 generic version but include <bits/pthreadtypes.h> to make struct
14739 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14740 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14741 non-compliant.
14742 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14743 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14744 [__USE_XOPEN] (OFDEL): New macro.
14745 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14746 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14747 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14748 prototypes.
14749 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14750 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14751 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14752 non-compliant.
14753 * sysdeps/i386/sys/ucontext.h: Likewise.
14754 * sysdeps/m68k/sys/ucontext.h: Likewise.
14755 * sysdeps/mips/sys/ucontext.h: Likewise.
14756 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14757 * sysdeps/mach/hurd/i386/Makefile
14758 (test-xfail-POSIX/fcntl.h/conform): Add.
14759 (test-xfail-POSIX/signal.h/conform): Add.
14760 (test-xfail-POSIX/semaphore.h/conform): Add.
14761 (test-xfail-POSIX/regex.h/conform): Add.
14762 (test-xfail-POSIX/aio.h/conform): Add.
14763 (test-xfail-POSIX/mqueue.h/conform): Add.
14764 (test-xfail-POSIX/sys/types.h/conform): Add.
14765 (test-xfail-UNIX98/fcntl.h/conform): Add.
14766 (test-xfail-UNIX98/netdb.h/conform): Add.
14767 (test-xfail-UNIX98/signal.h/conform): Add.
14768 (test-xfail-UNIX98/semaphore.h/conform): Add.
14769 (test-xfail-UNIX98/regex.h/conform): Add.
14770 (test-xfail-UNIX98/aio.h/conform): Add.
14771 (test-xfail-UNIX98/ftw.h/conform): Add.
14772 (test-xfail-UNIX98/mqueue.h/conform): Add.
14773 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14774 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14775 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14776 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14777 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14778 (test-xfail-UNIX98/sys/types.h/conform): Add.
14779 (test-xfail-UNIX98/stdlib.h/conform): Add.
14780 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14781 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14782 (test-xfail-POSIX2008/netdb.h/conform): Add.
14783 (test-xfail-POSIX2008/signal.h/conform): Add.
14784 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14785 (test-xfail-POSIX2008/regex.h/conform): Add.
14786 (test-xfail-POSIX2008/aio.h/conform): Add.
14787 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14788 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14789 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14790 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14791 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14792 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14793 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14794 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14795 (test-xfail-XOPEN2K/signal.h/conform): Add.
14796 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14797 (test-xfail-XOPEN2K/regex.h/conform): Add.
14798 (test-xfail-XOPEN2K/aio.h/conform): Add.
14799 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14800 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14801 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14802 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14803 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14804 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14805 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14806 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14807 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14808 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14809 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14810 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14811 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14812 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14813 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14814 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14815 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14816 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14817 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14818 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14819 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14820 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14821 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14822 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14823 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14824 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14825 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14826 i386-gnu.
14827 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14828 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14829
14830 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14831
14832 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14833 --enable-obsolete for powerpc-linux-gnuspe.
14834
14835 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14836
14837 * conform/data/sys/un.h-data: Allow sun_ prefix.
14838 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14839 prototypes.
14840 * sysdeps/mach/include/mach.h: Likewise.
14841 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14842 * sysdeps/mach/include/mach_error.h: Likewise.
14843
14844 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14845
14846 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14847 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14848 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14849 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14850
14851 2018-04-16 Andreas Schwab <schwab@suse.de>
14852
14853 [BZ #19527]
14854 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14855
14856 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14857
14858 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14859 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14860
14861 2018-04-12 DJ Delorie <dj@redhat.com>
14862
14863 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14864 version to 4.16.
14865
14866 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14867
14868 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14869 (struct kernel_sigaction): Use the same definition on 31bit as is used
14870 on 64bit.
14871
14872 2018-04-09 Florian Weimer <fweimer@redhat.com>
14873
14874 [BZ #23037]
14875 * resolv/res_send.c (send_dg): Use designated initializers instead
14876 of assignment to zero-initialize other fields of struct mmsghdr.
14877
14878 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14879
14880 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14881 __READDIR_ALIAS): Undefine after usage.
14882 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14883 __READDIR_R_ALIAS): Likewise.
14884 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14885 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14886 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14887 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14888 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14889 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14890 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14891 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14892 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14893 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14894 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14895 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14896 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14897 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14898 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14899 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14900 * sysdeps/unix/sysv/linux/readdir.c: New file.
14901 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14902 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14903 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14904
14905 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14906
14907 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
14908
14909 * manual/charset.texi (Converting a Character): Fix typo.
14910
14911 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14912
14913 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14914
14915 * sysdeps/arm/libm-test-ulps: Update.
14916
14917 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
14918 as base implementation.
14919 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
14920 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14921 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14922 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14923 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
14924 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
14925 remove unrequired definitions and update comments.
14926 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
14927 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
14928 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
14929 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
14930 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
14931 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
14932 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
14933 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
14934 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
14935 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
14936 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
14937 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
14938 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
14939 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
14940 and RESET_SA_RESTORER hooks.
14941
14942 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
14943
14944 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14945
14946 2018-04-05 Florian Weimer <fweimer@redhat.com>
14947
14948 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
14949 integer overflow, memory leak on error, and indeterminate errno
14950 value. Add a null wide character to terminate the result string.
14951 * manual/charset.texi (Converting a Character): Mention embedded
14952 null bytes in the mbrtowc input string. Explain what happens in
14953 the -2 result case. Do not claim that mbrtowc is simple or
14954 obvious to use. Adjust the description of the code example. Use
14955 @code, not @var, for concrete variables.
14956
14957 2018-04-05 Florian Weimer <fweimer@redhat.com>
14958
14959 * manual/examples/mbstouwcs.c: New file.
14960 * manual/charset.texi (Converting a Character): Include it.
14961
14962 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14963
14964 * include/dirent.h (dirfd): Add hidden proto.
14965 * dirent/dirfd.c (dirfd): Add hidden def.
14966 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
14967 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
14968
14969 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14970
14971 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
14972 sin, cos and sincos to 1 ULP.
14973
14974 2018-04-04 Maciej W. Rozycki <macro@mips.com>
14975
14976 [BZ #19818]
14977 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
14978 symbols.
14979 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
14980 * elf/tst-absolute-sym.c: New file.
14981 * elf/tst-absolute-sym-lib.c: New file.
14982 * elf/tst-absolute-sym-lib.lds: New file.
14983 * elf/Makefile (tests): Add `tst-absolute-sym'.
14984 (modules-names): Add `tst-absolute-sym-lib'.
14985 (LDLIBS-tst-absolute-sym-lib.so): New variable.
14986 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
14987 ($(objpfx)tst-absolute-sym): New dependency.
14988
14989 [BZ #19818]
14990 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
14991 parameter.
14992 (SYMBOL_ADDRESS): New macro.
14993 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
14994 SYMBOL_ADDRESS for symbol address calculation.
14995 * elf/dl-runtime.c (_dl_fixup): Likewise.
14996 (_dl_profile_fixup): Likewise.
14997 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
14998 * elf/rtld.c (dl_main): Likewise.
14999 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15000 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15001 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15002 (elf_machine_rela): Likewise.
15003 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15004 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15005 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15006 (elf_machine_rela): Likewise.
15007 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15008 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15009 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15010 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15011 Likewise.
15012 (elf_machine_reloc): Likewise.
15013 (elf_machine_got_rel): Likewise.
15014 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15015 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15016 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15017 Likewise.
15018 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15019 Likewise.
15020 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15021 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15022 Likewise.
15023 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15024 Likewise.
15025 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15026 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15027 Likewise.
15028 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15029 Likewise.
15030 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15031 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15032
15033 2018-04-04 Zack Weinberg <zackw@panix.com>
15034
15035 * sysdeps/generic/internal-signals.h: Include signal.h,
15036 sigsetops.h, and stdbool.h.
15037 (__libc_signal_block_all): Actually block all signals.
15038 (__libc_signal_block_app): Likewise.
15039 (__libc_signal_restore_set): Actually restore the signal mask.
15040
15041 2018-04-04 Florian Weimer <fweimer@redhat.com>
15042
15043 inet: Actually build and run tst-deadline.
15044 * inet/Makefile (tests-internal): Add tst-deadline and do not
15045 overwrite the variable.
15046 (tests-static-internal): Remove variable.
15047
15048 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15049
15050 [BZ #22947]
15051 * bits/uio-ext.h (RWF_APPEND): New.
15052 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15053 * manual/llio.texi: Document RWF_APPEND.
15054 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15055 (RWF_SUPPORTED): Add RWF_APPEND.
15056
15057 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15058
15059 [BZ #22391]
15060 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15061 check for internal nptl signals.
15062 * nptl/sigaction.c (__sigaction): Likewise.
15063 * signal/sigaddset.c (sigaddset): Likewise.
15064 * signal/sigdelset.c (sigdelset): Likewise.
15065 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15066 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15067 value.
15068 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15069 to filter out internal nptl signals.
15070 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15071 also check realtime signals using standard macros.
15072 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15073 __is_internal_signal, __libc_signal_block_all,
15074 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15075 * sysdeps/nptl/sigfillset.c: Remove file.
15076 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15077 Change return to bool.
15078 (__clear_internal_signals): Remove SIGTIMER clean since it is
15079 equal to SIGCANEL on Linux.
15080 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15081 signal set was constructed using standard functions.
15082
15083 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15084
15085 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15086 ifname is too long.
15087 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15088 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15089 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15090 hidden def.
15091 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15092 * signal/sigaddset.c: Include <sigsetopts.h>.
15093 * signal/sigdelset.c: Likewise.
15094
15095 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15096
15097 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15098 (__cos): Likewise.
15099 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15100 logic as sin and cos.
15101
15102 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15103
15104 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15105 inputs. Return correct sign.
15106 (do_sincos): Remove small input check before do_sin, let do_sin set
15107 the sign.
15108 (__sin): Likewise.
15109 (__cos): Likewise.
15110
15111 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15112
15113 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15114 (do_cos_slow): Likewise.
15115 (do_sin_slow): Likewise.
15116 (reduce_and_compute): Likewise.
15117 (slow): Likewise.
15118 (slow1): Likewise.
15119 (slow2): Likewise.
15120 (sloww): Likewise.
15121 (sloww1): Likewise.
15122 (sloww2): Likewise.
15123 (bslow): Likewise.
15124 (bslow1): Likewise.
15125 (bslow2): Likewise.
15126 (cslow2): Likewise.
15127
15128 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15129
15130 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15131 (do_cos): Remove corp parameter and calculations.
15132 (do_sin): Likewise.
15133 (do_sincos): Remove cor variable.
15134 (__sin): Use do_sincos for huge inputs.
15135 (__cos): Likewise.
15136 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15137 (reduce_and_compute_sincos): Remove unused function.
15138
15139 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15140
15141 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15142 reduce_sincos, improve accuracy to 136 bits.
15143 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15144 (__sin): Use improved reduction and simplified do_sincos calculation.
15145 (__cos): Likewise.
15146 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15147
15148 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15149
15150 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15151 (do_sincos_2): Likewise.
15152 (__sin): Remove middle range reduction case.
15153 (__cos): Likewise.
15154 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15155 reduction case.
15156
15157 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15158
15159 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15160 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15161 inputs.
15162 (__cos): Likewise.
15163 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15164
15165 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15166
15167 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15168 version to 4.16
15169
15170 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15171
15172 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15173 Remove definitions.
15174 (opendir_oflags): Use O_DIRECTORY regardless.
15175 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15176 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15177
15178 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15179
15180 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15181 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15182 macros.
15183 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15184 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15185 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15186 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15187 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15188 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15189
15190 * htl/Makefile: Bump licence to LGPL 2.1+.
15191 * htl/alloca_cutoff.c: Likewise.
15192 * htl/cthreads-compat.c: Likewise.
15193 * htl/lockfile.c: Likewise.
15194 * htl/pt-alloc.c: Likewise.
15195 * htl/pt-cancel.c: Likewise.
15196 * htl/pt-cleanup.c: Likewise.
15197 * htl/pt-create.c: Likewise.
15198 * htl/pt-dealloc.c: Likewise.
15199 * htl/pt-detach.c: Likewise.
15200 * htl/pt-exit.c: Likewise.
15201 * htl/pt-getattr.c: Likewise.
15202 * htl/pt-initialize.c: Likewise.
15203 * htl/pt-internal.h: Likewise.
15204 * htl/pt-join.c: Likewise.
15205 * htl/pt-self.c: Likewise.
15206 * htl/pt-setcancelstate.c: Likewise.
15207 * htl/pt-setcanceltype.c: Likewise.
15208 * htl/pt-sigmask.c: Likewise.
15209 * htl/pt-spin-inlines.c: Likewise.
15210 * htl/pt-testcancel.c: Likewise.
15211 * htl/pt-yield.c: Likewise.
15212 * htl/tests/test-1.c: Likewise.
15213 * htl/tests/test-10.c: Likewise.
15214 * htl/tests/test-11.c: Likewise.
15215 * htl/tests/test-12.c: Likewise.
15216 * htl/tests/test-13.c: Likewise.
15217 * htl/tests/test-14.c: Likewise.
15218 * htl/tests/test-15.c: Likewise.
15219 * htl/tests/test-16.c: Likewise.
15220 * htl/tests/test-17.c: Likewise.
15221 * htl/tests/test-2.c: Likewise.
15222 * htl/tests/test-3.c: Likewise.
15223 * htl/tests/test-4.c: Likewise.
15224 * htl/tests/test-5.c: Likewise.
15225 * htl/tests/test-6.c: Likewise.
15226 * htl/tests/test-7.c: Likewise.
15227 * htl/tests/test-8.c: Likewise.
15228 * htl/tests/test-9.c: Likewise.
15229 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15230 * sysdeps/htl/bits/cancelation.h: Likewise.
15231 * sysdeps/htl/bits/pthread-np.h: Likewise.
15232 * sysdeps/htl/bits/pthread.h: Likewise.
15233 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15234 * sysdeps/htl/bits/semaphore.h: Likewise.
15235 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15236 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15237 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15238 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15239 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15240 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15241 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15242 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15243 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15244 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15245 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15246 * sysdeps/htl/old_pt-atfork.c: Likewise.
15247 * sysdeps/htl/pt-atfork.c: Likewise.
15248 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15249 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15250 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15251 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15252 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15253 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15254 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15255 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15256 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15257 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15258 * sysdeps/htl/pt-attr-init.c: Likewise.
15259 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15260 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15261 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15262 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15263 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15264 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15265 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15266 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15267 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15268 * sysdeps/htl/pt-attr.c: Likewise.
15269 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15270 * sysdeps/htl/pt-barrier-init.c: Likewise.
15271 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15272 * sysdeps/htl/pt-barrier.c: Likewise.
15273 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15274 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15275 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15276 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15277 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15278 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15279 * sysdeps/htl/pt-cond-init.c: Likewise.
15280 * sysdeps/htl/pt-cond-signal.c: Likewise.
15281 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15282 * sysdeps/htl/pt-cond-wait.c: Likewise.
15283 * sysdeps/htl/pt-cond.c: Likewise.
15284 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15285 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15286 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15287 * sysdeps/htl/pt-condattr-init.c: Likewise.
15288 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15289 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15290 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15291 * sysdeps/htl/pt-equal.c: Likewise.
15292 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15293 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15294 * sysdeps/htl/pt-getschedparam.c: Likewise.
15295 * sysdeps/htl/pt-getspecific.c: Likewise.
15296 * sysdeps/htl/pt-init-specific.c: Likewise.
15297 * sysdeps/htl/pt-key-create.c: Likewise.
15298 * sysdeps/htl/pt-key-delete.c: Likewise.
15299 * sysdeps/htl/pt-key.h: Likewise.
15300 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15301 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15302 * sysdeps/htl/pt-mutex-init.c: Likewise.
15303 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15304 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15305 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15306 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15307 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15308 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15309 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15310 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15311 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15312 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15313 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15314 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15315 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15316 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15317 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15318 * sysdeps/htl/pt-mutexattr.c: Likewise.
15319 * sysdeps/htl/pt-once.c: Likewise.
15320 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15321 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15322 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15323 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15324 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15325 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15326 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15327 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15328 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15329 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15330 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15331 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15332 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15333 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15334 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15335 * sysdeps/htl/pt-setschedparam.c: Likewise.
15336 * sysdeps/htl/pt-setschedprio.c: Likewise.
15337 * sysdeps/htl/pt-setspecific.c: Likewise.
15338 * sysdeps/htl/pt-spin.c: Likewise.
15339 * sysdeps/htl/pt-startup.c: Likewise.
15340 * sysdeps/htl/pthread.h: Likewise.
15341 * sysdeps/htl/sem-close.c: Likewise.
15342 * sysdeps/htl/sem-destroy.c: Likewise.
15343 * sysdeps/htl/sem-getvalue.c: Likewise.
15344 * sysdeps/htl/sem-init.c: Likewise.
15345 * sysdeps/htl/sem-open.c: Likewise.
15346 * sysdeps/htl/sem-post.c: Likewise.
15347 * sysdeps/htl/sem-timedwait.c: Likewise.
15348 * sysdeps/htl/sem-trywait.c: Likewise.
15349 * sysdeps/htl/sem-unlink.c: Likewise.
15350 * sysdeps/htl/sem-wait.c: Likewise.
15351 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15352 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15353 * sysdeps/mach/htl/pt-block.c: Likewise.
15354 * sysdeps/mach/htl/pt-spin.c: Likewise.
15355 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15356 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15357 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15358 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15359 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15360 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15361 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15362 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15363 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15364 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15365 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15366 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15367 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15368 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15369 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15370 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15371 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15372 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15373 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15374 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15375 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15376 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15377 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15378 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15379 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15380 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15381 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15382 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15383 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15384 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15385 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15386 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15387 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15388 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15389 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15390 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15391 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15392 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15393 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15394 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15395 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15396 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15397 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15398
15399 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15400 * README: Remove the mention of out-of-tree patches needed for
15401 GNU/Hurd.
15402
15403 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15404 (UTIME_NOW, UTIME_OMIT): Define macros.
15405
15406 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15407 instead of pthread_detach.
15408 (__cthread_fork): Call __pthread_create instead of pthread_create.
15409 (__cthread_keycreate): Call __pthread_key_create instead of
15410 pthread_key_create.
15411 (__cthread_getspecific): Call __pthread_getspecific instead of
15412 pthread_getspecific.
15413 (__cthread_setspecific): Call __pthread_setspecific instead of
15414 pthread_setspecific.
15415 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15416 __pthread_mutex_unlock instead of pthread_mutex_lock and
15417 pthread_mutex_unlock.
15418 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15419 ___pthread_get_cleanup_stack.
15420 (__pthread_get_cleanup_stack): New strong alias.
15421 * htl/pt-create.c: Include <pthreadP.h>.
15422 (entry_point): Call __pthread_exit instead of pthread_exit.
15423 (pthread_create): Rename to __pthread_create.
15424 (pthread_create): New strong alias.
15425 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15426 (pthread_detach): New strong alias.
15427 (__pthread_detach): Call __pthread_cond_broadcast instead of
15428 pthread_cond_broadcast.
15429 * htl/pt-exit.c: Include <pthreadP.h>.
15430 (__pthread_exit): Call __pthread_setcancelstate and
15431 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15432 __pthread_get_cleanup_stack.
15433 * htl/pt-testcancel.c: Include <pthreadP.h>.
15434 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15435 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15436 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15437 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15438 pthread_attr_getstacksize.
15439 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15440 Rename to __pthread_attr_getstackaddr.
15441 (pthread_attr_getstackaddr): New strong alias.
15442 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15443 Rename to __pthread_attr_getstacksize.
15444 (pthread_attr_getstacksize): New strong alias.
15445 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15446 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15447 (pthread_attr_setstack): New strong alias.
15448 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15449 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15450 pthread_attr_getstacksize, pthread_attr_setstacksize and
15451 pthread_attr_setstackaddr.
15452 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15453 Rename to __pthread_attr_setstackaddr.
15454 (pthread_attr_setstackaddr): New strong alias.
15455 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15456 Rename to __pthread_attr_setstacksize.
15457 (pthread_attr_setstacksize): New strong alias.
15458 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15459 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15460 pthread_exit.
15461 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15462 (__pthread_key_create): New hidden def.
15463 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15464 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15465 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15466 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15467 __pthread_setspecific, __pthread_setcancelstate,
15468 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15469 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15470 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15471 declarations.
15472 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15473 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15474 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15475 (pthread_attr_setstackaddr): New strong alias.
15476 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15477 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15478 (pthread_attr_setstacksize): New strong alias.
15479 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15480 (call_exit): Call __pthread_exit instead of pthread_exit.
15481 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15482 (_pthread_mutex_init): New hidden definition.
15483 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15484 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15485 instead of pthread_attr_init and pthread_attr_setstack.
15486
15487 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15488 __vm_deallocate instead of vm_allocate and vm_deallocate.
15489 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15490 setenv.
15491 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15492 of geteuid.
15493 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15494 strdup.
15495 * hurd/siginfo.c: Include <libioP.h>.
15496 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15497 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15498 munmap.
15499 * mach/devstream.c: Include <libioP.h>.
15500 (dealloc_ref): Call __mach_port_deallocate instead of
15501 mach_port_deallocate.
15502 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15503 Call __mach_port_deallocate instead of mach_port_deallocate.
15504 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15505 pathconf.
15506 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15507 munmap.
15508 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15509 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15510 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15511 of munmap.
15512 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15513 of close.
15514 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15515 instead of sysconf.
15516 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15517 __clock_gettime instead of clock_gettime.
15518 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15519 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15520 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15521 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15522 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15523 tcgetattr.
15524 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15525 __clock_gettime and __nanosleep instead of clock_gettime and
15526 nanosleep.
15527 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15528 __hurd_catch_signal.
15529 (hurd_catch_signal): New strong alias.
15530 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15531 __hurd_catch_signal instead of hurd_catch_signal.
15532 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15533 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15534 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15535 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15536 (_hurd_thread_sigstate): Add hidden def.
15537 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15538 mutex_unlock.
15539 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15540 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15541 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15542 __hurd_file_name_path_lookup.
15543 (hurd_file_name_path_lookup): New strong alias.
15544 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15545 hurd_file_name_path_lookup.
15546 * mach/errstring.c (mach_error_type): Add hidden def.
15547 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15548 * mach/mutex-init.c (__mutex_init): Add hidden def.
15549 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15550 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15551 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15552 * sysdeps/mach/hurd/getcwd.c
15553 (_hurd_canonicalize_directory_name_internal): Rename to
15554 __hurd_canonicalize_directory_name_internal.
15555 (_hurd_canonicalize_directory_name_internal): New strong alias.
15556 (__canonicalize_directory_name_internal, __getcwd): Call
15557 __hurd_canonicalize_directory_name_internal instead of
15558 _hurd_canonicalize_directory_name_internal.
15559 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15560 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15561 hidden defs.
15562 * sysdeps/hurd/include/hurd.h: New file.
15563 * sysdeps/hurd/include/hurd/fd.h: New file.
15564 * sysdeps/hurd/include/hurd/signal.h: New file.
15565 * sysdeps/mach/include/lock-intern.h: New file.
15566 * sysdeps/mach/include/mach.h: New file.
15567 * sysdeps/mach/include/mach/mig_support.h: New file.
15568 * sysdeps/mach/include/mach_error.h: New file.
15569 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15570 prototype.
15571 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15572 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15573 _HEADER_H_HIDDEN_DEF macro.
15574 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15575 _hurd_fd_error_signal): Add hidden prototype.
15576 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15577 hidden def.
15578 * libio/iolibio.h (_IO_puts): New hidden prototype.
15579 * libio/ioputs.c (_IO_puts): New hidden def.
15580 * sysdeps/mach/hurd/localplt.data: New file.
15581
15582 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15583 Amos Jeffries <squid3@treenet.co.nz>
15584 David Michael <fedora.dm0@gmail.com>
15585 Marco Gerards <marco@gnu.org>
15586 Marcus Brinkmann <marcus@gnu.org>
15587 Neal H. Walfield <neal@gnu.org>
15588 Pino Toscano <toscano.pino@tiscali.it>
15589 Richard Braun <rbraun@sceen.net>
15590 Roland McGrath <roland@gnu.org>
15591 Samuel Thibault <samuel.thibault@ens-lyon.org>
15592 Thomas DiModica <ricinwich@yahoo.com>
15593 Thomas Schwinge <tschwinge@gnu.org>
15594
15595 * htl: New directory.
15596 * sysdeps/htl: New directory.
15597 * sysdeps/hurd/htl: New directory.
15598 * sysdeps/i386/htl: New directory.
15599 * sysdeps/mach/htl: New directory.
15600 * sysdeps/mach/hurd/htl: New directory.
15601 * sysdeps/mach/hurd/i386/htl: New directory.
15602 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15603 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15604 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15605
15606 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15607
15608 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15609 signals in thread created for runing timers.
15610
15611 2018-04-01 Florian Weimer <fweimer@redhat.com>
15612
15613 * support/support_format_addrinfo.c (support_format_addrinfo):
15614 Include unknown error number in formatted result.
15615
15616 2018-03-29 Florian Weimer <fweimer@redhat.com>
15617
15618 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15619 capture SIGBUS.
15620
15621 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15622
15623 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15624 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15625 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15626 (__ASSUME_CLONE_BACKWARDS): Define.
15627
15628 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15629
15630 [BZ #23024]
15631 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15632 early when linux sentinel value is set.
15633
15634 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15635
15636 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15637
15638 2018-03-27 Andreas Schwab <schwab@suse.de>
15639
15640 [BZ #23005]
15641 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15642 allocation of private copy of nsaddr_list fails.
15643
15644 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15645
15646 [BZ #16552]
15647 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15648 * sysdeps/unix/sysv/linux/umount.c: ... here.
15649 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15650 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15651 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15652 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15654 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15655 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15656
15657 2018-03-26 Andreas Schwab <schwab@suse.de>
15658
15659 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15660 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15661 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15662 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15663 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15664 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15665 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15666 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15667 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15668 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15669 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15670 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15671 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15672 (R_RISCV_NUM): Define.
15673
15674 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15675
15676 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15677 TLS declaration of errno.
15678 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15679 __libc_setup_tls.
15680 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15681 (ARCH_SETUP_TLS): Likewise.
15682 * sysdeps/mach/hurd/libc-start.h: New file copied from
15683 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15684 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15685 instead of __libc_setup_tls.
15686 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15687 __libc_setup_tls before initializing libpthread and running _hurd_init
15688 which starts the signal thread.
15689 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15690 Declare function.
15691 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15692
15693 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15694
15695 [BZ #22998]
15696 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15697 after it is defined.
15698
15699 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15700 Max Horn <max@quendi.de>
15701
15702 [BZ #22644]
15703 CVE-2017-18269
15704 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15705 branch conditions.
15706 * string/test-memmove.c (do_test2): New testcase.
15707
15708 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15709
15710 * sysdeps/generic/frame.h: Remove file.
15711 * sysdeps/arm/frame.h: Likewise.
15712 * sysdeps/hppa/frame.h: Likewise.
15713 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15714 macro.
15715 (GET_FRAME): Likewise.
15716 (GET_STACK): Likewise.
15717 (CALL_SIGHANDLER): Likewise.
15718 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15719 Likewise.
15720 (GET_FRAME): Likewise.
15721 (GET_STACK): Likewise.
15722 (CALL_SIGHANDLER): Likewise.
15723 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15724 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15725 (GET_FRAME): Likewise.
15726 (GET_STACK): Likewise.
15727 (CALL_SIGHANDLER): Likewise.
15728 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15729 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15730 (GET_FRAME): Likewise.
15731 (GET_STACK): Likewise.
15732 (ADVANCE_STACK_FRAME): Likewise.
15733 (CALL_SIGHANDLER): Likewise.
15734 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15735 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15736 (GET_FRAME): Likewise.
15737 (GET_STACK): Likewise.
15738 (CALL_SIGHANDLER): Likewise.
15739 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15740 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15741 (GET_FRAME): Likewise.
15742 (GET_STACK): Likewise.
15743 (CALL_SIGHANDLER): Likewise.
15744 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15745 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15746 (GET_FRAME): Likewise.
15747 (GET_STACK): Likewise.
15748 (CALL_SIGHANDLER): Likewise.
15749 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15750 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15751 (GET_FRAME): Likewise.
15752 (GET_STACK): Likewise.
15753 (CALL_SIGHANDLER): Likewise.
15754 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15755 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15756 (GET_FRAME): Likewise.
15757 (GET_STACK): Likewise.
15758 (CALL_SIGHANDLER): Likewise.
15759 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15760 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15761 (GET_FRAME): Likewise.
15762 (GET_STACK): Likewise.
15763 (CALL_SIGHANDLER): Likewise.
15764 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15765 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15766 (GET_FRAME): Likewise.
15767 (GET_STACK): Likewise.
15768 (CALL_SIGHANDLER): Likewise.
15769 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15770 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15771 (GET_FRAME): Likewise.
15772 (GET_STACK): Likewise.
15773 (CALL_SIGHANDLER): Likewise.
15774 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15775 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15776 (GET_FRAME): Likewise.
15777 (GET_STACK): Likewise.
15778 (CALL_SIGHANDLER): Likewise.
15779 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15780 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15781 (FIRST_FRAME_POINTER): Likewise.
15782 (ADVANCE_STACK_FRAME): Likewise.
15783 (GET_STACK): Likewise.
15784 (GET_FRAME): Likewise.
15785 (CALL_SIGHANDLER): Likewise.
15786 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15787 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15788 (ADVANCE_STACK_FRAME): Likewise.
15789 (GET_STACK): Likewise.
15790 (GET_FRAME): Likewise.
15791 (CALL_SIGHANDLER): Likewise.
15792 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15793 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15794 (GET_FRAME): Likewise.
15795 (GET_STACK): Likewise.
15796 (CALL_SIGHANDLER): Likewise.
15797 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15798 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15799 (GET_FRAME): Likewise.
15800 (GET_STACK): Likewise.
15801 (CALL_SIGHANDLER): Likewise.
15802
15803 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15804
15805 * sysdeps/x86_64/backtrace.c: Move to ....
15806 * debug/backtrace.c: ... here.
15807 * sysdeps/aarch64/backtrace.c: Remove file.
15808 * sysdeps/alpha/backtrace.c: Likewise.
15809 * sysdeps/hppa/backtrace.c: Likewise.
15810 * sysdeps/ia64/backtrace.c: Likewise.
15811 * sysdeps/mips/backtrace.c: Likewise.
15812 * sysdeps/nios2/backtrace.c: Likewise.
15813 * sysdeps/riscv/backtrace.c: Likewise.
15814 * sysdeps/sh/backtrace.c: Likewise.
15815 * sysdeps/tile/backtrace.c: Likewise.
15816
15817 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15818
15819 [BZ #22987]
15820 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15821 function.
15822 (fdimf): Likewise.
15823 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15824
15825 [BZ #17343]
15826 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15827 possibly overflowing computations.
15828
15829 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15830
15831 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15832 values from Linux-specific section now that it is in the GNU section.
15833 * sysdeps/gnu/errlist.c: Regenerate.
15834
15835 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15836
15837 * math/Makefile (libm-narrow-fns): Add sub.
15838 (libm-test-funcs-narrow): Likewise.
15839 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15840 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15841 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15842 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15843 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15844 (NARROW_SUB_TRIVIAL): Likewise.
15845 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15846 macro.
15847 (__dsubl): Likewise.
15848 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15849 dsub.
15850 (CFLAGS-nldbl-dsub.c): New variable.
15851 (CFLAGS-nldbl-fsub.c): Likewise.
15852 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15853 __nldbl_dsubl.
15854 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15855 prototype.
15856 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15857 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15858 * math/auto-libm-test-in: Add tests of sub.
15859 * math/auto-libm-test-out-narrow-sub: New generated file.
15860 * math/libm-test-narrow-sub.inc: New file.
15861 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15862 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15863 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15864 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15865 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15866 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15867 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15868 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15869 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15870 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15871 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15872 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15873 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15874 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15875 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15876 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15877 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15878 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15879 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15880 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15881 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15882 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15883 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15884 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15885 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15886 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15887 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15888 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15889 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15890 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15891 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15892 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15897 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15898 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15899 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15900 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15901 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15902 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15903 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15904 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15905 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15906 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15907
15908 2018-03-19 Joseph Myers <joseph@codesourcery.com>
15909
15910 [BZ #20079]
15911 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
15912
15913 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
15914
15915 * benchtests/bench-timing.h (attribute_hidden): Undefine.
15916
15917 2018-03-18 Richard Braun <rbraun@sceen.net>
15918
15919 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
15920 thread reference.
15921
15922 2018-03-18 Agustina Arzille <avarzille@riseup.net>
15923
15924 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
15925 (__libc_cleanup_fct): Define function.
15926 (__libc_cleanup_region_start, __libc_cleanup_region_end,
15927 __libc_cleanup_end): Rewrite implementation using
15928 __attribute__ ((__cleanup__)).
15929 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
15930 * hurd/Makefile (routines): Add hurdlock.
15931 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
15932 interface.
15933 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
15934 * hurd/hurdpid.c: Include <lowlevellock.h>
15935 (_S_msg_proc_newids): Use lll_wait to synchronize.
15936 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
15937 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
15938 * mach/Makefile (lock-headers): Remove machine-lock.h.
15939 * mach/lock-intern.h: Include <lowlevellock.h> instead of
15940 <machine-lock.h>.
15941 (__spin_lock_t): New type.
15942 (__SPIN_LOCK_INITIALIZER): New macro.
15943 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
15944 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
15945 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
15946 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
15947 (__mutex_init): Initialize with lll.
15948 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
15949 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
15950 needing lll.
15951 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15952 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
15953 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
15954 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
15955 (__setpgid): Use lll for synchronization.
15956 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
15957 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
15958 instead of <cthreads.h>.
15959 (_IO_lock_inexpensive): New macro
15960 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
15961 (__libc_lock_self0): New declaration.
15962 (__libc_lock_owner_self): New macro.
15963 (__libc_key_t): Remove type.
15964 (_LIBC_LOCK_INITIALIZER): New macro.
15965 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
15966 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
15967 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
15968 __libc_lock_define_initialized_recursive,
15969 __rtld_lock_define_initialized_recursive,
15970 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
15971 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
15972 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
15973 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
15974 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
15975 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
15976 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
15977 New macros.
15978 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
15979 * hurd/hurdlock.c: New file.
15980 * hurd/hurdlock.h: New file.
15981 * mach/lowlevellock.h: New file
15982
15983 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15984
15985 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
15986 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
15987 when opening a symlink with O_NOFOLLOW.
15988 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
15989 path when flags contains O_NOFOLLOW.
15990 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
15991 if flags contains O_DIRECTORY and the result is a directory.
15992 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
15993 oneself when the pointer given in D is nul (as set by ext2fs).
15994 * sysdeps/mach/hurd/mlockall.c: New file.
15995 * sysdeps/mach/hurd/munlockall.c: New file.
15996
15997 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15998
15999 * hurd/hurdsig.c: Include <pthread.h>.
16000 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16001 get the signal thread stack layout.
16002 * hurd/Makefile (headers): Remove threadvar.h.
16003 (inline-headers): Remove threadvar.h.
16004 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16005 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16006 __hurd_threadvar_max, __hurd_errno_location.
16007 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16008 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16009 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16010 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16011 unless TLS is not initialized yet, in which case we do not need a
16012 critical section yet anyway.
16013 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16014 <machine-sp.h>.
16015 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16016 declarations.
16017 (__hurd_threadvar_index): Remove enum.
16018 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16019 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16020 inlines.
16021 (__hurd_reply_port0): New variable declaration.
16022 (__hurd_local_reply_port): New macro.
16023 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16024 (interrupted_reply_port_location): Add thread_t parameter. Use it
16025 with THREAD_TCB to access thread-local variables.
16026 (_hurdsig_abort_rpcs): Pass ss->thread to
16027 interrupted_reply_port_location.
16028 (_hurd_internal_post_signal): Likewise.
16029 (_hurdsig_init): Use presence of cthread_fork instead of
16030 __hurd_threadvar_stack_mask to start signal thread by hand.
16031 Remove signal thread threadvar initialization.
16032 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16033 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16034 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16035 of threadvar.
16036 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16037 __libc_lock_self0.
16038 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16039 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16040 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16041 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16042 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16043 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16044 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16045 define variables.
16046 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16047 <hurd/threadvar.h>.
16048 [IS_IN(rtld)] (rtld_errno): New variable.
16049 [IS_IN(rtld)] (__errno_location): New weak function.
16050 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16051 * sysdeps/mach/hurd/errno.c: Remove file.
16052 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16053 (__fork): Remove THREADVAR_SPACE macro and its use.
16054 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16055 variable.
16056 (init): Do not initialize threadvar.
16057 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16058 symbol.
16059 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16060 __hurd_local_reply_port instead of threadvar.
16061 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16062 _hurd_sigstate fields.
16063 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16064 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16065 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16066 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16067 instead of threadvar.
16068 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16069 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16070 (use_threadvar, global_reply_port): Remove variables.
16071 (__hurd_reply_port0): New variable.
16072 (__mig_get_reply_port): Use __hurd_local_reply_port and
16073 __hurd_reply_port0 instead of threadvar.
16074 (__mig_dealloc_reply_port): Likewise.
16075 (__mig_init): Do not initialize threadvar.
16076 * sysdeps/mach/hurd/profil.c: Fix comment.
16077 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16078 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16079 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16080 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16081 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16082 __cthread_setspecific.
16083 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16084 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16085 __cthread_t instead of cthread_fork, cthread_detach,
16086 pthread_getattr_np, pthread_attr_getstack.
16087 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16088 __cthread_keycreate.
16089 (cthread_getspecific): Rename to __cthread_getspecific.
16090 (cthread_setspecific): Rename to __cthread_setspecific.
16091 (__libc_getspecific): Use __cthread_getspecific instead of
16092 cthread_getspecific.
16093 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16094 __cthread_keycreate instead of cthread_keycreate.
16095 (__libc_setspecific): Use __cthread_setspecific instead of
16096 cthread_setspecific.
16097 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16098 Likewise.
16099 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16100 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16101 testing whether it is defined.
16102
16103 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16104
16105 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16106 Define macro.
16107 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16108 * sysdeps/mach/i386/thread_state.h
16109 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16110 i386_THREAD_STATE.
16111 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16112 i386_THREAD_STATE.
16113 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16114
16115 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16116 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16117
16118 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16119 macros.
16120 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16121 descriptor instead of creating a new one.
16122 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16123
16124 * mach/setup-thread.c: Include <ldsodefs.h>.
16125 (__mach_setup_thread): Call _dl_allocate_tls, pass
16126 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16127 MACHINE_THREAD_STATE_FLAVOR, before getting
16128 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16129 MACHINE_THREAD_STATE_FLAVOR with the result.
16130 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16131 MACHINE_THREAD_STATE_FIX_NEW.
16132 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16133 too. Add original thread parameter.
16134
16135 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16136
16137 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16138 Remove inline function.
16139
16140 * sysdeps/i386/fpu/libm-test-ulps: Update.
16141 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16142
16143 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16144
16145 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16146 commit.
16147
16148 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16149
16150 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16151 (__sincos_code): Remove define and undefine.
16152 [__FAST_MATH__] (__sincos): Remove inline function.
16153 [__FAST_MATH__] (__sincosf): Remove inline function.
16154 [__FAST_MATH__] (__sincosl): Remove inline function.
16155 (__atan2l): Remove inline functions.
16156 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16157 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16158 function.
16159 (floor): Remove inline function.
16160 (ceil): Likewise.
16161 [__FAST_MATH__] (__ldexp_code): Remove macro.
16162 [__FAST_MATH__] (ldexp): Remove inline function.
16163 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16164 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16165 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16166 [__USE_ISOC99] (__lrint_code): Remove macro.
16167 [__USE_ISOC99] (__llrint_code): Likewise.
16168 [__USE_ISOC99] (lrintf): Remove inline function.
16169 [__USE_ISOC99] (lrint): Likewise.
16170 [__USE_ISOC99] (lrintl): Likewise.
16171 [__USE_ISOC99] (llrint): Likewise.
16172 [__USE_ISOC99] (llrintf): Likewise.
16173 [__USE_ISOC99] (llrintl): Likewise.
16174
16175 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16176
16177 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16178 (__ieee754_sqrtf): Remove.
16179 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16180 (__ieee754_sqrtf): Remove.
16181 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16182 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16183 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16184 (__ieee754_sqrtf): Remove.
16185 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16186 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16187 (sqrtf): Remove.
16188 (sqrtl): Remove.
16189 (__ieee754_sqrt): Remove.
16190 (__ieee754_sqrtf): Remove.
16191 (__ieee754_sqrtl): Remove.
16192 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16193 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16194 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16195 (__ieee754_sqrtf): Remove.
16196 (__ieee754_sqrtl): Remove.
16197
16198 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16199
16200 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16201 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16202 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16203 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16204 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16205 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16206 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16207 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16208 Likewise.
16209 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16210 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16211 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16212 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16213 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16214 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16215 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16216 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16217 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16218 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16219 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16220 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16221 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16222 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16223 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16224 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16225 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16226 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16227 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16228 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16229 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16230 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16231 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16232 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16233 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16234 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16235 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16236 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16237 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16238 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16239 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16240 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16241 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16242 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16243 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16244 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16245 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16246 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16247 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16248 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16249
16250 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16251
16252 * include/math.h (sqrt): Declare with asm redirect.
16253 (sqrtf): Likewise.
16254 (sqrtl): Likewise.
16255 (sqrtf128): Likewise.
16256 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16257 nonlib and libnldbl with -fmath-errno.
16258 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16259 * math/w_sqrt_template.c: Likewise.
16260 * math/w_sqrtf_compat.c: Likewise.
16261 * math/w_sqrtl_compat.c: Likewise.
16262 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16263 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16264 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16265 complex.h.
16266
16267 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16268
16269 * benchtests/Makefile: Define _ISOMAC.
16270 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16271 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16272 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16273 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16274 * benchtests/bench-timing.h: Define attribute_hidden.
16275
16276 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16277
16278 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16279 mov + lsr.
16280
16281 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16282
16283 [BZ #22963]
16284 * localedata/locales/cs_CZ (mon): Rename to...
16285 (alt_mon): This.
16286 (mon): Import from CLDR (genitive case).
16287
16288 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16289
16290 [BZ #22937]
16291 * localedata/locales/el_CY (abmon): Rename to...
16292 (ab_alt_mon): This.
16293 (abmon): Import from CLDR (abbreviated genitive case).
16294 * localedata/locales/el_GR (abmon): Rename to...
16295 (ab_alt_mon): This.
16296 (abmon): Import from CLDR (abbreviated genitive case).
16297
16298 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16299
16300 [BZ #22932]
16301 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16302
16303 2018-03-15 Robert Buj <robert.buj@gmail.com>
16304
16305 [BZ #22848]
16306 * localedata/locales/ca_ES (abmon): Rename to...
16307 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16308 (mon): Rename to...
16309 (alt_mon): This.
16310 (abmon): Import from CLDR (genitive case, month names preceded by
16311 "de" or "d’").
16312 (mon): Likewise.
16313 (abday): Synchronize with CLDR.
16314 (d_t_fmt): Likewise.
16315 (d_fmt): Likewise.
16316 (am_pm): Likewise.
16317
16318 (LC_TIME): Improve indentation.
16319 (LC_TELEPHONE): Likewise.
16320 (LC_NAME): Likewise.
16321 (LC_ADDRESS): Likewise.
16322
16323 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16324
16325 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16326 (lrintf): Remove definitions used only with old GCC.
16327 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16328 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16329 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16330 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16331 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16332 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16333 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16334 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16335 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16336 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16337 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16338 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16339 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16340 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16341 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16342 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16343 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16344 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16345 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16346 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16347 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16348 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16349 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16350 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16351 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16352 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16353 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16354 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16355
16356 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16357
16358 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16359 instruction to unbreak builds with binutils 2.26 and older.
16360
16361 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16362
16363 * sysdeps/aarch64/strncmp.S (count): New macro.
16364 (strncmp): Store misaligned length in SRC1 in COUNT.
16365 (mutual_align): Adjust.
16366 (misaligned8): Load dword at a time when it is safe.
16367
16368 2018-03-12 Zack Weinberg <zackw@panix.com>
16369
16370 [BZ #1190]
16371 [BZ #19476]
16372 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16373 if the _IO_EOF_SEEN bit is already set; update commentary.
16374 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16375 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16376
16377 * support/support_openpty.c, support/tty.h: New files.
16378 * support/Makefile (libsupport-routines): Add support_openpty.
16379
16380 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16381 New test cases.
16382 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16383 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16384
16385 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16386
16387 * po/pt_BR.po: Update translations.
16388
16389 2018-03-12 David Michael <fedora.dm0@gmail.com>
16390
16391 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16392 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16393 get a port to the startup server.
16394
16395 2018-03-11 Zack Weinberg <zackw@panix.com>
16396
16397 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16398 before nldbl-compat.h.
16399
16400 2018-03-10 Zack Weinberg <zackw@panix.com>
16401
16402 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16403 math.h or math_private.h.
16404
16405 * sysdeps/alpha/fpu/s_isnan.c
16406 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16407 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16408 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16409 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16410 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16411 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16412 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16413 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16414 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16417 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16418 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16419 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16420 Include math_private.h.
16421
16422 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16423 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16424 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16425 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16426 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16427 * sysdeps/powerpc/power7/fpu/s_logb.c:
16428 Include math.h and math_private.h.
16429
16430 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16431 uses of $at in .set noat / .set at.
16432
16433 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16434
16435 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16436 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16437 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16438 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16439 Likewise.
16440
16441 2018-03-09 Florian Weimer <fweimer@redhat.com>
16442
16443 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16444 in comment.
16445
16446 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16447
16448 [BZ #22919]
16449 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16450 Add nop before __startcontext, add explaining comments.
16451
16452 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16453
16454 [BZ #22926]
16455 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16456 empty for __SPE__.
16457 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16458 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16459 Do not build hardware transactional code for __SPE__.
16460 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16461 (__lll_trylock_elision): Likewise.
16462 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16463 (__lll_unlock_elision): Likewise.
16464
16465 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16466 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16467 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16468 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16469 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16470 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16471 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16472 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16473 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16474 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16475 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16476 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16477 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16478 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16479 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16480 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16481 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16482 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16483 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16484 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16485 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16486 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16487 (__ASSUME_CLONE_BACKWARDS): Define.
16488 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16489 __clone2 if __NR_clone2 is defined.
16490 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16491 (__ASSUME_CLONE_BACKWARDS): Likewise.
16492 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16493 (__ASSUME_CLONE_BACKWARDS): Likewise.
16494 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16495 (__ASSUME_CLONE2): Likewise.
16496 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16497 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16498 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16499 variants and the define architecture can use.
16500 (__ASSUME_CLONE_DEFAULT): Define as default.
16501 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16502 (__ASSUME_CLONE_BACKWARDS): Likewise.
16503 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16504 (__ASSUME_CLONE_BACKWARDS): Likewise.
16505 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16506 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16507
16508 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16509
16510 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16511
16512 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16513 time.
16514
16515 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16516 (do_test_limit): Likewise.
16517
16518 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16519 for every implementation.
16520 (do_test): Likewise.
16521
16522 * benchtests/bench-strncmp.c: Convert output to json.
16523
16524 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16525
16526 * io/futimens.c: Add missing start-of-file descriptive comment.
16527 * io/utime.c: Likewise.
16528 * misc/futimesat.c: Likewise.
16529 * misc/utimes.c: Likewise.
16530 * sysdeps/mach/hurd/futimesat.c: Likewise.
16531 * sysdeps/mach/hurd/utimes.c: Likewise.
16532 * sysdeps/posix/utime.c: Likewise.
16533 * sysdeps/posix/utimes.c: Likewise.
16534 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16535 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16536 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16537 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16538
16539 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16540
16541 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16542 hurd_futimes.
16543 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16544 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16545 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16546 (__futimens): Move implementation to...
16547 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16548 utime_tvalue_from_tspec): ... new helper functions.
16549 (hurd_futimens): New function.
16550 * sysdeps/mach/hurd/futimesat.c: New file.
16551 * sysdeps/mach/hurd/utimensat.c: New file.
16552
16553 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16554
16555 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16556 UTIME_OMIT): New macros.
16557 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16558 before reverting to converting time spec to time value and calling
16559 __file_utimes.
16560 * sysdeps/mach/hurd/utime-helper.c: New file.
16561 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16562 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16563 reverting to utime_tvalue_from_tval and __file_utimes.
16564 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16565 (__lutimes): Just call hurd_futimens after lookup.
16566 * sysdeps/mach/hurd/utimes.c: Likewise.
16567
16568 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16569
16570 * bits/sigaction.h: Add include guard.
16571 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16572 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16573 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16574 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16575 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16576 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16577 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16578 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16579 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16580
16581 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16582
16583 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16584 -Wmaybe-uninitialized for -Os.
16585 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16586 this disabling.
16587
16588 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16589
16590 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16591 __INO_T_MATCHES_INO64_T is defined.
16592 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16593 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16594 of definition.
16595 * dirent/alphasort64.c: Likewise.
16596 * dirent/scandir.c: Likewise.
16597 * dirent/scandir64-tail.c: Likewise.
16598 * dirent/scandir64.c: Likewise.
16599 * dirent/scandirat.c: Likewise.
16600 * dirent/scandirat64.c: Likewise.
16601 * dirent/versionsort.c: Likewise.
16602 * dirent/versionsort64.c: Likewise.
16603 * include/dirent.h: Likewise.
16604
16605 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16606 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16607 for socketpair endpoint.
16608 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16609 WRITE_BUFFER_SIZE as buffer size for sending socket.
16610 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16611 issue on system where send is implemented with sendto syscall.
16612 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16613 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16614 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16615 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16616
16617 [BZ #21269]
16618 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16619 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16620 sa_restorer for vDSO case.
16621 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16622
16623 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16624
16625 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16626 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16627 * hurd/hurd/ioctl.h: Include <mach/port.h>
16628 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16629 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16630 <mach/mach_types.h> and <mach/message.h>.
16631 (headers): Move mach/param.h to bits/mach/param.h.
16632 * sysdeps/mach/i386/mach/param.h: Move file to ...
16633 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16634 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16635 of <mach/param.h>.
16636 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16637 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16638 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16639 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16640 trivial, for C++ conformity.
16641 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16642 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16643 Process mig output through $(migheadersed).
16644 * hurd/Makefile (migheadersed): Define variable.
16645 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16646 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16647 headers.
16648 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16649 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16650 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16651 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16652 <bits/types/sigset_t.h>.
16653 [!defined __USE_GNU]: Do not #error out.
16654 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16655 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16656 Include <stddef.h> and <bits/types/sigset_t.h>
16657 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16658 instead of sighandler_t.
16659 * stdlib/errno.h (error_t): Move definition to...
16660 * bits/types/error_t.h: ... new header.
16661 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16662 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16663 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16664 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16665 * hurd/hurd.h: Include <bits/types/error_t.h>
16666 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16667 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16668 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16669 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16670 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16671 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16672 * sysdeps/mach/hurd/futimens.c: New file.
16673
16674 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16675
16676 [BZ #22918]
16677 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16678 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16679 * nscd/gai.c (__nss_hosts_database): Readd definition.
16680 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16681 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16682 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16683
16684 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16685
16686 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16687 (ifunc_one): Likewise.
16688
16689 2018-03-01 DJ Delorie <dj@delorie.com>
16690
16691 [BZ #22342]
16692 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16693 key value.
16694
16695 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16696
16697 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16698 `match_pid' parameter.
16699 (td_ta_thr_iter): Update accordingly.
16700
16701 2018-03-01 Florian Weimer <fweimer@redhat.com>
16702
16703 * nptl/Makefile (install-lib-ldscripts): Remove.
16704 (install): Remove rule.
16705 ($(inst_libdir)/libpthread.so): Likewise.
16706
16707 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16708
16709 [BZ #22896]
16710 * localedata/locales/an_ES: update month and day names,
16711 improve d_fmt, improve postal_fmt, add country_post,
16712 add country_isbn
16713
16714 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16715
16716 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16717 Ukrainian instead of Bulgarian.
16718
16719 2018-03-01 Florian Weimer <fweimer@redhat.com>
16720
16721 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16722 reference.
16723
16724 2018-03-01 Florian Weimer <fweimer@redhat.com>
16725
16726 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16727 * nptl/Makefile (routines): Add pthread_atfork.
16728 (static-only-routines): Set to pthread_atfork.
16729 (libpthread-routines): Remove pthread_atfork.
16730 (libpthread-static-only-routines): Remove.
16731 (install): Update comment.
16732 (libpthread.so): Do not install libpthread_nonshared.a.
16733 (tests): Do not link with libpthread_nonshared.a.
16734 (generated): Remove libpthread_nonshared.a.
16735 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16736 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16737 with libpthread_nonshared.a.
16738
16739 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16740
16741 [BZ #22902]
16742 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16743 (libc_feholdexcept_setroundf128): New macro.
16744 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16745
16746 [BZ #15105]
16747 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16748 libc_hidden_def.
16749 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16750 * include/inttypes.h: New file.
16751
16752 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16753
16754 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16755 -Os in two more places.
16756
16757 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16758
16759 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16760 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16761 be sorted correctly at the moment because of a bug.
16762
16763 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16764
16765 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16766 treat ñ as a primary different character, sync the collation
16767 for Spanish with CLDR.
16768 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16769 * localedata/Makefile: Add new test files.
16770 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16771 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16772 collation order.
16773 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16774 * localedata/am_ET.UTF-8.in: New test file.
16775 * localedata/az_AZ.UTF-8.in: Likewise.
16776 * localedata/be_BY.UTF-8.in: Likewise.
16777 * localedata/ber_DZ.UTF-8.in: Likewise.
16778 * localedata/ber_MA.UTF-8.in: Likewise.
16779 * localedata/bg_BG.UTF-8.in: Likewise.
16780 * localedata/br_FR.UTF-8.in: Likewise.
16781 * localedata/cmn_TW.UTF-8.in: Likewise.
16782 * localedata/crh_UA.UTF-8.in: Likewise.
16783 * localedata/csb_PL.UTF-8.in: Likewise.
16784 * localedata/cv_RU.UTF-8.in: Likewise.
16785 * localedata/cy_GB.UTF-8.in: Likewise.
16786 * localedata/dz_BT.UTF-8.in: Likewise.
16787 * localedata/eo.UTF-8.in: Likewise.
16788 * localedata/es_ES.UTF-8.in: Likewise.
16789 * localedata/fa_IR.UTF-8.in: Likewise.
16790 * localedata/fi_FI.UTF-8.in: Likewise.
16791 * localedata/fil_PH.UTF-8.in: Likewise.
16792 * localedata/fur_IT.UTF-8.in: Likewise.
16793 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16794 * localedata/ha_NG.UTF-8.in: Likewise.
16795 * localedata/ig_NG.UTF-8.in: Likewise.
16796 * localedata/ik_CA.UTF-8.in: Likewise.
16797 * localedata/kk_KZ.UTF-8.in: Likewise.
16798 * localedata/ku_TR.UTF-8.in: Likewise.
16799 * localedata/ky_KG.UTF-8.in: Likewise.
16800 * localedata/ln_CD.UTF-8.in: Likewise.
16801 * localedata/mi_NZ.UTF-8.in: Likewise.
16802 * localedata/ml_IN.UTF-8.in: Likewise.
16803 * localedata/mn_MN.UTF-8.in: Likewise.
16804 * localedata/mr_IN.UTF-8.in: Likewise.
16805 * localedata/mt_MT.UTF-8.in: Likewise.
16806 * localedata/nb_NO.UTF-8.in: Likewise.
16807 * localedata/om_KE.UTF-8.in: Likewise.
16808 * localedata/os_RU.UTF-8.in: Likewise.
16809 * localedata/ps_AF.UTF-8.in: Likewise.
16810 * localedata/ro_RO.UTF-8.in: Likewise.
16811 * localedata/ru_RU.UTF-8.in: Likewise.
16812 * localedata/sc_IT.UTF-8.in: Likewise.
16813 * localedata/se_NO.UTF-8.in: Likewise.
16814 * localedata/sq_AL.UTF-8.in: Likewise.
16815 * localedata/sv_SE.UTF-8.in: Likewise.
16816 * localedata/szl_PL.UTF-8.in: Likewise.
16817 * localedata/tg_TJ.UTF-8.in: Likewise.
16818 * localedata/tk_TM.UTF-8.in: Likewise.
16819 * localedata/tt_RU.UTF-8.in: Likewise.
16820 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16821 * localedata/ug_CN.UTF-8.in: Likewise.
16822 * localedata/uz_UZ.UTF-8.in: Likewise.
16823 * localedata/vi_VN.UTF-8.in: Likewise.
16824 * localedata/yi_US.UTF-8.in: Likewise.
16825 * localedata/yo_NG.UTF-8.in: Likewise.
16826 * localedata/zh_CN.UTF-8.in: Likewise.
16827 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16828 file and fix bugs in the collation.
16829 * localedata/locales/az_AZ: Likewise.
16830 * localedata/locales/be_BY: Likewise.
16831 * localedata/locales/ber_DZ: Likewise.
16832 * localedata/locales/ber_MA: Likewise.
16833 * localedata/locales/bg_BG: Likewise.
16834 * localedata/locales/br_FR: Likewise.
16835 * localedata/locales/br_FR@euro: Likewise.
16836 * localedata/locales/ca_ES: Likewise.
16837 * localedata/locales/cns11643_stroke: Likewise.
16838 * localedata/locales/crh_UA: Likewise.
16839 * localedata/locales/cs_CZ: Likewise.
16840 * localedata/locales/csb_PL: Likewise.
16841 * localedata/locales/cv_RU: Likewise.
16842 * localedata/locales/cy_GB: Likewise.
16843 * localedata/locales/da_DK: Likewise.
16844 * localedata/locales/dz_BT: Likewise.
16845 * localedata/locales/en_CA: Likewise.
16846 * localedata/locales/eo: Likewise.
16847 * localedata/locales/es_CU: Likewise.
16848 * localedata/locales/es_EC: Likewise.
16849 * localedata/locales/es_ES: Likewise.
16850 * localedata/locales/es_US: Likewise.
16851 * localedata/locales/et_EE: Likewise.
16852 * localedata/locales/fa_IR: Likewise.
16853 * localedata/locales/fi_FI: Likewise.
16854 * localedata/locales/fil_PH: Likewise.
16855 * localedata/locales/fur_IT: Likewise.
16856 * localedata/locales/gez_ER@abegede: Likewise.
16857 * localedata/locales/ha_NG: Likewise.
16858 * localedata/locales/hr_HR: Likewise.
16859 * localedata/locales/hsb_DE: Likewise.
16860 * localedata/locales/hu_HU: Likewise.
16861 * localedata/locales/ig_NG: Likewise.
16862 * localedata/locales/ik_CA: Likewise.
16863 * localedata/locales/is_IS: Likewise.
16864 * localedata/locales/iso14651_t1_pinyin: Likewise.
16865 * localedata/locales/kk_KZ: Likewise.
16866 * localedata/locales/ku_TR: Likewise.
16867 * localedata/locales/ky_KG: Likewise.
16868 * localedata/locales/ln_CD: Likewise.
16869 * localedata/locales/lt_LT: Likewise.
16870 * localedata/locales/lv_LV: Likewise.
16871 * localedata/locales/mi_NZ: Likewise.
16872 * localedata/locales/ml_IN: Likewise.
16873 * localedata/locales/mn_MN: Likewise.
16874 * localedata/locales/mr_IN: Likewise.
16875 * localedata/locales/mt_MT: Likewise.
16876 * localedata/locales/nb_NO: Likewise.
16877 * localedata/locales/om_KE: Likewise.
16878 * localedata/locales/os_RU: Likewise.
16879 * localedata/locales/pl_PL: Likewise.
16880 * localedata/locales/ps_AF: Likewise.
16881 * localedata/locales/ro_RO: Likewise.
16882 * localedata/locales/ru_RU: Likewise.
16883 * localedata/locales/ru_UA: Likewise.
16884 * localedata/locales/sc_IT: Likewise.
16885 * localedata/locales/se_NO: Likewise.
16886 * localedata/locales/si_LK: Likewise.
16887 * localedata/locales/sq_AL: Likewise.
16888 * localedata/locales/sv_FI: Likewise.
16889 * localedata/locales/sv_FI@euro: Likewise.
16890 * localedata/locales/sv_SE: Likewise.
16891 * localedata/locales/szl_PL: Likewise.
16892 * localedata/locales/tg_TJ: Likewise.
16893 * localedata/locales/ti_ER: Likewise.
16894 * localedata/locales/tk_TM: Likewise.
16895 * localedata/locales/tl_PH: Likewise.
16896 * localedata/locales/tr_TR: Likewise.
16897 * localedata/locales/tt_RU: Likewise.
16898 * localedata/locales/tt_RU@iqtelif: Likewise.
16899 * localedata/locales/ug_CN: Likewise.
16900 * localedata/locales/uk_UA: Likewise.
16901 * localedata/locales/uz_UZ: Likewise.
16902 * localedata/locales/uz_UZ@cyrillic: Likewise.
16903 * localedata/locales/vi_VN: Likewise.
16904 * localedata/locales/yi_US: Likewise.
16905 * localedata/locales/yo_NG: Likewise.
16906
16907 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16908
16909 * gen-locales.mk: Make test files which contain @ modifiers in their
16910 name work.
16911 * localedata/gen-locale.sh: Likewise.
16912
16913 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16914
16915 * posix/tst-fnmatch.input: Fix results for range expressions
16916 for non C locales.
16917 * posix/tst-regexloc.c: Do not use a range expression for
16918 de_DE.ISO-8859-1 locale.
16919
16920 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16921
16922 * posix/bug-regex5.c: Fix test case because with the new
16923 iso14651_t1_common file, the da_DK locale now has 6 collating elements
16924 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
16925 file.
16926
16927 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16928
16929 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
16930 downloaded from ISO, the collation order of @-. and space has changed.
16931 Therefore, this test file needed to be adapted.
16932 * localedata/fr_CA.UTF-8.in: Likewise.
16933 * localedata/fr_FR.UTF-8.in: Likewise.
16934 * localedata/uk_UA.UTF-8.in: Likewise.
16935
16936 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16937
16938 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
16939 order of ȥ in the new iso14651_t1_common file.
16940 * localedata/pl_PL.UTF-8.in: Likewise.
16941
16942 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16943
16944 * localedata/locales/iso14651_t1_common: Add sections for various
16945 scripts to the iso14651_t1_common file.
16946
16947 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16948
16949 * localedata/locales/iso14651_t1_common: Use the code point of a
16950 character in the fourth collation level instead of IGNORE for all
16951 entries which have IGNORE on all 4 levels.
16952
16953 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16954
16955 * localedata/locales/iso14651_t1_common: Add some convenient collation
16956 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
16957 rules similar to those in CLDR.
16958
16959 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16960
16961 * localedata/locales/iso14651_t1_common: The new version of this
16962 file downloaded from ISO contained several syntax errors which
16963 are fixed by this patch.
16964
16965 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16966
16967 * localedata/locales/iso14651_t1_common: replace all <U.....>
16968 with <U000.....> because glibc understands only 4 digit or 8 digit
16969
16970 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16971
16972 * localedata/locales/iso14651_t1_common: Necessary changes
16973 to make the file downloaded from ISO usable by glibc.
16974
16975 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16976
16977 [BZ #14095]
16978 * localedata/locales/iso14651_t1_common: Update file to
16979 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
16980
16981 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16982
16983 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
16984 of <nptl/pthreadP.h>
16985 (thread_attr_compare): Move function to...
16986 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
16987 * sysdeps/nptl/timer_routines.h: ... new header.
16988 * sysdeps/mach/hurd/gai_misc.h: New file.
16989
16990 2018-02-26 Joseph Myers <joseph@codesourcery.com>
16991
16992 * string/strcoll_l.c: Include <libc-diag.h>.
16993 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
16994 declarations of seq1 and seq2.
16995
16996 [BZ #15105]
16997 * stdlib/atoi.c (atoi): Use libc_hidden_def.
16998 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
16999
17000 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17001
17002 [BZ #22433]
17003 [BZ #22807]
17004 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17005 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17006 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17007 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17008 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17009 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17010
17011 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17012
17013 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17014 macros used in __ptrace_request.
17015
17016 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17017
17018 [BZ #22792]
17019 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17020 to $(CC).
17021 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17022 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17023 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17024 <tcb-offsets.h>.
17025
17026 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17027
17028 [BZ #15105]
17029 * ctype/ctype.c (tolower): Use libc_hidden_def.
17030 (toupper): Likewise.
17031 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17032 [!_ISOMAC] (toupper): Likewise.
17033
17034 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17035
17036 * localedata/Makefile: Remove --quiet argument when
17037 installing locales
17038
17039 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17040
17041 [BZ #17438]
17042 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17043 in d_fmt.
17044 * localedata/locales/pt_PT (LC_TIME): likewise
17045
17046 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17047
17048 [BZ #22646]
17049 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17050 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17051 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17052
17053 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17054
17055 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17056
17057 * nptl/Makefile (routines): Remove unregister-atfork.
17058 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17059 (fork_handler_alloc): Remove function.
17060 (fork_handlers, fork_handler_init): New variables.
17061 (__fork_lock): Rename to atfork_lock.
17062 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17063 to use a dynamic array to add/remove atfork handlers.
17064 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17065 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17066 Remove declaration.
17067 (fork_handler): Remove next, refcntr, and need_signal member.
17068 (__run_fork_handler_type): New enum.
17069 (__run_fork_handlers): New prototype.
17070 * nptl/register-atfork.c: Remove file.
17071 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17072
17073 * sysdeps/nptl/nptl-signals.h: Move to ...
17074 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17075 comments.
17076 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17077 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17078 unnecessary check for SIGTIMER.
17079 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17080 remove unnecessary removal of SIGTIMER.
17081 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17082 include-signals.h rename.
17083 * nptl/pthreadP.h: Likewise.
17084 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17085 __is_internal_signal instead of __nptl_is_internal_signal.
17086
17087 2018-02-22 Andrew Waterman <andrew@sifive.com>
17088
17089 [BZ # 22884]
17090 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17091 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17092 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17093 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17094
17095 2018-02-22 DJ Delorie <dj@delorie.com>
17096
17097 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17098
17099 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17100
17101 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17102 do_misaligned, not misaligned8.
17103
17104 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17105
17106 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17107 Add memcpy_thunderx2.
17108 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17109 Increment to 4.
17110 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17111 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17112 and IS_THUNDERX2PA checks.
17113 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17114 Use macro to set name appropriately.
17115 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17116 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17117 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17118 New macro.
17119 (IS_THUNDERX2): New macro.
17120
17121 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17122
17123 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17124
17125 2018-02-21 Zack Weinberg <zackw@panix.com>
17126
17127 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17128 Define here, unconditionally.
17129 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17130 * libio/libioP.h: Remove #if 0 blocks.
17131 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17132 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17133 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17134
17135 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17136 Assume weak_alias is always defined.
17137
17138 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17139 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17140 Remove #if 0 and #ifdef TODO blocks.
17141 Assume text_set_element is always defined.
17142
17143 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17144 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17145 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17146
17147 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17148 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17149 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17150 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17151 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17152 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17153 Reformat bit flags for _flags field to make occupancy clearer.
17154 Update commentary.
17155 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17156 Keep definitions consistent with those in libio/libio.h.
17157
17158 * libio/libio.h (_IO_file_flags): Remove macro.
17159 All uses changed to _flags.
17160
17161 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17162 (__HAVE_COLUMN, _IO_BE): Don't define.
17163 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17164 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17165 * libio/libioP.h (EOF): Don't define.
17166 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17167 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17168 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17169 testing _IO_UNIFIED_JUMPTABLES.
17170
17171 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17172 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17173 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17174 (_IO_size_t): Delete; all uses changed to size_t.
17175 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17176 (_IO_off_t): Delete; all uses changed to off_t.
17177 (_IO_off64_t): Delete; all uses changed to off64_t.
17178 (_IO_pid_t): Delete; all uses changed to pid_t.
17179 (_IO_uid_t): Delete; all uses changed to uid_t.
17180 (_IO_wint_t): Delete; all uses changed to wint_t.
17181 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17182 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17183 (_IO_cookie_io_functions_t): Delete; all uses changed to
17184 cookie_io_functions_t.
17185 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17186 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17187 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17188 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17189
17190 * libio/iofopncook.c: Remove unnecessary forward declarations.
17191 * libio/iolibio.h: Correct outdated commentary.
17192 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17193 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17194 Remove unnecessary casts.
17195 * stdio-common/getline.c: Use _IO_getdelim directly.
17196 Don't redefine ssize_t.
17197 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17198 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17199 Remove outdated comments.
17200 * stdio-common/vfscanf.c: Don't redefine va_list.
17201
17202 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17203 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17204 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17205 which are always true, and __cplusplus, which is always false.
17206
17207 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17208
17209 [BZ #15105]
17210 [BZ #19463]
17211 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17212 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17213 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17214 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17215 libc_hidden_proto.
17216 [!_ISOMAC] (putc_unlocked): Likewise.
17217 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17218 define inline if [__USE_EXTERN_INLINES].
17219 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17220 putc_unlocked.
17221
17222 [BZ #15105]
17223 [BZ #19463]
17224 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17225 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17226 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17227 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17228 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17229 getc_unlocked.
17230 * time/tzfile.c (__tzfile_read): Likewise.
17231
17232 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17233
17234 [BZ #22517]
17235 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17236
17237 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17238
17239 * io/fcntl.h: Fix a typo in a comment.
17240
17241 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17242
17243 [BZ #22862]
17244 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17245 define _DEFAULT_SOURCE.
17246 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17247
17248 2018-02-21 Florian Weimer <fweimer@redhat.com>
17249
17250 [BZ #20890]
17251 * elf/cache.c (save_cache): Call fsync on temporary file before
17252 renaming it.
17253 (save_aux_cache): Call fdatasync on temporary file before renaming
17254 it.
17255
17256 2018-02-21 Florian Weimer <fweimer@redhat.com>
17257
17258 [BZ #22787]
17259 * include/caller.h: Remove file.
17260 * elf/dl-caller.c: Likewise.
17261 * elf/Makefile (dl-routines): Remove dl-caller.
17262 (shared-only-routines): Do not add dl-caller.
17263 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17264 __check_caller.
17265 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17266 member.
17267 (dl_open_worker): Do not call __check_caller.
17268 (_dl_open): Do not set caller_dl_open member.
17269 * elf/rtld.c (_rtld_global_ro): Do not initialize
17270 _dl_check_caller member.
17271 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17272 _dl_check_caller member.
17273 (_dl_check_caller): Remove declaration.
17274 * sysdeps/unix/sysv/linux/dl-execstack.c
17275 (_dl_make_stack_executable): Do not call __check_caller.
17276
17277 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17278
17279 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17280 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17281
17282 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17283
17284 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17285 description.
17286
17287 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17288
17289 [BZ #16335]
17290 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17291 of 199606L, 200112L, and 200809L.
17292 (_XOPEN_SOURCE): Document special values of 600 and 700.
17293 (_ISOC11_SOURCE): Document macro.
17294 (_ATFILE_SOURCE): Likewise.
17295 (_FORTIFY_SOURCE): Likewise.
17296
17297 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17298
17299 [BZ #15105]
17300 [BZ #19463]
17301 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17302 and define as weak alias of __ferror_unlocked. Use
17303 libc_hidden_weak.
17304 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17305 libc_hidden_proto.
17306 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17307 function if [__USE_EXTERN_INLINES].
17308 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17309 ferror_unlocked.
17310
17311 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17312
17313 [BZ #6889]
17314 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17315
17316 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17317
17318 [BZ #22818]
17319 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17320 the GLIBC_2.1 version.
17321
17322 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17323
17324 [BZ #21508]
17325 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17326 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17327 intl/tst-gettext-de.po from po/de.po by removing the
17328 POT-Creation-Date line.
17329 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17330 ../po/de.po.
17331 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17332 ../po/de.po.
17333
17334 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17335
17336 * mach/Makefile (headers): Add mach/param.h.
17337 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17338 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17339 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17340 (__ptsname_r): Move implementation to...
17341 (__ptsname_internal): ... new function. Add filling the STP
17342 structure.
17343
17344 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17345
17346 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17347 idouble to 1 ULP.
17348
17349 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17350
17351 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17352 syntax.
17353
17354 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17355
17356 * nptl/Makefile (tst-mutex8-ENV): Delete.
17357 * nptl/tst-mutex8.c (check_type):
17358 Add runtime check if mutex will be elided.
17359
17360 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17361
17362 [BZ #20980]
17363 [BZ #21234]
17364 * manual/install.texi (Configuring and compiling): Describe
17365 passing CC and CFLAGS on configure command line, not as
17366 environment variables. Use @code markup on those variables.
17367 Specify what options go in CC and what go in CFLAGS. Note the
17368 requirement to compile with optimization.
17369 * INSTALL: Regenerated.
17370
17371 [BZ #18124]
17372 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17373 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17374 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17375 __sigprocmask instead of sigprocmask.
17376 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17377 Likewise.
17378 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17379 __sigsetjmp and sigprocmask.
17380
17381 [BZ #15105]
17382 * include/argz.h (argz_next): Use libc_hidden_proto.
17383 (__argz_next): Likewise.
17384 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17385 (argz_next): Use libc_hidden_weak.
17386
17387 [BZ #15105]
17388 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17389 libc_hidden_proto.
17390 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17391 libc_hidden_def.
17392
17393 [BZ #15105]
17394 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17395 libc_hidden_proto.
17396 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17397
17398 [BZ #15105]
17399 [BZ #19463]
17400 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17401 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17402 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17403 (__feof_unlocked): New declaration, and inline function if
17404 [__USE_EXTERN_INLINES].
17405 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17406 instead of feof_unlocked.
17407 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17408 * nss/nsswitch.c (nss_parse_file): Likewise.
17409 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17410 Likewise.
17411 * time/getdate.c (__getdate_r): Likewise.
17412 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17413 Define as macro to call __feof_unlocked.
17414
17415 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17416
17417 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17418
17419 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17420
17421 * math/Makefile: Remove mpexp.c and mplog.c
17422 * sysdeps/i386/fpu/mpexp.c: Delete file.
17423 * sysdeps/i386/fpu/mplog.c: Likewise.
17424 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17425 * sysdeps/ia64/fpu/mplog.c: Likewise.
17426 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17427 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17428 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17429 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17430 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17431 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17432 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17433 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17434 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17435 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17436 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17437 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17438 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17439 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17440 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17441 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17442
17443 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17444
17445 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17446
17447 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17448
17449 * sysdeps/sh/libm-test-ulps: Update.
17450
17451 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17452
17453 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17454 idouble to 1 ULP.
17455
17456 2018-02-12 Zack Weinberg <zackw@panix.com>
17457
17458 [BZ #19239]
17459 * posix/sys/types.h: Don't include sys/sysmacros.h.
17460 * misc/sys/sysmacros.h: Remove the conditional deprecation
17461 warnings for the macros defined by this header.
17462
17463 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17464
17465 * manual/probes.texi: Remove slowexp probes.
17466 * math/Makefile: Remove slowexp.
17467 * sysdeps/generic/math_private.h (__slowexp): Remove.
17468 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17469 document error bounds.
17470 * sysdeps/i386/fpu/slowexp.c: Remove.
17471 * sysdeps/ia64/fpu/slowexp.c: Remove.
17472 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17473 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17474 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17475 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17476 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17477 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17478 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17479 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17480 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17481 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17482 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17483
17484 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17485
17486 [BZ #13932]
17487 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17488 * benchtests/pow-inputs: Update comment for slow path cases.
17489 * manual/probes.texi (slowpow_p10): Delete removed probe.
17490 (slowpow_p10): Likewise.
17491 * math/Makefile: Remove halfulp.c and slowpow.c.
17492 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17493 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17494 (__halfulp): Remove.
17495 (__slowpow): Remove.
17496 * sysdeps/i386/fpu/halfulp.c: Delete file.
17497 * sysdeps/i386/fpu/slowpow.c: Likewise.
17498 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17499 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17500 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17501 improve comments and add error analysis.
17502 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17503 (power1): Remove function:
17504 (log1): Remove error argument, add error analysis.
17505 (my_log2): Remove function.
17506 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17507 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17508 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17509 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17510 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17511 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17512 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17513 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17514 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17515 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17516 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17517 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17518 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17519 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17520
17521 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17522
17523 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17524 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17525
17526 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17527
17528 [BZ #22433]
17529 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17530 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17531 and PTRACE_SETHBPREGS.
17532
17533 2018-02-10 Zack Weinberg <zackw@panix.com>
17534
17535 [BZ #22830]
17536 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17537 correctly.
17538 * malloc/tst-malloc-stats-cancellation.c: New test case.
17539 * malloc/Makefile: Add new test case.
17540
17541 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17542
17543 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17544
17545 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17546
17547 * math/Makefile (libm-narrow-fns): Add add.
17548 (libm-test-funcs-narrow): Likewise.
17549 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17550 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17551 * math/gen-auto-libm-tests.c (test_functions): Add add.
17552 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17553 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17554 (NARROW_ADD_TRIVIAL): Likewise.
17555 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17556 macro.
17557 (__daddl): Likewise.
17558 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17559 dadd.
17560 (CFLAGS-nldbl-dadd.c): New variable.
17561 (CFLAGS-nldbl-fadd.c): Likewise.
17562 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17563 __nldbl_daddl.
17564 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17565 prototype.
17566 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17567 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17568 * math/auto-libm-test-in: Add tests of add.
17569 * math/auto-libm-test-out-narrow-add: New generated file.
17570 * math/libm-test-narrow-add.inc: New file.
17571 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17572 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17573 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17574 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17575 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17576 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17577 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17578 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17579 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17580 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17581 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17582 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17583 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17584 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17585 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17586 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17587 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17588 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17589 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17590 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17591 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17592 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17594 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17608 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17609 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17610 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17611 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17612 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17613 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17614 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17615 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17616 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17617
17618 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17619 (f128-pairs): New variable.
17620 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17621 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17622 to CFLAGS.
17623 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17624 Also make tests add $(f128-loader-link) to gnulib-tests.
17625
17626 2018-02-09 DJ Delorie <dj@redhat.com>
17627
17628 [BZ #22827]
17629 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17630 64-bit ELF type for 64-bit ELF objects.
17631
17632 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17633
17634 * math/libm-test-driver.c (snan_tests_arg): New variable.
17635 * math/libm-test-support.h (snan_tests_arg): New declaration.
17636 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17637
17638 * math/Makefile (test-type-pairs): New variable.
17639 (test-type-pairs-f64xf128-yes): Likewise.
17640 (tests): Add test-narrow-macros.
17641 (libm-test-funcs-narrow): New variable.
17642 (libm-test-c-narrow): Likewise.
17643 (generated): Add $(libm-test-c-narrow).
17644 (libm-tests-base-narrow): New variable.
17645 (libm-tests-narrow): Likewise.
17646 (libm-tests): Add $(libm-tests-narrow).
17647 (libm-tests-for-type): Handle $(libm-tests-narrow).
17648 (libm-test-c-narrow-obj): New variable.
17649 ($(libm-test-c-narrow-obj)): New rule.
17650 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17651 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17652 $(o-iterator) to set dependencies and CFLAGS.
17653 * math/gen-auto-libm-tests.c: Document use for narrowing
17654 functions.
17655 (output_for_one_input_case): Take argument NARROW.
17656 (generate_output): Likewise. Update call to
17657 output_for_one_input_case.
17658 (main): Take --narrow option. Update call to generate_output.
17659 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17660 (apply_lit): Update call to _apply_lit.
17661 (apply_arglit): New function.
17662 (parse_args): Handle "a" arguments.
17663 (parse_auto_input): Handle format names using ":".
17664 * math/README.libm-test: Document "a" parameter type.
17665 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17666 (ARG_TYPE_TRUE_MIN): Likewise.
17667 (ARG_TYPE_MAX): Likwise.
17668 (ARG_MIN_EXP): Likewise.
17669 (ARG_MAX_EXP): Likewise.
17670 (ARG_MANT_DIG): Likewise.
17671 (TEST_COND_arg_ibm128): Likewise.
17672 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17673 (TEST_COND_arg_fmt): New macro.
17674 (init_max_error): Update prototype.
17675 * math/libm-test-support.c (test_ibm128): New variable.
17676 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17677 instead of using [TEST_COND_ibm128] conditional.
17678 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17679 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17680 [TEST_NARROW] (TEST_MSG): New definition.
17681 (arg_plus_zero): New macro.
17682 (arg_minus_zero): Likewise.
17683 (arg_plus_infty): Likewise.
17684 (arg_minus_infty): Likewise.
17685 (arg_qnan_value_pl): Likewise.
17686 (arg_qnan_value): Likewise.
17687 (arg_snan_value_pl): Likewise.
17688 (arg_snan_value): Likewise.
17689 (arg_max_value): Likewise.
17690 (arg_min_value): Likewise.
17691 (arg_min_subnorm_value): Likewise.
17692 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17693 (RUN_TEST_LOOP_aa_f): New macro.
17694 (TEST_SUFF): New macro.
17695 (TEST_SUFF_STR): Likewise.
17696 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17697 (TEST_COND_any_ibm128): New macro.
17698 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17699 this_func. Update call to init_max_error.
17700 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17701 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17702 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17703 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17704 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17705 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17706 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17707 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17708 * math/test-math-vector.h (TEST_NARROW): Likewise.
17709 * math/test-arg-double.h: New file.
17710 * math/test-arg-float128.h: Likewise.
17711 * math/test-arg-float32x.h: Likewise.
17712 * math/test-arg-float64.h: Likewise.
17713 * math/test-arg-float64x.h: Likewise.
17714 * math/test-arg-ldouble.h: Likewise.
17715 * math/test-math-narrow.h: Likewise.
17716 * math/test-narrow-macros.c: Likewise.
17717 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17718 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17719 test-narrow-macros-ldbl-64.
17720 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17721
17722 * math/bits/mathcalls-narrow.h: New file.
17723 * include/bits/mathcalls-narrow.h: Likewise.
17724 * math/math-narrow.h: Likewise.
17725 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17726 (__MATHCALL_NARROW_ARGS_2): Likewise.
17727 (__MATHCALL_NARROW_ARGS_3): Likewise.
17728 (__MATHCALL_NARROW_NORMAL): Likewise.
17729 (__MATHCALL_NARROW_REDIR): Likewise.
17730 (__MATHCALL_NARROW): Likewise.
17731 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17732 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17733 defined.
17734 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17735 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17736 (libm-narrow-fns): New variable.
17737 (libm-narrow-types-basic): Likewise.
17738 (libm-narrow-types-ldouble-yes): Likewise.
17739 (libm-narrow-types-float128-yes): Likewise.
17740 (libm-narrow-types-float128-alias-yes): Likewise.
17741 (libm-narrow-types): Likewise.
17742 (libm-routines): Add narrowing functions.
17743 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17744 (libc_feholdexcept_setroundf128): New macro.
17745 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17746 * sysdeps/ieee754/float128/float128_private.h: Include
17747 <math/math-narrow.h>.
17748 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17749 Undefine and redefine.
17750 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17751 (libm_alias_float_ldouble): Undefine and redefine.
17752 (libm_alias_double_ldouble): Likewise.
17753
17754 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17755
17756 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17757
17758 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17759 FPCR/FPSR.
17760
17761 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17762
17763 * manual/creature.texi: Convert references to gcc.info to gcc.
17764 * manual/stdio.texi: Likewise.
17765 * manual/string.texi: Likewise.
17766
17767 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17768
17769 [BZ #17979]
17770 * posix/bits/types.h (__int_least8_t): New typedef.
17771 (__uint_least8_t): Likewise.
17772 (__int_least16_t): Likewise.
17773 (__uint_least16_t): Likewise.
17774 (__int_least32_t): Likewise.
17775 (__uint_least32_t): Likewise.
17776 (__int_least64_t): Likewise.
17777 (__uint_least64_t): Likewise.
17778 * sysdeps/generic/stdint.h (int_least8_t): Define using
17779 __int_least8_t.
17780 (int_least16_t): Define using __int_least16_t.
17781 (int_least32_t): Define using __int_least32_t.
17782 (int_least64_t): Define using __int_least64_t.
17783 (uint_least8_t): Define using __uint_least8_t.
17784 (uint_least16_t): Define using __uint_least16_t.
17785 (uint_least32_t): Define using __uint_least32_t.
17786 (uint_least64_t): Define using __uint_least64_t.
17787 * wcsmbs/uchar.h: Include <bits/types.h>.
17788 (char16_t): Define using __uint_least16_t conditional only on
17789 [!__USE_ISOCXX11].
17790 (char32_t): Define using __uint_least32_t conditional only on
17791 [!__USE_ISOCXX11].
17792 * wcsmbs/test-char-types.c: New file.
17793 * wcsmbs/Makefile (tests): Add test-char-types.
17794
17795 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17796 version to 4.0.1.
17797
17798 2018-02-07 Zack Weinberg <zackw@panix.com>
17799
17800 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17801 Delete all contents except for definitions of _G_HAVE_MMAP and
17802 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17803 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17804 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17805 change as above.
17806
17807 * libio/libio.h: Don't include bits/_G_config.h here.
17808 Include stddef.h with __need_wchar_t defined. Include
17809 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17810 Define _IO_iconv_t here, directly.
17811 Don't define _IO_HAVE_ST_BLKSIZE.
17812 * libio/libioP.h: Include _G_config.h here. Move include of
17813 shlib-compat.h up with rest of includes. Simplify conditionals
17814 controlling definition of _IO_JUMPS_OFFSET.
17815
17816 * csu/init.c: Remove always-true #if around entire file.
17817 Don't include stdio.h. Set _IO_stdin_used to hardwired
17818 constant 0x20001, and update commentary.
17819 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17820 Replace all uses of _G_va_list with __gnuc_va_list.
17821 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17822 instead of #if _IO_HAVE_ST_BLKSIZE.
17823 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17824 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17825 not #ifdef.
17826
17827 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17828 multiple-include guard to match.
17829 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17830 into this file.
17831 Remove preprocessor conditionals that are always true and/or
17832 redundant to other preprocessor conditionals in the same nest.
17833 Include shlib-compat.h unconditionally.
17834 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17835 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17836 defined after including stdio.h.
17837 Use __BEGIN_DECLS/__END_DECLS.
17838
17839 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17840 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17841 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17842
17843 2018-02-07 Zack Weinberg <zackw@panix.com>
17844
17845 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17846 New single-type headers split from _G_config.h.
17847 * libio/bits/types/cookie_io_functions_t.h
17848 * libio/bits/types/struct_FILE.h
17849 New single-type headers split from libio.h.
17850
17851 * libio/Makefile: Install the above new headers. Don't install
17852 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17853 bits/libio-ldbl.h.
17854 * libio/_G_config.h, libio/libio.h: Delete file.
17855
17856 * libio/bits/libio.h: Remove improper-inclusion guard.
17857 Include stdio.h and don't repeat anything that it does.
17858 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17859 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17860 __io_read_fn as cookie_read_function_t,
17861 __io_write_fn as cookie_write_function_t,
17862 __io_seek_fn as cookie_seek_function_t,
17863 __io_close_fn as cookie_close_function_t,
17864 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17865 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17866 here, in the "compatibility defines" section. Remove an #if 0
17867 block. Use the "body" macros from bits/types/struct_FILE.h to
17868 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17869 and _IO_ferror_unlocked.
17870 Move prototypes of __uflow and __overflow...
17871
17872 * libio/stdio.h: ...here. Don't include bits/libio.h.
17873 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17874 directly from stdarg.h. Include bits/types/__fpos_t.h,
17875 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17876 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17877 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17878 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17879 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17880 __ssize_t, not _IO_ssize_t. Unconditionally define
17881 BUFSIZ as 8192 and EOF as (-1).
17882
17883 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17884 macros from bits/types/struct_FILE.h instead of _IO_* macros
17885 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17886 instead of _IO_ssize_t.
17887 * libio/bits/stdio2.h: Similarly.
17888
17889 * libio/iolibio.h: Add multiple-include guard.
17890 Include bits/libio.h after stdio.h.
17891 * libio/libioP.h: Add multiple-include guard.
17892 Include stdio.h and bits/libio.h before iolibio.h.
17893
17894 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
17895 * include/bits/types/cookie_io_functions_t.h
17896 * include/bits/types/struct_FILE.h: New wrappers.
17897
17898 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
17899 Get definitions of _G_fpos_t and _G_fpos64_t from
17900 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17901 respectively. Remove improper-inclusion guards.
17902
17903 * conform/data/stdio.h-data: Update expectations of va_list.
17904 * scripts/check-installed-headers.sh: Remove special case for
17905 libio.h and _G_config.h.
17906
17907 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17908
17909 [BZ #15105]
17910 [BZ #19463]
17911 * include/sys/sysmacros.h [!_ISOMAC]
17912 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
17913 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
17914 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
17915 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
17916 libc_hidden_proto.
17917 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
17918 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
17919 Likewise.
17920 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
17921 Undefine and redefine to add use __gnu_dev_ prefix.
17922 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
17923 Likewise.
17924 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
17925 and define as hidden inline function.
17926 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
17927 Likewise.
17928 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
17929 Likewise.
17930 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
17931 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
17932 (gnu_dev_minor): Likewise.
17933 (gnu_dev_makedev): Likewise.
17934 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
17935 makedev.
17936 * posix/wordexp.c (exec_comm_child): Likewise.
17937 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
17938 instead of minor and __gnu_dev_major instead of major.
17939 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
17940 __gnu_dev_major instead of major.
17941 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
17942 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
17943 instead of gnu_dev_minor.
17944 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
17945 (SLAVE_P): Likewise.
17946 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
17947 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
17948 instead of major.
17949
17950 [BZ #21313]
17951 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
17952 in another place.
17953 * locale/weightwc.h (findidx): Likewise.
17954
17955 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
17956
17957 * manual/probes.texi (slowlog): Delete documentation of removed probe.
17958 (slowlog_inexact): Likewise
17959 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
17960 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
17961
17962 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
17963
17964 [BZ #22797]
17965 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
17966 missing second underscore to parameter name.
17967
17968 2018-02-06 Joseph Myers <joseph@codesourcery.com>
17969
17970 [BZ #14508]
17971 [BZ #15512]
17972 [BZ #17082]
17973 [BZ #20530]
17974 * bits/byteswap.h: Update file comment. Do not include
17975 <bits/byteswap-16.h>.
17976 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
17977 constant.
17978 (__bswap_16): Define as inline function.
17979 (__bswap_constant_32): Reformat definition.
17980 (__bswap_32): Always define as inline function, not macro, using
17981 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
17982 otherwise __bswap_constant_32.
17983 (__bswap_constant_64): Reformat definition. Do not use
17984 __extension__ here.
17985 (__bswap_64): Always define as inline function, not macro. Use
17986 __extension__ on function definition. Use __builtin_bswap64 if
17987 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
17988 * string/test-endian-file-scope.c: New file.
17989 * string/test-endian-sign-conversion.c: Likewise.
17990 * string/Makefile (headers): Remove bits/byteswap-16.h.
17991 (tests): Add test-endian-file-scope and
17992 test-endian-sign-conversion.
17993 (CFLAGS-test-endian-sign-conversion.c): New variable.
17994 * bits/byteswap-16.h: Remove file.
17995 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
17996 * sysdeps/ia64/bits/byteswap.h: Likewise.
17997 * sysdeps/m68k/bits/byteswap.h: Likewise.
17998 * sysdeps/s390/bits/byteswap-16.h: Likewise.
17999 * sysdeps/s390/bits/byteswap.h: Likewise.
18000 * sysdeps/tile/bits/byteswap.h: Likewise.
18001 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18002 * sysdeps/x86/bits/byteswap.h: Likewise.
18003
18004 [BZ #17721]
18005 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18006 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18007 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18008 199901L] (__restrict): Define to restrict.
18009
18010 [BZ #19667]
18011 * string/testcopy.c: Include <support/support.h>. Do not include
18012 <malloc.h>. Use <support/test-driver.c>.
18013 (main): Rename to do_test. Make static. Use xmalloc instead of
18014 malloc.
18015
18016 [BZ #13575]
18017 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18018 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18019 (SSIZE_MAX): Define to INT_MAX.
18020 * posix/test-ssize-max.c: New file.
18021 * posix/Makefile (tests): Add test-ssize-max.
18022
18023 [BZ #19668]
18024 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18025 <support/support.h>. Do not include <malloc.h>.
18026 (query_auxv): Use xmalloc instead of malloc.
18027
18028 [BZ #14553]
18029 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18030 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18031 instead of loff_t.
18032
18033 2018-02-06 Florian Weimer <fweimer@redhat.com>
18034
18035 [BZ #18023]
18036 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18037 Use scratch_buffer instead of extend_alloca.
18038
18039 2018-02-06 Zack Weinberg <zackw@panix.com>
18040
18041 * libio/stdio.h: Don't define getc or putc as macros.
18042 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18043 not _IO_getc and _IO_putc.
18044
18045 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18046 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18047
18048 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18049
18050 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18051 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18052
18053 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18054
18055 [BZ #14890]
18056 * elf/elf.h (NT_PRFPREG): New macro.
18057 (NT_S390_VXRS_LOW): Likewise.
18058 (NT_S390_VXRS_HIGH): Likewise.
18059 (NT_S390_GS_CB): Likewise.
18060 (NT_S390_GS_BC): Likewise.
18061 (NT_S390_RI_CB): Likewise.
18062
18063 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18064 (MAP_SYNC): New macro.
18065 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18066 Likewise.
18067 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18068 (MAP_SYNC): Likewise.
18069 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18070 (MAP_SYNC): Likewise.
18071 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18072 (MAP_SYNC): Likewise.
18073 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18074 (MAP_SYNC): Likewise.
18075 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18076 (MAP_SYNC): Likewise.
18077 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18078 (MAP_SYNC): Likewise.
18079 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18080 Likewise.
18081 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18082 Likewise.
18083
18084 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18085 (MAP_SHARED_VALIDATE): New macro.
18086 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18087 (MAP_SHARED_VALIDATE): Likewise.
18088
18089 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18090
18091 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18092 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18093 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18094
18095 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18096
18097 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18098 (DT_NUM): Updated to 35.
18099
18100 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18101
18102 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18103 __builtin_expect with __glibc_likely and __glibc_unlikely.
18104 (elf_machine_rela): Likewise.
18105 (elf_machine_lazy_rel): Likewise.
18106
18107 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18108
18109 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18110 __builtin_expect with __glibc_likely and __glibc_unlikely.
18111 (elf_machine_lazy_rel): Likewise.
18112
18113 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18114
18115 [BZ #22638]
18116 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18117 SHARED.
18118 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18119
18120 2018-02-05 Andreas Schwab <schwab@suse.de>
18121
18122 [BZ #22761]
18123 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18124 string.
18125
18126 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18127
18128 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18129 not check against PTHREAD_STACK_MIN.
18130
18131 2018-02-02 Sean McKean <smckean83@gmail.com>
18132
18133 [BZ #22735]
18134 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18135
18136 2018-02-02 Florian Weimer <fweimer@redhat.com>
18137
18138 [BZ #22753]
18139 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18140 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18141 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18142 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18143 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18144 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18145 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18146 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18147 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18148 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18149 * misc/tst-preadvwritev2.c (do_test): Call it.
18150 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18151
18152 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18153
18154 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18155
18156 * benchtests/bench-memcmp.c: Print json instead of plain text.
18157
18158 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18159 every test run.
18160
18161 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18162
18163 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18164 version to 4.15.
18165 (s390_sthyi): New syscall.
18166
18167 * sysdeps/generic/ldbl-classify-compat.h: New file.
18168 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18169 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18170 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18171 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18172 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18173 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18174 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18175 <ldbl-classify-compat.h>.
18176 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18177 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18178 <ldbl-classify-compat.h>.
18179 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18180 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18181 <ldbl-classify-compat.h>.
18182 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18183 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18184 <ldbl-classify-compat.h>.
18185 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18186 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18187 <ldbl-classify-compat.h>.
18188 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18189 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18190 <ldbl-classify-compat.h>.
18191 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18192 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18193 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18194 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18195 * sysdeps/microblaze/math_private.h: Likewise.
18196 * sysdeps/nios2/math_private.h: Likewise.
18197 * sysdeps/sh/math_private.h: Likewise.
18198
18199 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18200 * sysdeps/m68k/coldfire/math_private.h: ... here.
18201 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18202 * sysdeps/tile/math_private.h: Likewise.
18203 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18204 Remove macro.
18205 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18206 Likewise.
18207
18208 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18209 Remove macro.
18210 (libc_fetestexcept): Likewise.
18211 (libc_feupdateenv_test): Likewise.
18212 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18213 (libc_fetestexcept): Likewise.
18214 (libc_feupdateenv_test): Likewise.
18215 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18216 (libc_fetestexcept): Likewise.
18217 (libc_feupdateenv_test): Likewise.
18218 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18219 (libc_fetestexcept): Likewise.
18220 (libc_feupdateenv_test): Likewise.
18221
18222 * sysdeps/generic/math_private.h
18223 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18224 New inline function.
18225 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18226 Likewise.
18227
18228 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18229 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18230 * sysdeps/generic/math_private.h
18231 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18232 inline function.
18233 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18234 Likewise.
18235 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18236 Likewise.
18237 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18238 Likewise.
18239 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18240 Likewise.
18241 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18242 Likewise.
18243 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18244 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18245 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18246 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18247 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18248 (__fegetenv): Likewise.
18249 (fesetenv): Likewise.
18250 (__fesetenv): Likewise.
18251 (feupdateenv): Likewise.
18252 (__feupdateenv): Likewise.
18253 (fegetround): Likewise.
18254 (__fegetround): Likewise.
18255 (fesetround): Likewise.
18256 (__fesetround): Likewise.
18257
18258 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18259 (feraiseexcept): New macro.
18260 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18261 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18262 Remove macro.
18263 (__feraiseexcept): Likewise.
18264 (feclearexcept): Likewise.
18265 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18266 (__feraiseexcept): Likewise.
18267 (feclearexcept): Likewise.
18268 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18269 (__feraiseexcept): Likewise.
18270 (feclearexcept): Likewise.
18271 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18272 (__feraiseexcept): Likewise.
18273 (feclearexcept): Likewise.
18274 (fetestexcept): Likewise.
18275
18276 * sysdeps/m68k/coldfire/math-tests.h: New file.
18277
18278 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18279 * sysdeps/m68k/bits/fenv.h: ... here.
18280 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18281 not define.
18282 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18283 Likewise.
18284 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18285 Likewise.
18286 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18287 Likewise.
18288 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18289 Likewise.
18290 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18291 Define to 0.
18292 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18293 (__FE_UNDEFINED): New enum constant.
18294 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18295 Do not define.
18296 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18297 Likewise.
18298 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18299 Likewise.
18300 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18301 to match generic bits/fenv.h.
18302 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18303 Do not define.
18304
18305 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18306 packed on bits.
18307 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18308 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18309 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18310 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18311
18312 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18313 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18314 Joseph Myers <joseph@codesourcery.com>
18315
18316 [BZ #21314]
18317 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18318 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18319 computation using c.
18320 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18321 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18322 computation using c.
18323
18324 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18325
18326 * version.h (RELEASE): Set to "development".
18327 (VERSION): Set to "2.27.9000".
18328 * NEWS (2.28): New section.
18329
18330 * version.h (RELEASE): Set to "stable".
18331 (VERSION): Set to "2.27".
18332 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18333
18334 * NEWS: Add the list of bugs fixed in 2.27.
18335
18336 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18337
18338 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18339 against PTHREAD_STACK_MIN.
18340
18341 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18342
18343 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18344 New entries.
18345 (Rafal Luzynski, Andreas Schwab): Update.
18346
18347 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18348
18349 [BZ #10871]
18350 * NEWS: List the languages which actually use the alternative
18351 months feature in this release. Also explain that "alt_mon" and
18352 "ab_alt_mon" are optional.
18353
18354 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18355
18356 [BZ #22765]
18357 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18358
18359 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18360
18361 * manual/install.texi (Tools for Compilation): Update the newest
18362 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18363 * INSTALL: Regenerated.
18364
18365 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18366
18367 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18368 instead of __builtin_expect.
18369
18370 2018-01-30 Florian Weimer <fweimer@redhat.com>
18371
18372 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18373 data.
18374 * nss/tst-nss-getpwent.c (do_test): Likewise.
18375
18376 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18377
18378 [BZ #10871]
18379 * localedata/locales/hr_HR (mon): Rename to...
18380 (alt_mon): This.
18381 (mon): Import from CLDR (genitive case).
18382 (d_t_fmt): Update the comment.
18383
18384 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18385
18386 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18387 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18388 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18389
18390 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18391
18392 * mach/Versions: Fix version when __mach_host_self_ was added.
18393 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18394 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18395 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18396 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18397 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18398 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18399 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18400 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18401 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18402 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18403 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18404 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18405 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18406 || to respect codestyle.
18407 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18408 (do_test_bz20181): Rename accordingly.
18409 * malloc/malloc.c: Include <assert.h>.
18410 (assert): Do not define.
18411 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18412 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18413 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18414 * sysdeps/mach/hurd/hp-timing.h: New file.
18415 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18416
18417 2018-01-29 Darius Rad <darius@bluespec.com>
18418
18419 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18420
18421 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18422
18423 * sysdeps/init_array/crti.S (.section .init_array): Add
18424 PREINIT_FUNCTION when defined.
18425 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18426 * config.h.in: Regenerate.
18427 * manual/platform.texi: Add RISC-V documenation for
18428 __riscv_flush_icache.
18429 * sysdeps/riscv/__longjmp.S: New file.
18430 * sysdeps/riscv/backtrace.c: Likewise.
18431 * sysdeps/riscv/bits/endian.h: Likewise.
18432 * sysdeps/riscv/bits/setjmp.h: Likewise.
18433 * sysdeps/riscv/bits/wordsize.h: Likewise.
18434 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18435 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18436 * sysdeps/riscv/dl-trampoline.S: Likewise.
18437 * sysdeps/riscv/gccframe.h: Likewise.
18438 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18439 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18440 * sysdeps/riscv/machine-gmon.h: Likewise.
18441 * sysdeps/riscv/memusage.h: Likewise.
18442 * sysdeps/riscv/setjmp.S: Likewise.
18443 * sysdeps/riscv/sys/asm.h: Likewise.
18444 * sysdeps/riscv/tls-macros.h: Likewise.
18445 * sysdeps/riscv/dl-tls.h: New file.
18446 * sysdeps/riscv/libc-tls.c: Likewise.
18447 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18448 * sysdeps/riscv/nptl/tls.h: Likewise.
18449 * sysdeps/riscv/stackinfo.h: Likewise.
18450 * sysdeps/riscv/bits/fenv.h: New file.
18451 * sysdeps/riscv/e_sqrtl.c: Likewise.
18452 * sysdeps/riscv/fpu_control.h: Likewise.
18453 * sysdeps/riscv/math-tests.h: Likewise.
18454 * sysdeps/riscv/nofpu/Implies: Likewise.
18455 * sysdeps/riscv/sfp-machine.h: Likewise.
18456 * sysdeps/riscv/tininess.h: Likewise.
18457 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18458 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18459 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18460 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18461 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18462 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18463 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18464 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18465 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18466 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18467 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18468 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18469 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18470 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18471 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18472 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18473 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18474 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18475 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18476 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18477 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18478 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18479 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18480 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18481 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18482 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18483 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18484 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18485 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18486 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18487 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18488 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18489 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18490 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18491 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18492 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18493 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18494 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18495 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18496 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18497 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18498 * sysdeps/riscv/rvf/math_private.h: Likewise.
18499 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18500 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18501 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18502 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18503 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18504 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18505 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18506 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18507 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18508 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18509 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18510 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18511 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18512 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18513 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18514 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18515 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18516 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18517 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18518 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18519 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18520 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18521 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18522 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18523 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18524 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18525 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18526 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18527 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18528 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18529 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18530 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18531 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18532 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18533 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18534 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18535 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18536 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18537 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18538 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18539 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18540 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18541 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18542 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18543 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18544 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18545 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18546 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18547 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18548 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18549 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18550 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18551 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18552 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18553 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18554 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18555 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18556 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18557 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18558 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18559 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18560 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18561 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18562 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18563 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18564 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18565 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18566 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18567 * sysdeps/riscv/Implies: New file.
18568 * sysdeps/riscv/Makefile: Likewise.
18569 * sysdeps/riscv/configure: Likewise.
18570 * sysdeps/riscv/configure.ac: Likewise.
18571 * sysdeps/riscv/nptl/Makefile: Likewise.
18572 * sysdeps/riscv/preconfigure: Likewise.
18573 * sysdeps/riscv/rv64/Implies-after: Likewise.
18574 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18575 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18576 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18577 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18578 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18579 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18580 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18581 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18582 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18583 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18584 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18585 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18586 (Config): Likewise.
18587
18588 2018-01-29 Florian Weimer <fweimer@redhat.com>
18589
18590 [BZ #22701]
18591 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18592 libnsl_hidden_proto.
18593 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18594 libnsl_hidden_proto.
18595 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18596 * nis/Makefile (libnsl-routines): Add nss-default only for
18597 build-obsolete-nsl.
18598 * nis/nis_defaults.c (__nis_default_ttl): Add
18599 libnsl_hidden_nolink_def.
18600 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18601 declaration.
18602 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18603 * nis/ypclnt.c (yp_maplist): Likewise.
18604
18605 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18606
18607 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18608 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18609
18610 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18611
18612 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18613 clean -dxfq for git updates when replacing sources.
18614
18615 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18616 --disable-libcilkrts unconditionally, not just for the final GCC
18617 build for Hurd.
18618
18619 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18620 version to 4.15.
18621
18622 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18623
18624 [BZ #10871]
18625 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18626 case).
18627
18628 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18629
18630 [BZ #10871]
18631 * localedata/locales/be_BY (mon): Rename to...
18632 (alt_mon): This, then synchronize with CLDR (nominative case).
18633 (abmon): Rename to...
18634 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18635 (mon): Import from CLDR (genitive case).
18636 (abmon): Likewise.
18637 * localedata/locales/be_BY@latin (mon): Rename to...
18638 (alt_mon): This.
18639 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18640
18641 * localedata/locales/be_BY@latin (lang_name): Reworded to
18642 "biełaruskaja mova".
18643
18644 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18645
18646 [BZ #10871]
18647 * localedata/locales/el_CY (mon): Renamed to...
18648 (alt_mon): This.
18649 (mon): Import from CLDR (genitive case).
18650 * localedata/locales/el_GR: Likewise.
18651
18652 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18653
18654 [BZ #10871]
18655 * localedata/locales/ru_RU (mon): Rename to...
18656 (alt_mon): This.
18657 (abmon): Rename to...
18658 (ab_alt_mon): This.
18659 (mon): Import from CLDR (genitive case).
18660 (abmon): Copy from the old content except the 5th month which is
18661 now in the genitive case, even when abbreviated.
18662 * localedata/locales/ru_UA: Likewise.
18663 * time/tst-strptime.c (day_tests): Add an actual example of
18664 a difference between %b and %Ob in Russian.
18665
18666 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18667
18668 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18669 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18670 a `c' variable.
18671 * resolv/res-close.c: Include <stdlib.h>.
18672 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18673 <sys/wait.h>, <time.h>, <sys/uio.h>.
18674 (NOT_CANCEL_H): Add inclusion guard.
18675 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18676 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18677 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18678 return 0.
18679 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18680 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18681 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18682 instead of void *.
18683 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18684 timer_ptr2id to cast struct timer_node * to void *.
18685 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18686 --disable-libcilkrts to gcc configure.
18687 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18688 and make them the default for now.
18689 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18690 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18691 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18692 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18693 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18694 MACH_IPC_COMPAT.
18695 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18696 __task_terminate would ever return successfully.
18697 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18698 to global scope.
18699 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18700 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18701 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18702 critical section to make code simpler and avoid warning.
18703 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18704 critical section to make code simpler and avoid warning.
18705 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18706 const char * instead of char *.
18707 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18708 __hurd_file_name_split, hurd_file_name_split,
18709 __hurd_directory_name_split, hurd_directory_name_split,
18710 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18711 hurd_file_name_path_lookup): Make lookup function parameter take a
18712 const char *name instead of char *name.
18713 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18714 __hurd_directory_name_split): Likewise.
18715 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18716 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18717 * sysdeps/mach/hurd/check_native.c: New file.
18718 * sysdeps/mach/hurd/check_pf.c: New file.
18719 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18720 (__freeifaddrs): Define macro to freeifaddrs.
18721 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18722 * sysdeps/mach/libmachuser.abilist: New file.
18723 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18724 (do_test_bz20181): Rename accordingly.
18725 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18726 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18727 <sys/mount.h>.
18728 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18729 version only if __USE_EXTERN_INLINES is defined.
18730 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18731 __hurd_sockfail): Likewise.
18732 (_hurd_fd_get): Always declare functions, and provide inline versions
18733 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18734 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18735 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18736 _hurd_port_set): Always declare functions, and provide inline versions
18737 only if __USE_EXTERN_INLINES and _LIBC are defined and
18738 IS_IN(libc).
18739 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18740 _hurd_critical_section_unlock): Likewise.
18741 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18742 * __hurd_threadvar_location): Likewise.
18743 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18744 _hurd_userlink_clear): Likewise.
18745 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18746 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18747 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18748 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18749 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18750 __spin_lock_locked): Likewise.
18751 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18752 __spin_lock_locked): Likewise.
18753 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18754 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18755 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18756 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18757 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18758 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18759 _POSIX_NO_TRUNC): Define to 0.
18760 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18761 check size against PTHREAD_STACK_MIN.
18762 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18763 IS_IN(libpthread)]: Include <sigsetops.h>.
18764 * mach/Makefile (user-interfaces): Add mach/gnumach.
18765 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18766 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18767 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18768 instead of invalid -1.
18769 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18770 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18771 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18772 <net/ppp_defs.h>.
18773
18774 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18775
18776 * hurd/fcntl-internal.h: New file.
18777
18778 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18779
18780 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18781
18782 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18783
18784 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18785
18786 [BZ #22701]
18787 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18788 Build only shared objects.
18789
18790 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18791
18792 * README: Update for hppa.
18793
18794 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18795
18796 * sysdeps/sparc/fpu/libm-test-ulps: Update
18797 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18798
18799 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18800
18801 Revert:
18802
18803 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18804
18805 [BZ #22563]
18806 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18807 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18808 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18809 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18810 to feature_1.
18811
18812 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18813
18814 [BZ #22563]
18815 * bits/types/__cancel_jmp_buf_tag.h: New file.
18816 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18817 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18818 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18819 * nptl/Makefile (headers): Add
18820 bits/types/__cancel_jmp_buf_tag.h.
18821 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18822 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18823 * sysdeps/nptl/pthread.h: Include
18824 <bits/types/__cancel_jmp_buf_tag.h>.
18825 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18826 __cancel_jmp_buf.
18827 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18828
18829 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18830
18831 [BZ #10871]
18832 * localedata/locales/uk_UA (mon): Renamed to...
18833 (alt_mon): This.
18834 (alt_digits): "0" removed and then renamed to...
18835 (mon): This.
18836 (date_fmt): Definition changed not to use the alternative
18837 digits hack.
18838
18839 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18840
18841 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18842 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18843 * elf/elf.h (EF_RISCV_RVC): New define.
18844 (EF_RISCV_FLOAT_ABI): Likewise.
18845 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18846 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18847 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18848 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18849 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18850 define.
18851 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18852
18853 2018-01-25 Andreas Schwab <schwab@suse.de>
18854
18855 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18856 single quotes.
18857 * sysdeps/gnu/configure: Regenerate.
18858 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18859 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18861 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18862 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18863 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18864 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18865 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18866
18867 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18868
18869 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18870 URL, and run autoconf, make it the default for now.
18871
18872 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18873
18874 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18875 soft-float ColdFire configuration.
18876
18877 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18878 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18879 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18880
18881 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18882 MicroBlaze file.
18883
18884 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18885 ....
18886 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18887 ... here.
18888 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18889 New file.
18890
18891 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18892 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18893 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18894 file.
18895
18896 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18897
18898 [BZ #22742]
18899 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18900 Rename to __reserved and add comment.
18901 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18902 Rename to __reserved.
18903
18904 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18905
18906 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18907 i686-gnu configurations.
18908 (Context.run_builds): Include mig, gnumach and hurd in components
18909 considered.
18910 (Context.checkout): Add mig, gnumach and hurd to components.
18911 (Context.checkout_tar): Add URL mappings for mig, gnumach and
18912 hurd.
18913 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
18914 (Config.build): Install gnumach headers, build mig and install
18915 hurd headers for 'gnu' OS.
18916 (Config.install_gnumach_headers): New function.
18917 (Config.install_hurd_headers): Likewise.
18918 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
18919 when building for 'gnu' OS.
18920
18921 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
18922
18923 * manual/tunables.texi (Hardware Capability Tunables): Fix
18924 spelling.
18925
18926 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
18927
18928 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
18929 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
18930 (ALTMON_11, ALTMON_12): Improve documentation.
18931 * manual/time.texi (strftime): Likewise.
18932
18933 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18934
18935 [BZ #10871]
18936 * localedata/locales/pl_PL: Alternative month names added,
18937 primary month names are genitive now.
18938 * time/tst-strptime.c (day_tests): Actually use a genitive case
18939 of a month name in Polish language.
18940
18941 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18942
18943 [BZ #10871]
18944 * manual/locale.texi: Document ALTMON_1..12 constants for
18945 nl_langinfo. Specify when to use ALTMON instead of MON.
18946 * manual/time.texi (strftime, strptime): Document GNU extension
18947 permitting O modifier with %B and %b. Specify when to use
18948 %OB instead of %B.
18949
18950 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18951
18952 [BZ #10871]
18953 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
18954 names, define them as the same as abbreviated month names explicitly.
18955 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
18956 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
18957 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
18958 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
18959 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
18960 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
18961 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
18962 _NL_WABALTMON_12): New enum constants.
18963 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
18964 wab_alt_mon, and ab_alt_mon_defined members.
18965 (time_output): Output ab_alt_mon and wab_alt_mon members.
18966 (time_read): Read them, initialize them as copies of abmon and wabmon
18967 respectively if they are missing, initialize ab_alt_mon_defined.
18968 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
18969 * locale/programs/locfile-kw.h: Regenerate.
18970 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
18971 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
18972 and ru_RU.UTF-8.
18973 * time/strftime_l.c (a_altmonth, aam_len): New macros.
18974 [!COMPILE_WIDE] (ABALTMON_1): New macro.
18975 (__strftime_internal): Handle %Ob and %Oh formats.
18976 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
18977 (__strptime_internal): Handle %Ob and %Oh formats.
18978 * time/tst-strptime.c (day_tests): Add more tests to parse different
18979 forms of month names including the new %Ob format specifier.
18980
18981 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
18982
18983 [BZ #10871]
18984 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
18985 define them as the same as primary full month names explicitly.
18986 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
18987 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
18988 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
18989 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
18990 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
18991 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
18992 _NL_WALTMON_12): New enum constants.
18993 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
18994 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
18995 macros.
18996 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
18997 walt_mon, and alt_mon_defined members.
18998 (time_output): Output alt_mon and walt_mon members.
18999 (time_read): Read them, initialize them as copies of mon and wmon
19000 respectively if they are missing, initialize alt_mon_defined.
19001 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19002 * locale/programs/locfile-kw.h: Regenerate.
19003 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19004 * localedata/tst-langinfo.c (map): Add tests for the new constants
19005 ALTMON_1 .. ALTMON_12.
19006 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19007 and pl_PL.UTF-8.
19008 * time/strftime_l.c (f_altmonth): New macro.
19009 (__strftime_internal): Handle %OB format.
19010 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19011 (__strptime_internal): Handle %OB format.
19012 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19013 of month names including the new %OB format specifier.
19014
19015 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19016
19017 [BZ #22685]
19018 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19019 from ABORT_TRANSACTION.
19020 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19021 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19022 ABORT_TRANSACTION_IMPL): Likewise.
19023 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19024 Linux code, but remove the code that aborts transactions.
19025
19026 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19027
19028 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19029
19030 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19031
19032 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19033 in date: "2004-14-09" should be "2004-09-14".
19034 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19035 "2003-15-09" should be "2003-09-15".
19036
19037 2018-01-18 Arjun Shankar <arjun@redhat.com>
19038
19039 [BZ #22343]
19040 [BZ #22774]
19041 CVE-2018-6485
19042 CVE-2018-6551
19043 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19044 after padding.
19045 (_int_memalign): check for integer overflow before calling
19046 _int_malloc.
19047 * malloc/tst-malloc-too-large.c: New test.
19048 * malloc/Makefile: Add tst-malloc-too-large.
19049
19050 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19051
19052 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19053 in date: "2017-24-07" should be "2017-07-24".
19054 * localedata/locales/mai_IN: Likewise.
19055 * localedata/locales/mai_NP: Likewise.
19056
19057 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19058
19059 * po/ru.po: Update translations.
19060
19061 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19062
19063 [BZ #22719]
19064 * sysdeps/hppa/backtrace.c: New file.
19065
19066 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19067
19068 [BZ #22715]
19069 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19070 align La_x86_64_retval to VEC_SIZE.
19071
19072 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19073
19074 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19075 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19076
19077 2018-01-16 Florian Weimer <fweimer@redhat.com>
19078
19079 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19080 Move tst-thread-exit-clobber ...
19081 [$(CXX)] (tests-unsupported): ... to here.
19082
19083 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19084
19085 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19086 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19087 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19088 (_dl_aarch64_cap_flags): Update.
19089 (_DL_HWCAP_COUNT): Update.
19090
19091 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19092
19093 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19094 (_DL_HWCAP_LAST): Remove.
19095 (_DL_HWCAP_COUNT): Move to ...
19096 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19097 (_DL_HWCAP_COUNT): ... here.
19098
19099 2018-01-16 Florian Weimer <fweimer@redhat.com>
19100
19101 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19102 mode with GNU extensions.
19103
19104 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19105
19106 * elf/elf.h (NT_ARM_SVE): Define.
19107
19108 2018-01-15 Florian Weimer <fweimer@redhat.com>
19109
19110 [BZ #22636]
19111 * nptl/tst-minstack-throw.cc: New file.
19112 * nptl/Makefile (tests): Add tst-minstack-throw.
19113 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19114 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19115
19116 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19117
19118 * scripts/build-many-glibcs.py (Context.checkout): Default
19119 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19120 version to 1.1.0.
19121
19122 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19123
19124 [BZ #22707]
19125 * elf/elf.h (DF_1_STUB): Define.
19126 (DF_1_PIE): Define.
19127
19128 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19129
19130 [BZ #22697]
19131 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19132 Do not add 0.5 to integer or out-of-range arguments.
19133
19134 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19135
19136 * po/bg.po: Update translations.
19137 * po/cs.po: Likewise.
19138 * po/de.po: Likewise.
19139 * po/ko.po: Likewise.
19140 * po/pl.po: Likewise.
19141 * po/sv.po: Likewise.
19142 * po/uk.po: Likewise.
19143 * po/vi.po: Likewise.
19144
19145 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19146
19147 * aarch64/start.S (_start): Use __wrap_main.
19148 (__wrap_main): New local symbol.
19149
19150 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19151
19152 [BZ #22679]
19153 CVE-2018-1000001
19154 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19155 generic_getcwd if the path returned by getcwd syscall is not absolute.
19156 * io/tst-getcwd-abspath.c: New test.
19157 * io/Makefile (tests): Add tst-getcwd-abspath.
19158
19159 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19160
19161 * malloc/malloc.c (malloc_consolidate): Add size check.
19162
19163 2018-01-12 Florian Weimer <fweimer@redhat.com>
19164
19165 * support/write_message.c (write_message): Preserve errno.
19166 * support/check.c (print_failure): Likewise.
19167 * support/support_test_verify_impl.c (support_test_verify_impl):
19168 Likewise.
19169 * support/support_test_compare_failure.c
19170 (support_test_compare_failure): Likewise.
19171
19172 2018-01-12 Florian Weimer <fweimer@redhat.com>
19173
19174 [BZ #22701]
19175 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19176 Prevent installation of libnsl.so.
19177 (libnsl-inhibit-o): Do not build (or install) static libraries.
19178
19179 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19180
19181 [BZ #22657]
19182 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19183 before the day number which may produce a double space.
19184 (date_fmt): Likewise.
19185
19186 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19187
19188 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19189 instead of fegetenv.
19190
19191 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19192
19193 [BZ #22702]
19194 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19195 comment to say exceptions are discarded.
19196 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19197 __fegetenv.
19198 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19199 be enabled.
19200
19201 2018-01-11 Florian Weimer <fweimer@redhat.com>
19202
19203 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19204 and error message.
19205
19206 2018-01-11 Florian Weimer <fweimer@redhat.com>
19207
19208 [BZ #22636]
19209 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19210 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19211
19212 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19213
19214 [BZ #22693]
19215 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19216 negative arguments in test for NaN or infinity argument.
19217
19218 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19219
19220 * po/libc.pot: Regenerate.
19221
19222 2018-01-10 Florian Weimer <fweimer@redhat.com>
19223
19224 [BZ #22636]
19225 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19226 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19227
19228 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19229
19230 * hurd/hurd/fd.h: Include <fcntl.h>
19231 (__hurd_at_flags): New function.
19232 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19233 with call to __hurd_at_flags.
19234 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19235 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19236 __faccessat
19237 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19238 (__access_noerrno): Use __faccessat_common instead of access_common.
19239 (__access): Likewise.
19240 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19241 with a call to __faccessat.
19242 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19243 (__faccessat_common): ... this. Move implementation of __access into it when
19244 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19245 reauthenticate_cwdir_at helper to implement AT mechanism.
19246 (__faccessat_noerrno): New function, just calls __faccessat_common.
19247 (__faccessat): New function, just calls __faccessat_common.
19248 (faccessat): Define weak alias.
19249
19250 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19251
19252 [BZ #22691]
19253 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19254 (CFLAGS-s_fmaxmagl.c): New variable.
19255 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19256
19257 [BZ #22690]
19258 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19259 long int for arguments of possibly overflowing addition or
19260 subtraction.
19261 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19262
19263 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19264
19265 [BZ #22688]
19266 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19267 (CFLAGS-e_remainderl.c): New variable.
19268
19269 [BZ #22687]
19270 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19271 variable.
19272 (CFLAGS-s_cacoshl.c): Likewise.
19273 (CFLAGS-s_casinhl.c): Likewise.
19274 (CFLAGS-s_catanl.c): Likewise.
19275 (CFLAGS-s_catanhl.c): Likewise.
19276 (CFLAGS-s_cexpl.c): Likewise.
19277 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19278 (CFLAGS-s_csinhl.c): Likewise.
19279 (CFLAGS-s_clogl.c): Likewise.
19280 (CFLAGS-s_clog10l.c): Likewise.
19281 (CFLAGS-s_csinl.c): Likewise.
19282 (CFLAGS-s_csqrtl.c): Likewise.
19283
19284 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19285 2017-01-09 Svante Signell <svante.signell@gmail.com>
19286
19287 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19288 (_hurd_exec_paths): New function.
19289 * hurd/hurd.h (_hurd_exec): Deprecate function.
19290 (_hurd_exec_paths): Declare function.
19291 * hurd/Versions: Export _hurd_exec_paths.
19292 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19293 (__execve): Use __getcwd to build absolute path, and use
19294 _hurd_exec_paths instead of _hurd_exec.
19295 * sysdeps/mach/hurd/spawni.c: Likewise.
19296 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19297 _hurd_exec.
19298
19299 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19300
19301 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19302 test instead of failing in case of ENOENT returned by posix_openpt.
19303
19304 2018-01-08 Florian Weimer <fweimer@redhat.com>
19305
19306 resolv: Support binary labels in test framework.
19307 * support/resolv_test.c (struct to_be_freed): Remove.
19308 (struct compressed_name): New.
19309 (allocate_compressed_name, ascii_tolower)
19310 (compare_compressed_name): New functions.
19311 (struct resolv_response_builder): Update type of
19312 compression_offsets for use with tsearch. Rempve to_be_freed.
19313 (response_push_pointer_to_free): Remove function.
19314 (resolv_response_add_name): Rewrite using struct compressed_name
19315 and tsearch instead of hsearch_r.
19316 (response_builder_allocate): Remove initialization of
19317 compression_offsets.
19318 (response_builder_free): Update for removal of to_be_freed. Use
19319 tdestroy instead of hdestroy_r.
19320 * resolv/Makefile (tests): Add tst-resolv-binary.
19321 (tst-resolv-binary): Link with -lresolv -lpthread.
19322
19323 2018-01-08 Florian Weimer <fweimer@redhat.com>
19324
19325 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19326 time. Pass positive flag instead of negative flag to
19327 support_test_compare_failure.
19328 (support_test_compare_failure): Change negative parameter to
19329 positive.
19330 * support/support_test_compare_failure.c (report)
19331 (support_test_compare_failure): Likewise.
19332 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19333 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19334
19335 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19336
19337 [BZ #22637]
19338 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19339 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19340 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19341 stacksize.
19342 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19343
19344 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19345
19346 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19347 Add s_sincosf-sse2 and s_sincosf-fma.
19348 (CFLAGS-s_sincosf-fma.c): New.
19349 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19350 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19351 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19352 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19353 __sincosf is defined.
19354
19355 2018-01-08 Florian Weimer <fweimer@redhat.com>
19356
19357 * nptl/tst-thread-exit-clobber.cc: New file.
19358 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19359 C++11 mode.
19360 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19361 (tests): Add tst-thread-exit-clobber.
19362 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19363
19364 2018-01-08 Florian Weimer <fweimer@redhat.com>
19365
19366 * support/check.h (support_static_assert): Define.
19367 (TEST_COMPARE): Use it.
19368
19369 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19370
19371 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19372 [!__RLIM_T_MATCHES_RLIM64_T]
19373 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19374 __getrlimit64. Add libc_hidden_weak.
19375
19376 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19377
19378 * elf/elf.h (R_RISCV_NONE): New define.
19379 (R_RISCV_32): Likewise.
19380 (R_RISCV_64): Likewise.
19381 (R_RISCV_RELATIVE): Likewise.
19382 (R_RISCV_COPY): Likewise.
19383 (R_RISCV_JUMP_SLOT): Likewise.
19384 (R_RISCV_TLS_DTPMOD32): Likewise.
19385 (R_RISCV_TLS_DTPMOD64): Likewise.
19386 (R_RISCV_TLS_DTPREL32): Likewise.
19387 (R_RISCV_TLS_DTPREL64): Likewise.
19388 (R_RISCV_TLS_TPREL32): Likewise.
19389 (R_RISCV_TLS_TPREL64): Likewise.
19390 * Makerules (make-link-multidir): Make directories before linking into
19391 them.
19392 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19393 define.
19394 (VDSO_HASH_LINUX_4_15): Likewise.
19395 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19396 in subdirectories of lib.
19397 * nptl/Makefile (/librt.so): Always depend on
19398 "$(shared-thread-library)".
19399
19400 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19401
19402 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19403 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19404 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19405 (___tls_get_addr).
19406 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19407 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19408 "-O2 -march=i686".
19409 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19410 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19411 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19412 * sysdeps/gnu/glob-lstat-compat.c: New file.
19413 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19414 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19415
19416 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19417
19418 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19419 Reserve 16 chars to reloc_addr before calling _itoa_word.
19420
19421 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19422
19423 [BZ #22678]
19424 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19425 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19426
19427 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19428 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19429
19430 * resource/tst-getrlimit.c: Add copyright header.
19431
19432 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19433 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19434
19435 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19436 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19437 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19438 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19439 instead.
19440 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19441 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19442 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19443 RLIM64_INFINITY): Fix values to match the kernel ones.
19444 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19445 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19446 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19447 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19448 getrlimit64@@GLIBC_2_27.
19449 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19450 and setrlimit64.
19451 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19452 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19453 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19454 setrlimit, getrlimit64 and setrlimit64.
19455
19456 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19457
19458 [BZ #22648]
19459 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19460 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19461
19462 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19463
19464 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19465 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19466 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19467
19468 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19469
19470 [BZ #15479]
19471 [BZ #22666]
19472 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19473 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19474
19475 [BZ #15479]
19476 [BZ #22665]
19477 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19478 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19479 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19480 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19481
19482 2018-01-04 Florian Weimer <fweimer@redhat.com>
19483
19484 [BZ #22667]
19485 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19486 Align the stack before calling exit.
19487 * stdlib/tst-makecontext-align.c: New file.
19488 * stdlib/Makefile (tests): Add tst-makecontext-align.
19489
19490 2018-01-04 Florian Weimer <fweimer@redhat.com>
19491
19492 Add support for calling dlvsym from libc.so.
19493 * include/dlfcn.h (__libc_dlvsym): Declare.
19494 * elf/Makefile (tests-static-internal): Add
19495 tst-libc_dlvsym-static.
19496 (tests-internal): Add tst-libc_dlvsym.
19497 (modules-names): Add tst-libc_dlvsym-dso.
19498 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19499 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19500 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19501 object tst-libc_dlvsym-dso.so needs to be built before running
19502 these tests.
19503 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19504 * elf/Versions: Export __libc_dlvsym.
19505 * elf/dl-libc.c (struct do_dlvsym_args): New.
19506 (do_dlvsym, __libc_dlvsym): New functions.
19507 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19508 (_dl_open_hook2): New variable.
19509 (__libc_register_dl_open_hook): Set it.
19510 * elf/tst-libc_dlvsym-dso.c: New file.
19511 * elf/tst-libc_dlvsym-static.c: Likewise.
19512 * elf/tst-libc_dlvsym.c: Likewise.
19513 * elf/tst-libc_dlvsym.h: Likewise.
19514
19515 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19516
19517 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19518 include <sys/mount.h>.
19519
19520 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19521
19522 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19523 Add __NO_MATH_ERRNO__ check.
19524
19525 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19526
19527 * sysdeps/mips/mips32/libm-test-ulps: Update.
19528 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19529
19530 2018-01-02 Florian Weimer <fweimer@redhat.com>
19531
19532 * misc/tst-pselect.c: Add copyright header.
19533
19534 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19535
19536 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19537 comment.
19538 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19539 comment.
19540 (settrlimit): Rename into setrlimit.
19541 (__sttrlimit): Rename into __setrlimit.
19542
19543 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19544 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19545 never defined in that case.
19546
19547 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19548
19549 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19550
19551 * sysdeps/arm/libm-test-ulps: Update.
19552
19553 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19554 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19555
19556 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19557
19558 * NEWS: Add cosf and sincosf to list of optimized functions.
19559
19560 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19561
19562 [BZ #22660]
19563 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19564 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19565 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19566 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19567
19568 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19569
19570 [BZ #22433]
19571 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19572
19573 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19574 making a copy of it.
19575
19576 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19577
19578 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19579 trailing whitespace removed.
19580 * scripts/config.guess: Update to version 2018-01-01.
19581 * scripts/config.sub: Update to version 2018-01-01.
19582 * scripts/move-if-change: Update from gnulib.
19583
19584 * NEWS: Update copyright dates.
19585 * catgets/gencat.c (print_version): Likewise.
19586 * csu/version.c (banner): Likewise.
19587 * debug/catchsegv.sh: Likewise.
19588 * debug/pcprofiledump.c (print_version): Likewise.
19589 * debug/xtrace.sh (do_version): Likewise.
19590 * elf/ldconfig.c (print_version): Likewise.
19591 * elf/ldd.bash.in: Likewise.
19592 * elf/pldd.c (print_version): Likewise.
19593 * elf/sotruss.sh: Likewise.
19594 * elf/sprof.c (print_version): Likewise.
19595 * iconv/iconv_prog.c (print_version): Likewise.
19596 * iconv/iconvconfig.c (print_version): Likewise.
19597 * locale/programs/locale.c (print_version): Likewise.
19598 * locale/programs/localedef.c (print_version): Likewise.
19599 * login/programs/pt_chown.c (print_version): Likewise.
19600 * malloc/memusage.sh (do_version): Likewise.
19601 * malloc/memusagestat.c (print_version): Likewise.
19602 * malloc/mtrace.pl: Likewise.
19603 * manual/libc.texinfo: Likewise.
19604 * nptl/version.c (banner): Likewise.
19605 * nscd/nscd.c (print_version): Likewise.
19606 * nss/getent.c (print_version): Likewise.
19607 * nss/makedb.c (print_version): Likewise.
19608 * posix/getconf.c (main): Likewise.
19609 * scripts/test-installation.pl: Likewise.
19610 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19611
19612 * All files with FSF copyright notices: Update copyright dates
19613 using scripts/update-copyrights.
19614 * locale/programs/charmap-kw.h: Regenerated.
19615 * locale/programs/locfile-kw.h: Likewise.
19616
19617 2017-12-31 Zack Weinberg <zackw@panix.com>
19618
19619 * libio/bits/libio-ldbl.h: Correct check for improper
19620 inclusion. Add own multiple include guard.
19621
19622 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19623 Dmitry V. Levin <ldv@altlinux.org>
19624
19625 [BZ #22625]
19626 CVE-2017-16997
19627 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19628 string token expansion. Check for NULL pointer or empty string possibly
19629 returned by expand_dynamic_string_token.
19630 (decompose_rpath): Check for empty path after dynamic string
19631 token expansion.
19632
19633 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19634
19635 [BZ #22433]
19636 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19637
19638 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19639 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19640 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19641 and PTRACE_SYSCALL.
19642 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19643 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19644 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19645 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19646 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19647 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19648
19649 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19650 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19651 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19652 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19653 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19654 bits/ptrace-shared.h.
19655 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19656 <bits/ptrace-shared.h>.
19657 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19658 __ptrace_peeksiginfo_flags, ptrace): Remove.
19659 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19660 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19661 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19662 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19663 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19664
19665 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19666
19667 [BZ #17804]
19668 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19669 end of the loop. Improve comments.
19670
19671 2017-12-29 Zack Weinberg <zackw@panix.com>
19672
19673 [BZ #22615]
19674 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19675 might be set on success.
19676
19677 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19678
19679 [BZ #22611]
19680 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19681 is unchanged on success.
19682
19683 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19684
19685 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19686 updated.
19687 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19688 expand_dynamic_string_token): Likewise.
19689 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19690 is_path argument.
19691
19692 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19693 contains ':'.
19694
19695 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19696 is set and name contains ':', and all code depending on these checks.
19697
19698 2017-12-24 Zack Weinberg <zackw@panix.com>
19699
19700 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19701 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19702 respectively.
19703 * libio/libio.h: Rename the original version of this file to
19704 libio/bits/libio.h. Error out if not included by stdio.h or the
19705 stub libio.h.
19706 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19707 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19708 if not included by bits/libio.h or the stub _G_config.h.
19709 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19710 sysdeps/unix/sysv/linux/bits. Error out if not included by
19711 bits/libio.h or the stub _G_config.h.
19712 * libio/stdio.h: Include bits/libio.h, not libio.h.
19713 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19714 well as libio.h and _G_config.h.
19715
19716 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19717 * libio/strfile.h, stdio-common/vfscanf.c
19718 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19719 Include stdio.h, not _G_config.h nor libio.h.
19720 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19721 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19722
19723 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19724
19725 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19726
19727 [BZ #22347]
19728 * stdlib/getrandom.c (getrandom): Fix comment.
19729 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19730
19731 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19732
19733 [BZ #21161]
19734 * manual/arith.texi (strtoul): Fix a typo.
19735
19736 [BZ #22596]
19737 * manual/arith.texi (finite): Fix the description of the return
19738 value.
19739
19740 2017-12-22 Eric Blake <ebb9@byu.net>
19741
19742 Avoid gcc warnings on cygwin
19743 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19744 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19745 Avoid unused variable.
19746
19747 2017-12-22 Florian Weimer <fweimer@redhat.com>
19748
19749 * io/Makefile (routines): Add copy_file_range.
19750 (tests): Add tst-copy_file_range.
19751 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19752 * io/Versions (GLIBC_2.27): Export copy_file_range.
19753 * io/copy_file_range-compat.c: New file.
19754 * io/copy_file_range.c: Likewise.
19755 * io/tst-copy_file_range-compat.c: Likewise.
19756 * io/tst-copy_file_range.c: Likewise.
19757 * manual/llio.texi (Copying File Data): New section.
19758 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19759 * support/Makefile (libsupport-routines): Add support-xfstat,
19760 xftruncate, xlseek.
19761 * support/support-xfstat.c: New file.
19762 * support/xftruncate.c: Likewise.
19763 * support/xlseek.c: Likewise.
19764 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19765 * sysdeps/unix/sysv/linux/**.abilist: Update.
19766 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19767
19768 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19769
19770 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19771 disable-multi-arch variant to aarch64-linux-gnu.
19772
19773 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19774
19775 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19776 trailing whitespace removed.
19777 * scripts/config.guess: Update to version 2017-12-17.
19778 * scripts/config.sub: Update to version 2017-11-23.
19779 * scripts/install-sh: Update to version 2017-09-23.17.
19780 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19781
19782 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19783
19784 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19785 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19786 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19787 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19788 * sysdeps/tile/crtn.S: Likewise.
19789 * sysdeps/tile/dl-start.S (_start): Likewise.
19790 * sysdeps/tile/dl-trampoline.S: Likewise.
19791 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19792 * sysdeps/tile/start.S (_start): Likewise.
19793 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19794 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19795 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19796 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19797 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19798 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19799 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19800
19801 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19802 comment.
19803 * sysdeps/tile/preconfigure: Remove tilegx folder.
19804 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19805 * sysdeps/tile/Implies: ... here.
19806 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19807 * sysdeps/tile/Makefile: ... here.
19808 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19809 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19810 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19811 * sysdeps/tile/bits/wordsize.h: ... here.
19812 * sysdeps/tile/tilegx/*: Move to ...
19813 * sysdeps/tile/*: ... here.
19814 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19815 * sysdeps/tile/tilegx32/Implies: ... here.
19816 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19817 * sysdeps/tile/tilegx64/Implies: ... here.
19818 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19819 to ...
19820 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19821 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19822 * sysdeps/unix/sysv/linux/tile/*: ... here.
19823 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19824 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19825 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19826 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19827
19828 * README: Remove tilepro-*-linux-gnu from supported architecture.
19829 * scripts/build-many-glibcs.py: Likewise.
19830 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19831 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19832 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19833 elf_machine_matches_host, elf_machine_dynamic,
19834 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19835 howto, elf_machine_rela): Likewise.
19836 * sysdeps/tile/dl-start.S (_start): Likewise.
19837 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19838 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19839 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19840 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19841 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19842 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19843 Likewise.
19844 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19845 * sysdeps/tile/preconfigure: Likewise.
19846 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19847 POINTER_CHK_GUARD): Likewise.
19848 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19849 * sysdeps/tile/start.S (_start): Likewise.
19850 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19851 Likewise.
19852 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19853 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19854 CMOVNEZ): Remove.
19855 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19856 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19857 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19858 Likewise.
19859 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19860 * sysdeps/tile/tilepro/Implies: Remove file.
19861 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19862 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19863 * sysdeps/tile/tilepro/memchr.c: Likewise.
19864 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19865 * sysdeps/tile/tilepro/memset.c: Likewise.
19866 * sysdeps/tile/tilepro/memusage.h: Likewise.
19867 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19868 * sysdeps/tile/tilepro/strchr.c: Likewise.
19869 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19870 * sysdeps/tile/tilepro/strlen.c: Likewise.
19871 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19872 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19873 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19874 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19875 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19877 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19878 Likewise.
19879 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19882 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19883 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19884 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19885 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19886 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19887 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19888 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19889 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19890 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19891 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19892 tilepro mention in comment.
19893
19894 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19895 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19896 * nptl/pthread_join_common.c: New file: common function used on
19897 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19898 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19899 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19900 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19901 (cleanup): Move definition to pthread_join_common.c.
19902 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19903 Remove superflous checks.
19904 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19905 Likewise.
19906
19907 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
19908
19909 * sysdeps/aarch64/libm-test-ulps: Update.
19910
19911 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19912
19913 * sysdeps/aarch64/memset.S (MEMSET): Define.
19914
19915 2017-12-20 Florian Weimer <fweimer@redhat.com>
19916
19917 [BZ #22635]
19918 nptl: Provide full implementation of pthread_self in libc.so.
19919 * nptl/Makefile (routines): Add pthread_self.
19920 (libpthread-routines): Replace pthread_self with
19921 compat-pthread_self.
19922 * nptl/forward.c (pthread_self): Remove.
19923 * nptl/nptl-init.c (pthread_functions): Do not initialize
19924 ptr_pthread_self.
19925 * nptl/pthread_self.c (pthread_self): Remove weak alias.
19926 * nptl/compat-pthread_self.c: New file.
19927 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
19928 Remove ptr_pthread_self.
19929
19930 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
19931
19932 * posix/regcomp.c: Fix spelling in comments.
19933 * posix/regex.h: Likewise.
19934 * posix/regex_internal.c: Likewise.
19935 * posix/regexec.c: Likewise.
19936
19937 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
19938
19939 [BZ #22377]
19940 * math/Makefile [C++] (tests): Add test for iseqsig.
19941 * math/math.h [C++] (iseqsig): New implementation, which does
19942 not rely on __MATH_TG/__builtin_types_compatible_p.
19943 * math/test-math-iseqsig.cc: New file.
19944 * sysdeps/powerpc/powerpc64le/Makefile
19945 (CFLAGS-test-math-iseqsig.cc): New variable.
19946
19947 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
19948
19949 * elf/dl-load.c (is_trusted_path): Remove.
19950 (fillin_rpath): Remove check_trusted argument and its use,
19951 all callers changed.
19952
19953 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19954
19955 [BZ #22630]
19956 * Makeconfig (link-pie-before-libc): Replace -pie with
19957 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
19958 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
19959 (tst-dlopen-aout-no-pie): New.
19960 (LDFLAGS-tst-prelink): Removed.
19961 (tst-prelink-no-pie): New.
19962 (LDFLAGS-tst-main1): Removed.
19963 (tst-main1-no-pie): New.
19964 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
19965 (tst-gmon-no-pie): New.
19966
19967 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19968
19969 * manual/install.texi: Document that --enable-static-pie
19970 implies PIE.
19971 * INSTALL: Regenerated.
19972
19973 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
19974
19975 [BZ #21309]
19976 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
19977 unsigned.
19978
19979 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19980
19981 Revert:
19982
19983 2017-12-19 Joseph Myers <joseph@codesourcery.com>
19984
19985 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19986
19987 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19988
19989 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
19990 <errno.h>. Include "eexp.tbl".
19991 (half): New constant.
19992 (one): Likewise.
19993 (__ieee754_exp): Rewrite.
19994 (__slowexp): Remove prototype.
19995 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
19996 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19997 * sysdeps/i386/fpu/slowexp.c: Likewise.
19998 * sysdeps/ia64/fpu/slowexp.c: Likewise.
19999 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20000 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20001 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20002 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20003 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20004 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20005 comment.
20006 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20007 (CPPFLAGS-slowexp.c): Remove variable.
20008 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20009 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20010 (CFLAGS-slowexp-fma.c): Remove variable.
20011 (CFLAGS-slowexp-fma4.c): Likewise.
20012 (CFLAGS-slowexp-avx.c): Likewise.
20013 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20014 define as macro.
20015 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20016 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20017 * math/Makefile (type-double-routines): Remove slowexp.
20018 * manual/probes.texi (slowexp_p6): Remove.
20019 (slowexp_p32): Likewise.
20020
20021 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20022
20023 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20024 arithmetic.
20025
20026 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20027
20028 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20029
20030 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20031
20032 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20033
20034 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20035 <errno.h>. Include "eexp.tbl".
20036 (half): New constant.
20037 (one): Likewise.
20038 (__ieee754_exp): Rewrite.
20039 (__slowexp): Remove prototype.
20040 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20041 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20042 * sysdeps/i386/fpu/slowexp.c: Likewise.
20043 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20044 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20045 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20046 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20047 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20048 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20049 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20050 comment.
20051 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20052 (CPPFLAGS-slowexp.c): Remove variable.
20053 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20054 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20055 (CFLAGS-slowexp-fma.c): Remove variable.
20056 (CFLAGS-slowexp-fma4.c): Likewise.
20057 (CFLAGS-slowexp-avx.c): Likewise.
20058 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20059 define as macro.
20060 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20061 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20062 * math/Makefile (type-double-routines): Remove slowexp.
20063 * manual/probes.texi (slowexp_p6): Remove.
20064 (slowexp_p32): Likewise.
20065
20066 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20067 James Clarke <jrtc27@jrtc27.com>
20068
20069 [BZ #22603]
20070 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20071 addition.
20072
20073 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20074
20075 [BZ #22605]
20076 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20077 code.
20078
20079 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20080
20081 [BZ #22563]
20082 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20083 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20084 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20085 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20086 to feature_1.
20087
20088 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20089
20090 [BZ #22563]
20091 * bits/types/__cancel_jmp_buf_tag.h: New file.
20092 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20093 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20094 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20095 * nptl/Makefile (headers): Add
20096 bits/types/__cancel_jmp_buf_tag.h.
20097 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20098 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20099 * sysdeps/nptl/pthread.h: Include
20100 <bits/types/__cancel_jmp_buf_tag.h>.
20101 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20102 __cancel_jmp_buf.
20103 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20104
20105 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20106
20107 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20108 --enable-static-pie variants to x86_64, x32 and i686.
20109
20110 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20111
20112 [BZ #22631]
20113 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20114 argument for attrubutes. All callers changed.
20115 (__inline_mathop1): Likewise. All callers changed.
20116 (__inline_mathop): Likewise. All callers changed.
20117 [__USE_MISC] (scalbn): Use __inline_forward instead of
20118 __inline_forward_c.
20119 [__USE_ISOC99] (scalbln): Likewise.
20120 [__USE_ISOC99] (nearbyint): Likewise.
20121 [__USE_ISOC99] (lrint): Likewise.
20122 [__USE_MISC] (scalbnf): Likewise.
20123 [__USE_ISOC99] (scalblnf): Likewise.
20124 [__USE_ISOC99] (nearbyintf): Likewise.
20125 [__USE_ISOC99] (lrintf): Likewise.
20126 [__USE_MISC] (scalbnl): Likewise.
20127 [__USE_ISOC99] (scalblnl): Likewise.
20128 [__USE_ISOC99] (nearbyintl): Likewise.
20129 [__USE_ISOC99] (lrintl): Likewise.
20130 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20131 __inline_mathop and __m81_defun changed.
20132
20133 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20134 CPU or FPU for ARM hard-float configurations.
20135
20136 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20137
20138 * nptl/tst-attr3.c: Include <libc-diag.h>.
20139 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20140
20141 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20142
20143 * string/tester.c (test_strncat): Also disable -Warray-bounds
20144 warnings for two tests.
20145
20146 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20147
20148 [BZ #22614]
20149 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20150 $(cc-pie-default) == yes.
20151 * config.make.in (cc-pie-default): New.
20152 * configure.ac (libc_cv_pie_default): Renamed to ...
20153 (libc_cv_cc_pie_default): This.
20154 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20155 * configure: Regenerated.
20156
20157 2017-12-18 Florian Weimer <fweimer@redhat.com>
20158
20159 [BZ #20204]
20160 ld.so: Harden dl-libc/libdl hooks.
20161 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20162 (rtld_active): New function.
20163 * dlfcn/dladdr.c (__dladdr): Call it.
20164 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20165 * dlfcn/dlclose.c (__dlcose): Likewise.
20166 * dlfcn/dlerror.c (__dlerror): Likewise.
20167 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20168 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20169 * dlfcn/dlopen.c (__dlopen): Likewise.
20170 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20171 * dlfcn/dlsym.c (__dlsym): Likewise.
20172 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20173 * libio/vtables.c (_IO_vtable_check): Likewise.
20174 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20175 (__libc_dlclose): Likewise.
20176 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20177 assignment.
20178
20179 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20180
20181 [BZ #22446]
20182 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20183 buffers for readlink input and output.
20184
20185 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20186
20187 [BZ #22624]
20188 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20189 inhibit_stack_protector.
20190
20191 [BZ #22624]
20192 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20193 inhibit_stack_protector.
20194
20195 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20196
20197 [BZ #22627]
20198 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20199 code and invocation.
20200
20201 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20202
20203 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20204
20205 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20206
20207 [BZ #22505]
20208 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20209
20210 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20211
20212 * sysdeps/s390/fpu/libm-test-ulps: Update.
20213
20214 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20215
20216 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20217
20218 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20219
20220 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20221 constants to s_sincosf.h file.
20222 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20223 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20224 implementation.
20225 * sysdeps/ieee754/flt-32/s_sincosf.h:
20226 New file.
20227
20228 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20229
20230 [BZ #14681]
20231 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20232 before mtrace.
20233
20234 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20235
20236 [BZ #19574]
20237 * INSTALL: Regenerated.
20238 * Makeconfig (real-static-start-installed-name): New.
20239 (pic-default): Updated for --enable-static-pie.
20240 (pie-default): New for --enable-static-pie.
20241 (default-pie-ldflag): Likewise.
20242 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20243 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20244 Replace $(static-start-installed-name) with
20245 $(real-static-start-installed-name).
20246 (+prectorT): Updated for --enable-static-pie.
20247 (+postctorT): Likewise.
20248 (CFLAGS-.o): Add $(pie-default).
20249 (CFLAGS-.op): Likewise.
20250 * NEWS: Mention --enable-static-pie.
20251 * config.h.in (ENABLE_STATIC_PIE): New.
20252 * configure.ac (--enable-static-pie): New configure option.
20253 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20254 (have-static-pie): Likewise.
20255 Enable static PIE if linker supports --no-dynamic-linker.
20256 (ENABLE_STATIC_PIE): New AC_DEFINE.
20257 (enable-static-pie): New LIBC_CONFIG_VAR.
20258 * configure: Regenerated.
20259 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20260 gr$(start-installed-name) for --enable-static-pie.
20261 (extra-objs): Likewise.
20262 (install-lib): Likewise.
20263 (extra-objs): Add static-reloc.o and static-reloc.os
20264 ($(objpfx)$(start-installed-name)): Also depend on
20265 $(objpfx)static-reloc.o.
20266 ($(objpfx)r$(start-installed-name)): New.
20267 ($(objpfx)g$(start-installed-name)): Also depend on
20268 $(objpfx)static-reloc.os.
20269 ($(objpfx)gr$(start-installed-name)): New.
20270 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20271 in libc.a.
20272 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20273 initimage.
20274 * csu/static-reloc.c: New file.
20275 * elf/Makefile (routines): Add dl-reloc-static-pie.
20276 (elide-routines.os): Likewise.
20277 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20278 (tst-tls1-static-non-pie-no-pie): New.
20279 * elf/dl-reloc-static-pie.c: New file.
20280 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20281 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20282 STATIC_PIE_BOOTSTRAP.
20283 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20284 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20285 (tests-static): Likewise.
20286 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20287 (tst-gmon-static-no-pie): New.
20288 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20289 (CRT-tst-gmon-static-pie): Likewise.
20290 (tst-gmon-static-pie-ENV): Likewise.
20291 (tests-special): Likewise.
20292 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20293 (clean-tst-gmon-static-pie-data): Likewise.
20294 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20295 * gmon/tst-gmon-static-pie.c: New file.
20296 * manual/install.texi: Document --enable-static-pie.
20297 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20298 (_dl_get_dl_main_map): Likewise.
20299 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20300 * sysdeps/x86_64/configure.ac: Likewise.
20301 * sysdeps/i386/configure: Regenerated.
20302 * sysdeps/x86_64/configure: Likewise.
20303 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20304 (ASFLAGS-.op): Likewise.
20305
20306 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20307
20308 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20309 * posix/tst-mmap-offset.c (fname): Use /tmp.
20310 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20311
20312 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20313
20314 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20315
20316 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20317
20318 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20319 errno.
20320
20321 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20322
20323 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20324 --with-float=hard for arm-linux-gnueabihf configurations.
20325
20326 [BZ #14121]
20327 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20328 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20329 ($(mo-installed)): Use $(objpfx)%.mo.
20330 (realclean): Remove rule.
20331
20332 * po/Makefile (linguas): Remove rule and dependencies.
20333 (linguas.mo): Likewise.
20334 (.PHONY): Do not depend on linguas and linguas.mo.
20335 (podir): Remove variable.
20336 (pofiles): Likewise.
20337 [$(pofiles)] (%.po): Remove rule.
20338
20339 * sysdeps/sparc/sparc32/Makefile
20340 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20341 start-of-line whitespace in argument of echo.
20342 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20343 with whitespace. Generate __wrap_.udiv alias.
20344 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20345 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20346 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20347 * sysdeps/sparc/sparc32/urem.S: Likewise.
20348
20349 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20350
20351 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20352 for aligned inputs.
20353
20354 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20355
20356 * benchtests/bench-strcmp.c: Print output in JSON format.
20357
20358 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20359
20360 2017-12-14 Florian Weimer <fweimer@redhat.com>
20361
20362 [BZ #22607]
20363 CVE-2017-1000409
20364 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20365 the expanded path string.
20366
20367 2017-12-14 Florian Weimer <fweimer@redhat.com>
20368
20369 [BZ #22606]
20370 CVE-2017-1000408
20371 * elf/dl-load.c (system_dirs): Update comment.
20372 (nsystem_dirs_len): Use array_length.
20373 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20374
20375 2017-12-14 Florian Weimer <fweimer@redhat.com>
20376
20377 Simplify compiling most of support/ outside of glibc.
20378 * support/check_addrinfo.c: Include <string.h>.
20379 * support/check_dns_packet.c: Likewise.
20380 * support/check_hostent.c: Likewise.
20381 * support/support_can_chroot.c: Include <support/xunistd.h>.
20382 * support/support_format_addrinfo.c: Include <stdlib.h>
20383 * support/support_format_dns_packet.c: Include <stdbool.h>.
20384 * support/support_format_hostent.c: Include <stdlib.h>.
20385 * support/support_format_netent.c: Likewise.
20386 * support/support_write_string.c: Include <support/xunistd.h>.
20387 * support/xdlfcn.c: Include <stddef.h>.
20388
20389 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20390
20391 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20392
20393 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20394 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20395
20396 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20397 (sysdeps_routines): Add memset-niagara7.
20398 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20399 Likewise.
20400 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20401 file.
20402 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20403 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20404 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20405 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20406 Add niagara7 option.
20407 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20408 memset.
20409
20410 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20411 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20412 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20413 Likewise.
20414 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20415 New file.
20416 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20417 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20418 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20419 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20420 and __memmove_niagara7.
20421 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20422 Add niagara7 option.
20423 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20424 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20425 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20426 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20427 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20428
20429 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20430
20431 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20432 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20433 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20434 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20435
20436 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20437 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20438 _dl_sparc_cap_flags array.
20439 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20440
20441 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20442
20443 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20444 time whenever possible.
20445
20446 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20447
20448 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20449 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20450
20451 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20452
20453 * soft-fp/fmadf4.c: Move to ....
20454 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20455 * soft-fp/fmasf4.c: Move to ....
20456 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20457 * soft-fp/fmatf4.c: Move to ....
20458 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20459 * sysdeps/ieee754/soft-fp/Makefile: New file.
20460 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20461 * sysdeps/arm/preconfigure: Regenerated.
20462 * sysdeps/arm/nofpu/Implies: New file.
20463 * sysdeps/arm/s_fma.c: Remove file.
20464 * sysdeps/arm/s_fmaf.c: Likewise.
20465 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20466 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20467 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20468 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20469 * sysdeps/microblaze/s_fma.c: Remove file.
20470 * sysdeps/microblaze/s_fmaf.c: Likewise.
20471 * sysdeps/mips/mips32/nofpu/Implies: New file.
20472 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20473 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20474 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20475 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20476 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20477 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20478 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20479 implementation.
20480 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20481 * sysdeps/nios2/s_fma.c: Remove file.
20482 * sysdeps/nios2/s_fmaf.c: Likewise.
20483 * sysdeps/sh/nofpu/Implies: New file.
20484 * sysdeps/sh/s_fma.c: Remove file.
20485 * sysdeps/sh/s_fmaf.c: Likewise.
20486 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20487 * sysdeps/tile/s_fma.c: Remove file.
20488 * sysdeps/tile/s_fmaf.c: Likewise.
20489
20490 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20491
20492 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20493 Add s_cosf-sse2 and s_cosf-fma.
20494 (CFLAGS-s_cosf-fma.c): New.
20495 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20496 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20497 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20498
20499 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20500
20501 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20502
20503 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20504
20505 * libio/Makefile (tests): Add tst-bz22415.
20506 (tst-bz22415-ENV): New rule.
20507 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20508 (tests-special): Add tst-bz22415-mem.out.
20509 ($(objpfx)tst-bz22415-mem.out): New rule.
20510 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20511 in case of a successful seek operation.
20512 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20513 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20514 buffer is required.
20515 * libio/tst-bz22415.c: New test.
20516
20517 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20518
20519 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20520
20521 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20522 __IPC_64 to 0 to avoid IPC_64 being set.
20523
20524 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20525
20526 [BZ #22593]
20527 * math/bits/mathcalls.h (nextafter): Remove const.
20528 (nexttoward): Likewise.
20529
20530 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20531
20532 * configure.ac (--with-fp): Remove configure option.
20533 (with_fp_cond): New variable.
20534 (libc_cv_with_fp): New configure test. Use this variable instead
20535 of with_fp.
20536 * configure: Regenerated.
20537 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20538 * manual/install.texi (Configuring and compiling): Remove
20539 --without-fp.
20540 * INSTALL: Regenerated.
20541 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20542 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20543 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20544 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20545 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20546 use --without-fp to configure glibc.
20547
20548 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20549
20550 * manual/locale.texi (nl_langinfo): Fix a typo.
20551
20552 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20553
20554 [BZ #22588]
20555 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20556
20557 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20558
20559 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20560 (CFLAGS-argp-parse.c): Likewise.
20561 (CFLAGS-argp-fmtstream.c): Likewise.
20562 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20563 (CPPFLAGS-sha512-crypt.c): Likewise.
20564 (CPPFLAGS-md5-crypt.c): Likewise.
20565 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20566 (CFLAGS-stack_chk_fail_local.c): Likewise.
20567 (CFLAGS-backtrace.c): Likewise.
20568 (CFLAGS-sprintf_chk.c): Likewise.
20569 (CFLAGS-snprintf_chk.c): Likewise.
20570 (CFLAGS-vsprintf_chk.c): Likewise.
20571 (CFLAGS-vsnprintf_chk.c): Likewise.
20572 (CFLAGS-asprintf_chk.c): Likewise.
20573 (CFLAGS-vasprintf_chk.c): Likewise.
20574 (CFLAGS-obprintf_chk.c): Likewise.
20575 (CFLAGS-dprintf_chk.c): Likewise.
20576 (CFLAGS-vdprintf_chk.c): Likewise.
20577 (CFLAGS-printf_chk.c): Likewise.
20578 (CFLAGS-fprintf_chk.c): Likewise.
20579 (CFLAGS-vprintf_chk.c): Likewise.
20580 (CFLAGS-vfprintf_chk.c): Likewise.
20581 (CFLAGS-gets_chk.c): Likewise.
20582 (CFLAGS-fgets_chk.c): Likewise.
20583 (CFLAGS-fgets_u_chk.c): Likewise.
20584 (CFLAGS-fread_chk.c): Likewise.
20585 (CFLAGS-fread_u_chk.c): Likewise.
20586 (CFLAGS-swprintf_chk.c): Likewise.
20587 (CFLAGS-vswprintf_chk.c): Likewise.
20588 (CFLAGS-wprintf_chk.c): Likewise.
20589 (CFLAGS-fwprintf_chk.c): Likewise.
20590 (CFLAGS-vwprintf_chk.c): Likewise.
20591 (CFLAGS-vfwprintf_chk.c): Likewise.
20592 (CFLAGS-fgetws_chk.c): Likewise.
20593 (CFLAGS-fgetws_u_chk.c): Likewise.
20594 (CFLAGS-read_chk.c): Likewise.
20595 (CFLAGS-pread_chk.c): Likewise.
20596 (CFLAGS-pread64_chk.c): Likewise.
20597 (CFLAGS-recv_chk.c): Likewise.
20598 (CFLAGS-recvfrom_chk.c): Likewise.
20599 (CFLAGS-tst-longjmp_chk.c): Likewise.
20600 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20601 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20602 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20603 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20604 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20605 (CFLAGS-tst-chk1.c): Likewise.
20606 (CFLAGS-tst-chk2.c): Likewise.
20607 (CFLAGS-tst-chk3.c): Likewise.
20608 (CFLAGS-tst-chk4.cc): Likewise.
20609 (CFLAGS-tst-chk5.cc): Likewise.
20610 (CFLAGS-tst-chk6.cc): Likewise.
20611 (CFLAGS-tst-lfschk1.c): Likewise.
20612 (CFLAGS-tst-lfschk2.c): Likewise.
20613 (CFLAGS-tst-lfschk3.c): Likewise.
20614 (CFLAGS-tst-lfschk4.cc): Likewise.
20615 (CFLAGS-tst-lfschk5.cc): Likewise.
20616 (CFLAGS-tst-lfschk6.cc): Likewise.
20617 (CFLAGS-tst-ssp-1.c): Likewise.
20618 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20619 (CFLAGS-scandir64.c): Likewise.
20620 (CFLAGS-scandir-tail.c): Likewise.
20621 (CFLAGS-scandir64-tail.c): Likewise.
20622 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20623 (CFLAGS-dl-tunables.c): Likewise.
20624 (CFLAGS-dl-runtime.c): Likewise.
20625 (CFLAGS-dl-lookup.c): Likewise.
20626 (CFLAGS-dl-iterate-phdr.c): Likewise.
20627 (CFLAGS-vismain.c): Likewise.
20628 (CFLAGS-tst-linkall-static.c): Likewise.
20629 (CFLAGS-tst-linkall-static.c): Likewise.
20630 (CPPFLAGS-dl-load.c): Likewise.
20631 (CFLAGS-ldconfig.c): Likewise.
20632 (CFLAGS-dl-cache.c): Likewise.
20633 (CFLAGS-cache.c): Likewise.
20634 (CFLAGS-rtld.c): Likewise.
20635 (CFLAGS-multiload.c): Likewise.
20636 (CFLAGS-filtmod1.c): Likewise.
20637 (CFLAGS-tst-align.c): Likewise.
20638 (CFLAGS-tst-align2.c): Likewise.
20639 (CFLAGS-tst-alignmod.c): Likewise.
20640 (CFLAGS-tst-alignmod2.c): Likewise.
20641 (CPPFLAGS-tst-execstack.c): Likewise.
20642 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20643 (CFLAGS-tst-latepthreadmod.c): Likewise.
20644 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20645 (CFLAGS-getgrnam_r.c): Likewise.
20646 (CFLAGS-getgrent_r.c): Likewise.
20647 (CFLAGS-getgrent.c): Likewise.
20648 (CFLAGS-fgetgrent.c): Likewise.
20649 (CFLAGS-fgetgrent_r.c): Likewise.
20650 (CFLAGS-putgrent.c): Likewise.
20651 (CFLAGS-initgroups.c): Likewise.
20652 (CFLAGS-getgrgid.c): Likewise.
20653 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20654 (CFLAGS-getsgent.c): Likewise.
20655 (CFLAGS-fgetsgent.c): Likewise.
20656 (CFLAGS-fgetsgent_r.c): Likewise.
20657 (CFLAGS-putsgent.c): Likewise.
20658 (CFLAGS-getsgnam.c): Likewise.
20659 (CFLAGS-getsgnam_r.c): Likewise.
20660 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20661 (CFLAGS-iconv_charmap.c): Likewise.
20662 (CFLAGS-dummy-repertoire.c): Likewise.
20663 (CFLAGS-charmap.c): Likewise.
20664 (CFLAGS-linereader.c): Likewise.
20665 (CFLAGS-simple-hash.c): Likewise.
20666 (CFLAGS-gconv_conf.c): Likewise.
20667 (CFLAGS-iconvconfig.c): Likewise.
20668 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20669 (CFLAGS-gethstbyad.c): Likewise.
20670 (CFLAGS-gethstbynm_r.c): Likewise.
20671 (CFLAGS-gethstbynm.c): Likewise.
20672 (CFLAGS-gethstbynm2_r.c): Likewise.
20673 (CFLAGS-gethstbynm2.c): Likewise.
20674 (CFLAGS-gethstent_r.c): Likewise.
20675 (CFLAGS-gethstent.c): Likewise.
20676 (CFLAGS-rcmd.c): Likewise.
20677 (CFLAGS-getnetbynm_r.c): Likewise.
20678 (CFLAGS-getnetbynm.c): Likewise.
20679 (CFLAGS-getnetbyad_r.c): Likewise.
20680 (CFLAGS-getnetbyad.c): Likewise.
20681 (CFLAGS-getnetent_r.c): Likewise.
20682 (CFLAGS-getnetent.c): Likewise.
20683 (CFLAGS-getaliasent_r.c): Likewise.
20684 (CFLAGS-getaliasent.c): Likewise.
20685 (CFLAGS-getrpcent_r.c): Likewise.
20686 (CFLAGS-getrpcent.c): Likewise.
20687 (CFLAGS-getservent_r.c): Likewise.
20688 (CFLAGS-getservent.c): Likewise.
20689 (CFLAGS-getprtent_r.c): Likewise.
20690 (CFLAGS-getprtent.c): Likewise.
20691 (CFLAGS-either_ntoh.c): Likewise.
20692 (CFLAGS-either_hton.c): Likewise.
20693 (CFLAGS-getnetgrent.c): Likewise.
20694 (CFLAGS-getnetgrent_r.c): Likewise.
20695 (CFLAGS-tst-checks-posix.c): Likewise.
20696 (CFLAGS-tst-sockaddr.c): Likewise.
20697 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20698 (CFLAGS-tst-translit.c): Likewise.
20699 (CFLAGS-tst-gettext2.c): Likewise.
20700 (CFLAGS-tst-codeset.c): Likewise.
20701 (CFLAGS-tst-gettext3.c): Likewise.
20702 (CFLAGS-tst-gettext4.c): Likewise.
20703 (CFLAGS-tst-gettext5.c): Likewise.
20704 (CFLAGS-tst-gettext6.c): Likewise.
20705 * io/Makefile (CFLAGS-open.c): Likewise.
20706 (CFLAGS-open64.c): Likewise.
20707 (CFLAGS-creat.c): Likewise.
20708 (CFLAGS-creat64.c): Likewise.
20709 (CFLAGS-fcntl.c): Likewise.
20710 (CFLAGS-poll.c): Likewise.
20711 (CFLAGS-ppoll.c): Likewise.
20712 (CFLAGS-lockf.c): Likewise.
20713 (CFLAGS-statfs.c): Likewise.
20714 (CFLAGS-fstatfs.c): Likewise.
20715 (CFLAGS-statvfs.c): Likewise.
20716 (CFLAGS-fstatvfs.c): Likewise.
20717 (CFLAGS-fts.c): Likewise.
20718 (CFLAGS-fts64.c): Likewise.
20719 (CFLAGS-ftw.c): Likewise.
20720 (CFLAGS-ftw64.c): Likewise.
20721 (CFLAGS-lockf.c): Likewise.
20722 (CFLAGS-posix_fallocate.c): Likewise.
20723 (CFLAGS-posix_fallocate64.c): Likewise.
20724 (CFLAGS-fallocate.c): Likewise.
20725 (CFLAGS-fallocate64.c): Likewise.
20726 (CFLAGS-read.c): Likewise.
20727 (CFLAGS-write.c): Likewise.
20728 (CFLAGS-test-stat.c): Likewise.
20729 (CFLAGS-test-lfs.c): Likewise.
20730 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20731 (CFLAGS-fputc.c): Likewise.
20732 (CFLAGS-fputwc.c): Likewise.
20733 (CFLAGS-freopen64.c): Likewise.
20734 (CFLAGS-freopen.c): Likewise.
20735 (CFLAGS-fseek.c): Likewise.
20736 (CFLAGS-fseeko64.c): Likewise.
20737 (CFLAGS-fseeko.c): Likewise.
20738 (CFLAGS-ftello64.c): Likewise.
20739 (CFLAGS-ftello.c): Likewise.
20740 (CFLAGS-fwide.c): Likewise.
20741 (CFLAGS-genops.c): Likewise.
20742 (CFLAGS-getc.c): Likewise.
20743 (CFLAGS-getchar.c): Likewise.
20744 (CFLAGS-getwc.c): Likewise.
20745 (CFLAGS-getwchar.c): Likewise.
20746 (CFLAGS-iofclose.c): Likewise.
20747 (CFLAGS-iofflush.c): Likewise.
20748 (CFLAGS-iofgetpos64.c): Likewise.
20749 (CFLAGS-iofgetpos.c): Likewise.
20750 (CFLAGS-iofgets.c): Likewise.
20751 (CFLAGS-iofgetws.c): Likewise.
20752 (CFLAGS-iofputs.c): Likewise.
20753 (CFLAGS-iofputws.c): Likewise.
20754 (CFLAGS-iofread.c): Likewise.
20755 (CFLAGS-iofsetpos64.c): Likewise.
20756 (CFLAGS-iofsetpos.c): Likewise.
20757 (CFLAGS-ioftell.c): Likewise.
20758 (CFLAGS-iofwrite.c): Likewise.
20759 (CFLAGS-iogetdelim.c): Likewise.
20760 (CFLAGS-iogetline.c): Likewise.
20761 (CFLAGS-iogets.c): Likewise.
20762 (CFLAGS-iogetwline.c): Likewise.
20763 (CFLAGS-ioputs.c): Likewise.
20764 (CFLAGS-ioseekoff.c): Likewise.
20765 (CFLAGS-ioseekpos.c): Likewise.
20766 (CFLAGS-iosetbuffer.c): Likewise.
20767 (CFLAGS-iosetvbuf.c): Likewise.
20768 (CFLAGS-ioungetc.c): Likewise.
20769 (CFLAGS-ioungetwc.c): Likewise.
20770 (CFLAGS-oldfileops.c): Likewise.
20771 (CFLAGS-oldiofclose.c): Likewise.
20772 (CFLAGS-oldiofgetpos64.c): Likewise.
20773 (CFLAGS-oldiofgetpos.c): Likewise.
20774 (CFLAGS-oldiofsetpos64.c): Likewise.
20775 (CFLAGS-oldiofsetpos.c): Likewise.
20776 (CFLAGS-peekc.c): Likewise.
20777 (CFLAGS-putc.c): Likewise.
20778 (CFLAGS-putchar.c): Likewise.
20779 (CFLAGS-putwc.c): Likewise.
20780 (CFLAGS-putwchar.c): Likewise.
20781 (CFLAGS-rewind.c): Likewise.
20782 (CFLAGS-wfileops.c): Likewise.
20783 (CFLAGS-wgenops.c): Likewise.
20784 (CFLAGS-oldiofopen.c): Likewise.
20785 (CFLAGS-iofopen.c): Likewise.
20786 (CFLAGS-iofopen64.c): Likewise.
20787 (CFLAGS-oldtmpfile.c): Likewise.
20788 (CFLAGS-tst_putwc.c): Likewise.
20789 * locale/Makefile (CFLAGS-md5.c): Likewise.
20790 (CFLAGS-charmap.c): Likewise.
20791 (CFLAGS-locfile.c): Likewise.
20792 (CFLAGS-charmap-dir.c): Likewise.
20793 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20794 (CFLAGS-getpt.c): Likewise.
20795 (CFLAGS-pt_chown.c): Likewise.
20796 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20797 (CFLAGS-obstack.c): Likewise.
20798 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20799 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20800 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20801 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20802 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20803 (CFLAGS-test-tgmath.c): Likewise.
20804 (CFLAGS-test-tgmath2.c): Likewise.
20805 (CFLAGS-test-tgmath-ret.c): Likewise.
20806 (CFLAGS-test-powl.c): Likewise.
20807 (CFLAGS-test-snan.c): Likewise.
20808 (CFLAGS-test-signgam-finite.c): Likewise.
20809 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20810 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20811 (CFLAGS-test-signgam-uchar.c): Likewise.
20812 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20813 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20814 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20815 (CFLAGS-test-signgam-uint.c): Likewise.
20816 (CFLAGS-test-signgam-uint-init.c): Likewise.
20817 (CFLAGS-test-signgam-uint-static.c): Likewise.
20818 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20819 (CFLAGS-test-signgam-ullong.c): Likewise.
20820 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20821 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20822 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20823 (CFLAGS-test-math-cxx11.cc): Likewise.
20824 (CFLAGS-test-math-isinff.cc): Likewise.
20825 (CFLAGS-test-math-iszero.cc): Likewise.
20826 (CFLAGS-test-math-issignaling.cc): Likewise.
20827 (CFLAGS-test-math-iscanonical.cc): Likewise.
20828 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20829 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20830 (CFLAGS-test-flt-eval-method.c): Likewise.
20831 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20832 (CFLAGS-test-finite-macros.c): Likewise.
20833 * misc/Makefile (CFLAGS-select.c): Likewise.
20834 (CFLAGS-tsearch.c): Likewise.
20835 (CFLAGS-lsearch.c): Likewise.
20836 (CFLAGS-pselect.c): Likewise.
20837 (CFLAGS-readv.c): Likewise.
20838 (CFLAGS-writev.c): Likewise.
20839 (CFLAGS-preadv.c): Likewise.
20840 (CFLAGS-preadv64.c): Likewise.
20841 (CFLAGS-pwritev.c): Likewise.
20842 (CFLAGS-pwritev64.c): Likewise.
20843 (CFLAGS-preadv2.c): Likewise.
20844 (CFLAGS-preadv64v2.c): Likewise.
20845 (CFLAGS-pwritev2.c): Likewise.
20846 (CFLAGS-pwritev64v2.c): Likewise.
20847 (CFLAGS-usleep.c): Likewise.
20848 (CFLAGS-syslog.c): Likewise.
20849 (CFLAGS-error.c): Likewise.
20850 (CFLAGS-getpass.c): Likewise.
20851 (CFLAGS-mkstemp.c): Likewise.
20852 (CFLAGS-mkstemp64.c): Likewise.
20853 (CFLAGS-getsysstats.c): Likewise.
20854 (CFLAGS-getusershell.c): Likewise.
20855 (CFLAGS-err.c): Likewise.
20856 (CFLAGS-tst-tsearch.c): Likewise.
20857 (CFLAGS-msync.c): Likewise.
20858 (CFLAGS-fdatasync.c): Likewise.
20859 (CFLAGS-fsync.c): Likewise.
20860 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20861 (CFLAGS-unwind.c): Likewise.
20862 (CFLAGS-unwind-forcedunwind.c): Likewise.
20863 (CFLAGS-pthread_cancel.c): Likewise.
20864 (CFLAGS-pthread_setcancelstate.c): Likewise.
20865 (CFLAGS-pthread_setcanceltype.c): Likewise.
20866 (CFLAGS-cancellation.c): Likewise.
20867 (CFLAGS-libc-cancellation.c): Likewise.
20868 (CFLAGS-pthread_exit.c): Likewise.
20869 (CFLAGS-forward.c): Likewise.
20870 (CFLAGS-pthread_testcancel.c): Likewise.
20871 (CFLAGS-pthread_join.c): Likewise.
20872 (CFLAGS-pthread_timedjoin.c): Likewise.
20873 (CFLAGS-pthread_once.c): Likewise.
20874 (CFLAGS-pthread_cond_wait.c): Likewise.
20875 (CFLAGS-sem_wait.c): Likewise.
20876 (CFLAGS-sem_timedwait.c): Likewise.
20877 (CFLAGS-fcntl.c): Likewise.
20878 (CFLAGS-lockf.c): Likewise.
20879 (CFLAGS-pread.c): Likewise.
20880 (CFLAGS-pread64.c): Likewise.
20881 (CFLAGS-pwrite.c): Likewise.
20882 (CFLAGS-pwrite64.c): Likewise.
20883 (CFLAGS-wait.c): Likewise.
20884 (CFLAGS-waitpid.c): Likewise.
20885 (CFLAGS-sigwait.c): Likewise.
20886 (CFLAGS-msgrcv.c): Likewise.
20887 (CFLAGS-msgsnd.c): Likewise.
20888 (CFLAGS-tcdrain.c): Likewise.
20889 (CFLAGS-open.c): Likewise.
20890 (CFLAGS-open64.c): Likewise.
20891 (CFLAGS-pause.c): Likewise.
20892 (CFLAGS-recv.c): Likewise.
20893 (CFLAGS-send.c): Likewise.
20894 (CFLAGS-accept.c): Likewise.
20895 (CFLAGS-sendto.c): Likewise.
20896 (CFLAGS-connect.c): Likewise.
20897 (CFLAGS-recvfrom.c): Likewise.
20898 (CFLAGS-recvmsg.c): Likewise.
20899 (CFLAGS-sendmsg.c): Likewise.
20900 (CFLAGS-close.c): Likewise.
20901 (CFLAGS-read.c): Likewise.
20902 (CFLAGS-write.c): Likewise.
20903 (CFLAGS-nanosleep.c): Likewise.
20904 (CFLAGS-sigsuspend.c): Likewise.
20905 (CFLAGS-msync.c): Likewise.
20906 (CFLAGS-fdatasync.c): Likewise.
20907 (CFLAGS-fsync.c): Likewise.
20908 (CFLAGS-pt-system.c): Likewise.
20909 (CFLAGS-tst-cleanup2.c): Likewise.
20910 (CFLAGS-tst-cleanupx2.c): Likewise.
20911 (CFLAGS-flockfile.c): Likewise.
20912 (CFLAGS-ftrylockfile.c): Likewise.
20913 (CFLAGS-funlockfile.c): Likewise.
20914 (CFLAGS-tst-initializers1.c): Likewise.
20915 (CFLAGS-tst-initializers1-c89.c): Likewise.
20916 (CFLAGS-tst-initializers1-c99.c): Likewise.
20917 (CFLAGS-tst-initializers1-c11.c): Likewise.
20918 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
20919 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
20920 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
20921 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
20922 (CFLAGS-nscd_getgr_r.c): Likewise.
20923 (CFLAGS-nscd_gethst_r.c): Likewise.
20924 (CFLAGS-nscd_getai.c): Likewise.
20925 (CFLAGS-nscd_initgroups.c): Likewise.
20926 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
20927 (CFLAGS-pause.c): Likewise.
20928 (CFLAGS-pread.c): Likewise.
20929 (CFLAGS-pread64.c): Likewise.
20930 (CFLAGS-pwrite.c): Likewise.
20931 (CFLAGS-pwrite64.c): Likewise.
20932 (CFLAGS-sleep.c): Likewise.
20933 (CFLAGS-wait.c): Likewise.
20934 (CFLAGS-waitid.c): Likewise.
20935 (CFLAGS-waitpid.c): Likewise.
20936 (CFLAGS-getopt.c): Likewise.
20937 (CFLAGS-wordexp.c): Likewise.
20938 (CFLAGS-sysconf.c): Likewise.
20939 (CFLAGS-pathconf.c): Likewise.
20940 (CFLAGS-fpathconf.c): Likewise.
20941 (CFLAGS-spawn.c): Likewise.
20942 (CFLAGS-spawnp.c): Likewise.
20943 (CFLAGS-spawni.c): Likewise.
20944 (CFLAGS-glob.c): Likewise.
20945 (CFLAGS-glob64.c): Likewise.
20946 (CFLAGS-getconf.c): Likewise.
20947 (CFLAGS-nanosleep.c): Likewise.
20948 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
20949 (CFLAGS-getpwent.c): Likewise.
20950 (CFLAGS-getpw.c): Likewise.
20951 (CFLAGS-fgetpwent_r.c): Likewise.
20952 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
20953 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
20954 (CFLAGS-mq_timedreceive.c): Likewise.
20955 (CFLAGS-mq_timedsend.c): Likewise.
20956 (CFLAGS-clock_nanosleep.c): Likewise.
20957 (CFLAGS-librt-cancellation.c): Likewise.
20958 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
20959 (CFLAGS-getspent.c): Likewise.
20960 (CFLAGS-fgetspent.c): Likewise.
20961 (CFLAGS-fgetspent_r.c): Likewise.
20962 (CFLAGS-putspent.c): Likewise.
20963 (CFLAGS-getspnam.c): Likewise.
20964 (CFLAGS-getspnam_r.c): Likewise.
20965 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
20966 (CFLAGS-sigsuspend.c): Likewise.
20967 (CFLAGS-sigtimedwait.c): Likewise.
20968 (CFLAGS-sigwait.c): Likewise.
20969 (CFLAGS-sigwaitinfo.c): Likewise.
20970 (CFLAGS-sigreturn.c): Likewise.
20971 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
20972 (CFLAGS-vfwprintf.c): Likewise.
20973 (CFLAGS-tmpfile.c): Likewise.
20974 (CFLAGS-tmpfile64.c): Likewise.
20975 (CFLAGS-tempname.c): Likewise.
20976 (CFLAGS-psignal.c): Likewise.
20977 (CFLAGS-vprintf.c): Likewise.
20978 (CFLAGS-cuserid.c): Likewise.
20979 (CFLAGS-errlist.c): Likewise.
20980 (CFLAGS-siglist.c): Likewise.
20981 (CFLAGS-scanf15.c): Likewise.
20982 (CFLAGS-scanf17.c): Likewise.
20983 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
20984 (CFLAGS-msort.c): Likewise.
20985 (CFLAGS-qsort.c): Likewise.
20986 (CFLAGS-system.c): Likewise.
20987 (CFLAGS-fmtmsg.c): Likewise.
20988 (CFLAGS-strfmon.c): Likewise.
20989 (CFLAGS-strfmon_l.c): Likewise.
20990 (CFLAGS-strfromd.c): Likewise.
20991 (CFLAGS-strfromf.c): Likewise.
20992 (CFLAGS-strfroml.c): Likewise.
20993 (CFLAGS-tst-bsearch.c): Likewise.
20994 (CFLAGS-tst-qsort.c): Likewise.
20995 (CFLAGS-tst-makecontext2.c): Likewise.
20996 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
20997 (CFLAGS-xnlm_prot.c): Likewise.
20998 (CFLAGS-xrstat.c): Likewise.
20999 (CFLAGS-xyppasswd.c): Likewise.
21000 (CFLAGS-xklm_prot.c): Likewise.
21001 (CFLAGS-xrex.c): Likewise.
21002 (CFLAGS-xsm_inter.c): Likewise.
21003 (CFLAGS-xmount.c): Likewise.
21004 (CFLAGS-xrusers.c): Likewise.
21005 (CFLAGS-xspray.c): Likewise.
21006 (CFLAGS-xnfs_prot.c): Likewise.
21007 (CFLAGS-xrquota.c): Likewise.
21008 (CFLAGS-xkey_prot.c): Likewise.
21009 (CFLAGS-auth_unix.c): Likewise.
21010 (CFLAGS-key_call.c): Likewise.
21011 (CFLAGS-pmap_rmt.c): Likewise.
21012 (CFLAGS-clnt_perr.c): Likewise.
21013 (CFLAGS-openchild.c): Likewise.
21014 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21015 (CFLAGS-msgsnd.c): Likewise.
21016 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21017 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21018 (CFLAGS-tzset.c): Likewise.
21019 (CFLAGS-getdate.c): Likewise.
21020 (CFLAGS-test_time.c): Likewise.
21021 (CPPFLAGS-tst-tzname.c): Likewise.
21022 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21023 (CFLAGS-zic.c): Likewise.
21024 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21025 (CFLAGS-wcswidth.c): Likewise.
21026 (CFLAGS-wcstol.c): Likewise.
21027 (CFLAGS-wcstoul.c): Likewise.
21028 (CFLAGS-wcstoll.c): Likewise.
21029 (CFLAGS-wcstoull.c): Likewise.
21030 (CFLAGS-wcstod.c): Likewise.
21031 (CFLAGS-wcstold.c): Likewise.
21032 (CFLAGS-wcstof128.c): Likewise.
21033 (CFLAGS-wcstof.c): Likewise.
21034 (CFLAGS-wcstol_l.c): Likewise.
21035 (CFLAGS-wcstoul_l.c): Likewise.
21036 (CFLAGS-wcstoll_l.c): Likewise.
21037 (CFLAGS-wcstoull_l.c): Likewise.
21038 (CFLAGS-wcstod_l.c): Likewise.
21039 (CFLAGS-wcstold_l.c): Likewise.
21040 (CFLAGS-wcstof128_l.c): Likewise.
21041 (CFLAGS-wcstof_l.c): Likewise.
21042 (CPPFLAGS-tst-wchar-h.c): Likewise.
21043 (CPPFLAGS-wcstold_l.c): Likewise.
21044
21045 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21046
21047 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21048
21049 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21050 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21051
21052 * manual/tunables.texi (Hardware Capability Tunables): Document
21053 glibc.tune.cached_memopt.
21054 * sysdeps/powerpc/cpu-features.c: New file.
21055 * sysdeps/powerpc/cpu-features.h: New file.
21056 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21057 _dl_powerpc_cpu_features.
21058 * sysdeps/powerpc/dl-tunables.list: New file.
21059 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21060 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21061 (INIT_ARCH): Initialize use_aligned_memopt.
21062 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21063 IS_IN(rtld))]: Restrict dl_platform_init availability and
21064 initialize CPU features used by tunables.
21065 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21066 Add memcpy-power8-cached.
21067 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21068 __memcpy_power8_cached.
21069 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21070 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21071 New file.
21072
21073 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21074
21075 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21076 (CFLAGS-noinl-tester.c): Likewise.
21077 (CFLAGS-tst-strlen.c): Likewise.
21078 (CFLAGS-stratcliff.c): Likewise.
21079 (CFLAGS-test-ffs.c): Likewise.
21080 (CFLAGS-tst-inlcall.c): Likewise.
21081 (CFLAGS-tst-xbzero-opt.c): Likewise.
21082 (CFLAGS-memcpy.c): Likewise.
21083 (CFLAGS-wordcopy.c): Likewise.
21084
21085 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21086
21087 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21088 Store r15 on stack and add cfi rule.
21089 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21090 Likewise.
21091
21092 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21093
21094 [BZ #22577]
21095 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21096 call.
21097
21098 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21099
21100 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21101 Add s_sinf-sse2 and s_sinf-fma.
21102 (CFLAGS-s_sinf-fma.c): New.
21103 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21104 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21105 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21106
21107 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21108
21109 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21110
21111 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21112
21113 [BZ #22568]
21114 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21115 part of result to imaginary part of argument if it is zero and the
21116 real part of the argument is not finite.
21117 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21118 of result to real part of argument if it is zero and the imaginary
21119 part of the argument is not finite.
21120
21121 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21122
21123 [BZ #22524]
21124 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21125 and to the list of locales to be built for testing.
21126 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21127 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21128 and build the collation rules upon that.
21129
21130 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21131
21132 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21133 * manual/math.texi (Mathematics): Document support for _Float32.
21134 * math/Makefile (test-types): Add float32.
21135 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21136 * stdlib/Versions (GLIBC_2.27): Likewise.
21137 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21138 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21139 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21140 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21141 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21142 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21143 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21144 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21145 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21146 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21147 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21148 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21149 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21150 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21151 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21152 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21153 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21154 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21155 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21156 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21157 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21158 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21159 Likewise.
21160 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21161 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21162 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21163 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21164 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21166 Likewise.
21167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21168 Likewise.
21169 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21170 Likewise.
21171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21172 Likewise.
21173
21174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21175 Likewise.
21176 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21177 Likewise.
21178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21179 Likewise.
21180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21181 Likewise.
21182 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21183 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21184 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21185 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21186 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21187 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21188 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21189 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21190 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21191 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21192 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21193 Likewise.
21194 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21195 Likewise.
21196 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21197 Likewise.
21198 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21199 Likewise.
21200 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21201 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21202 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21203 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21204 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21205 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21206 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21207 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21208
21209 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21210
21211 * stdlib/strtof.c: Include <bits/floatn.h>
21212 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21213 and later undefine as macro. Define as weak alias if
21214 [!USE_WIDE_CHAR].
21215 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21216 and later undefine as macro. Define as weak alias if
21217 [USE_WIDE_CHAR].
21218 * stdlib/strtof_l.c: Include <bits/floatn.h>
21219 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21220 and later undefine as macro. Define as weak alias if
21221 [!USE_WIDE_CHAR].
21222 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21223 and later undefine as macro. Define as weak alias if
21224 [USE_WIDE_CHAR].
21225
21226 * stdlib/strfromf.c: Include <bits/floatn.h>.
21227 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21228 and later undefine as macro and define as weak alias.
21229
21230 * math/test-float32.h: New file.
21231
21232 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21233 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21234 (libm_alias_float_other_r): Create f32 alias.
21235 (libm_alias_float_r): Use semicolon before call to
21236 libm_alias_float_other_r.
21237
21238 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21239 second argument to libm_alias_float_other.
21240 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21241 second argument to libm_alias_float_other.
21242 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21243 argument to libm_alias_float_other.
21244
21245 [BZ #22561]
21246 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21247 real part of result for argument 0 + i * NaN.
21248 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21249 results for tests of 0 + i * NaN.
21250
21251 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21252
21253 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21254
21255 2017-12-06 David S. Miller <davem@davemloft.net>
21256
21257 * sysdeps/sparc/fpu/libm-test-ulps: Update
21258 exp_{downward,towardzero,upward} ulps.
21259
21260 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21261
21262 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21263 variables static.
21264
21265 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21266 (Y0_2D): Likewise.
21267 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21268 (Y0_2D): Likewise.
21269 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21270 (Y0_2D): Likewise.
21271 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21272 (Y0_2D): Likewise.
21273
21274 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21275
21276 [BZ #22515]
21277 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21278 and to the list of locales to be built for testing.
21279 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21280 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21281 and build the collation rules upon that.
21282
21283 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21284
21285 * NEWS: Add sinf to list of optimized functions.
21286
21287 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21288
21289 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21290 (__HAVE_FLOAT32X): Likewise.
21291 * manual/math.texi (Mathematics): Document support for _Float64
21292 and _Float32x.
21293 * math/Makefile (test-types): Add float64 and float32x.
21294 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21295 functions.
21296 * stdlib/Versions (GLIBC_2.27): Likewise.
21297 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21298 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21299 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21300 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21301 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21302 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21303 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21304 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21305 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21306 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21307 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21308 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21309 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21310 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21311 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21312 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21313 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21314 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21315 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21316 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21317 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21318 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21319 Likewise.
21320 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21321 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21322 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21323 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21324 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21326 Likewise.
21327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21328 Likewise.
21329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21330 Likewise.
21331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21332 Likewise.
21333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21334 Likewise.
21335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21336 Likewise.
21337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21338 Likewise.
21339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21340 Likewise.
21341 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21342 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21343 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21344 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21345 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21346 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21347 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21348 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21349 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21350 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21351 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21352 Likewise.
21353 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21354 Likewise.
21355 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21356 Likewise.
21357 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21358 Likewise.
21359 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21360 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21361 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21362 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21363 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21364 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21365 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21366 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21367
21368 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21369
21370 * bits/floatn-common.h: Include <bits/long-double.h>.
21371 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21372 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21373 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21374 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21375 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21376 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21377 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21378 (__builtin_huge_valf64): Use __builtin_huge_vall.
21379 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21380 (__builtin_inff64): Use __builtin_infl.
21381 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21382 (__builtin_nanf64): Use __builtin_nanl.
21383 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21384 (__builtin_nansf64): Use __builtin_nansl.
21385
21386 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21387 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21388 Carlos O'Donnell <carlos@redhat.com>
21389
21390 * elf/dl-tunables.list: Add elision parameters.
21391 * manual/tunables.texi: Add entries about elision tunable.
21392 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21393 Add callback functions to dynamically enable/disable elision.
21394 Add multiple callbacks functions to set elision parameters.
21395 Deleted __libc_enable_secure check.
21396 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21397 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21398 * configure: Regenerated.
21399 * configure.ac: Option enable_lock_elision was deleted.
21400 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21401 * config.make.in: Remove references to enable_lock_elision.
21402 * manual/install.texi: Elision configure option was removed.
21403 * INSTALL: Regenerated to remove enable_lock_elision.
21404 * nptl/Makefile:
21405 Disable elision so it can verify error case for destroying a mutex.
21406 * sysdeps/powerpc/nptl/elide.h:
21407 Cleanup ENABLE_LOCK_ELISION check.
21408 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21409 * sysdeps/s390/configure: Regenerated.
21410 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21411 * nptl/tst-mutex8.c:
21412 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21413 * sysdeps/powerpc/powerpc32/sysdep.h:
21414 Deleted all ENABLE_LOCK_ELISION checks.
21415 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21416 * sysdeps/powerpc/sysdep.h: Likewise.
21417 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21418 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21419 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21420 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21421 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21422 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21423 enable-lock-elision.
21424
21425 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21426
21427 * stdlib/strtod.c: Include <bits/floatn.h>.
21428 (BUILD_DOUBLE): New macro.
21429 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21430 (strtof64): Define and later undefine as macro. Define as weak
21431 alias if [!USE_WIDE_CHAR].
21432 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21433 (wcstof64): Define and later undefine as macro. Define as weak
21434 alias if [USE_WIDE_CHAR].
21435 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21436 (strtof32x): Define and later undefine as macro. Define as weak
21437 alias if [!USE_WIDE_CHAR].
21438 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21439 (wcstof32x): Define and later undefine as macro. Define as weak
21440 alias if [USE_WIDE_CHAR].
21441 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21442 (BUILD_DOUBLE): New macro.
21443 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21444 (strtof64_l): Define and later undefine as macro. Define as weak
21445 alias if [!USE_WIDE_CHAR].
21446 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21447 (wcstof64_l): Define and later undefine as macro. Define as weak
21448 alias if [USE_WIDE_CHAR].
21449 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21450 (strtof32x_l): Define and later undefine as macro. Define as weak
21451 alias if [!USE_WIDE_CHAR].
21452 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21453 (wcstof32x_l): Define and later undefine as macro. Define as weak
21454 alias if [USE_WIDE_CHAR].
21455
21456 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21457
21458 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21459 (reduced): Use ones as double instead of integer.
21460
21461 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21462
21463 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21464
21465 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21466
21467 * stdlib/strfromd.c: Include <bits/floatn.h>.
21468 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21469 and later undefine as macro and define as weak alias.
21470 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21471 Likewise.
21472
21473 * math/test-float32x.h: New file.
21474 * math/test-float64.h: Likewise.
21475
21476 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21477 (libm_alias_double_other_r_f64): New macro.
21478 (libm_alias_double_other_r_f32x): Likewise.
21479 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21480 libm_alias_double_other_r_f32x.
21481 (libm_alias_double_r): Use semicolon before call to
21482 libm_alias_double_other_r.
21483 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21484 <bits/floatn.h>.
21485 (libm_alias_double_other_r_f64): New macro.
21486 (libm_alias_double_other_r_f32x): Likewise.
21487 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21488 libm_alias_double_other_r_f32x.
21489
21490 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21491
21492 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21493 int.
21494 (SINF_FUNC): Likewise. Replace floor with simple casts.
21495
21496 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21497
21498 [BZ #22517]
21499 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21500 and to the list of locales to be built for testing.
21501 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21502 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21503 and build the collation rules upon that.
21504
21505 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21506
21507 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21508 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21509 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21510 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21511 instead of __insn__xxx.
21512 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21513 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21514 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21515 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21516 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21517 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21518
21519 2017-12-05 Florian Weimer <fweimer@redhat.com>
21520
21521 Linux: Implement interfaces for memory protection keys
21522 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21523 xsignal, xsysconf.
21524 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21525 * support/xunistd.h (xsysconf): Declare.
21526 * support/xraise.c: New file.
21527 * support/xsigaction.c: Likewise.
21528 * support/xsignal.c: Likewise.
21529 * support/xsysconf.c: Likewise.
21530 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21531 pkey_set, pkey_get, pkey_mprotect.
21532 [misc] (tests): Add tst-pkey.
21533 (tst-pkey): Link with -lpthread.
21534 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21535 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21536 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21537 (PKEY_DISABLE_WRITE): Define.
21538 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21539 Declare.
21540 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21541 (SEGV_PKUERR): Add.
21542 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21543 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21544 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21545 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21546 Add.
21547 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21548 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21549 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21550 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21551 * sysdeps/unix/sysv/linux/**.abilist: Update.
21552
21553 2017-12-05 Florian Weimer <fweimer@redhat.com>
21554
21555 * support/tst-test_compare.c (subprocess): Use long long instead
21556 of long argument for consistent type width across 32-bit and
21557 64-bit architectures.
21558 (do_test): Adjust expected output.
21559
21560 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21561
21562 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21563 (cosf): Define using libm_alias_float.
21564 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21565 (fabsf): Define using libm_alias_float.
21566 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21567 (fmaf): Define using libm_alias_float.
21568 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21569 (rintf): Define using libm_alias_float.
21570 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21571 (sinf): Define using libm_alias_float.
21572 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21573 <libm-alias-float.h>.
21574 (modff): Define using libm_alias_float.
21575 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21576 <libm-alias-float.h>.
21577 (logbf): Define using libm_alias_float.
21578 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21579 <libm-alias-float.h>.
21580 (ceilf): Define using libm_alias_float.
21581 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21582 <libm-alias-float.h>.
21583 (copysignf): Define using libm_alias_float.
21584 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21585 <libm-alias-float.h>.
21586 (floorf): Define using libm_alias_float.
21587 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21588 <libm-alias-float.h>.
21589 (llrintf): Define using libm_alias_float.
21590 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21591 <libm-alias-float.h>.
21592 (llroundf): Define using libm_alias_float.
21593 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21594 <libm-alias-float.h>.
21595 (lrintf): Define using libm_alias_float.
21596 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21597 <libm-alias-float.h>.
21598 (lroundf): Define using libm_alias_float.
21599 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21600 <libm-alias-float.h>.
21601 (nearbyintf): Define using libm_alias_float.
21602 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21603 <libm-alias-float.h>.
21604 (rintf): Define using libm_alias_float.
21605 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21606 <libm-alias-float.h>.
21607 (roundf): Define using libm_alias_float.
21608 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21609 <libm-alias-float.h>.
21610 (truncf): Define using libm_alias_float.
21611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21612 Include <libm-alias-float.h>.
21613 (ceilf): Define using libm_alias_float.
21614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21615 Include <libm-alias-float.h>.
21616 (copysignf): Define using libm_alias_float.
21617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21618 Include <libm-alias-float.h>.
21619 (floorf): Define using libm_alias_float.
21620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21621 Include <libm-alias-float.h>.
21622 (llrintf): Define using libm_alias_float.
21623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21624 Include <libm-alias-float.h>.
21625 (llroundf): Define using libm_alias_float.
21626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21627 Include <libm-alias-float.h>.
21628 (logbf): Define using libm_alias_float.
21629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21630 Include <libm-alias-float.h>.
21631 (lrintf): Define using libm_alias_float.
21632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21633 Include <libm-alias-float.h>.
21634 (lroundf): Define using libm_alias_float.
21635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21636 Include <libm-alias-float.h>.
21637 (modff): Define using libm_alias_float.
21638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21639 Include <libm-alias-float.h>.
21640 (roundf): Define using libm_alias_float.
21641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21642 Include <libm-alias-float.h>.
21643 (truncf): Define using libm_alias_float.
21644 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21645 <libm-alias-float.h>.
21646 (llrintf): Define using libm_alias_float.
21647 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21648 <libm-alias-float.h>.
21649 (llroundf): Define using libm_alias_float.
21650 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21651 <libm-alias-float.h>.
21652 (ceilf): Define using libm_alias_float.
21653 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21654 <libm-alias-float.h>.
21655 (floorf): Define using libm_alias_float.
21656 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21657 <libm-alias-float.h>.
21658 (llroundf): Define using libm_alias_float.
21659 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21660 <libm-alias-float.h>.
21661 (lroundf): Define using libm_alias_float.
21662 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21663 <libm-alias-float.h>.
21664 (roundf): Define using libm_alias_float.
21665 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21666 <libm-alias-float.h>.
21667 (truncf): Define using libm_alias_float.
21668 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21669 <libm-alias-float.h>.
21670 (copysignf): Define using libm_alias_float.
21671 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21672 <libm-alias-float.h>.
21673 (llrintf): Define using libm_alias_float.
21674 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21675 <libm-alias-float.h>.
21676 (llroundf): Define using libm_alias_float.
21677 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21678 <libm-alias-float.h>.
21679 (lrintf): Define using libm_alias_float.
21680 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21681 <libm-alias-float.h>.
21682 (lroundf): Define using libm_alias_float.
21683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21684 <libm-alias-float.h>.
21685 (ceilf): Define using libm_alias_float.
21686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21687 <libm-alias-float.h>.
21688 (copysignf): Define using libm_alias_float.
21689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21690 <libm-alias-float.h>.
21691 (cosf): Define using libm_alias_float.
21692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21693 <libm-alias-float.h>.
21694 (floorf): Define using libm_alias_float.
21695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21696 <libm-alias-float.h>.
21697 (llrintf): Define using libm_alias_float.
21698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21699 <libm-alias-float.h>.
21700 (llroundf): Define using libm_alias_float.
21701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21702 <libm-alias-float.h>.
21703 (logbf): Define using libm_alias_float.
21704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21705 <libm-alias-float.h>.
21706 (modff): Define using libm_alias_float.
21707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21708 <libm-alias-float.h>.
21709 (roundf): Define using libm_alias_float.
21710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21711 <libm-alias-float.h>.
21712 (sinf): Define using libm_alias_float.
21713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21714 <libm-alias-float.h>.
21715 (truncf): Define using libm_alias_float.
21716 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21717 <libm-alias-float.h>.
21718 (ceilf): Define using libm_alias_float.
21719 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21720 <libm-alias-float.h>.
21721 (copysignf): Define using libm_alias_float.
21722 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21723 <libm-alias-float.h>.
21724 (floorf): Define using libm_alias_float.
21725 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21726 <libm-alias-float.h>.
21727 (llrintf): Define using libm_alias_float.
21728 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21729 <libm-alias-float.h>.
21730 (llroundf): Define using libm_alias_float.
21731 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21732 <libm-alias-float.h>.
21733 (nearbyintf): Define using libm_alias_float.
21734 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21735 <libm-alias-float.h>.
21736 (rintf): Define using libm_alias_float.
21737 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21738 <libm-alias-float.h>.
21739 (roundf): Define using libm_alias_float.
21740 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21741 <libm-alias-float.h>.
21742 (truncf): Define using libm_alias_float.
21743 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21744 <libm-alias-float.h>.
21745 (ceilf): Define using libm_alias_float.
21746 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21747 <libm-alias-float.h>.
21748 (floorf): Define using libm_alias_float.
21749 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21750 <libm-alias-float.h>.
21751 (llroundf): Define using libm_alias_float.
21752 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21753 <libm-alias-float.h>.
21754 (roundf): Define using libm_alias_float.
21755 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21756 <libm-alias-float.h>.
21757 (truncf): Define using libm_alias_float.
21758 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21759 <libm-alias-float.h>.
21760 (copysignf): Define using libm_alias_float.
21761 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21762 <libm-alias-float.h>.
21763 (llrintf): Define using libm_alias_float.
21764 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21765 <libm-alias-float.h>.
21766 (llroundf): Define using libm_alias_float.
21767 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21768 <libm-alias-float.h>.
21769 (cosf): Define using libm_alias_float.
21770 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21771 <libm-alias-float.h>.
21772 (llrintf): Define using libm_alias_float.
21773 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21774 <libm-alias-float.h>.
21775 (llroundf): Define using libm_alias_float.
21776 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21777 <libm-alias-float.h>.
21778 (sinf): Define using libm_alias_float.
21779
21780 2017-12-04 Florian Weimer <fweimer@redhat.com>
21781
21782 * support/check.h (TEST_COMPARE): Define.
21783 (support_test_compare_failure): Declare.
21784 * support/Makefile (libsupport-routines): Add
21785 support_test_compare_failure.
21786 (tests): Add tst-test_compare.
21787 * support /support_test_compare_failure.c: New file.
21788 * support/tst-test_compare.c: Likewise.
21789
21790 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21791
21792 [BZ #22527]
21793 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21794 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21795 available, this rewrite of the collation rules does reproduce
21796 the test file in the same order.
21797
21798 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21799
21800 [BZ #10580]
21801 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21802 digraphs in the month and day names. Using single code points for
21803 digraphs is deprecated. While there are dedicated Unicode
21804 codepoints, for the digraphs, these are included for backwards
21805 compatibility and modern texts use a sequence of Basic Latin
21806 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21807 This makes the month and day names agree exactly with CLDR now,
21808 CLDR does not use the single code points for the digraphs either.
21809
21810 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21811
21812 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21813
21814 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21815
21816 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21817 of floor.
21818
21819 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21820
21821 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21822 Define only for libc.so.
21823
21824 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21825
21826 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21827 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21828 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21829 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21830 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21831
21832 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21833
21834 [BZ #5997]
21835 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21836
21837 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21838
21839 [BZ libc/19170]
21840 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21841 PREINIT_FUNCTION_WEAK is nonzero.
21842 (gmon_initializer): New function. Put procedure label for it in
21843 .init_array section.
21844 (_init): Don't call PREINIT_FUNCTION.
21845 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21846 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21847 value when map argument is null.
21848
21849 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21850 depi instruction from PIC pc-relative sequence.
21851 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21852 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21853 (elf_machine_load_address): Likewise.
21854 (elf_machine_runtime_setup): Likewise.
21855
21856 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21857
21858 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21859 <libm-alias-double.h>.
21860 (logb): Define using libm_alias_double.
21861 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21862 <libm-alias-double.h>.
21863 (copysign): Define using libm_alias_double.
21864 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21865 <libm-alias-double.h>.
21866 (llrint): Define using libm_alias_double.
21867 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21868 <libm-alias-double.h>.
21869 (llround): Define using libm_alias_double.
21870 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21871 <libm-alias-double.h>.
21872 (lrint): Define using libm_alias_double.
21873 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21874 <libm-alias-double.h>.
21875 (lround): Define using libm_alias_double.
21876 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21877 Include <libm-alias-double.h>.
21878 (copysign): Define using libm_alias_double.
21879 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21880 Include <libm-alias-double.h>.
21881 (llrint): Define using libm_alias_double.
21882 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21883 Include <libm-alias-double.h>.
21884 (llround): Define using libm_alias_double.
21885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21886 <libm-alias-double.h>.
21887 (logb): Define using libm_alias_double.
21888 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21889 Include <libm-alias-double.h>.
21890 (lrint): Define using libm_alias_double.
21891 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21892 Include <libm-alias-double.h>.
21893 (lround): Define using libm_alias_double.
21894 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21895 <libm-alias-double.h>.
21896 (llrint): Define using libm_alias_double.
21897 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21898 <libm-alias-double.h>.
21899 (llround): Define using libm_alias_double.
21900 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21901 <libm-alias-double.h>.
21902 (llround): Define using libm_alias_double.
21903 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21904 <libm-alias-double.h>.
21905 (lround): Define using libm_alias_double.
21906 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21907 <libm-alias-double.h>.
21908 (copysign): Define using libm_alias_double.
21909 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
21910 <libm-alias-double.h>.
21911 (llrint): Define using libm_alias_double.
21912 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21913 <libm-alias-double.h>.
21914 (llround): Define using libm_alias_double.
21915 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21916 <libm-alias-double.h>.
21917 (lrint): Define using libm_alias_double.
21918 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21919 <libm-alias-double.h>.
21920 (lround): Define using libm_alias_double.
21921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
21922 <libm-alias-double.h>.
21923 (copysign): Define using libm_alias_double.
21924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
21925 <libm-alias-double.h>.
21926 (llrint): Define using libm_alias_double.
21927 (lrint): Likewise.
21928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
21929 <libm-alias-double.h>.
21930 (llround): Define using libm_alias_double.
21931 (lround): Likewise.
21932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
21933 <libm-alias-double.h>.
21934 (logb): Define using libm_alias_double.
21935 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21936 <libm-alias-double.h>.
21937 (copysign): Define using libm_alias_double.
21938 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21939 <libm-alias-double.h>.
21940 (llrint): Define using libm_alias_double.
21941 (lrint): Likewise.
21942 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
21943 <libm-alias-double.h>.
21944 (llround): Define using libm_alias_double.
21945 (lround): Likewise.
21946 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21947 <libm-alias-double.h>.
21948 (llround): Define using libm_alias_double.
21949 (lround): Likewise.
21950 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21951 <libm-alias-double.h>.
21952 (copysign): Define using libm_alias_double.
21953 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21954 <libm-alias-double.h>.
21955 (llrint): Define using libm_alias_double.
21956 (lrint): Likewise.
21957 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21958 <libm-alias-double.h>.
21959 (llround): Define using libm_alias_double.
21960 (lround): Likewise.
21961 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21962 <libm-alias-double.h>.
21963 (llrint): Define using libm_alias_double.
21964 (lrint): Likewise.
21965 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21966 <libm-alias-double.h>.
21967 (llround): Define using libm_alias_double.
21968 (lround): Likewise.
21969
21970 2017-12-01 Joseph Myers <joseph@codesourcery.com>
21971
21972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
21973 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
21974 compat symbol based on llround.
21975
21976 * sysdeps/powerpc/power7/fpu/s_logb.c
21977 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
21978 symbol based on __logb, not on logb.
21979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
21980 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
21982 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
21983
21984 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
21985 (rint): Define using libm_alias_double.
21986 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
21987 <libm-alias-double.h>.
21988 (modf): Define using libm_alias_double.
21989 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
21990 <libm-alias-double.h>.
21991 (ceil): Define using libm_alias_double.
21992 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
21993 <libm-alias-double.h>.
21994 (floor): Define using libm_alias_double.
21995 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
21996 <libm-alias-double.h>.
21997 (nearbyint): Define using libm_alias_double.
21998 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
21999 <libm-alias-double.h>.
22000 (rint): Define using libm_alias_double.
22001 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22002 <libm-alias-double.h>.
22003 (round): Define using libm_alias_double.
22004 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22005 <libm-alias-double.h>.
22006 (trunc): Define using libm_alias_double.
22007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22008 <libm-alias-double.h>.
22009 (ceil): Define using libm_alias_double.
22010 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22011 Include <libm-alias-double.h>.
22012 (floor): Define using libm_alias_double.
22013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22014 <libm-alias-double.h>.
22015 (modf): Define using libm_alias_double.
22016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22017 Include <libm-alias-double.h>.
22018 (round): Define using libm_alias_double.
22019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22020 Include <libm-alias-double.h>.
22021 (trunc): Define using libm_alias_double.
22022 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22023 <libm-alias-double.h>.
22024 (ceil): Define using libm_alias_double.
22025 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22026 <libm-alias-double.h>.
22027 (floor): Define using libm_alias_double.
22028 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22029 <libm-alias-double.h>.
22030 (round): Define using libm_alias_double.
22031 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22032 <libm-alias-double.h>.
22033 (trunc): Define using libm_alias_double.
22034 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22035 <libm-alias-double.h>.
22036 (ceil): Define using libm_alias_double.
22037 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22038 <libm-alias-double.h>.
22039 (floor): Define using libm_alias_double.
22040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22041 <libm-alias-double.h>.
22042 (modf): Define using libm_alias_double.
22043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22044 <libm-alias-double.h>.
22045 (round): Define using libm_alias_double.
22046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22047 <libm-alias-double.h>.
22048 (trunc): Define using libm_alias_double.
22049 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22050 <libm-alias-double.h>.
22051 (ceil): Define using libm_alias_double.
22052 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22053 <libm-alias-double.h>.
22054 (floor): Define using libm_alias_double.
22055 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22056 <libm-alias-double.h>.
22057 (nearbyint): Define using libm_alias_double.
22058 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22059 <libm-alias-double.h>.
22060 (rint): Define using libm_alias_double.
22061 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22062 <libm-alias-double.h>.
22063 (round): Define using libm_alias_double.
22064 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22065 <libm-alias-double.h>.
22066 (trunc): Define using libm_alias_double.
22067 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22068 <libm-alias-double.h>.
22069 (ceil): Define using libm_alias_double.
22070 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22071 <libm-alias-double.h>.
22072 (floor): Define using libm_alias_double.
22073 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22074 <libm-alias-double.h>.
22075 (round): Define using libm_alias_double.
22076 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22077 <libm-alias-double.h>.
22078 (trunc): Define using libm_alias_double.
22079
22080 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22081 (fabs): Define using libm_alias_double.
22082 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22083 (fma): Define using libm_alias_double.
22084 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22085 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22086 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22087 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22088
22089 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22090
22091 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22092
22093 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22094 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22095 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22096
22097 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22098 due redirect macro.
22099
22100 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22101
22102 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22103
22104 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22105
22106 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22107 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22108 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22109 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22110
22111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22112 (libm-sysdep_routines): Add s_nearbyintf-generic and
22113 s_nearbyint-generic.
22114 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22115 New file.
22116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22117 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22118 Likewise.
22119 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22120 Likewise.
22121 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22122 file.
22123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22124 Likewise.
22125
22126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22127 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22129 file.
22130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22132 Likewise.
22133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22136
22137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22138 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22140 file.
22141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22143 Likewise.
22144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22147
22148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22149 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22151 file.
22152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22154 Likewise.
22155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22158
22159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22160 (sysdep_calls): New rule.
22161 (sysdep_routines): Use sysdep_calls as base.
22162 (libm-sysdep_routines): Add generic rule for symbols shared with
22163 libc. Add s_copysign-generic and s_copysign-generic objects.
22164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22165 New file.
22166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22167 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22168 Likewise.
22169 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22172
22173 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22174
22175 [BZ #22519]
22176 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22177 the list of locales to be built for testing.
22178 * localedata/is_IS.UTF-8.in: New file.
22179 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22180 on iso14651_t1.
22181
22182 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22183
22184 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22185 <libm-alias-float.h>.
22186 (fabsf): Define using libm_alias_float.
22187
22188 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22189
22190 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22191
22192 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22193
22194 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22195 <libm-alias-float.h>.
22196 (fabsf): Define using libm_alias_float.
22197 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22198 <libm-alias-float.h>.
22199 (lrintf): Define using libm_alias_float.
22200 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22201 <libm-alias-float.h>.
22202 (rintf): Define using libm_alias_float.
22203
22204 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22205 <libm-alias-double.h>.
22206 (fabs): Define using libm_alias_double.
22207 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22208 <libm-alias-double.h>.
22209 (lrint): Define using libm_alias_double.
22210 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22211 <libm-alias-double.h>.
22212 (rint): Define using libm_alias_double.
22213
22214 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22215 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22216 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22217 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22218 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22219 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22220 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22221 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22222 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22223 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22224 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22225 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22226 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22227 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22228 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22229 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22230 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22231 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22232 s_atan_template.c.
22233 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22234 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22235 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22236 s_ceil_template.c.
22237 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22238 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22239 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22240 s_cos_template.c.
22241 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22242 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22243 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22244 s_expm1_template.c.
22245 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22246 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22247 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22248 s_fabs_template.c.
22249 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22250 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22251 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22252 s_floor_template.c.
22253 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22254 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22255 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22256 s_frexp_template.c.
22257 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22258 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22259 s_lrint_template.c.
22260 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22261 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22262 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22263 s_modf_template.c.
22264 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22265 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22266 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22267 s_nearbyint_template.c.
22268 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22269 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22270 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22271 s_remquo_template.c.
22272 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22273 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22274 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22275 s_rint_template.c.
22276 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22277 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22278 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22279 s_sin_template.c.
22280 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22281 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22282 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22283 s_sincos_template.c.
22284 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22285 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22286 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22287 s_tan_template.c.
22288 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22289 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22290 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22291 s_tanh_template.c.
22292 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22293 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22294 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22295 s_trunc_template.c.
22296 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22297 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22298 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22299 s_atan.c instead of including s_atan.c.
22300 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22301 s_atanf.c instead of including s_atanf.c.
22302 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22303 s_atanl.c instead of including s_atanl.c.
22304 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22305 instead of s_atan.c.
22306 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22307 instead of s_atanf.c.
22308 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22309 instead of s_atanl.c.
22310
22311 * scripts/update-copyrights: Do not handle intl/plural.c
22312 specially.
22313
22314 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22315
22316 [BZ #22432]
22317 * configure.ac (BISON): Require to be present.
22318 * configure: Regenerated.
22319 * intl/Makefile (generated): Add plural.c.
22320 [$(BISON) != no]: Make code unconditional.
22321 (plural.c): Change rule to $(objpfx)plural.c.
22322 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22323 * intl/plural.c: Remove.
22324 * manual/install.texi (Tools for Compilation): Document bison as
22325 required.
22326 * INSTALL: Regenerated.
22327
22328 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22329
22330 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22331 <libm-alias-double.h>.
22332 (llrint): Define using libm_alias_double.
22333 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22334 <libm-alias-float.h>.
22335 (llrintf): Define using libm_alias_float.
22336 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22337 <libm-alias-ldouble.h>.
22338 (llrintl): Define using libm_alias_ldouble.
22339
22340 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22341 declare_mgen_alias instead of weak_alias.
22342 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22343 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22344 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22345
22346 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22347
22348 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22349 Add add_n-generic.
22350 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22351 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22352 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22353
22354 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22355 Add submul_1-generic.
22356 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22357 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22358 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22359
22360 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22361 Add addmul_1-generic.
22362 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22363 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22364 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22365
22366 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22367 Add sub_n-generic.
22368 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22369 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22370 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22371
22372 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22373 Add mul_1-generic.
22374 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22375 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22376 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22377
22378 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22379
22380 According to CLDR, collation rules for Serbian and Bosnian
22381 should be the same as for Croatian.
22382
22383 [BZ #22534]
22384 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22385 and to the list of locales to be built for testing.
22386 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22387 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22388 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22389 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22390
22391 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22392
22393 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22394 to make test case pass.
22395 * localedata/hr_HR.UTF-8.in: Add more test strings.
22396
22397 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22398
22399 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22400
22401 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22402
22403 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22404 the list of locales to built for testing.
22405 * localedata/hr_HR.UTF-8.in: New file.
22406
22407 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22408
22409 [BZ #10580]
22410 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22411 iso14651_t1.
22412 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22413 CLDR (except use ligatures for the digraphs, CLDR does not use
22414 the ligatures), add first_workday, some fixes in the date and time
22415 formats.
22416 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22417 for Đ and đ.
22418 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22419 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22420 Add int_p_cs_precedes and int_n_cs_precedes.
22421 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22422 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22423 LC_MONETARY now).
22424 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22425 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22426 name_miss.
22427 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22428 and lang_lib. Change postal_fmt.
22429
22430 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22431
22432 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22433 <setjmp.h>.
22434 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22435 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22436 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22437 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22438 * sysdeps/generic/setjmpP.h: New file.
22439 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22440 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22441 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22442 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22443 Add jmp_buf-ssp.sym.
22444 (tests): Add tst-saved_mask-1.
22445
22446 2017-11-30 Arjun Shankar <arjun@redhat.com>
22447
22448 [BZ #22375]
22449 CVE-2017-17426
22450 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22451 instead of request2size.
22452
22453 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22454
22455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22456 (__lllrint): Remove alias.
22457 (lllrint): Likewise.
22458 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22459 (__lllrintf): Likewise.
22460 (lllrintf): Likewise.
22461
22462 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22463 <libm-alias-float.h>.
22464 (copysignf): Define using libm_alias_float.
22465 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22466 <libm-alias-float.h>.
22467 (fabsf): Define using libm_alias_float.
22468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22469 Include <libm-alias-float.h>.
22470 (copysignf): Define using libm_alias_float.
22471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22472 <libm-alias-float.h>.
22473 (fabsf): Define using libm_alias_float.
22474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22475 <libm-alias-float.h>.
22476 (fdimf): Define using libm_alias_float.
22477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22478 <libm-alias-float.h>.
22479 (fmaf): Define using libm_alias_float.
22480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22481 <libm-alias-float.h>.
22482 (llrintf): Define using libm_alias_float.
22483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22484 Include <libm-alias-float.h>.
22485 (nearbyintf): Define using libm_alias_float.
22486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22487 <libm-alias-float.h>.
22488 (rintf): Define using libm_alias_float.
22489 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22490 <libm-alias-float.h>.
22491 (llrintf): Define using libm_alias_float.
22492 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22493 <libm-alias-float.h>.
22494 (lrintf): Define using libm_alias_float.
22495 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22496 <libm-alias-float.h>.
22497 (nearbyintf): Define using libm_alias_float.
22498 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22499 <libm-alias-float.h>.
22500 (rintf): Define using libm_alias_float.
22501 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22502 <libm-alias-float.h>.
22503 (ceilf): Define using libm_alias_float.
22504 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22505 <libm-alias-float.h>.
22506 (floorf): Define using libm_alias_float.
22507 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22508 <libm-alias-float.h>.
22509 (fmaf): Define using libm_alias_float.
22510 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22511 <libm-alias-float.h>.
22512 (lrintf): Define using libm_alias_float.
22513 (llrintf): Likewise.
22514 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22515 <libm-alias-float.h>.
22516 (nearbyintf): Define using libm_alias_float.
22517 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22518 <libm-alias-float.h>.
22519 (rintf): Define using libm_alias_float.
22520 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22521 <libm-alias-float.h>.
22522 (truncf): Define using libm_alias_float.
22523 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22524 <libm-alias-float.h>.
22525 (copysignf): Define using libm_alias_float.
22526 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22527 <libm-alias-float.h>.
22528 (fabsf): Define using libm_alias_float.
22529 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22530 <libm-alias-float.h>.
22531 (lrintf): Define using libm_alias_float.
22532 (llrintf): Likewise.
22533 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22534 <libm-alias-float.h>.
22535 (nearbyintf): Define using libm_alias_float.
22536 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22537 <libm-alias-float.h>.
22538 (rintf): Define using libm_alias_float.
22539
22540 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22541
22542 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22543 <libm-alias-double.h>.
22544 (copysign): Define using libm_alias_double.
22545 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22546 <libm-alias-double.h>.
22547 (fabs): Define using libm_alias_double.
22548 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22549 Include <libm-alias-double.h>.
22550 (copysign): Define using libm_alias_double.
22551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22552 <libm-alias-double.h>.
22553 (fabs): Define using libm_alias_double.
22554 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22555 <libm-alias-double.h>.
22556 (fdim): Define using libm_alias_double.
22557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22558 <libm-alias-double.h>.
22559 (fma): Define using libm_alias_double.
22560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22561 <libm-alias-double.h>.
22562 (llrint): Define using libm_alias_double.
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22564 Include <libm-alias-double.h>.
22565 (nearbyint): Define using libm_alias_double.
22566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22567 <libm-alias-double.h>.
22568 (rint): Define using libm_alias_double.
22569 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22570 <libm-alias-double.h>.
22571 (fabs): Define using libm_alias_double.
22572 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22573 <libm-alias-double.h>.
22574 (llrint): Define using libm_alias_double.
22575 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22576 <libm-alias-double.h>.
22577 (nearbyint): Define using libm_alias_double.
22578 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22579 <libm-alias-double.h>.
22580 (rint): Define using libm_alias_double.
22581 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22582 <libm-alias-double.h>.
22583 (ceil): Define using libm_alias_double.
22584 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22585 <libm-alias-double.h>.
22586 (floor): Define using libm_alias_double.
22587 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22588 <libm-alias-double.h>.
22589 (fma): Define using libm_alias_double.
22590 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22591 <libm-alias-double.h>.
22592 (lrint): Define using libm_alias_double.
22593 (llrint): Likewise.
22594 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22595 <libm-alias-double.h>.
22596 (nearbyint): Define using libm_alias_double.
22597 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22598 <libm-alias-double.h>.
22599 (rint): Define using libm_alias_double.
22600 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22601 <libm-alias-double.h>.
22602 (trunc): Define using libm_alias_double.
22603 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22604 <libm-alias-double.h>.
22605 (copysign): Define using libm_alias_double.
22606 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22607 <libm-alias-double.h>.
22608 (fabs): Define using libm_alias_double.
22609 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22610 <libm-alias-double.h>.
22611 (lrint): Define using libm_alias_double.
22612 (llrint): Likewise.
22613 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22614 <libm-alias-double.h>.
22615 (nearbyint): Define using libm_alias_double.
22616 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22617 <libm-alias-double.h>.
22618 (rint): Define using libm_alias_double.
22619
22620 [BZ #22229]
22621 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22622 <math_ldbl_opt.h>.
22623 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22624
22625 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22626 SPARC --disable-multi-arch glibc variants.
22627
22628 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22629 <libm-alias-float.h>.
22630 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22631 if [SHARED].
22632 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22633 <libm-alias-float.h>.
22634 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22635 if [SHARED].
22636 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22637 <libm-alias-float.h>.
22638 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22639 if [SHARED].
22640 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22641 <libm-alias-float.h>.
22642 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22643 if [SHARED].
22644 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22645 <libm-alias-float.h>.
22646 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22647 if [SHARED].
22648 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22649 <libm-alias-float.h>.
22650 (ceilf): Define using libm_alias_float.
22651 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22652 <libm-alias-float.h>.
22653 (floorf): Define using libm_alias_float.
22654 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22655 <libm-alias-float.h>.
22656 (fmaf): Define using libm_alias_float.
22657 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22658 <libm-alias-float.h>.
22659 (nearbyintf): Define using libm_alias_float.
22660 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22661 <libm-alias-float.h>.
22662 (rintf): Define using libm_alias_float.
22663 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22664 <libm-alias-float.h>.
22665 (truncf): Define using libm_alias_float.
22666 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22667 (copysignf): Define using libm_alias_float.
22668 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22669 (cosf): Define using libm_alias_float.
22670 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22671 (fabsf): Define using libm_alias_float.
22672 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22673 (fmaxf): Define using libm_alias_float.
22674 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22675 (fminf): Define using libm_alias_float.
22676 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22677 (llrintf): Define using libm_alias_float.
22678 [!__ILP32__] (lrintf): Likewise.
22679 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22680 (sincosf): Define using libm_alias_float.
22681 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22682 (sinf): Define using libm_alias_float.
22683 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22684 (lrintf): Define using libm_alias_float.
22685
22686 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22687 <libm-alias-double.h>.
22688 (atan): Define using libm_alias_double.
22689 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22690 <libm-alias-double.h>.
22691 (ceil): Define using libm_alias_double.
22692 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22693 <libm-alias-double.h>.
22694 (floor): Define using libm_alias_double.
22695 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22696 <libm-alias-double.h>.
22697 (fma): Define using libm_alias_double.
22698 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22699 <libm-alias-double.h>.
22700 (nearbyint): Define using libm_alias_double.
22701 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22702 <libm-alias-double.h>.
22703 (rint): Define using libm_alias_double.
22704 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22705 <libm-alias-double.h>.
22706 (sin): Define using libm_alias_double.
22707 (cos): Likewise.
22708 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22709 <libm-alias-double.h>.
22710 (tan): Define using libm_alias_double.
22711 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22712 <libm-alias-double.h>.
22713 (trunc): Define using libm_alias_double.
22714 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22715 (copysign): Define using libm_alias_double.
22716 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22717 (fabs): Define using libm_alias_double.
22718 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22719 (fmax): Define using libm_alias_double.
22720 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22721 (fmin): Define using libm_alias_double.
22722 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22723 (llrint): Define using libm_alias_double.
22724 [!__ILP32__] (lrint): Likewise.
22725 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22726 (lrint): Define using libm_alias_double.
22727
22728 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22729
22730 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22731 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22732 objects.
22733 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22734 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22735 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22736 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22737 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22738 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22739
22740 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22741 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22742 objects.
22743 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22744 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22745 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22746 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22747 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22748 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22749
22750 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22751 (libm-sysdep_routines): Add s_nearbyint-generic and
22752 s_nearbyintf-generic objects.
22753 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22754 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22755 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22756 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22757 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22758 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22759
22760 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22761 Add s_finitef-generic and s_finite-generic objects.
22762 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22763 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22764 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22765 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22766 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22767 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22768
22769 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22770 Add s_isinff-generic and s_isinf-generic objects.
22771 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22772 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22773 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22774 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22775 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22776 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22777
22778 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22779 Add s_isnanf-generic and s_isnan-generic objects.
22780 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22781 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22782 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22783 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22784 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22785 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22786
22787 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22788 macro.
22789 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22790 rule.
22791 (sysdep_routines): Use sysdep_calls as base.
22792 (libm-sysdep_routines): Add generic rule for symbols shared with
22793 libc. Add s_signbit-generic and s_signbitf-generic objects.
22794 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22795 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22796 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22797 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22798 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22799 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22800
22801 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22802
22803 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22804 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22805 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22806 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22807 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22808 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22809 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22810 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22811 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22812 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22813 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22814 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22815 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22816 libm_alias_float_r.
22817 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22818 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22819 (logf): Likewise.
22820 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22821 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22822 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22823 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22824 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22825 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22826 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22827 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22828 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22829 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22830 libm_alias_float.
22831 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22832 (cosf): Likewise.
22833 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22834 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22835 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22836 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22837 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22838 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22839 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22840 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22841 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22842 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22843 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22844 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22845 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22846 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22847 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22848 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22849 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22850 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22851 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22852 libm_alias_float.
22853 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22854 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22855 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22856 * sysdeps/ia64/fpu/w_lgammaf_main.c
22857 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22858 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22859
22860 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22861 Alexandre Oliva <aoliva@redhat.com>
22862
22863 [BZ #17750]
22864 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22865 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22866 accents sorting.
22867 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22868 sorting.
22869 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22870 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22871 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22872 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22873 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22874 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22875 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22876 instead of “ifdef DIACRIT_BACKWARD”.
22877
22878 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22879
22880 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22881 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22882 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22883 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22884 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22885 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22886 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22887 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22888 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22889 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22890 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22891 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22892 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22893 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22894 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22895 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22896 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22897 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22899 ($(have-as-vis3) == yes): Remove conditional.
22900 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22901 Likewise.
22902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22903 file.
22904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22905 file.
22906 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22907 file.
22908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
22909 file.
22910 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
22911 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
22912 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
22913 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
22914 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
22915 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
22916 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
22917 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
22918
22919 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22920
22921 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
22922 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
22923 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
22924 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
22925 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
22926 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
22927 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
22928 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
22929 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
22930 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
22931 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
22932 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
22933 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
22934 libm_alias_double_r.
22935 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
22936 (log): Likewise.
22937 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
22938 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
22939 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
22940 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
22941 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
22942 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
22943 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
22944 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
22945 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
22946 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
22947 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
22948 libm_alias_double.
22949 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
22950 (cos): Likewise.
22951 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
22952 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
22953 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
22954 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
22955 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
22956 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
22957 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
22958 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
22959 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
22960 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
22961 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
22962 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
22963 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
22964 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
22965 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
22966 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
22967 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
22968 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
22969 libm_alias_double.
22970 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
22971 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
22972 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
22973 * sysdeps/ia64/fpu/w_lgamma_main.c
22974 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
22975 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
22976
22977 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
22978
22979 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
22980 address of $global$ into %dp register earlier. Use pc-relative
22981 instruction sequence for PIC case.
22982
22983 2017-11-28 Joseph Myers <joseph@codesourcery.com>
22984
22985 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
22986 (asinhf): Define using libm_alias_float.
22987 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
22988 (atanf): Define using libm_alias_float.
22989 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
22990 (cbrtf): Define using libm_alias_float.
22991 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
22992 (ceilf): Define using libm_alias_float.
22993 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22994 (copysignf): Define using libm_alias_float.
22995 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
22996 (expm1f): Define using libm_alias_float.
22997 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
22998 (fabsf): Define using libm_alias_float.
22999 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23000 (floorf): Define using libm_alias_float.
23001 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23002 (fmaxf): Define using libm_alias_float.
23003 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23004 (fminf): Define using libm_alias_float.
23005 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23006 (frexpf): Define using libm_alias_float.
23007 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23008 (llrintf): Define using libm_alias_float.
23009 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23010 (logbf): Define using libm_alias_float.
23011 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23012 (lrintf): Define using libm_alias_float.
23013 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23014 (nearbyintf): Define using libm_alias_float.
23015 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23016 (remquof): Define using libm_alias_float.
23017 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23018 (rintf): Define using libm_alias_float.
23019 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23020 (truncf): Define using libm_alias_float.
23021 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23022 <libm-alias-float.h>.
23023 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23024 if [SHARED].
23025 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23026 <libm-alias-float.h>.
23027 (expf): Define using libm_alias_float, or libm_alias_float_other
23028 if [SHARED].
23029 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23030 <libm-alias-float.h>.
23031 (log2f): Define using libm_alias_float, or libm_alias_float_other
23032 if [SHARED].
23033 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23034 <libm-alias-float.h>.
23035 (logf): Define using libm_alias_float, or libm_alias_float_other
23036 if [SHARED].
23037 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23038 <libm-alias-float.h>.
23039 (powf): Define using libm_alias_float, or libm_alias_float_other
23040 if [SHARED].
23041 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23042 <libm-alias-float.h>.
23043 (cosf): Define using libm_alias_float.
23044 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23045 <libm-alias-float.h>.
23046 (sincosf): Define using libm_alias_float.
23047 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23048 <libm-alias-float.h>.
23049 (sinf): Define using libm_alias_float.
23050 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23051 (fmaxf): Define using libm_alias_float.
23052 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23053 (fminf): Define using libm_alias_float.
23054 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23055 <libm-alias-float.h>.
23056 (fmaf): Define using libm_alias_float.
23057
23058 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23059 (asinh): Define using libm_alias_double.
23060 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23061 (atan): Define using libm_alias_double.
23062 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23063 (cbrt): Define using libm_alias_double.
23064 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23065 (ceil): Define using libm_alias_double.
23066 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23067 (copysign): Define using libm_alias_double.
23068 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23069 (expm1): Define using libm_alias_double.
23070 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23071 (fabs): Define using libm_alias_double.
23072 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23073 (fdim): Define using libm_alias_double.
23074 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23075 (floor): Define using libm_alias_double.
23076 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23077 (fmax): Define using libm_alias_double.
23078 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23079 (fmin): Define using libm_alias_double.
23080 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23081 (frexp): Define using libm_alias_double.
23082 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23083 (llrint): Define using libm_alias_double.
23084 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23085 (logb): Define using libm_alias_double.
23086 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23087 (lrint): Define using libm_alias_double.
23088 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23089 (nearbyint): Define using libm_alias_double.
23090 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23091 (remquo): Define using libm_alias_double.
23092 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23093 (rint): Define using libm_alias_double.
23094 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23095 (trunc): Define using libm_alias_double.
23096 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23097 (fmax): Define using libm_alias_double.
23098 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23099 (fmin): Define using libm_alias_double.
23100 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23101 (fma): Define using libm_alias_double.
23102
23103 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23104
23105 [BZ #22370]
23106 * elf/dl-hwcaps.c (ROUND): Removed.
23107 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23108 and ELF_NOTE_NEXT_OFFSET.
23109 * elf/dl-load.c (ROUND): Removed.
23110 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23111 * elf/readelflib.c (ROUND): Removed.
23112 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23113 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23114 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23115 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23116
23117 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23118
23119 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23120 [!__fmaf] (fmaf): Define using libm_alias_float.
23121
23122 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23123 [!__fma] (fma): Define using libm_alias_double.
23124 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23125
23126 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23127
23128 [BZ #22336]
23129 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23130 and implement the collation rules for cs from CLDR on top of that.
23131 * Makefile: Add cs_CZ.UTF-8 to test-input.
23132 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23133
23134 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23135
23136 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23137
23138 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23139 Icarus Sparry <icarus.w.sparry@intel.com>
23140
23141 * benchtests/Makefile:Add BENCHSET to allow subsets of
23142 benchmarks to be run.
23143 * benchtests/README: Add documentation for: Running subsets of
23144 benchmarks.
23145
23146 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23147
23148 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23149 range of tests names.
23150
23151 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23152 result from property and remove "max", min" and "mean" from
23153 required properties based on benchtests/bench-skeleton.c.
23154
23155 2017-11-28 Florian Weimer <fweimer@redhat.com>
23156
23157 [BZ #20826]
23158 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23159 due to Internet requirement.
23160 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23161 tst-getaddrinfo5.
23162 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23163
23164 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23165
23166 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23167 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23168 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23169 (sysdep_routines): Add memset-ultra1.
23170 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23171 file.
23172 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23173 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23174 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23175 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23176 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23177 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23178 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23179 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23180
23181 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23182 file.
23183 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23184 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23185 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23186 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23187 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23188 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23189 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23190 macro.
23191 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23192 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23193 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23194 (sysdep_routines): Add memcpy-ultra1.
23195 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23196 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23197
23198 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23199
23200 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23201 (cfloat_versions): Take function argument without trailing 'f'.
23202 Call libm_alias_float_other.
23203 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23204 * sysdeps/alpha/fpu/cargf.c: Likewise.
23205 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23206 * sysdeps/alpha/fpu/conjf.c: Likewise.
23207 * sysdeps/alpha/fpu/crealf.c: Likewise.
23208 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23209 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23210 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23211 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23212 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23213 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23214 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23215 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23216 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23217 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23218 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23219 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23220 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23221 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23222 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23223 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23224 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23225 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23226 (clog10f): Use libm_alias_float_other.
23227 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23228 (ceilf): Define using libm_alias_float.
23229 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23230 (copysignf): Define using libm_alias_float.
23231 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23232 (fabsf): Define using libm_alias_float.
23233 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23234 (floorf): Define using libm_alias_float.
23235 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23236 (fmaxf): Define using libm_alias_float.
23237 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23238 (fminf): Define using libm_alias_float.
23239 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23240 (lrintf): Define using libm_alias_float.
23241 (llrintf): Likewise.
23242 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23243 (lroundf): Define using libm_alias_float.
23244 (llroundf): Likewise.
23245 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23246 (rintf): Define using libm_alias_float.
23247 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23248 (truncf): Define using libm_alias_float.
23249
23250 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23251 (ceilf): Define using libm_alias_float.
23252 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23253 (floorf): Define using libm_alias_float.
23254 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23255 (fmaf): Define using libm_alias_float.
23256 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23257 (fmaxf): Define using libm_alias_float.
23258 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23259 (fminf): Define using libm_alias_float.
23260 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23261 (llrintf): Define using libm_alias_float.
23262 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23263 (llroundf): Define using libm_alias_float.
23264 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23265 (lrintf): Define using libm_alias_float.
23266 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23267 (lroundf): Define using libm_alias_float.
23268 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23269 <libm-alias-float.h>.
23270 (nearbyintf): Define using libm_alias_float.
23271 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23272 (rintf): Define using libm_alias_float.
23273 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23274 (roundf): Define using libm_alias_float.
23275 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23276 (truncf): Define using libm_alias_float.
23277
23278 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23279 (ceil): Define using libm_alias_double.
23280 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23281 (copysign): Define using libm_alias_double.
23282 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23283 (fabs): Define using libm_alias_double.
23284 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23285 (floor): Define using libm_alias_double.
23286 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23287 (fmax): Define using libm_alias_double.
23288 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23289 (fmin): Define using libm_alias_double.
23290 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23291 (lrint): Define using libm_alias_double.
23292 (llrint): Likewise.
23293 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23294 (lround): Define using libm_alias_double.
23295 (llround): Likewise.
23296 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23297 (rint): Define using libm_alias_double.
23298 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23299 (trunc): Define using libm_alias_double.
23300
23301 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23302 (libm_alias_double_r): Add semicolon after weak_alias call.
23303
23304 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23305
23306 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23307 (ceil): Define using libm_alias_double.
23308 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23309 (floor): Define using libm_alias_double.
23310 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23311 (fma): Define using libm_alias_double.
23312 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23313 (fmax): Define using libm_alias_double.
23314 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23315 (fmin): Define using libm_alias_double.
23316 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23317 (llrint): Define using libm_alias_double.
23318 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23319 (llround): Define using libm_alias_double.
23320 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23321 (lrint): Define using libm_alias_double.
23322 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23323 (lround): Define using libm_alias_double.
23324 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23325 (nearbyint): Define using libm_alias_double.
23326 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23327 (rint): Define using libm_alias_double.
23328 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23329 (round): Define using libm_alias_double.
23330 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23331 (trunc): Define using libm_alias_double.
23332
23333 2017-11-27 Florian Weimer <fweimer@redhat.com>
23334
23335 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23336 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23337 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23338 (tests): Add tst-mlock2.
23339 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23340 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23341 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23342 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23343 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23344 for mlock. Document mlock2.
23345
23346 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23347
23348 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23349 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23350 Likewise.
23351 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23352 Likewise.
23353 * sysdeps/x86/Makeconfig: New file.
23354 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23355 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23356 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23357 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23358 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23359 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23360 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23361 Likewise.
23362 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23363 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23364 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23365 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23366 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23367 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23368 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23369 * manual/math.texi (Mathematics): Document support for _Float64x.
23370 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23371 * stdlib/Versions (GLIBC_2.27): Likewise.
23372 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23373 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23374 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23375 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23376 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23377 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23378 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23379 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23380 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23381 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23382 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23383 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23385 Likewise.
23386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23387 Likewise.
23388 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23389 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23390 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23391 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23392 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23393 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23394 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23395 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23396 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23397 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23398 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23399 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23400 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23401 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23402
23403 2017-11-27 Andreas Schwab <schwab@suse.de>
23404
23405 * elf/Makefile (dl-routines): Add dl-sort-maps.
23406 * elf/dl-sort-maps.c: New file.
23407 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23408 (_dl_sort_maps): Declare.
23409 * elf/dl-fini.c (_dl_sort_fini): Remove.
23410 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23411 * elf/dl-close.c (_dl_close_worker): Likewise.
23412 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23413 open-coding it.
23414 * elf/dl-open.c (dl_open_worker): Likewise.
23415
23416 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23417
23418 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23419 using libm_alias_float128.
23420 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23421 Likewise.
23422 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23423 Likewise.
23424 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23425 (setpayloadsigf128): Likewise.
23426 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23427 Likewise.
23428 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23429 Likewise.
23430
23431 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23432 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23433 -mfloat128 to CFLAGS.
23434 ($(foreach
23435 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23436 Likewise.
23437 (CFLAGS-libm-test-support-float64x.c): New variable.
23438 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23439 $(f128-loader-link) to gnulib-tests.
23440
23441 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23442 (libm_alias_float128_other_r): If
23443 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23444 alias.
23445 (libm_alias_float128_r): Add semicolon after weak_alias call.
23446 * sysdeps/generic/libm-alias-ldouble.h
23447 (libm_alias_ldouble_other_r_f128): New macro.
23448 (libm_alias_ldouble_other_r_f64x): Likewise.
23449 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23450 and libm_alias_ldouble_other_r_f64x.
23451 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23452 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23453 (libm_alias_ldouble_other_r_f128): New macro.
23454 (libm_alias_ldouble_other_r_f64x): Likewise.
23455 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23456 and libm_alias_ldouble_other_r_f64x.
23457
23458 * stdlib/strfroml.c: Always include <stdlib.h>.
23459 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23460 undefine as macro and define as weak alias.
23461 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23462 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23463 <stdlib.h>.
23464 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23465 Define and later undefine as macro and define as weak alias.
23466
23467 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23468 Define and later undefine as macro. Define as weak alias if
23469 [!USE_WIDE_CHAR].
23470 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23471 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23472 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23473 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23474 Define and later undefine as macro. Define as weak alias if
23475 [!USE_WIDE_CHAR].
23476 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23477 Define and later undefine as macro. Define as weak alias if
23478 [USE_WIDE_CHAR].
23479 * sysdeps/ieee754/float128/strtof128_l.c
23480 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23481 Define and later undefine as macro. Define as weak alias if
23482 [!USE_WIDE_CHAR].
23483 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23484 Define and later undefine as macro. Define as weak alias if
23485 [USE_WIDE_CHAR].
23486 * sysdeps/ieee754/ldbl-128/strtold_l.c
23487 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23488 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23489 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23490 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23491 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23492 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23493 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23494 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23495 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23496 * sysdeps/ieee754/ldbl-96/strtold_l.c
23497 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23498 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23499 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23500 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23501
23502 * math/test-float64x.h: New file.
23503 * math/Makefile (type-float64x-yes): New variable.
23504 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23505
23506 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23507 function-like macro.
23508 (min_of_type_): Likewise.
23509 (min_of_type_l): Likewise.
23510 (min_of_type_f128): Likewise.
23511 (min_of_type): Pass () as last argument of __MATH_TG.
23512
23513 * stdlib/tst-strtod-round-skeleton.c
23514 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23515 headers.
23516
23517 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23518 for combinations of long double with _Float64 and _Float64x.
23519
23520 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23521 (__DECL_SIMD_cosf32): Likewise.
23522 (__DECL_SIMD_cosf64): Likewise.
23523 (__DECL_SIMD_cosf32x): Likewise.
23524 (__DECL_SIMD_cosf64x): Likewise.
23525 (__DECL_SIMD_cosf128x): Likewise.
23526 (__DECL_SIMD_sinf16): Likewise.
23527 (__DECL_SIMD_sinf32): Likewise.
23528 (__DECL_SIMD_sinf64): Likewise.
23529 (__DECL_SIMD_sinf32x): Likewise.
23530 (__DECL_SIMD_sinf64x): Likewise.
23531 (__DECL_SIMD_sinf128x): Likewise.
23532 (__DECL_SIMD_sincosf16): Likewise.
23533 (__DECL_SIMD_sincosf32): Likewise.
23534 (__DECL_SIMD_sincosf64): Likewise.
23535 (__DECL_SIMD_sincosf32x): Likewise.
23536 (__DECL_SIMD_sincosf64x): Likewise.
23537 (__DECL_SIMD_sincosf128x): Likewise.
23538 (__DECL_SIMD_logf16): Likewise.
23539 (__DECL_SIMD_logf32): Likewise.
23540 (__DECL_SIMD_logf64): Likewise.
23541 (__DECL_SIMD_logf32x): Likewise.
23542 (__DECL_SIMD_logf64x): Likewise.
23543 (__DECL_SIMD_logf128x): Likewise.
23544 (__DECL_SIMD_expf16): Likewise.
23545 (__DECL_SIMD_expf32): Likewise.
23546 (__DECL_SIMD_expf64): Likewise.
23547 (__DECL_SIMD_expf32x): Likewise.
23548 (__DECL_SIMD_expf64x): Likewise.
23549 (__DECL_SIMD_expf128x): Likewise.
23550 (__DECL_SIMD_powf16): Likewise.
23551 (__DECL_SIMD_powf32): Likewise.
23552 (__DECL_SIMD_powf64): Likewise.
23553 (__DECL_SIMD_powf32x): Likewise.
23554 (__DECL_SIMD_powf64x): Likewise.
23555 (__DECL_SIMD_powf128x): Likewise.
23556
23557 * stdlib/Versions (libc): Move entries for wcstof128 and
23558 wcstof128_l to ....
23559 * wcsmbs/Versions (libc): ... here.
23560 Include <float128-abi.h>.
23561
23562 2017-11-24 Florian Weimer <fweimer@redhat.com>
23563
23564 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23565 bits/mman-shared.h.
23566 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23567 <bits/mman-shared.h>.
23568 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23569 to ...
23570 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23571 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23572 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23573 <bits/mman-shared.h>.
23574
23575 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23576
23577 [BZ #22457]
23578 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23579 posix_memalign/free.
23580 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23581
23582 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23583
23584 [BZ #22469]
23585 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23586 and implement the collation rules for pl from CLDR on top of that.
23587 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23588 of locales to be built for testing.
23589 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23590
23591 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23592
23593 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23594 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23595 libm_alias_ldouble_other.
23596 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23597 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23598 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23599 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23600 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23601 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23602 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23603 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23604 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23605 libm_alias_ldouble_r.
23606 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23607 libm_alias_ldouble_other.
23608 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23609 (log10l): Likewise.
23610 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23611 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23612 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23613 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23614 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23615 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23616 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23617 (atan2l): Likewise.
23618 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23619 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23620 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23621 libm_alias_ldouble.
23622 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23623 (cosl): Likewise.
23624 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23625 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23626 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23627 (expl): Likewise.
23628 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23629 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23630 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23631 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23632 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23633 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23634 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23635 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23636 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23637 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23638 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23639 libm_alias_ldouble.
23640 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23641 libm_alias_ldouble_other.
23642 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23643 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23644 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23645 libm_alias_ldouble.
23646 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23647 libm_alias_ldouble_other.
23648 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23649 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23650 * sysdeps/ia64/fpu/w_lgammal_main.c
23651 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23652 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23653
23654 2017-11-23 Florian Weimer <fweimer@redhat.com>
23655
23656 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23657 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23658 alike. Remove freeres marker.
23659 * malloc/arena.c (arena_thread_freeres): Call
23660 tcache_thread_shutdown.
23661
23662 2017-11-23 Florian Weimer <fweimer@redhat.com>
23663
23664 [BZ #22459]
23665 Export nscd hash function as __nss_hash.
23666 * include/nss.h (__nss_hash): Declare.
23667 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23668 symbol.
23669 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23670 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23671 of __nscd_hash.
23672 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23673 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23674 * nss/Makefiles (routines): Add nss_hash.
23675 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23676 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23677 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23678 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23679
23680 2017-11-23 Florian Weimer <fweimer@redhat.com>
23681
23682 [BZ #22478]
23683 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23684 Return error code, not -1.
23685 * signal/tst-sigwait-eintr.c: New file.
23686 * signal/Makefile (tests): Add tst-sigwait-eintr.
23687
23688 2017-11-23 Florian Weimer <fweimer@redhat.com>
23689
23690 Linux: Add memfd_create system call wrapper
23691 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23692 tst-memfd_create.
23693 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23694 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23695 [__USE_GNU] (memfd_create): Declare.
23696 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23697 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23698 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23699 * sysdeps/unix/sysv/linux/**.abilist: Update.
23700 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23701
23702 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23703
23704 * localedata/gen-locale.sh: Fix typo in variable name.
23705
23706 * resolv/res_debug.c (p_secstodate): Condition definition on
23707 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23708 directly as __p_secstodate, and as a compat symbol. Do not use
23709 libresolv_hidden_def.
23710 * resolv/resolv.h (p_secstodate): Remove macro and function
23711 declaration.
23712 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23713 using p_secstodate.
23714 * include/resolv.h (__p_secstodate): Do not use
23715 libresolv_hidden_proto.
23716 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23717 (tests-internal): ... here.
23718 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23719 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23720 and declare and use __p_secstodate and use compat_symbol_reference
23721 in that case.
23722 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23723 implementation returning 77.
23724
23725 [BZ #22463]
23726 * resolv/res_debug.c: Include <libc-diag.h>.
23727 (p_secstodate): Assert time_t at least as wide as u_long. On
23728 overflow, use integer seconds since the epoch as output, or use
23729 "<overflow>" as output and set errno to EOVERFLOW if integer
23730 seconds since the epoch would be 14 or more characters.
23731 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23732 for sprintf call.
23733 * resolv/tst-p_secstodate.c: New file.
23734 * resolv/Makefile (tests): Add tst-p_secstodate.
23735 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23736
23737 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23738 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23739 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23740
23741 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23742
23743 * posix/regcomp.c (init_word_char): Add comments.
23744
23745 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23746
23747 [BZ #22447]
23748 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23749 strlen to compute length of ut_user and set trailing NUL byte of
23750 result explicitly.
23751
23752 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23753
23754 [BZ #15537]
23755 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23756 using “copy "iso14651_t1"” and then implementing the
23757 collation rules for lv from CLDR on top of that.
23758 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23759 of locales to be built for testing.
23760 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23761 sorting.
23762
23763 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23764
23765 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23766 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23767 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23768 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23769 [__USE_MISC] (MADV_HWPOISON): New macro.
23770 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23771
23772 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23773
23774 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23775 -Wmissing-braces on GCC 4.9.
23776
23777 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23778
23779 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23780 * sysdeps/s390/s390-32/start.S (_start): Likewise
23781 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23782 (thread_start): Likewise.
23783 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23784 (thread_start): Likewise.
23785 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23786 (__makecontext_ret): Likewise.
23787 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23788 (__makecontext_ret): Likewise.
23789
23790 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23791
23792 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23793 __wcschrnul): Remove attribute_hidden.
23794
23795 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23796
23797 regex: don't assume uint64_t or uint32_t
23798 This avoids -Werror=overflow errors for 32-bit systems in
23799 the 64-bit case. Problem reported by Joseph Myers in:
23800 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23801 Also, when this code is used in Gnulib it ports to platforms
23802 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23803 them, and on some 32-bit compilers there is no uint64_t.
23804 Problem reported by Gianluigi Tiesi in:
23805 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23806 * posix/regcomp.c (init_word_char): Don't assume that the types
23807 uint64_t and uint32_t exist. Adapted from Gnulib patch
23808 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23809 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23810
23811 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23812
23813 * sysdeps/aarch64/memset-reg.h: New file.
23814 * sysdeps/aarch64/memset.S: Use it.
23815 (__memset): Rename to MEMSET macro.
23816 [ZVA_MACRO]: Use zva_macro.
23817 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23818 Add memset_generic and memset_falkor.
23819 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23820 (__libc_ifunc_impl_list): Add memset ifuncs.
23821 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23822 local variable zva_size.
23823 * sysdeps/aarch64/multiarch/memset.c: New file.
23824 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23825 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23826 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23827 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23828 (DCZID_DZP_MASK): New macro.
23829 (DCZID_BS_MASK): Likewise.
23830 (init_cpu_features): Read and set zva_size.
23831 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23832 (struct cpu_features): New member zva_size.
23833
23834 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23835 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23836 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23837
23838 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23839 backwards. Fix timing computation.
23840 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23841 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23842 on memset by N at a time. Fix timing computation.
23843
23844 2017-11-20 Florian Weimer <fweimer@redhat.com>
23845
23846 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23847 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23848
23849 2017-11-19 Florian Weimer <fweimer@redhat.com>
23850
23851 manual: Document mprotect
23852 * manual/memory.texi (Memory Protection): New section.
23853 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23854 documentation of PROT_* flags and reference the Memory Protection
23855 section instead.
23856
23857 2017-11-19 Florian Weimer <fweimer@redhat.com>
23858
23859 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23860 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23861 (Scatter-Gather): ... to here. Remove misleading comment.
23862
23863 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23864
23865 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23866 style.
23867
23868 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23869 when /proc/<pid>/setgroups does not exist.
23870
23871 2017-11-18 Florian Weimer <fweimer@redhat.com>
23872
23873 * sysdeps/unix/sysv/linux/tst-ttyname.c
23874 (become_root_in_mount_ns): Remove.
23875 (do_in_chroot_1): Call support_enter_mount_namespace.
23876 (do_in_chroot_2): Likewise.
23877 (do_test): Call support_become_root early.
23878
23879 2017-11-18 Florian Weimer <fweimer@redhat.com>
23880
23881 * support/namespace.h (support_enter_mount_namespace): Declare.
23882 * support/support_enter_mount_namespace.c: New file.
23883 * support/Makefile (libsupport-routines): Add
23884 support_enter_mount_namespace.
23885
23886 2017-11-18 Florian Weimer <fweimer@redhat.com>
23887
23888 * support/temp_file.c (support_create_temp_directory): Use
23889 test_dir and do not rely on the presence of the XXXXXX suffix.
23890 * support/temp_file.h (support_create_temp_directory): Update
23891 comment.
23892 * support/tst-xreadlink.c (do_test): Adjust.
23893 * support/support_chroot.c (support_chroot_create): Likewise.
23894
23895 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23896
23897 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23898 macro.
23899 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23900 htm-no-suspend.
23901
23902 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23903
23904 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23905 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23906 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23907 (ceill): Define using libm_alias_ldouble.
23908 * sysdeps/x86_64/fpu/s_copysignl.S: Include
23909 <libm-alias-ldouble.h>.
23910 (copysignl): Define using libm_alias_ldouble.
23911 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23912 (fabsl): Define using libm_alias_ldouble.
23913 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23914 (floorl): Define using libm_alias_ldouble.
23915 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23916 (fmaxl): Define using libm_alias_ldouble.
23917 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23918 (fminl): Define using libm_alias_ldouble.
23919 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23920 (llrintl): Define using libm_alias_ldouble.
23921 (lrintl): Likewise.
23922 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
23923 <libm-alias-ldouble.h>.
23924 (nearbyintl): Define using libm_alias_ldouble.
23925 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23926 (truncl): Define using libm_alias_ldouble.
23927 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
23928 <libm-alias-ldouble.h>.
23929 (lrintl): Define using libm_alias_ldouble.
23930
23931 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23932 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23933 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
23934 (asinhl): Define using libm_alias_ldouble.
23935 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
23936 (atanl): Define using libm_alias_ldouble.
23937 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
23938 (cbrtl): Define using libm_alias_ldouble.
23939 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23940 (ceill): Define using libm_alias_ldouble.
23941 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
23942 (copysignl): Define using libm_alias_ldouble.
23943 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
23944 (fabsl): Define using libm_alias_ldouble.
23945 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
23946 (floorl): Define using libm_alias_ldouble.
23947 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23948 (fmaxl): Define using libm_alias_ldouble.
23949 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23950 (fminl): Define using libm_alias_ldouble.
23951 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
23952 (frexpl): Define using libm_alias_ldouble.
23953 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
23954 (llrintl): Define using libm_alias_ldouble.
23955 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
23956 (logbl): Define using libm_alias_ldouble.
23957 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
23958 (lrintl): Define using libm_alias_ldouble.
23959 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
23960 (nearbyintl): Define using libm_alias_ldouble.
23961 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
23962 (nextafterl): Define using libm_alias_ldouble.
23963 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
23964 (remquol): Define using libm_alias_ldouble.
23965 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
23966 (rintl): Define using libm_alias_ldouble.
23967 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
23968 (truncl): Define using libm_alias_ldouble.
23969 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
23970 (fmaxl): Define using libm_alias_ldouble.
23971 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
23972 (fminl): Define using libm_alias_ldouble.
23973
23974 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
23975 to C syntax instead of availability and properties of types.
23976 * bits/floatn.h [!__ASSEMBLER]: Likewise.
23977 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
23978 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
23979 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
23980 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
23981 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
23982
23983 2017-11-17 Florian Weimer <fweimer@redhat.com>
23984
23985 support_become_root: Enable file creation in namespaces.
23986 * support/support_become_root.c (setup_mapping): New function.
23987 (support_become_root): Call it.
23988
23989 2017-11-17 Joseph Myers <joseph@codesourcery.com>
23990
23991 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
23992 macro.
23993
23994 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23995
23996 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
23997 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
23998
23999 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24000
24001 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24002
24003 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24004 version to 4.14.
24005
24006 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24007
24008 * INSTALL: Fix botched up regeneration.
24009
24010 * NEWS: Update sourceare link to https.
24011 * configure.ac: Likewise.
24012 * crypt/md5test-giant.c: Likewise.
24013 * dlfcn/bug-atexit1.c: Likewise.
24014 * dlfcn/bug-atexit2.c: Likewise.
24015 * localedata/README: Likewise.
24016 * malloc/tst-mallocfork.c: Likewise.
24017 * manual/install.texi: Likewise.
24018 * nptl/tst-pthread-getattr.c: Likewise.
24019 * stdio-common/tst-fgets.c: Likewise.
24020 * stdio-common/tst-fwrite.c: Likewise.
24021 * sunrpc/Makefile: Likewise.
24022 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24023 * wcsmbs/tst-mbrtowc2.c: Likewise.
24024 * configure: Regenerate.
24025 * INSTALL: Regenerate.
24026
24027 2017-11-15 Martin Sebor <msebor@redhat.com>
24028
24029 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24030 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24031 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24032
24033 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24034
24035 [BZ #22145]
24036 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24037 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24038
24039 [BZ #22145]
24040 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24041 Defer is_pty check until end of the function.
24042 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24043
24044 [BZ #22145]
24045 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24046 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24047 (ttyname): Likewise.
24048 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24049 (__ttyname_r): Likewise.
24050
24051 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24052 int to bool.
24053
24054 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24055
24056 * manual/terminal.texi (Is It a Terminal):
24057 Mention ENODEV for ttyname and ttyname_r.
24058
24059 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24060
24061 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24062 constant and macro.
24063
24064 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24065 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24066 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24067 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24068 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24069 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24070
24071 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24072
24073 * signal/sigrelse.c (sigrelse): Optimize implementation.
24074
24075 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24076 (__sigpause): Rely on __sigsuspend to implement single thread
24077 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24078
24079 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24080
24081 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24082 kernel version to 4.14.
24083
24084 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24085
24086 [BZ #22442]
24087 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24088 Check if ifname is too long.
24089
24090 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24091
24092 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24093
24094 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24095
24096 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24097 was accidentally lost.
24098
24099 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24100
24101 * localedata/locales/az_IR: Add standard copyright header.
24102
24103 2017-11-15 Florian Weimer <fweimer@redhat.com>
24104
24105 [BZ #22439]
24106 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24107 not just the top one. Output a new "subheaps" statistic.
24108
24109 2017-11-15 Florian Weimer <fweimer@redhat.com>
24110
24111 [BZ #22408]
24112 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24113 under the per-arena lock.
24114 * malloc/Makefile (tests): Add tst-malloc_info.
24115 (tst-malloc_info): Link with libpthread.
24116 * malloc/tst-malloc_info.c: New file.
24117
24118 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24119
24120 [BZ #21660]
24121 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24122 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24123 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24124 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24125 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24126 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24127 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24128 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24129 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24130 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24131 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24132 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24133 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24134 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24135 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24136 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24137 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24138 (__floating_type): Likewise.
24139 (__real_integer_type): Likewise.
24140 (__complex_integer_type): Likewise.
24141 (__expr_is_real): Likewise.
24142 (__tgmath_real_type_sub): Likewise.
24143 (__tgmath_real_type): Likewise.
24144 (__tgmath_complex_type_sub): Likewise.
24145 (__tgmath_complex_type): Likewise.
24146 (__TGMATH_F128): Likewise.
24147 (__TGMATH_CF128): Likewise.
24148 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24149 new macros.
24150 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24151 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24152 Likewise.
24153 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24154 Likewise.
24155 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24156 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24157 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24158 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24159 Likewise.
24160 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24161 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24162 Likewise.
24163 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24164 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24165 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24166 Likewise.
24167 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24168 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24169 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24170 (cimag): Likewise.
24171 (creal): Likewise.
24172
24173 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24174
24175 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24176 for stpncpy calls for GCC 8.
24177 (test_strncat): Disable -Wstringop-truncation warning for strncat
24178 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24179 strncat call for GCC 7.
24180 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24181 calls for GCC 8.
24182 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24183 trailing NUL.
24184
24185 * string/bug-strncat1.c: Include <libc-diag.h>.
24186 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24187
24188 2017-11-13 Claude Paroz <claude@2xlibre.net>
24189
24190 [BZ #22387]
24191 * localedata/locales/aa_DJ: Improved readibility by replacing
24192 <Uxxxx> sequences in the ASCII printable range by their ASCII
24193 character equivalents.
24194 * localedata/locales/aa_ER: Likewise.
24195 * localedata/locales/aa_ER@saaho: Likewise.
24196 * localedata/locales/aa_ET: Likewise.
24197 * localedata/locales/af_ZA: Likewise.
24198 * localedata/locales/agr_PE: Likewise.
24199 * localedata/locales/ak_GH: Likewise.
24200 * localedata/locales/am_ET: Likewise.
24201 * localedata/locales/anp_IN: Likewise.
24202 * localedata/locales/ar_AE: Likewise.
24203 * localedata/locales/ar_BH: Likewise.
24204 * localedata/locales/ar_DZ: Likewise.
24205 * localedata/locales/ar_EG: Likewise.
24206 * localedata/locales/ar_IN: Likewise.
24207 * localedata/locales/ar_IQ: Likewise.
24208 * localedata/locales/ar_JO: Likewise.
24209 * localedata/locales/ar_KW: Likewise.
24210 * localedata/locales/ar_LB: Likewise.
24211 * localedata/locales/ar_LY: Likewise.
24212 * localedata/locales/ar_MA: Likewise.
24213 * localedata/locales/ar_OM: Likewise.
24214 * localedata/locales/ar_QA: Likewise.
24215 * localedata/locales/ar_SA: Likewise.
24216 * localedata/locales/ar_SD: Likewise.
24217 * localedata/locales/ar_SS: Likewise.
24218 * localedata/locales/ar_SY: Likewise.
24219 * localedata/locales/ar_TN: Likewise.
24220 * localedata/locales/ar_YE: Likewise.
24221 * localedata/locales/as_IN: Likewise.
24222 * localedata/locales/ast_ES: Likewise.
24223 * localedata/locales/ayc_PE: Likewise.
24224 * localedata/locales/az_AZ: Likewise.
24225 * localedata/locales/az_IR: Likewise.
24226 * localedata/locales/be_BY: Likewise.
24227 * localedata/locales/be_BY@latin: Likewise.
24228 * localedata/locales/bem_ZM: Likewise.
24229 * localedata/locales/ber_DZ: Likewise.
24230 * localedata/locales/ber_MA: Likewise.
24231 * localedata/locales/bg_BG: Likewise.
24232 * localedata/locales/bhb_IN: Likewise.
24233 * localedata/locales/bho_IN: Likewise.
24234 * localedata/locales/bi_VU: Likewise.
24235 * localedata/locales/bn_BD: Likewise.
24236 * localedata/locales/bn_IN: Likewise.
24237 * localedata/locales/bo_CN: Likewise.
24238 * localedata/locales/bo_IN: Likewise.
24239 * localedata/locales/br_FR: Likewise.
24240 * localedata/locales/brx_IN: Likewise.
24241 * localedata/locales/bs_BA: Likewise.
24242 * localedata/locales/byn_ER: Likewise.
24243 * localedata/locales/ca_AD: Likewise.
24244 * localedata/locales/ca_ES: Likewise.
24245 * localedata/locales/ca_FR: Likewise.
24246 * localedata/locales/ca_IT: Likewise.
24247 * localedata/locales/ce_RU: Likewise.
24248 * localedata/locales/chr_US: Likewise.
24249 * localedata/locales/cmn_TW: Likewise.
24250 * localedata/locales/crh_UA: Likewise.
24251 * localedata/locales/cs_CZ: Likewise.
24252 * localedata/locales/csb_PL: Likewise.
24253 * localedata/locales/cv_RU: Likewise.
24254 * localedata/locales/cy_GB: Likewise.
24255 * localedata/locales/da_DK: Likewise.
24256 * localedata/locales/de_AT: Likewise.
24257 * localedata/locales/de_BE: Likewise.
24258 * localedata/locales/de_CH: Likewise.
24259 * localedata/locales/de_DE: Likewise.
24260 * localedata/locales/de_IT: Likewise.
24261 * localedata/locales/de_LI: Likewise.
24262 * localedata/locales/de_LU: Likewise.
24263 * localedata/locales/doi_IN: Likewise.
24264 * localedata/locales/dv_MV: Likewise.
24265 * localedata/locales/dz_BT: Likewise.
24266 * localedata/locales/el_CY: Likewise.
24267 * localedata/locales/el_GR: Likewise.
24268 * localedata/locales/en_AG: Likewise.
24269 * localedata/locales/en_AU: Likewise.
24270 * localedata/locales/en_BW: Likewise.
24271 * localedata/locales/en_CA: Likewise.
24272 * localedata/locales/en_DK: Likewise.
24273 * localedata/locales/en_GB: Likewise.
24274 * localedata/locales/en_HK: Likewise.
24275 * localedata/locales/en_IE: Likewise.
24276 * localedata/locales/en_IL: Likewise.
24277 * localedata/locales/en_IN: Likewise.
24278 * localedata/locales/en_NG: Likewise.
24279 * localedata/locales/en_NZ: Likewise.
24280 * localedata/locales/en_PH: Likewise.
24281 * localedata/locales/en_SG: Likewise.
24282 * localedata/locales/en_US: Likewise.
24283 * localedata/locales/en_ZA: Likewise.
24284 * localedata/locales/en_ZM: Likewise.
24285 * localedata/locales/en_ZW: Likewise.
24286 * localedata/locales/eo: Likewise.
24287 * localedata/locales/es_AR: Likewise.
24288 * localedata/locales/es_BO: Likewise.
24289 * localedata/locales/es_CL: Likewise.
24290 * localedata/locales/es_CO: Likewise.
24291 * localedata/locales/es_CR: Likewise.
24292 * localedata/locales/es_CU: Likewise.
24293 * localedata/locales/es_DO: Likewise.
24294 * localedata/locales/es_EC: Likewise.
24295 * localedata/locales/es_ES: Likewise.
24296 * localedata/locales/es_GT: Likewise.
24297 * localedata/locales/es_HN: Likewise.
24298 * localedata/locales/es_MX: Likewise.
24299 * localedata/locales/es_NI: Likewise.
24300 * localedata/locales/es_PA: Likewise.
24301 * localedata/locales/es_PE: Likewise.
24302 * localedata/locales/es_PR: Likewise.
24303 * localedata/locales/es_PY: Likewise.
24304 * localedata/locales/es_SV: Likewise.
24305 * localedata/locales/es_US: Likewise.
24306 * localedata/locales/es_UY: Likewise.
24307 * localedata/locales/es_VE: Likewise.
24308 * localedata/locales/et_EE: Likewise.
24309 * localedata/locales/eu_ES: Likewise.
24310 * localedata/locales/eu_ES@euro: Likewise.
24311 * localedata/locales/fa_IR: Likewise.
24312 * localedata/locales/ff_SN: Likewise.
24313 * localedata/locales/fi_FI: Likewise.
24314 * localedata/locales/fil_PH: Likewise.
24315 * localedata/locales/fo_FO: Likewise.
24316 * localedata/locales/fr_BE: Likewise.
24317 * localedata/locales/fr_CA: Likewise.
24318 * localedata/locales/fr_CH: Likewise.
24319 * localedata/locales/fr_FR: Likewise.
24320 * localedata/locales/fr_LU: Likewise.
24321 * localedata/locales/fur_IT: Likewise.
24322 * localedata/locales/fy_DE: Likewise.
24323 * localedata/locales/fy_NL: Likewise.
24324 * localedata/locales/ga_IE: Likewise.
24325 * localedata/locales/gd_GB: Likewise.
24326 * localedata/locales/gez_ER: Likewise.
24327 * localedata/locales/gez_ET: Likewise.
24328 * localedata/locales/gl_ES: Likewise.
24329 * localedata/locales/gu_IN: Likewise.
24330 * localedata/locales/gv_GB: Likewise.
24331 * localedata/locales/ha_NG: Likewise.
24332 * localedata/locales/hak_TW: Likewise.
24333 * localedata/locales/he_IL: Likewise.
24334 * localedata/locales/hi_IN: Likewise.
24335 * localedata/locales/hif_FJ: Likewise.
24336 * localedata/locales/hne_IN: Likewise.
24337 * localedata/locales/hr_HR: Likewise.
24338 * localedata/locales/hsb_DE: Likewise.
24339 * localedata/locales/ht_HT: Likewise.
24340 * localedata/locales/hu_HU: Likewise.
24341 * localedata/locales/hy_AM: Likewise.
24342 * localedata/locales/i18n: Likewise.
24343 * localedata/locales/ia_FR: Likewise.
24344 * localedata/locales/id_ID: Likewise.
24345 * localedata/locales/ig_NG: Likewise.
24346 * localedata/locales/ik_CA: Likewise.
24347 * localedata/locales/is_IS: Likewise.
24348 * localedata/locales/it_CH: Likewise.
24349 * localedata/locales/it_IT: Likewise.
24350 * localedata/locales/iu_CA: Likewise.
24351 * localedata/locales/ja_JP: Likewise.
24352 * localedata/locales/ka_GE: Likewise.
24353 * localedata/locales/kk_KZ: Likewise.
24354 * localedata/locales/kl_GL: Likewise.
24355 * localedata/locales/kn_IN: Likewise.
24356 * localedata/locales/ko_KR: Likewise.
24357 * localedata/locales/kok_IN: Likewise.
24358 * localedata/locales/ks_IN: Likewise.
24359 * localedata/locales/ks_IN@devanagari: Likewise.
24360 * localedata/locales/ku_TR: Likewise.
24361 * localedata/locales/kw_GB: Likewise.
24362 * localedata/locales/ky_KG: Likewise.
24363 * localedata/locales/lb_LU: Likewise.
24364 * localedata/locales/lg_UG: Likewise.
24365 * localedata/locales/li_BE: Likewise.
24366 * localedata/locales/li_NL: Likewise.
24367 * localedata/locales/lij_IT: Likewise.
24368 * localedata/locales/ln_CD: Likewise.
24369 * localedata/locales/lo_LA: Likewise.
24370 * localedata/locales/lt_LT: Likewise.
24371 * localedata/locales/lv_LV: Likewise.
24372 * localedata/locales/lzh_TW: Likewise.
24373 * localedata/locales/mag_IN: Likewise.
24374 * localedata/locales/mai_IN: Likewise.
24375 * localedata/locales/mg_MG: Likewise.
24376 * localedata/locales/mhr_RU: Likewise.
24377 * localedata/locales/mi_NZ: Likewise.
24378 * localedata/locales/mk_MK: Likewise.
24379 * localedata/locales/ml_IN: Likewise.
24380 * localedata/locales/mn_MN: Likewise.
24381 * localedata/locales/mni_IN: Likewise.
24382 * localedata/locales/mr_IN: Likewise.
24383 * localedata/locales/ms_MY: Likewise.
24384 * localedata/locales/mt_MT: Likewise.
24385 * localedata/locales/my_MM: Likewise.
24386 * localedata/locales/nan_TW: Likewise.
24387 * localedata/locales/nan_TW@latin: Likewise.
24388 * localedata/locales/nb_NO: Likewise.
24389 * localedata/locales/nds_DE: Likewise.
24390 * localedata/locales/nds_NL: Likewise.
24391 * localedata/locales/ne_NP: Likewise.
24392 * localedata/locales/nhn_MX: Likewise.
24393 * localedata/locales/niu_NU: Likewise.
24394 * localedata/locales/niu_NZ: Likewise.
24395 * localedata/locales/nl_AW: Likewise.
24396 * localedata/locales/nl_BE: Likewise.
24397 * localedata/locales/nl_NL: Likewise.
24398 * localedata/locales/nn_NO: Likewise.
24399 * localedata/locales/nr_ZA: Likewise.
24400 * localedata/locales/nso_ZA: Likewise.
24401 * localedata/locales/oc_FR: Likewise.
24402 * localedata/locales/om_ET: Likewise.
24403 * localedata/locales/om_KE: Likewise.
24404 * localedata/locales/or_IN: Likewise.
24405 * localedata/locales/os_RU: Likewise.
24406 * localedata/locales/pa_IN: Likewise.
24407 * localedata/locales/pa_PK: Likewise.
24408 * localedata/locales/pap_AW: Likewise.
24409 * localedata/locales/pap_CW: Likewise.
24410 * localedata/locales/pl_PL: Likewise.
24411 * localedata/locales/ps_AF: Likewise.
24412 * localedata/locales/pt_BR: Likewise.
24413 * localedata/locales/pt_PT: Likewise.
24414 * localedata/locales/quz_PE: Likewise.
24415 * localedata/locales/raj_IN: Likewise.
24416 * localedata/locales/ro_RO: Likewise.
24417 * localedata/locales/ru_RU: Likewise.
24418 * localedata/locales/ru_UA: Likewise.
24419 * localedata/locales/rw_RW: Likewise.
24420 * localedata/locales/sa_IN: Likewise.
24421 * localedata/locales/sat_IN: Likewise.
24422 * localedata/locales/sc_IT: Likewise.
24423 * localedata/locales/sd_IN: Likewise.
24424 * localedata/locales/sd_IN@devanagari: Likewise.
24425 * localedata/locales/se_NO: Likewise.
24426 * localedata/locales/sgs_LT: Likewise.
24427 * localedata/locales/shs_CA: Likewise.
24428 * localedata/locales/si_LK: Likewise.
24429 * localedata/locales/sid_ET: Likewise.
24430 * localedata/locales/sk_SK: Likewise.
24431 * localedata/locales/sl_SI: Likewise.
24432 * localedata/locales/sm_WS: Likewise.
24433 * localedata/locales/so_DJ: Likewise.
24434 * localedata/locales/so_ET: Likewise.
24435 * localedata/locales/so_KE: Likewise.
24436 * localedata/locales/so_SO: Likewise.
24437 * localedata/locales/sq_AL: Likewise.
24438 * localedata/locales/sq_MK: Likewise.
24439 * localedata/locales/sr_ME: Likewise.
24440 * localedata/locales/sr_RS: Likewise.
24441 * localedata/locales/sr_RS@latin: Likewise.
24442 * localedata/locales/ss_ZA: Likewise.
24443 * localedata/locales/st_ZA: Likewise.
24444 * localedata/locales/sv_FI: Likewise.
24445 * localedata/locales/sv_SE: Likewise.
24446 * localedata/locales/sw_KE: Likewise.
24447 * localedata/locales/sw_TZ: Likewise.
24448 * localedata/locales/szl_PL: Likewise.
24449 * localedata/locales/ta_IN: Likewise.
24450 * localedata/locales/ta_LK: Likewise.
24451 * localedata/locales/tcy_IN: Likewise.
24452 * localedata/locales/te_IN: Likewise.
24453 * localedata/locales/tg_TJ: Likewise.
24454 * localedata/locales/th_TH: Likewise.
24455 * localedata/locales/the_NP: Likewise.
24456 * localedata/locales/ti_ER: Likewise.
24457 * localedata/locales/ti_ET: Likewise.
24458 * localedata/locales/tig_ER: Likewise.
24459 * localedata/locales/tk_TM: Likewise.
24460 * localedata/locales/tl_PH: Likewise.
24461 * localedata/locales/tn_ZA: Likewise.
24462 * localedata/locales/to_TO: Likewise.
24463 * localedata/locales/tpi_PG: Likewise.
24464 * localedata/locales/tr_CY: Likewise.
24465 * localedata/locales/tr_TR: Likewise.
24466 * localedata/locales/ts_ZA: Likewise.
24467 * localedata/locales/tt_RU: Likewise.
24468 * localedata/locales/tt_RU@iqtelif: Likewise.
24469 * localedata/locales/ug_CN: Likewise.
24470 * localedata/locales/uk_UA: Likewise.
24471 * localedata/locales/unm_US: Likewise.
24472 * localedata/locales/ur_IN: Likewise.
24473 * localedata/locales/ur_PK: Likewise.
24474 * localedata/locales/uz_UZ: Likewise.
24475 * localedata/locales/uz_UZ@cyrillic: Likewise.
24476 * localedata/locales/ve_ZA: Likewise.
24477 * localedata/locales/vi_VN: Likewise.
24478 * localedata/locales/wa_BE: Likewise.
24479 * localedata/locales/wae_CH: Likewise.
24480 * localedata/locales/wal_ET: Likewise.
24481 * localedata/locales/wo_SN: Likewise.
24482 * localedata/locales/xh_ZA: Likewise.
24483 * localedata/locales/yi_US: Likewise.
24484 * localedata/locales/yo_NG: Likewise.
24485 * localedata/locales/yue_HK: Likewise.
24486 * localedata/locales/yuw_PG: Likewise.
24487 * localedata/locales/zh_CN: Likewise.
24488 * localedata/locales/zh_HK: Likewise.
24489 * localedata/locales/zh_SG: Likewise.
24490 * localedata/locales/zh_TW: Likewise.
24491 * localedata/locales/zu_ZA: Likewise.
24492
24493 2017-11-13 Florian Weimer <fweimer@redhat.com>
24494
24495 * support/next_to_fault.h, support/next_to_fault.c: New files.
24496 * support/Makefile (libsupport-routines): Add next_to_fault.
24497 * resolv/tst-inet_pton.c (struct next_to_fault)
24498 (next_to_fault_allocate, next_to_fault_free): Remove.
24499 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24500
24501 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24502
24503 * elf/dl-support.c: Include <dl-procruntime.c>.
24504 * include/link.h: Include <link_map.h>.
24505 * sysdeps/generic/dl-procruntime.c: New file.
24506 * sysdeps/generic/link_map.h: Likewise.
24507 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24508 the writable ld.so namespace.
24509
24510 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24511
24512 timezone: pacify GCC -Wstringop-truncation
24513 Problem reported by Martin Sebor in:
24514 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24515 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24516
24517 2017-11-12 Florian Weimer <fweimer@redhat.com>
24518
24519 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24520 tst-xreadlink.
24521 (tests): Add tst-xreadlink.
24522 * support/support.h (xstrndup): Declare.
24523 * support/xunistd.h (xunlink, xreadlink): Declare.
24524 * support/temp_file.h (support_create_temp_directory): Declare.
24525 * support/temp_file.c (support_create_temp_directory): New function.
24526 * support/support_chroot.c (support_chroot_create): Use it.
24527 * support/xreadlink.c: New file.
24528 * support/xstrndup.c: Likewise.
24529 * support/xunlink.c: Likewise.
24530 * support/tst-xreadlink.c: Likewise.
24531
24532 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24533
24534 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24535
24536 2017-11-11 Florian Weimer <fweimer@redhat.com>
24537
24538 [BZ #22409]
24539 [BZ #22412]
24540 * resolv/res_comp.c (printable_string, binary_hnok)
24541 (binary_leading_dash): New functions.
24542 (res_hnok): Reimplement using these functions and ns_name_pton.
24543 (res_ownok): Likewise.
24544 (res_mailok): Reimplement using printable_string, ns_name_pton and
24545 binary_hnok.
24546 (res_dnok): Reimplement using printable_string and ns_name_pton.
24547 * resolv/tst-res_hnok.c (tests): Add additional tests.
24548 (LETTERDIGITS, PRINTABLE): Define.
24549 (do_test): Adjust one_char results.
24550
24551 2017-11-11 Florian Weimer <fweimer@redhat.com>
24552
24553 [BZ #22413]
24554 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24555 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24556
24557 2017-11-11 Florian Weimer <fweimer@redhat.com>
24558
24559 * resolv/tst-ns_name_pton.c: New file.
24560 * resolv/Makefile (tests): Add tst-ns_name_pton.
24561 (tst-ns_name_pton): Link against libresolv.
24562
24563 2017-11-11 Florian Weimer <fweimer@redhat.com>
24564
24565 * resolv/tst-res_hnok.c: New file.
24566 * resolv/Makefile (tests): Add tst-res_hnok.
24567 (tst-res_hnok): Link against libresolv.
24568
24569 2017-11-11 Florian Weimer <fweimer@redhat.com>
24570
24571 * resolv/tst-resolv-network.c: Use test framework instead explicit
24572 main function.
24573
24574 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24575
24576 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24577 <jmp_buf-macros.h>.
24578 [!_ISOMAC] (STR_HELPER): New.
24579 [!_ISOMAC] (STR): Likewise.
24580 [!_ISOMAC] (TEST_SIZE): Likewise.
24581 [!_ISOMAC] (TEST_ALIGN): Likewise.
24582 [!_ISOMAC] (TEST_OFFSET): Likewise.
24583 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24584 field offsets of jmp_buf as well as sigjmp_buf.
24585 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24586 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24587 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24588 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24589 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24590 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24591 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24592 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24593 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24594 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24595 Likewise.
24596 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24597 Likewise.
24598 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24600 Likewise.
24601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24602 Likewise.
24603 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24604 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24605 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24606 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24607 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24608 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24609 Likewise.
24610 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24611 Likewise.
24612 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24613 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24614 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24615
24616 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24617
24618 * include/float.h
24619 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24620 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24621 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24622 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24623 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24624 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24625 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24626 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24627 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24628 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24629 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24630 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24631 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24632 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24633 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24634 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24635 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24636 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24637 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24638 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24639 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24640 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24641 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24642 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24643 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24644 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24645 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24646 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24647 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24648 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24649 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24650 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24651 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24652 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24653 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24654 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24655 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24656 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24657 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24658 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24659 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24660 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24661 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24662 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24663 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24664 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24665 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24666 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24667 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24668 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24669 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24670 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24671 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24672 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24673 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24674 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24675 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24676 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24677 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24678 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24679 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24680 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24681 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24682 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24683 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24684 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24685 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24686 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24687 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24688 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24689 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24690 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24691 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24692 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24693 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24694 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24695 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24696 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24697 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24698 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24699 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24700 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24701 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24702 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24703 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24704 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24705 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24706 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24707
24708 * stdlib/tst-strtod.h (F16): New macro.
24709 (F32): Likewise.
24710 (F64): Likewise.
24711 (F32X): Likewise.
24712 (F64X): Likewise.
24713 (F128X): Likewise.
24714 (IF_FLOAT16): Likewise.
24715 (IF_FLOAT32): Likewise.
24716 (IF_FLOAT64): Likewise.
24717 (IF_FLOAT32X): Likewise.
24718 (IF_FLOAT64X): Likewise.
24719 (IF_FLOAT128X): Likewise.
24720 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24721 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24722 (STRTOD_TEST_FOREACH): Likewise.
24723 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24724 (CHOOSE_f64): Likewise.
24725 (CHOOSE_f32x): Likewise.
24726 (CHOOSE_f64x): Likewise.
24727
24728 2017-11-07 Andreas Schwab <schwab@suse.de>
24729
24730 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24731
24732 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24733
24734 [BZ #22403]
24735 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24736 to be escaped.
24737 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24738 to be escaped.
24739
24740 2017-11-07 Claude Paroz <claude@2xlibre.net>
24741
24742 [BZ #22403]
24743 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24744 to be escaped.
24745 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24746 to be escaped.
24747 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24748 to be escaped.
24749
24750 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24751
24752 [BZ #22298]
24753 * nptl/allocatestack.c (allocate_stack): Check if
24754 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24755 __PTHREAD_MUTEX_HAVE_PREV is defined.
24756 * nptl/descr.h (pthread): Likewise.
24757 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24758 Likewise.
24759 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24760 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24761 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24762 * sysdeps/nptl/bits/thread-shared-types.h
24763 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24764 defines.
24765 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24766 of __WORDSIZE for internal layout.
24767 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24768 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24769 instead of __WORDSIZE whether to use an union for __spins and __list
24770 fields.
24771 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24772 case.
24773 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24774 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24775 defines.
24776 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24777 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24778 Likewise.
24779 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24780 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24781 Likewise.
24782 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24783 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24784 Likewise.
24785 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24786 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24787 Likewise.
24788 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24789 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24790 Likewise.
24791 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24792 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24793 Likewise.
24794 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24795 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24796 Likewise.
24797 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24798 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24799 Likewise.
24800 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24801 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24802 Likewise.
24803 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24804 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24805 Likewise.
24806 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24807 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24808 Likewise.
24809 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24810 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24811 Likewise.
24812 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24813 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24814 Likewise.
24815 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24816 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24817 Likewise.
24818
24819 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24820 New macros.
24821 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24822 checks for expected input type size.
24823 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24824 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24825 Likewise.
24826 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24827 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24828 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24829 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24830 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24831 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24832 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24833 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24834 superflous runtime assert check.
24835 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24836 Likewise.
24837 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24838 Likewise.
24839 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24840 Likewise.
24841 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24842 Likewise.
24843 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24844 Likewise.
24845 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24846 Likewise.
24847 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24848 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24849 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24850 Likewise.
24851 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24852 Likewise.
24853 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24854 Likewise.
24855 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24856 Likewise.
24857 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24858 Likewise.
24859 * nptl/pthread_attr_setinheritsched.c
24860 (__pthread_attr_setinheritsched): Likewise.
24861 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24862 Likewise.
24863 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24864 Likewise.
24865 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24866 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24867 __old_pthread_attr_setstack): Likewise.
24868 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24869 Likewise.
24870 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24871 Likewise.
24872 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24873 Likewise.
24874 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24875 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24876 Likewise.
24877 * nptl/tst-typesizes.c: Remove file.
24878
24879 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24880 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24881 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24882 checks for internal pthread_mutex_t offsets.
24883 * sysdeps/aarch64/nptl/pthread-offsets.h
24884 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24885 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24886 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24887 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24888 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24889 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24890 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24891 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24892 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24893 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24894 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24895 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24896 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24897 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24898 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24899 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24900 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24901 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24902
24903 2017-11-07 Florian Weimer <fweimer@redhat.com>
24904
24905 * bits/mman-linux.h: Move ...
24906 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24907 comment.
24908 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
24909 outdated comment.
24910
24911 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24912
24913 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
24914 Redefine STRNLEN as __strnlen_power8.
24915
24916 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24917
24918 * signal/sighold.c (sighold): Optimize implementation.
24919
24920 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
24921 __NR_rt_sigqueueinfo.
24922
24923 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
24924 __sigtimedwait.
24925 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
24926 assume __NR_rt_sigtimedwait.
24927 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
24928 and add LIBC_CANCEL_HANDLED for cancellation marking.
24929 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
24930
24931 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24932 (sysdeps_routines): Add memchr_noneon.
24933 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
24934 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
24935 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
24936 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
24937 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
24938 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
24939 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
24940
24941 * sysdeps/arm/arm-ifunc.h: New file.
24942 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
24943 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
24944 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
24945 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
24946 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
24947 (__memcpy_neon): Avoid create hidden alias.
24948 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
24949 (__memcpy_vfp): Likewise.
24950 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
24951 (sysdep_routines): Add memcpy_arm.
24952 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
24953
24954 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
24955
24956 [BZ #22362]
24957 * Makerules (make-link-multidir): New.
24958 * config.make.in (multidir): New.
24959 * configure.ac (libc_cv_multidir): New. AC_SUBST.
24960 * configure: Regenerated.
24961 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
24962 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
24963 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
24964 New target.
24965
24966 2017-11-06 Joseph Myers <joseph@codesourcery.com>
24967
24968 [BZ #22402]
24969 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
24970 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
24971
24972 2017-11-04 Mike FABIAN <mfabian@redhat.com>
24973
24974 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
24975 to be escaped.
24976
24977 2017-11-04 Florian Weimer <fweimer@redhat.com>
24978
24979 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
24980
24981 2017-11-03 Joseph Myers <joseph@codesourcery.com>
24982
24983 * math/math.h [__HAVE_DISTINCT_FLOAT16
24984 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
24985 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
24986 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
24987 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
24988 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24989 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
24990 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24991 (__MATH_TG_F32): New macro.
24992 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24993 (__MATH_TG_F64X): Likewise.
24994 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
24995 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
24996
24997 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
24998
24999 * po/de.po: Update translations.
25000 * po/ru.po: Likewise.
25001
25002 2017-11-03 Florian Weimer <fweimer@redhat.com>
25003
25004 * manual/filesys.texi (Hard Links): Document linkat.
25005
25006 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25007
25008 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25009 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25010 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25011 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25012 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25013 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25014 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25015 the same as _Float128.
25016 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25017 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25018 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25019
25020 * stdlib/stdlib.h
25021 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25022 Declare.
25023 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25024 Likewise.
25025 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25026 Likewise.
25027 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25028 (strtof32x): Likewise.
25029 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25030 (strtof64x): Likewise.
25031 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25032 (strtof128x): Likewise.
25033 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25034 (strfromf16): Likewise.
25035 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25036 (strfromf32): Likewise.
25037 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25038 (strfromf64): Likewise.
25039 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25040 (strfromf32x): Likewise.
25041 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25042 (strfromf64x): Likewise.
25043 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25044 (strfromf128x): Likewise.
25045 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25046 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25047 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25048 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25049 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25050 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25051
25052 2017-11-03 Richard Henderson <rth@twiddle.net>
25053
25054 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25055
25056 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25057
25058 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25059
25060 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25061
25062 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25063 DT_TLSDESC_GOT initialization.
25064 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25065 (_dl_tlsdesc_resolve_hold): Likewise.
25066 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25067 (_dl_tlsdesc_resolve_hold): Likewise.
25068 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25069 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25070
25071 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25072
25073 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25074
25075 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25076
25077 [BZ #18572]
25078 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25079 non-lazily for R_ARM_TLS_DESC.
25080
25081 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25082
25083 [BZ #17078]
25084 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25085 R_ARM_TLS_DESC case.
25086 (elf_machine_lazy_rel): Remove the prelink check.
25087
25088 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25089
25090 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25091 DT_TLSDESC_GOT initialization.
25092 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25093 (_dl_tlsdesc_resolve_rela): Likewise.
25094 (_dl_tlsdesc_resolve_hold): Likewise.
25095 (_dl_tlsdesc_undefweak): Remove ldar.
25096 (_dl_tlsdesc_dynamic): Likewise.
25097 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25098 (_dl_tlsdesc_resolve_rela): Likewise.
25099 (_dl_tlsdesc_resolve_hold): Likewise.
25100 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25101 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25102 (_dl_tlsdesc_resolve_rela): Likewise.
25103 (_dl_tlsdesc_resolve_hold): Likewise.
25104
25105 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25106
25107 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25108 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25109
25110 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25111
25112 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25113 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25114
25115 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25116
25117 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25118 Declare.
25119 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25120 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25121 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25122 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25123 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25124 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25125 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25126 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25127 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25128 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25129 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25130
25131 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25132
25133 [BZ #22382]
25134 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25135 * localedata/locales/tpi_PG: Add standard header.
25136
25137 2017-11-02 Florian Weimer <fweimer@redhat.com>
25138
25139 test-errno-linux: quotactl can fail with EPERM in containers.
25140 * sysdeps/unix/sysv/linux/test-errno-linux.c
25141 (LIST, LIST_FORWARD): New macros.
25142 (check_error_in_list): New function.
25143 (test_wrp_rv): Accept list of permitted error codes.
25144 (test_wrp_rv2): Remove.
25145 (test_wrp): Call test_wrp_rv with list of error codes.
25146 (test_wrp2): Accept list of error codes.
25147 (do_test): Adjust. Allow EPERM for quotactl.
25148
25149 2017-11-02 Florian Weimer <fweimer@redhat.com>
25150
25151 * stdio-common/bug16.c (do_test): Use array_length.
25152 * stdio-common/errlist.c (_sys_nerr): Likewise.
25153 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25154 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25155 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25156 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25157 (do_test): Use array_length.
25158 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25159 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25160 * stdio-common/tst-printf-round.c (do_test): Likewise.
25161 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25162 (CHECK): Use array_length.
25163 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25164 * stdio-common/tstscanf.c (main): Likewise.
25165 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25166
25167 2017-11-02 Florian Weimer <fweimer@redhat.com>
25168
25169 Add array_length and array_end macros.
25170 * include/array_length.h: New file.
25171
25172 2017-11-02 Florian Weimer <fweimer@redhat.com>
25173
25174 [BZ #22332]
25175 * posix/tst-glob-tilde.c (do_noescape): New variable.
25176 (one_test): Process it.
25177 (do_test): Set do_noescape. Add unescaping test case.
25178
25179 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25180
25181 * math/complex.h
25182 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25183 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25184 with appropriate macros defined and undefined.
25185 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25186 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25187 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25188 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25189 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25190 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25191 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25192 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25193 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25194 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25195
25196 * math/complex.h
25197 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25198 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25199 that for long double. Do not condition define and undefine of
25200 _Mdouble_complex_ on [__CFLOAT128].
25201
25202 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25203
25204 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25205 of <sysdeps/generic/sysdep.h>.
25206 (ALIGNARG): Removed.
25207 (ASM_SIZE_DIRECTIVE): Likewise.
25208 (ENTRY): Likewise.
25209 (END): Likewise.
25210 (ENTRY_CHK): Likewise.
25211 (END_CHK): Likewise.
25212 (syscall_error): Likewise.
25213 (mcount): Likewise.
25214 (PSEUDO_END): Likewise.
25215 (L): Likewise.
25216 (atom_text_section): Likewise.
25217 * sysdeps/x86/sysdep.h: New file.
25218 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25219 of <sysdeps/generic/sysdep.h>.
25220 (ALIGNARG): Removed.
25221 (ASM_SIZE_DIRECTIVE): Likewise.
25222 (ENTRY): Likewise.
25223 (END): Likewise.
25224 (ENTRY_CHK): Likewise.
25225 (END_CHK): Likewise.
25226 (syscall_error): Likewise.
25227 (mcount): Likewise.
25228 (PSEUDO_END): Likewise.
25229 (L): Likewise.
25230 (atom_text_section): Likewise.
25231
25232 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25233
25234 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25235 category of LC_CTYPE set to "i18n:2012".
25236 * localedata/locales/i18n_ctype: Regenerate.
25237
25238 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25239
25240 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25241 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25242 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25243 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25244
25245 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25246 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25247 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25248 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25249
25250 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25251
25252 * math/complex.h
25253 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25254 New macro.
25255 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25256 Likewise.
25257 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25258 Likewise.
25259 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25260 (CMPLXF32X): Likewise.
25261 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25262 (CMPLXF64X): Likewise.
25263 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25264 (CMPLXF128X): Likewise.
25265
25266 * math/math.h
25267 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25268 (__MATH_EVAL_FMT2): Define to add 0.0f.
25269
25270 2017-10-31 Alan Modra <amodra@gmail.com>
25271
25272 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25273 include sysdep.h.
25274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25288 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25289 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25290 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25291 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25292 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25293 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25294 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25295 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25296 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25297 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25298 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25299 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25300 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25301 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25302 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25303 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25304 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25305 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25306 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25307 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25308 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25309 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25310 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25311 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25312 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25313 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25314 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25315 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25316 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25317 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25318 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25319 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25320 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25321 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25322 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25323 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25324 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25325 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25326 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25327 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25328 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25329 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25330 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25331 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25332 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25333 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25334 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25335 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25336 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25337 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25338 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25339 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25340 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25341 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25342 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25343
25344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25345 include sysdep.h and math_ldbl_opt.h.
25346
25347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25348 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25373
25374 2017-10-31 Alan Modra <amodra@gmail.com>
25375
25376 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25377 string/strncase_l.c, not string/strncase.c.
25378 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25379 (libc_hidden_def): Redefine.
25380
25381 2017-10-31 Alan Modra <amodra@gmail.com>
25382
25383 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25384 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25385 (__strcasecmp): Don't define.
25386
25387 2017-10-31 Alan Modra <amodra@gmail.com>
25388
25389 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25390 IS_IN (libc).
25391 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25392 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25393 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25394
25395 2017-10-31 Alan Modra <amodra@gmail.com>
25396
25397 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25398 USE_AS_STPNCPY.
25399
25400 2017-10-31 Alan Modra <amodra@gmail.com>
25401
25402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25403 Redefine only when SHARED.
25404
25405 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25406
25407 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25408 Include <bits/math-finite.h> with appropriate macros defined and
25409 undefined.
25410 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25411 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25412 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25413 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25414 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25415
25416 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25417 [!_Mlong_double_] (_Mlong_double_): Likewise.
25418 [!_Mfloat16_] (_Mfloat16_): Likewise.
25419 [!_Mfloat32_] (_Mfloat32_): Likewise.
25420 [!_Mfloat64_] (_Mfloat64_): Likewise.
25421 [!_Mfloat128_] (_Mfloat128_): Likewise.
25422 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25423 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25424 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25425 (_Mdouble_): Define without indirection through those macros.
25426 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25427 [!_Mfloat128_] (_Mfloat128_): Likewise.
25428 [_Mlong_double_] (_Mlong_double_): Likewise.
25429 (_Mdouble_): Define without indirection through those macros.
25430 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25431 not add -D_Mlong_double_=double.
25432 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25433 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25434
25435 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25436
25437 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25438
25439 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25440
25441 * sysdeps/x86/libc-start.c: Reformat.
25442
25443 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25444
25445 [BZ #22353]
25446 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25447 (1): Renamed to ...
25448 (L(Src0)): This.
25449 (L(Src1)): New.
25450 (L(Src2)): Likewise.
25451 (L(1)): Renamed to ...
25452 (L(Src3)): This.
25453
25454 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25455
25456 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25457 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25458 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25459 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25460 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25461 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25462 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25463 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25464 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25465 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25466 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25467 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25468 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25469 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25470 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25471 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25472 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25473 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25474 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25475 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25476 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25477 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25478 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25479 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25480 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25481 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25482 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25483 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25484 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25485 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25486 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25487 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25488 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25489 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25490 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25491 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25492 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25493 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25494 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25495 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25496 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25497 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25498 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25499 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25500 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25501 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25502 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25503 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25504 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25505 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25506 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25507 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25508 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25509 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25510 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25511 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25512 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25513 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25514 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25515 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25516 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25517 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25518 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25519 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25520 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25521 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25522
25523 2017-10-30 Florian Weimer <fweimer@redhat.com>
25524
25525 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25526 always defined.
25527 * io/tst-mkdirat.c (do_test): Likewise.
25528 * io/tst-mkfifoat.c (do_test): Likewise.
25529 * io/tst-mknodat.c (do_test): Likewise.
25530 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25531 * locale/programs/locale.c (select_dirs): Likewise.
25532 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25533 * posix/bug-glob2.c (my_readdir): Likewise.
25534 * posix/tst-dir.c (main): Likewise.
25535 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25536 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25537
25538 2017-10-30 Florian Weimer <fweimer@redhat.com>
25539
25540 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25541 just __USE_GNU.
25542
25543 2017-10-30 Florian Weimer <fweimer@redhat.com>
25544
25545 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25546 Convert to support/test-driver.c.
25547 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25548 New macro parameters.
25549 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25550 * posix/tst-gnuglob.c: New file.
25551 * posix/tst-gnuglob64.c: Likewise.
25552 * posix/Makefile (tests): Add tst-gnuglob64.
25553
25554 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25555
25556 [BZ #19485]
25557 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25558 and use a better translation for March in “mon”.
25559 * localedata/locales/csb_PL: Use more ASCII to improve the
25560 readability of the source.
25561
25562 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25563
25564 [BZ #13953]
25565 * localedata/locales/km_KH: Use ASCII as much
25566 as possible for better readability of the source and
25567 remove useless comments.
25568 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25569 was commented out and apparently wrong anyway because it was
25570 using Lao characters. If Buddhist era should be used
25571 for km_KH, a native speaker should write the correct formaat
25572 for Khmer.
25573 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25574 (According to CLDR, the first weekday for Cambodia is Sunday).
25575 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25576 (These were using Lao characters which must be wrong. If we get
25577 the correct data from a native speaker, we could add it back, until
25578 then it is better not to have name_mr and name_mrs at all than
25579 having it wrong).
25580
25581 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25582
25583 * locale/loadlocale.c: Correct size of
25584 _nl_value_type_LC_<category> arrays.
25585
25586 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25587
25588 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25589 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25590 with appropriate macros defined and undefined.
25591 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25592 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25593 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25594 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25595 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25596
25597 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25598
25599 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25600 "-O2 -march=i586".
25601
25602 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25603
25604 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25605 with lowercase letters to make it agree with CLDR.
25606
25607 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25608
25609 [BZ #15260]
25610 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25611 first letters of yesstr and nostr in yesexpr and noexpr,
25612 not for the full words.
25613 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25614 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25615 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25616 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25617 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25618 first letters of yesstr and nostr in yesexpr and noexpr,
25619 until now only English was matched in yesexpr and noexpr.
25620 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25621 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25622 fil but not for tl. As tl and fil are very similar, using fil
25623 is probably better than using English.
25624
25625 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25626
25627 [BZ #21706]
25628 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25629 in yesstr and nostr.
25630
25631 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25632
25633 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25634 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25635 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25636 Likewise.
25637 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25638 Likewise.
25639 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25640 Likewise.
25641 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25642 Likewise.
25643 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25644 (SNANF128X): Likewise.
25645
25646 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25647 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25648 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25649 (HUGE_VAL_F32): Likewise.
25650 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25651 (HUGE_VAL_F64): Likewise.
25652 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25653 (HUGE_VAL_F32X): Likewise.
25654 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25655 (HUGE_VAL_F64X): Likewise.
25656 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25657 (HUGE_VAL_F128X): Likewise.
25658
25659 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25660
25661 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25662 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25663 for the br_FR locale.
25664
25665 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25666
25667 [BZ #21706]
25668 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25669
25670 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25671
25672 * locale/programs/record-status.h: Define globals, and function
25673 prototypes. Move function bodies...
25674 * locale/programs/record-status.c: ... to here. New file.
25675 * iconv/Makefile (iconv_prog-modules): Add record-status.
25676 * locale/Makefile (lib-modules): Likewise.
25677 * iconv/iconv_prog.c: Remove verbose.
25678 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25679 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25680 record a warning about ASCII compatibility.
25681 * locale/programs/ld-monetary.c (monetary_finish): If
25682 warn_int_curr_symbol is true then record a warning about the symbol
25683 not being in our ISO 4217 list.
25684 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25685 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25686 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25687 (OPT_NO_WARN): Define.
25688 (OPT_WARN): Define.
25689 (options): Add entry for --no-warnings, and --warnings.
25690 (set_warnings): New function to enable/disable warnings.
25691 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25692 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25693 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25694 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25695 Pass flags to generate_locale.
25696 (generate_locale): Accept new flag argument and pass it to localedef
25697 invocation.
25698 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25699 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25700
25701 * localedata/Makefile (test-input-data): Use full file name.
25702 * localedata/da_DK.in: Rename to...
25703 * localedata/da_DK.ISO-8859-1.in: ...this.
25704 * localedata/de_DE.in: Rename to...
25705 * localedata/de_DE.ISO-8859-1.in: ...this.
25706 * localedata/en_US.in: Rename to...
25707 * localedata/en_US.ISO-8859-1.in: ...this.
25708 * localedata/fr_FR.in: Rename to...
25709 * localedata/fr_FR.UTF-8.in: ... this.
25710 * localedata/hr_HR.in: Rename to...
25711 * localedata/hr_HR.ISO-8859-2.in: ...this.
25712 * localedata/hu_HU.in: Rename to...
25713 * localedata/hu_HU.UTF-8.in: ...this.
25714 * localedata/si_LK.in: Rename to...
25715 * localedata/si_LK.UTF-8.in: ...this.
25716 * localedata/sv_SE.in: Rename to...
25717 * localedata/sv_SE.ISO-8859-1.in: ...this.
25718 * localedata/tr_TR.in: Rename to...
25719 * localedata/tr_TR.UTF-8.in: ...this.
25720 * localedata/uk_UA.in: Rename to...
25721 * localedata/uk_UA.UTF-8.in: ...this.
25722 * localedata/sort-test.sh: Test file is locale name with the
25723 suffix.
25724
25725 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25726 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25727 file.
25728 * localedata/locales/i18n_ctype: Regenerate.
25729 * localedata/locales/tr_TR: Likewise.
25730 * localedata/locales/translit_circle: Likewise.
25731 * localedata/locales/translit_cjk_compat: Likewise.
25732 * localedata/locales/translit_combining: Likewise.
25733 * localedata/locales/translit_compat: Likewise.
25734 * localedata/locales/translit_font: Likewise.
25735 * localedata/locales/translit_fraction: Likewise.
25736
25737 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25738
25739 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25740 lxvd2x/stxvd2x with lvx/stvx.
25741 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25742
25743 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 * include/alloc_buffer.h: Replace "if if " with "if " in
25746 comments.
25747 * sysdeps/mips/memcpy.S: Likkewise.
25748 * sysdeps/mips/memset.S: Likewise.
25749 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25750 Likewise.
25751 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25752 Likewise.
25753 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25754 Likewise.
25755
25756 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25757
25758 [BZ #15261]
25759 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25760 yesexpr and noexpr.
25761 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25762 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25763 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25764 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25765 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25766 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25767 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25768
25769 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25770
25771 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25772 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25773 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25774 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25775 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25776 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25777 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25778 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25779 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25780 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25781 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25782 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25783
25784 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25785
25786 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25787 as possible for better readability of the source.
25788 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25789 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25790 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25791 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25792 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25793 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25794 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25795 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25796 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25797 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25798 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25799 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25800 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25801 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25802 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25803 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25804 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25805 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25806 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25807 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25808 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25809 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25810 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25811 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25812 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25813 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25814 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25815 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25816 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25817 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25818 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25819 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25820 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25821 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25822 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25823 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25824 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25825 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25826 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25827 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25828 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25829 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25830 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25831 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25832 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25833 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25834 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25835 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25836 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25837 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25838 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25839 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25840 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25841 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25842 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25843 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25844 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25845 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25846 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25847 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25848 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25849 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25850 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25851 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25852 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25853 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25854 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25855 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25856 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25857 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25858 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25859 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25860 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25861 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25862 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25863 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25864 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25865 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25866 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25867 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25868 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25869 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25870 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25871 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25872 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25873 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25874 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25875 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25876 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25877 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25878 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25879 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25880 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25881 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25882 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25883 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25884 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25885 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25886 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25887 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25888 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25889 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25890 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25891 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25892 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25893 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25894 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25895 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25896 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25897 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25898 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25899 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25900 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25901 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25902 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25903 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25904 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25905 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25906 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25907 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
25908 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
25909 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
25910 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
25911 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
25912 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
25913 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
25914 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
25915 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
25916 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
25917 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
25918 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
25919 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
25920 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
25921 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
25922 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
25923 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
25924 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
25925 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
25926 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
25927 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
25928 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
25929 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
25930 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
25931 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
25932 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
25933 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25934 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
25935 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
25936 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
25937 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
25938 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
25939 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
25940 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
25941 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
25942 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25943 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
25944 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
25945 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
25946 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
25947 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
25948 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
25949 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
25950 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
25951 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
25952 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
25953 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25954 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
25955 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
25956 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
25957 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
25958 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25959 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25960 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25961 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
25962
25963 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25964
25965 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
25966 (Use first letters of yesstr and nostr correctly instead of using
25967 full words).
25968
25969 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25970
25971 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
25972 (Use first letters of yesstr and nostr correctly).
25973
25974 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25975
25976 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
25977 also check for the first characters of yesstr and nostr.
25978 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
25979 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
25980
25981 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25982
25983 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
25984 also check for Chinese characters.
25985
25986 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25987
25988 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
25989 match also for the contents of yesstr and nostr. As the first letter
25990 of yesstr and nostr is equal, checking only for the first letter
25991 is not enough.
25992
25993 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25994
25995 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
25996 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
25997
25998 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25999
26000 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26001 of main contributor.
26002
26003 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26004
26005 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26006 instead of using English.
26007
26008 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26009
26010 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26011 by including the first letters of nostr and yesexpr in the regexp.
26012 Also make it more readable by using ASCII where possible.
26013
26014 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26015
26016 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26017 the first letter of nostr in the regexp. It agrees with CLDR now.
26018 Also make it more readable by using ASCII where possible.
26019
26020 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26021
26022 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26023 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26024 these strings contain a U+17D6 (which somewhat looks like a colon)
26025 instead of a real colon to separate the full words for “yes”
26026 and “no” from the single letter responses.
26027
26028 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26029
26030 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26031 it agree with CLDR (include the first letter of yesstr).
26032 Also make it more readable by using ASCII where possible.
26033
26034 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26035
26036 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26037 and improve yesexpr and noexpr. The yesstr and nostr apparently
26038 came from CLDR. And CLDR has a bug there: these strings contain
26039 a U+0903 (which looks like a colon) instead of a real colon
26040 to separate the full words for “yes” and “no” from the single
26041 letter responses.
26042
26043 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26044
26045 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26046 letters of the full yesstr and nostr in yesexpr and noexpr.
26047
26048 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26049
26050 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26051 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26052 * localedata/locales/an_ES: Make source more readable by using ASCII
26053 where possible.
26054
26055 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26056
26057 [BZ #20952]
26058 * localedata/locales/yuw_PG: New file.
26059 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26060 * locale/iso-639.def: Add Yau (Uruwa).
26061
26062 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26063
26064 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26065
26066 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26067
26068 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26069 (__libc_realloc): Likewise.
26070 (_mid_memalign): Likewise.
26071 (__libc_calloc): Likewise.
26072
26073 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26074
26075 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26076 by adding the generic +1 and -0 as in all other locales.
26077 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26078 day names and make it more readable by using ASCII where possible.
26079
26080 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26081
26082 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26083 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26084
26085 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26086
26087 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26088 WNOHANG in waitpid call.
26089
26090 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26091
26092 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26093 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26094
26095 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26096 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26097 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26098 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26099 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26100 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26101 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26102 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26103 variables.
26104
26105 2017-10-23 Michael Collison <michael.collison@arm.com>
26106
26107 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26108 with __builtin_sqrt.
26109 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26110 with __builtin_sqrtf.
26111 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26112 with __builtin_ceil.
26113 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26114 with __builtin_ceilf.
26115 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26116 with __builtin_floor.
26117 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26118 with __builtin_floorf.
26119 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26120 with __builtin_fma.
26121 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26122 with __builtin_fmaf.
26123 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26124 with __builtin_fmax.
26125 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26126 with __builtin_fmaxf.
26127 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26128 with __builtin_fmin.
26129 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26130 with __builtin_fminf.
26131 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26132 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26133 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26134 with builtin_rint and conversion to int.
26135 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26136 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26137 with builtin_llround.
26138 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26139 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26140 with builtin_rint and conversion to long int.
26141 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26142 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26143 with builtin_lround.
26144 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26145 with builtin_lroundf.
26146 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26147 statements with __builtin_nearbyint.
26148 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26149 statements with __builtin_nearbyintf.
26150 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26151 with __builtin_rint.
26152 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26153 with __builtin_rintf.
26154 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26155 with __builtin_round.
26156 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26157 with __builtin_roundf.
26158 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26159 with __builtin_trunc.
26160 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26161 with __builtin_truncf.
26162 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26163 and s_l[l]round[f].c too.
26164
26165 2017-10-23 Alan Modra <amodra@gmail.com>
26166
26167 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26168 Adjust stack after restoring regs. Add missing LR cfi_restore.
26169
26170 2017-10-23 Alan Modra <amodra@gmail.com>
26171
26172 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26173 Move LR save and frame setup/teardown and LR restore to
26174 immediately around memset call. Provide cfi.
26175
26176 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26177
26178 * sysdeps/i386/fpu/e_powf.S: Removed.
26179 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26180 * sysdeps/i386/fpu/w_powf.c: Likewise.
26181 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26182 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26183 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26184 Add e_powf-sse2.
26185 (CFLAGS-e_powf-sse2.c): New.
26186 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26187 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26188
26189 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 * sysdeps/i386/fpu/e_log2f.S: Removed.
26192 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26193 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26194 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26195 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26196 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26197 Add e_log2f-sse2.
26198 (CFLAGS-e_log2f-sse2.c): New.
26199 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26200 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26201
26202 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26203
26204 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26205 Add e_powf-fma.
26206 (CFLAGS-e_powf-fma.c): New.
26207 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26208 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26209
26210 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26211
26212 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26213 Add e_log2f-fma.
26214 (CFLAGS-e_log2f-fma.c): New.
26215 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26216 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26217
26218 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26219
26220 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26221 Add e_logf-fma.
26222 (CFLAGS-e_logf-fma.c): New.
26223 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26224 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26225
26226 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26227
26228 * sysdeps/i386/fpu/e_logf.S: Removed.
26229 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26230 * sysdeps/i386/fpu/w_logf.c: Likewise.
26231 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26232 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26233 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26234 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26235 Add e_logf-sse2.
26236 (CFLAGS-e_logf-sse2.c): New.
26237 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26238 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26239
26240 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26243 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26244 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26245 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26246 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26247 Add e_exp2f-sse2.
26248 (CFLAGS-e_exp2f-sse2.c): New.
26249 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26250 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26251
26252 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26253
26254 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26255 Add e_exp2f-fma.
26256 (CFLAGS-e_exp2f-fma.c): New.
26257 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26258 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26259
26260 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26261
26262 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26263 * sysdeps/i386/fpu/e_expf.S: Likewise.
26264 * sysdeps/i386/fpu/math_errf.c: Likewise.
26265 * sysdeps/i386/fpu/w_expf.c: Likewise.
26266 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26267 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26268 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26269 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26270 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26271 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26272 Remove e_expf-ia32.
26273 (CFLAGS-e_expf-sse2.c): New.
26274 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26275 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26276
26277 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26278
26279 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26280 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26281 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26282 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26283 e_expf.c.
26284 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26285 New.
26286 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26287 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26288 Renamed to ...
26289 (__redirect_expf): This.
26290 (SYMBOL_NAME): Changed to expf.
26291 (__ieee754_expf): Renamed to ...
26292 (__expf): This.
26293 (__GI___expf): This.
26294 (__ieee754_expf): Add strong_alias.
26295 (__expf_finite): Likewise.
26296 (__expf): New.
26297 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26298
26299 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26300
26301 [BZ #22332]
26302 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26303 unescaping.
26304
26305 2017-10-21 Florian Weimer <fweimer@redhat.com>
26306
26307 * posix/Makefile (tests): Add tst-glob-tilde.
26308 (tests-special): Add tst-glob-tilde-mem.out
26309 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26310 (tst-glob-tilde-mem.out): Add mtrace check.
26311 * posix/tst-glob-tilde.c: New file.
26312
26313 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26314
26315 * bits/floatn-common.h: New file.
26316 * math/Makefile (headers): Add bits/floatn-common.h.
26317 * bits/floatn.h: Include <bits/floatn-common.h>.
26318 * sysdeps/ia64/bits/floatn.h: Likewise.
26319 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26320 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26321 * sysdeps/powerpc/bits/floatn.h: Likewise.
26322 * sysdeps/x86/bits/floatn.h: Likewise.
26323
26324 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26325
26326 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26327 indicates whether compiler emits an warning for alias for
26328 functions with incompatible types.
26329
26330 [BZ #22273]
26331 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26332 the auxiliary process is terminated by a signal before calling _exit
26333 or execve.
26334
26335 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26336
26337 [BZ #21265]
26338 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26339 New.
26340 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26341 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26342 and bit_arch_XSAVEC_Usable if needed.
26343 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26344 and bit_arch_Use_dl_runtime_resolve_opt.
26345 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26346 Removed.
26347 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26348 (bit_arch_Prefer_No_AVX512): Updated.
26349 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26350 (bit_arch_XSAVEC_Usable): New.
26351 (STATE_SAVE_OFFSET): Likewise.
26352 (STATE_SAVE_MASK): Likewise.
26353 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26354 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26355 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26356 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26357 (index_arch_XSAVEC_Usable): New.
26358 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26359 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26360 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26361 is enabled.
26362 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26363 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26364 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26365 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26366 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26367 _dl_runtime_resolve_xsavec.
26368 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26369 Removed.
26370 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26371 instead of VEC_SIZE.
26372 (REGISTER_SAVE_BND0): Removed.
26373 (REGISTER_SAVE_BND1): Likewise.
26374 (REGISTER_SAVE_BND3): Likewise.
26375 (REGISTER_SAVE_RAX): Always defined to 0.
26376 (VMOV): Removed.
26377 (_dl_runtime_resolve_avx): Likewise.
26378 (_dl_runtime_resolve_avx_slow): Likewise.
26379 (_dl_runtime_resolve_avx_opt): Likewise.
26380 (_dl_runtime_resolve_avx512): Likewise.
26381 (_dl_runtime_resolve_avx512_opt): Likewise.
26382 (_dl_runtime_resolve_sse): Likewise.
26383 (_dl_runtime_resolve_sse_vex): Likewise.
26384 (USE_FXSAVE): New.
26385 (_dl_runtime_resolve_fxsave): Likewise.
26386 (USE_XSAVE): Likewise.
26387 (_dl_runtime_resolve_xsave): Likewise.
26388 (USE_XSAVEC): Likewise.
26389 (_dl_runtime_resolve_xsavec): Likewise.
26390 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26391 Removed.
26392 (_dl_runtime_resolve_avx512_opt): Likewise.
26393 (_dl_runtime_resolve_avx): Likewise.
26394 (_dl_runtime_resolve_avx_opt): Likewise.
26395 (_dl_runtime_resolve_sse): Likewise.
26396 (_dl_runtime_resolve_sse_vex): Likewise.
26397 (_dl_runtime_resolve_fxsave): New.
26398 (_dl_runtime_resolve_xsave): Likewise.
26399 (_dl_runtime_resolve_xsavec): Likewise.
26400
26401 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26402
26403 [BZ #22320]
26404 CVE-2017-15670
26405 * posix/glob.c (__glob): Fix one-byte overflow.
26406
26407 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26408
26409 * malloc/malloc.c (sysdep-cancel.h): Add include.
26410
26411 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26412
26413 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26414
26415 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26416
26417 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26418 (tests): Remove $(objpfx)ga_test depdendency.
26419 * resolv/ga_test.c: Remove file.
26420
26421 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26422
26423 [BZ #18812]
26424 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26425 * localedata/locales/kab_DZ: New file.
26426
26427 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26428
26429 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26430 _dl_relocate_static_pie instead of _dl_start to compute load
26431 address in static PIE.
26432
26433 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26434
26435 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26436
26437 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26438
26439 [BZ #13605]
26440 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26441 * localedata/locales/shn_MM: New file.
26442
26443 2017-10-20 Florian Weimer <fweimer@redhat.com>
26444
26445 [BZ #22321]
26446 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26447 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26448 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26449 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26450 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26451 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26452
26453 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26454
26455 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26456
26457 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26458
26459 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26460
26461 [BZ #22322]
26462 * sysdeps/mips/bits/long-double.h: Move to ....
26463 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26464
26465 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26466
26467 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26468
26469 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26470 H.J. Lu <hongjiu.lu@intel.com>
26471
26472 [BZ #22299]
26473 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26474 GLRO(dl_platform) to NULL.
26475 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26476 (modules-names): Add tst-platformmod-1 and
26477 x86_64/tst-platformmod-2.
26478 (CFLAGS-tst-platform-1.c): New.
26479 (CFLAGS-tst-platformmod-1.c): Likewise.
26480 (CFLAGS-tst-platformmod-2.c): Likewise.
26481 (LDFLAGS-tst-platformmod-2.so): Likewise.
26482 ($(objpfx)tst-platform-1): Likewise.
26483 ($(objpfx)tst-platform-1.out): Likewise.
26484 (tst-platform-1-ENV): Likewise.
26485 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26486 * sysdeps/x86_64/tst-platform-1.c: New file.
26487 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26488 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26489
26490 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26491
26492 [BZ #13994]
26493 * locale/iso-639.def: Add Karbi.
26494 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26495 * localedata/locales/mjw_IN: New file.
26496
26497 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26498
26499 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26500 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26501 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26502 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26503 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26504 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26505 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26506 <bits/floatn.h>.
26507 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26508 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26509 * manual/math.texi (Mathematics): Document additional architecture
26510 support for _Float128.
26511 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26512 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26513 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26514 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26515 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26516 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26517 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26518 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26519 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26520 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26521 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26522 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26523 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26524 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26525 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26526
26527 2017-10-18 Renlin Li <renlin.li@arm.com>
26528
26529 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26530 _DYNAMIC symbol to calculate load address.
26531
26532 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26533
26534 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26535 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26536 summary bits.
26537 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26538 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26539
26540 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26541
26542 [BZ #16777]
26543 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26544 and improve readability by using more ASCII.
26545 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26546 and improve readability by using more ASCII.
26547
26548 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26549
26550 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26551 not all targets support atomics on bool.
26552
26553 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26554
26555 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26556 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26557 __f128.
26558 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26559 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26560 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26561 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26562 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26563 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26564
26565 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26566
26567 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26568 defines.
26569
26570 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26571
26572 [BZ #22159]
26573 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26574 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26575 (do_check_remalloced_chunk): Fix build bug.
26576 (do_check_malloc_state): Add assert that checks arena->top.
26577 (malloc_consolidate): Remove initialization.
26578 (int_mallinfo): Remove call to malloc_consolidate.
26579 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26580
26581 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26582
26583 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26584 (have_fastchunks): Remove.
26585 (clear_fastchunks): Remove.
26586 (set_fastchunks): Remove.
26587 (malloc_state): Add have_fastchunks.
26588 (malloc_init_state): Use have_fastchunks.
26589 (do_check_malloc_state): Remove incorrect invariant checks.
26590 (_int_malloc): Use have_fastchunks.
26591 (_int_free): Likewise.
26592 (malloc_consolidate): Likewise.
26593
26594 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26595
26596 * malloc/malloc.c (tcache_put): Inline.
26597 (tcache_get): Inline.
26598
26599 2017-10-17 Jordi Mallach <jordi@gnu.org>
26600
26601 Aurelien Jarno <aurelien@aurel32.net>
26602 [BZ #2522]
26603 * localedata/locales/ca_ES@valencia: New file.
26604 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26605
26606 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26607
26608 [BZ #22296]
26609 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26610 < 6.x
26611
26612 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26613
26614 * scripts/build-many-glibcs.py (Context.add_all_configs):
26615 Add arm-linux-gnueabihf multiarch extra_glibcs.
26616
26617 * sysdeps/generic/ifunc-init.h: New file.
26618 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26619
26620 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26621
26622 [BZ #22019]
26623 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26624 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26625 * stdlib/tst-strfmon_l.c: adapt test case.
26626
26627 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26628
26629 * sysdeps/generic/float128-abi.h: New file.
26630 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26631 non-__prefixed symbols to ....
26632 * math/Versions: ... here. Include <float128-abi.h>.
26633 * stdlib/Versions ... and here. Include <float128-abi.h>
26634
26635 2017-10-16 Florian Weimer <fweimer@redhat.com>
26636
26637 * version.h (VERSION): Switch to ".9000" as the development
26638 version suffix.
26639
26640 2017-10-16 Florian Weimer <fweimer@redhat.com>
26641
26642 [BZ #22050]
26643 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26644 compat_symbol_reference to access non-default version.
26645
26646 2017-10-16 Florian Weimer <fweimer@redhat.com>
26647
26648 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26649
26650 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26651
26652 * include/shlib-compat.h (compat_symbol_reference): Update
26653 comment.
26654
26655 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26656
26657 * math/Makefile (test-types): Add
26658 $(type-float128-$(float128-alias-fcts)).
26659 * math/test-float128.h (TYPE_STR): Define conditional on
26660 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26661 (ULP_IDX): Likewise.
26662 (ULP_I_IDX): Likewise.
26663
26664 * stdlib/strtold.c: Include <bits/floatn.h>
26665 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26666 and later undefine as macro. Define as weak alias if
26667 [!USE_WIDE_CHAR].
26668 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26669 and later undefine as macro. Define as weak alias if
26670 [USE_WIDE_CHAR].
26671 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26672 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26673 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26674 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26675 Define and later undefine as macro. Define as weak alias if
26676 [USE_WIDE_CHAR].
26677 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26678 <bits/floatn.h>.
26679 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26680 Define and later undefine as macro. Define as weak alias if
26681 [!USE_WIDE_CHAR].
26682 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26683 Define and later undefine as macro. Define as weak alias if
26684 [USE_WIDE_CHAR].
26685
26686 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26687
26688 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26689 record_verbose messages.
26690
26691 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26692
26693 [BZ #22052]
26694 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26695 to silence -O3 -Wall warning with GCC 7.
26696
26697 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26698
26699 * Makeconfig (+link-static-before-libc): Use the first of
26700 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26701 * gmon/Makefile (tests): Add tst-gmon-static.
26702 (tests-static): Likewise.
26703 (CFLAGS-tst-gmon-static.c): New.
26704 (CRT-tst-gmon-static): Likewise.
26705 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26706 (tst-gmon-static-ENV): Likewise.
26707 (tests-special): Likewise.
26708 ($(objpfx)tst-gmon-static.out): Likewise.
26709 (clean-tst-gmon-static-data): Likewise.
26710 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26711 * gmon/tst-gmon-static-gprof.sh: New file.
26712 * gmon/tst-gmon-static.c: Likewise.
26713
26714 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26715
26716 [BZ #22295]
26717 * locale/programs/linereader.c (get_string): Don't warn on
26718 non-symbolic character.
26719
26720 [BZ #22294]
26721 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26722 int_curr_symbol.
26723
26724 [BZ #22292]
26725 * locale/programs/record-status.h: New file
26726 * locale/programs/locale.c: Add comment.
26727 * locale/programs/charmap-dir.c: Don't include error.h.
26728 (charmap_opendir): Use record_error.
26729 * locale/programs/charmap.c: Don't include error.h.
26730 (charmap_read): Use record_error, and record_warning.
26731 (parse_charmap): Likewise.
26732 * locale/programs/ld-address.c: Don't include error.h.
26733 (address_finish): Use record_error, and record_warning.
26734 * locale/programs/ld-collate.c: Don't include error.h.
26735 (collate_finish): Use record_error, and record_error_at_line.
26736 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26737 (ctype_class_new): Likewise.
26738 (ctype_map_new): Likewise.
26739 (set_one_default): Likewise.
26740 (set_class_defaults): Likewise.
26741 (translit_flatten): Likewise.
26742 (allocate_arrays): Use record_error, and record_verbose.
26743 * locale/programs/ld-identification.c: Don't include error.h.
26744 (indentation_finish): Use record_error and record_warning.
26745 * locale/programs/ld-measurement.c: Don't include error.h.
26746 (measurement_finish): Use record_error.
26747 * locale/programs/ld-messages.c
26748 (message_finish): Likewise.
26749 * locale/programs/ld-monetary.c
26750 (monetary_finish): Likewise.
26751 * locale/programs/ld-name.c (name_finish): Use record_error
26752 and record_warning.
26753 * locale/programs/ld-numeric.c
26754 (numeric_finish): Use record_error.
26755 * locale/programs/ld-paper.c: Don't include error.h.
26756 (paper_finish): Use record_error.
26757 * locale/programs/ld-telephone.c: Don't include error.h.
26758 (telephone_finish): Use record_error.
26759 * locale/programs/ld-time.c (time_finish): Likewise.
26760 * locale/programs/linereader.h (lr_error): Make inline func.
26761 * locale/programs/localedef.c: Define recorded_warning_count,
26762 and recorded_error_count.
26763 (main): Use record_error. Use recorded_error_count and
26764 recorded_warning_count to issue correct error returns.
26765 (add_to_readlist): Use record_error.
26766 (find_locale): Likewise.
26767 (load_locale): Likewise.
26768 * locale/programs/localedef.h: Remove be_quiet
26769 and WITH_CUR_LOCALE.
26770 * locale/programs/locarchive.c (compare_from_file): Use
26771 record_error.
26772 * locale/programs/locfile.c (write_locale_data): Use
26773 record_error.
26774 * locale/programs/repertoire.c: Dont include error.h.
26775 (repertoire_complain): Use record_error.
26776 * localedata/tst-fmon.sh: Expect failures from localedef.
26777 * localedata/tst-locale.sh: Likewise.
26778 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26779
26780 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26781 (REPORTS): Likewise.
26782 (check): Likewise.
26783 (i18n): Rename to...
26784 (i18n_ctype): ...this.
26785 (i18n-report): Rename to...
26786 (i18n_ctype-report): ...this.
26787 * localedata/locales/i18n_ctype: Regenerate.
26788 * localedata/locales/i18n: copy i18n_ctype.
26789
26790 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26791
26792 * stdlib/strfroml.c: Include <bits/floatn.h>.
26793 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26794 Define before include of <stdlib.h> and undefine afterwards, then
26795 define as weak alias.
26796
26797 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26798 Undefine and restore default definition. Use
26799 libm_alias_ldouble_other.
26800
26801 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26802
26803 [BZ #22153]
26804 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26805 in coredumps.
26806
26807 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26808
26809 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26810 Assign sym_map to be map for local symbols, as TLS relocations
26811 use sym_map to determine whether the symbol is defined and to
26812 extract the TLS information.
26813 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26814 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26815
26816 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26817
26818 [BZ #22189]
26819 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26820 (math_force_eval): Add powerpc version.
26821
26822 [BZ #22142]
26823 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26824 -DBL_MAX.
26825 (do_test): Likewise.
26826 * stdio-common/tst-printf.sh: Likewise.
26827 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26828 ifdef clause in order to set the carry bit right. Replace r0 by
26829 0 without changing the behavior.
26830
26831 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26832
26833 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26834 <libm-alias-ldouble.h>.
26835 (fabsl): Define using libm_alias_ldouble.
26836 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26837 <libm-alias-ldouble.h>.
26838 (fabsl): Define using libm_alias_ldouble.
26839
26840 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26841 Remove conditional code.
26842
26843 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26844 Rename to __clog10_internal_l.
26845 (__clog10_internal_l): Define aliases using
26846 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26847 with __clog10.
26848
26849 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26850
26851 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26852 * benchtests/sincosf-inputs: New file.
26853 * benchtests/cosf-inputs: New file.
26854 * benchtests/sinf-inputs: New file.
26855
26856 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26857
26858 * posix/tst-spawn.c (do_test): Wait for both children.
26859
26860 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26861
26862 [BZ #22284]
26863 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26864 tests-pie): Add tst-gmon-pie.
26865 (CFLAGS-tst-gmon-pie.c): New.
26866 (CRT-tst-gmon-pie): Likewise.
26867 (tst-gmon-pie-ENV): Likewise.
26868 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26869 ($(objpfx)tst-gmon-pie.out): Likewise.
26870 (clean-tst-gmon-pie-data): Likewise.
26871 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26872 * gmon/gmon.c [PIC]: Include <link.h>.
26873 [PIC] (callback): New function.
26874 (write_hist): Add an argument for load address. Subtract load
26875 address from PCs.
26876 (write_call_graph): Likewise.
26877 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26878 it to write_hist and write_call_graph.
26879 * gmon/tst-gmon-pie.c: New file.
26880
26881 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26882
26883 * math/Makefile (test-types-basic): New variable.
26884 (test-types): Likewise.
26885 (libm-test-support): Use $(test-types) instead of $(types).
26886 (libm-tests-base-normal): Likewise.
26887 (libm-tests-base-finite): Likewise.
26888 (libm-tests-base-inline): Likewise.
26889 (generated): Likewise.
26890 ($(objpfx)libm-test-support-$(t).c): Likewise.
26891 (libm-tests-for-type iterator): Likewise.
26892 (libm-test-support iterator): Likewise.
26893 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26894 (ulp_idx): Use ULP_IDX.
26895 * math/test-ldouble.h: Include <float.h>.
26896 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26897 (ULP_IDX): New macro.
26898 (ULP_I_IDX): Likewise.
26899 * math/test-double.h (ULP_IDX): Likewise.
26900 (ULP_I_IDX): Likewise.
26901 * math/test-float.h (ULP_IDX): Likewise.
26902 (ULP_I_IDX): Likewise.
26903 * math/test-float128.h (ULP_IDX): Likewise.
26904 (ULP_I_IDX): Likewise.
26905
26906 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26907
26908 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
26909 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
26910 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
26911 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
26912 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
26913 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
26914 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
26915 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
26916 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
26917 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
26918 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
26919 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
26920 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
26921 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26922 (SINGLE_THREAD_BY_GLOBAL): Define.
26923 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26924 Likewise.
26925 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26926 Likewise.
26927 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26928 Likewise.
26929 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26930 Likewise.
26931 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
26932 (SINGLE_THREAD_BY_GLOBAL): Likewise.
26933 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
26934 Likewise.
26935
26936 2017-10-11 Andreas Schwab <schwab@suse.de>
26937
26938 * nis/Makefile (aux): Remove.
26939 * nscd/Makefile (aux): Add nscd_hash.
26940 (nscd-modules): Likewise.
26941 ($(objpfx)nscd): Don't depend on libnsl.
26942 * nscd/nscd_hash.c: New file.
26943 * nscd/nscd_hash.h: Likewise.
26944 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
26945 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
26946 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
26947 instead of <nis/rpcsvc/nis.h>.
26948 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
26949
26950 2017-10-11 Florian Weimer <fweimer@redhat.com>
26951
26952 [BZ #22078]
26953 Avoid large NSS buffers with many addresses, aliases.
26954 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
26955 using dynarrays and struct alloc_buffer.
26956 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
26957 (tst-nss-files-hosts-multi): Link with -ldl.
26958 * nss/tst-nss-files-hosts-multi.c: New file.
26959
26960 2017-10-11 Florian Weimer <fweimer@redhat.com>
26961
26962 [BZ #18023]
26963 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
26964 scratch_buffer. Eliminate gotos.
26965
26966 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26967
26968 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
26969 libm_alias_ldouble_other.
26970 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
26971 undefine and redefine.
26972 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26973 (exp10l): Do not define here.
26974 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
26975 (weak_alias): Undefine and redefine.
26976 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
26977 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26978 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
26979 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
26980
26981 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
26982 [!__fma] (fma): Define using libm_alias_double.
26983 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
26984 [!__fmaf] (fmaf): Define using libm_alias_float.
26985 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
26986 (fmal): Define using libm_alias_ldouble.
26987
26988 2017-10-10 Joseph Myers <joseph@codesourcery.com>
26989
26990 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
26991 New macro.
26992 (libm_alias_double_other): Likewise.
26993 (libm_alias_double_r): Use libm_alias_double_other_r.
26994 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
26995 New macro.
26996 (libm_alias_float_other): Likewise.
26997 (libm_alias_float_r): Use libm_alias_float_other_r.
26998 * sysdeps/generic/libm-alias-float128.h
26999 (libm_alias_float128_other_r): New macro.
27000 (libm_alias_float128_other): Likewise.
27001 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27002 * sysdeps/generic/libm-alias-ldouble.h
27003 (libm_alias_ldouble_other_r): New macro.
27004 (libm_alias_ldouble_other): Likewise.
27005 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27006 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27007 (libm_alias_double_other_r): New macro.
27008 (libm_alias_double_other): Likewise.
27009 (libm_alias_double_r): Use libm_alias_double_other_r.
27010 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27011 (libm_alias_ldouble_other_r): New macro.
27012 (libm_alias_ldouble_other): Likewise.
27013 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27014 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27015 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27016 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27017 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27018 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27019 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27020 * math/w_exp2f.c: Use libm_alias_float_other.
27021 * math/w_expf.c: Likewise.
27022 * math/w_log2f.c: Likewise.
27023 * math/w_logf.c: Likewise.
27024 * math/w_powf.c: Likewise.
27025 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27026 [!__exp2f]: Use libm_alias_float_other.
27027 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27028 [!__expf]: Use libm_alias_float_other.
27029 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27030 [!__log2f]: Use libm_alias_float_other.
27031 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27032 [!__logf]: Use libm_alias_float_other.
27033 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27034 [!__powf]: Use libm_alias_float_other.
27035
27036 2017-10-10 Florian Weimer <fweimer@redhat.com>
27037
27038 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27039 function.
27040 (_nss_files_gethostbyname3_r): Call it.
27041
27042 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27043
27044 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27045 error. Remove default definition of declare_mgen_alias.
27046 [!declare_mgen_alias_r]: Likewise.
27047 * sysdeps/generic/math-type-macros-double.h
27048 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27049 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27050 (declare_mgen_alias_r): Likewise.
27051 * sysdeps/generic/math-type-macros-float128.h
27052 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27053 * sysdeps/generic/math-type-macros-ldouble.h
27054 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27055 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27056 macro.
27057 (declare_mgen_alias_r_s): Likewise.
27058 (declare_mgen_alias_r): Likewise.
27059 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27060 (lgamma_r): Define using libm_alias_double_r.
27061 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27062 (lgammaf_r): Define using libm_alias_float_r.
27063 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27064 (lgammal_r): Define using libm_alias_ldouble_r.
27065 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27066 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27067
27068 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27069
27070 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27071 extern declaration.
27072
27073 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27074
27075 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27076
27077 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27078
27079 [BZ #21326]
27080 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27081 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27082 * math/Makefile (test-math-cxx11): New test.
27083 * math/test-math-cxx11.cc: New file.
27084
27085 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27086
27087 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27088
27089 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27090 call to allocate the slave pty file descriptor.
27091
27092 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27093
27094 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27095 [!__fma] (fma): Define using libm_alias_double.
27096 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27097 [!__fma] (fma): Define using libm_alias_double.
27098
27099 * sysdeps/ieee754/float128/float128_private.h: Include
27100 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27101 (libm_alias_ldouble_r): Undefine and redefine.
27102 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27103 <libm-alias-ldouble.h>.
27104 (asinhl): Define using libm_alias_ldouble.
27105 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27106 <libm-alias-ldouble.h>.
27107 (atanl): Define using libm_alias_ldouble.
27108 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27109 <libm-alias-ldouble.h>.
27110 (cbrtl): Define using libm_alias_ldouble.
27111 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27112 <libm-alias-ldouble.h>.
27113 (ceill): Define using libm_alias_ldouble.
27114 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27115 <libm-alias-ldouble.h>.
27116 (copysignl): Define using libm_alias_ldouble.
27117 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27118 <libm-alias-ldouble.h>.
27119 (cosl): Define using libm_alias_ldouble.
27120 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27121 <libm-alias-ldouble.h>.
27122 (erfl): Define using libm_alias_ldouble.
27123 (erfcl): Likewise.
27124 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27125 <libm-alias-ldouble.h>.
27126 (expm1l): Define using libm_alias_ldouble.
27127 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27128 <libm-alias-ldouble.h>.
27129 (fabsl): Define using libm_alias_ldouble.
27130 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27131 <libm-alias-ldouble.h>.
27132 (floorl): Define using libm_alias_ldouble.
27133 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27134 <libm-alias-ldouble.h>.
27135 (fmal): Define using libm_alias_ldouble.
27136 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27137 <libm-alias-ldouble.h>.
27138 (frexpl): Define using libm_alias_ldouble.
27139 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27140 libm_alias_ldouble.
27141 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27142 <libm-alias-ldouble.h>.
27143 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27144 libm_alias_ldouble.
27145 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27146 <libm-alias-ldouble.h>.
27147 (getpayloadl): Define using libm_alias_ldouble.
27148 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27149 <libm-alias-ldouble.h>.
27150 (llrintl): Define using libm_alias_ldouble.
27151 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27152 <libm-alias-ldouble.h>.
27153 (llroundl): Define using libm_alias_ldouble.
27154 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27155 <libm-alias-ldouble.h>.
27156 (logbl): Define using libm_alias_ldouble.
27157 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27158 <libm-alias-ldouble.h>.
27159 (lrintl): Define using libm_alias_ldouble.
27160 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27161 <libm-alias-ldouble.h>.
27162 (lroundl): Define using libm_alias_ldouble.
27163 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27164 <libm-alias-ldouble.h>.
27165 (modfl): Define using libm_alias_ldouble.
27166 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27167 <libm-alias-ldouble.h>.
27168 (nearbyintl): Define using libm_alias_ldouble.
27169 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27170 <libm-alias-ldouble.h>.
27171 (nextafterl): Define using libm_alias_ldouble.
27172 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27173 <libm-alias-ldouble.h>.
27174 (nextupl): Define using libm_alias_ldouble.
27175 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27176 <libm-alias-ldouble.h>.
27177 (remquol): Define using libm_alias_ldouble.
27178 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27179 <libm-alias-ldouble.h>.
27180 (rintl): Define using libm_alias_ldouble.
27181 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27182 <libm-alias-ldouble.h>.
27183 (roundevenl): Define using libm_alias_ldouble.
27184 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27185 <libm-alias-ldouble.h>.
27186 (roundl): Define using libm_alias_ldouble.
27187 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27188 using libm_alias_ldouble.
27189 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27190 <libm-alias-ldouble.h>.
27191 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27192 Define using libm_alias_ldouble.
27193 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27194 <libm-alias-ldouble.h>.
27195 (sincosl): Define using libm_alias_ldouble.
27196 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27197 <libm-alias-ldouble.h>.
27198 (sinl): Define using libm_alias_ldouble.
27199 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27200 <libm-alias-ldouble.h>.
27201 (tanhl): Define using libm_alias_ldouble.
27202 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27203 <libm-alias-ldouble.h>.
27204 (tanl): Define using libm_alias_ldouble.
27205 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27206 <libm-alias-ldouble.h>.
27207 (totalorderl): Define using libm_alias_ldouble.
27208 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27209 <libm-alias-ldouble.h>.
27210 (totalordermagl): Define using libm_alias_ldouble.
27211 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27212 <libm-alias-ldouble.h>.
27213 (truncl): Define using libm_alias_ldouble.
27214 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27215 libm_alias_ldouble.
27216 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27217 libm_alias_ldouble.
27218 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27219 <libm-alias-ldouble.h>.
27220 (weak_alias): Do not undefine and redefine.
27221 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27222 (copysignl): Define with long_double_symbol only if [IS_IN
27223 (libc)].
27224 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27225 <libm-alias-ldouble.h>.
27226 (weak_alias): Do not undefine and redefine.
27227 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27228 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27229 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27230 <libm-alias-ldouble.h>.
27231 (weak_alias): Do not undefine and redefine.
27232 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27233 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27234 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27235 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27236 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27237 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27238 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27239 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27240 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27241 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27242 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27243 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27244 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27245 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27246 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27247 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27248 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27249 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27250 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27251 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27252 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27253 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27254 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27255 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27256 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27257 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27258
27259 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27260
27261 [BZ #22111]
27262 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27263 (tcache_thread_freeres): Set tcache_shutting_down before
27264 freeing the tcache.
27265 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27266 * malloc/tst-malloc-tcache-leak.c: New file.
27267
27268 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27269
27270 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27271 back to powerpc32 file.
27272 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27273 (memrchr): Add __memrchr_power8 to ifunc list.
27274 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27275 extra bytes for unaligned inputs.
27276
27277 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27278
27279 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27280 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27281 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27282 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27283 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27284
27285 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27286
27287 * sysdeps/arm/libm-test-ulps: Update.
27288
27289 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27290 <libm-alias-ldouble.h>.
27291 (asinhl): Define using libm_alias_ldouble.
27292 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27293 <libm-alias-ldouble.h>.
27294 (cbrtl): Define using libm_alias_ldouble.
27295 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27296 <libm-alias-ldouble.h>.
27297 (copysignl): Define using libm_alias_ldouble.
27298 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27299 <libm-alias-ldouble.h>.
27300 (cosl): Define using libm_alias_ldouble.
27301 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27302 <libm-alias-ldouble.h>.
27303 (erfl): Define using libm_alias_ldouble.
27304 (erfcl): Likewise.
27305 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27306 <libm-alias-ldouble.h>.
27307 (fmal): Define using libm_alias_ldouble.
27308 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27309 <libm-alias-ldouble.h>.
27310 (frexpl): Define using libm_alias_ldouble.
27311 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27312 libm_alias_ldouble.
27313 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27314 <libm-alias-ldouble.h>.
27315 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27316 libm_alias_ldouble.
27317 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27318 <libm-alias-ldouble.h>.
27319 (getpayloadl): Define using libm_alias_ldouble.
27320 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27321 <libm-alias-ldouble.h>.
27322 (llrintl): Define using libm_alias_ldouble.
27323 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27324 <libm-alias-ldouble.h>.
27325 (llroundl): Define using libm_alias_ldouble.
27326 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27327 <libm-alias-ldouble.h>.
27328 (lrintl): Define using libm_alias_ldouble.
27329 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27330 <libm-alias-ldouble.h>.
27331 (lroundl): Define using libm_alias_ldouble.
27332 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27333 <libm-alias-ldouble.h>.
27334 (modfl): Define using libm_alias_ldouble.
27335 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27336 <libm-alias-ldouble.h>.
27337 (nextupl): Define using libm_alias_ldouble.
27338 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27339 <libm-alias-ldouble.h>.
27340 (remquol): Define using libm_alias_ldouble.
27341 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27342 <libm-alias-ldouble.h>.
27343 (roundevenl): Define using libm_alias_ldouble.
27344 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27345 <libm-alias-ldouble.h>.
27346 (roundl): Define using libm_alias_ldouble.
27347 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27348 using libm_alias_ldouble.
27349 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27350 <libm-alias-ldouble.h>.
27351 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27352 <libm-alias-ldouble.h>.
27353 (setpayloadsigl): Define using libm_alias_ldouble.
27354 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27355 <libm-alias-ldouble.h>.
27356 (sincosl): Define using libm_alias_ldouble.
27357 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27358 <libm-alias-ldouble.h>.
27359 (sinl): Define using libm_alias_ldouble.
27360 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27361 <libm-alias-ldouble.h>.
27362 (tanhl): Define using libm_alias_ldouble.
27363 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27364 <libm-alias-ldouble.h>.
27365 (tanl): Define using libm_alias_ldouble.
27366 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27367 <libm-alias-ldouble.h>.
27368 (totalorderl): Define using libm_alias_ldouble.
27369 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27370 <libm-alias-ldouble.h>.
27371 (totalordermagl): Define using libm_alias_ldouble.
27372 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27373 libm_alias_ldouble.
27374 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27375 libm_alias_ldouble.
27376
27377 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27378
27379 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27380 memmove_falkor.
27381 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27382 (__libc_ifunc_impl_list): Likewise.
27383 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27384 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27385
27386 * benchtests/bench-memmove-walk.c: New file.
27387 * benchtests/Makefile (string-benchset): Add it.
27388
27389 * benchtests/bench-memset-walk.c: New file.
27390 * benchtests/Makefile (string-benchset): Add it.
27391
27392 * benchtests/bench-memcpy-walk.c: New file.
27393 * benchtests/Makefile (string-benchset): Add it.
27394
27395 2017-10-05 Florian Weimer <fweimer@redhat.com>
27396
27397 nscd: Eliminate compilation time dependency in the build output.
27398 * nscd/nscd_stat.c (STATDATA_VERSION)
27399 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27400 (STATDATA_VERSION_FULL): New macro definitions.
27401 (compilation): Remove.
27402 (struct statdata): Adjust version member.
27403 (send_stats): Set version from STATDATA_VERSION_FULL.
27404 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27405
27406 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27407
27408 * configure.ac (--enable-add-ons): Remove option.
27409 (machine): Do not mention add-ons in comment.
27410 (LIBC_PRECONFIGURE): Likewise.
27411 (add_ons): Remove variable and sanity checks and logic to locate
27412 add-ons.
27413 (add_ons_automatic): Remove variable.
27414 (configured_add_ons): Likewise.
27415 (add_ons_sfx): Likewise.
27416 (add_ons_pfx): Likewise.
27417 (add_on_subdirs): Likewise.
27418 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27419 consideration of add-ons in Implies handling.
27420 (sysdeps_add_ons): Likewise.
27421 * configure: Regenerated.
27422 * libidn/configure.ac: Remove.
27423 * libidn/configure: Likewise.
27424 * sysdeps/unix/inet/configure.ac: New file.
27425 * sysdeps/unix/inet/configure: New generated file.
27426 * sysdeps/unix/inet/Subdirs: Add libidn.
27427 * Makeconfig (sysdeps-srcdirs): Remove variable.
27428 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27429 ($(common-objpfx)config.status): Do not depend on add-on files.
27430 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27431 comment.
27432 (all-subdirs): Do not include $(add-on-subdirs).
27433 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27434 * config.make.in (add-ons): Remove variable.
27435 (add-on-subdirs): Likewise.
27436 (sysdeps-add-ons): Likewise.
27437 * manual/Makefile (add-chapters): Remove.
27438 ($(objpfx)texis): Do not depend on $(add-chapters).
27439 (nonexamples): Do not handle $(add-chapters).
27440 (examples): Do not handle $(add-ons).
27441 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27442 libc-texinfo.sh.
27443 * manual/install.texi (Installation): Do not mention add-ons.
27444 (--enable-add-ons): Do not document configure option.
27445 * INSTALL: Regenerated.
27446 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27447 * manual/maint.texi (Hierarchy Conventions): Do not mention
27448 add-ons.
27449 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27450 --enable-add-ons.
27451 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27452 add-ons.
27453 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27454 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27455
27456 2017-10-05 Andreas Schwab <schwab@suse.de>
27457
27458 [BZ #15142]
27459 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27460 (_IO_flush_all_lockp): Always lock list_all_lock.
27461 (_IO_flush_all_linebuffered): Likewise.
27462 (_IO_unbuffer_all): Likewise.
27463
27464 2017-10-05 Florian Weimer <fweimer@redhat.com>
27465
27466 [BZ #15436]
27467 Do not flush stdio streams on abort.
27468 * stdlib/abort.c (fflush): Remove macro definition.
27469 (abort): Remove stages related to stdio flushing.
27470
27471 2017-10-05 Florian Weimer <fweimer@redhat.com>
27472
27473 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27474
27475 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27476
27477 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27478
27479 2017-10-05 Florian Weimer <fweimer@redhat.com>
27480
27481 * support/support_format_hostent.c (support_format_hostent): Add
27482 more error information for NETDB_INTERNAL.
27483
27484 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27485
27486 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27487 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27488 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27489 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27490 AC_DEFINE if multi-arch is enabled.
27491 * sysdeps/i386/configure: Regenerated.
27492
27493 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27494
27495 * Makeconfig (+link-static-before-libc): Use
27496 $(DEFAULT-LDFLAGS-$(@F)).
27497 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27498 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27499 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27500
27501 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27502
27503 * elf/Makefile (tests): Add tst-main1.
27504 (modules-names): Add tst-main1mod.
27505 ($(objpfx)tst-main1): New.
27506 (CRT-tst-main1): Likewise.
27507 (LDFLAGS-tst-main1): Likewise.
27508 (LDLIBS-tst-main1): Likewise.
27509 (tst-main1mod.so-no-z-defs): Likewise.
27510 * elf/tst-main1.c: New file.
27511 * elf/tst-main1mod.c: Likewise.
27512
27513 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27514
27515 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27516
27517 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27518
27519 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27520 (fma): Define using libm_alias_double.
27521 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27522 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27523 <math_ldbl_opt.h>.
27524 (fmal): Do not define as compat symbol here.
27525 * sysdeps/alpha/fpu/s_fma.c: New file.
27526
27527 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27528
27529 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27530
27531 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27532
27533 [BZ #22229]
27534 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27535 <math_ldbl_opt.h>
27536 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27537 and libc.
27538 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27539 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27540 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27541 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27543 Include <math_ldbl_opt.h>
27544 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27545 and libc.
27546 (compat_symbol): Undefine and redefine.
27547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27548 <math_ldbl_opt.h>
27549 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27550 (compat_symbol): Undefine and redefine.
27551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27552 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27553 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27554 GLIBC_2_1 for libm.
27555 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27556 GLIBC_2.0 copysignl symbol.
27557 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27558 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27559
27560 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27561
27562 2017-10-04 Florian Weimer <fweimer@redhat.com>
27563
27564 * scripts/check-local-headers.sh: Ignore nspr4 header file
27565 directory in addition to nspr.
27566
27567 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27568
27569 [BZ #17956]
27570 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27571 * configure: Regenerate.
27572 * crypt/Makefile (nss-cpp-flags): New variable.
27573 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27574 (CPPFLAGS-md5-crypt.c): Use it.
27575 * scripts/check-local-headers.sh: Ignore nspr header file
27576 directory.
27577
27578 2017-10-04 Andreas Schwab <schwab@suse.de>
27579
27580 * nis/Makefile (services): Remove compat.
27581 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27582 ($(objpfx)libnss_compat.so): Remove rule.
27583 * nis/Versions (libnss_compat): Remove.
27584 * nss/Makefile (services): Add compat.
27585 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27586 * nss/Versions (libnss_compat): Define.
27587 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27588 Don't include <rpc/types.h>. Replace bool_t by bool.
27589 * nss/nss_compat/compat-initgroups.c: Likewise.
27590 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27591 instead of <rpcsrv/ypclnt.h>.
27592 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27593 yp_get_default_domain.
27594 * nss/nss_compat/compat-pwd.c: Likewise.
27595 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27596 yp_get_default_domain.
27597 * nss/nss_compat/nisdomain.c: New file.
27598 * nss/nss_compat/nisdomain.h: Likewise.
27599
27600 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27601
27602 [BZ #22244]
27603 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27604 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27605
27606 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27607
27608 [BZ #22243]
27609 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27610 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27611
27612 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27613
27614 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27615 "movl main@GOTOFF(%ebx), %eax".
27616
27617 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27618
27619 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27620 allow undefined _DYNAMIC in PIE libc.a.
27621 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27622 Likewse.
27623
27624 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27625
27626 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27627 check _DYNAMIC.
27628
27629 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27630
27631 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27632 check _DYNAMIC.
27633
27634 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27635
27636 * math/test-math-iscanonical.cc (error): Replace bool with int.
27637
27638 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27639
27640 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27641 (modf): Define using libm_alias_double, only if [!__modf].
27642 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27643 <libm-alias-double.h>.
27644 (modf): Define using libm_alias_double, only if [!__modf].
27645 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27646 compat symbol here.
27647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27648 (weak_alias): Do not undefine and redefine.
27649 (strong_alias): Likewise.
27650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27651 (weak_alias): Likewise.
27652 (strong_alias): Likewise.
27653
27654 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27655 (logb): Define using libm_alias_double, only if [!__logb].
27656 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27657 <libm-alias-double.h>.
27658 (logb): Define using libm_alias_double, only if [!__logb].
27659 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27661 (weak_alias): Do not undefine and redefine.
27662 (strong_alias): Likewise.
27663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27664 (weak_alias): Likewise.
27665 (strong_alias): Likewise.
27666
27667 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27668
27669 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27670 Check SHARED instead PIC.
27671
27672 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27673
27674 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27675 [!__fmaf] (fmaf): Define using libm_alias_float.
27676
27677 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27678 (frexp): Define using libm_alias_double.
27679 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27680 <libm-alias-double.h>.
27681 (frexp): Define using libm_alias_double.
27682 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27683 compat symbol here.
27684
27685 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27686
27687 [BZ #22235]
27688 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27689 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27690 (CFLAGS-test-math-iscanonical.cc): New variable.
27691 * math/test-math-iscanonical.cc: New file.
27692 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27693 Provide a C++ implementation based on function overloading,
27694 rather than using __MATH_TG, which uses C-only builtins.
27695 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27696 Likewise.
27697 * sysdeps/powerpc/powerpc64le/Makefile
27698 (CFLAGS-test-math-iscanonical.cc): New variable.
27699
27700 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27701
27702 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27703 (ceil): Define using libm_alias_double.
27704 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27705 (floor): Define using libm_alias_double.
27706 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27707 <libm-alias-double.h>.
27708 (llround): Define using libm_alias_double.
27709 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27710 <libm-alias-double.h>.
27711 (lround): Define using libm_alias_double.
27712 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27713 <libm-alias-double.h>.
27714 (nearbyint): Define using libm_alias_double.
27715 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27716 <libm-alias-double.h>.
27717 (remquo): Define using libm_alias_double.
27718 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27719 (rint): Define using libm_alias_double.
27720 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27721 (round): Define using libm_alias_double.
27722 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27723 (trunc): Define using libm_alias_double.
27724 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27725 <libm-alias-double.h>.
27726 (ceil): Define using libm_alias_double.
27727 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27728 <libm-alias-double.h>.
27729 (floor): Define using libm_alias_double.
27730 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27731 <libm-alias-double.h>.
27732 (llround): Define using libm_alias_double.
27733 [_LP64] (lround): Likewise.
27734 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27735 <libm-alias-double.h>.
27736 [!_LP64] (lround): Define using libm_alias_double.
27737 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27738 <libm-alias-double.h>.
27739 (nearbyint): Define using libm_alias_double.
27740 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27741 <libm-alias-double.h>.
27742 (remquo): Define using libm_alias_double.
27743 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27744 <libm-alias-double.h>.
27745 (rint): Define using libm_alias_double.
27746 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27747 <libm-alias-double.h>.
27748 (round): Define using libm_alias_double.
27749 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27750 <libm-alias-double.h>.
27751 (trunc): Define using libm_alias_double.
27752 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27753 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27754 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27755 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27756 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27757 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27758 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27759 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27760 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27761
27762 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27763
27764 * math/w_remainder.c: New file.
27765 * math/w_remainderf.c: New file.
27766 * math/w_remainderl.c: New file.
27767
27768 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27769
27770 * elf/rtld.c (BOOTSTRAP_MAP): New.
27771 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27772 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27773 Likewise.
27774 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27775 Likewise.
27776 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27777 Likewise.
27778
27779 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27780
27781 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27782 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27783 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27784 rtld_hidden_data_ver): Define to empty.
27785 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27786 __assert_perror_fail): Likewise.
27787 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27788 (__rewinddir): Likewise.
27789 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27790 (__profile_frequency): Likewise.
27791 * include/setjmp.h (__sigsetjmp): Likewise.
27792 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27793 __libc_sigaction): Likewise.
27794 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27795 not set hidden attribute.
27796 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27797 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27798 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27799 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27800 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27801 __fxstatat64): Likewise.
27802 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27803 (__uname): Likewise.
27804 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27805 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27806 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27807 (NO_RTLD_HIDDEN): Set.
27808 * sysdeps/mach/hurd/configure: Refresh.
27809 * config.h.in: Refresh.
27810
27811 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27812
27813 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27814 (atan): Define using libm_alias_double.
27815 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27816 (tan): Define using libm_alias_double.
27817 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27818 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27819
27820 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27821 define as weak alias of __atan. Do not define any aliases if
27822 [__atan].
27823 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27824 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27825 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27826 as weak alias of __tan. Do not define any aliases if [__tan].
27827 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27828 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27829 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27830 __atan.
27831 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27832 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27833 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27834 and define as weak alias of __atan.
27835 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27836 __atan.
27837 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27838 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27839 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27840 define as weak alias of __tan.
27841
27842 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27843
27844 * math/w_lgamma.c: New file.
27845 * math/w_lgammaf.c: New file.
27846 * math/w_lgammal.c: New file.
27847
27848 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27849
27850 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27851 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27852 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27853 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27854 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27855 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27856 * sysdeps/i386/fpu/w_log2f.c: New file.
27857 * sysdeps/i386/fpu/w_logf.c: New file.
27858 * sysdeps/i386/fpu/w_powf.c: New file.
27859 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27860 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27861 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27862
27863 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27864 H.J. Lu <hongjiu.lu@intel.com>
27865
27866 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27867 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27868 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27869 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27870 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27871 the new expf code.
27872 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27873 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27874 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27875 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27876 * sysdeps/i386/fpu/w_exp2f.c: New file.
27877 * sysdeps/i386/fpu/w_expf.c: New file.
27878 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27879 * sysdeps/x86_64/fpu/w_expf.c: New file.
27880
27881 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27882
27883 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27884 (log2f): Likewise.
27885 (powf): Likewise.
27886 * math/w_log2f.c: New file.
27887 * math/w_logf.c: New file.
27888 * math/w_powf.c: New file.
27889 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27890 * math/w_logf_compat.c (__logf_compat): Likewise.
27891 * math/w_powf_compat.c (__powf_compat): Likewise.
27892 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27893 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27894 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27895 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27896 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27897 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27898 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27899 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27900 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27901 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27902 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27903 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27904 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27905 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27906 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27908 Likewise.
27909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27910 Likewise.
27911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27912 Likewise.
27913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27914 Likewise.
27915 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27916 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27917 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27918 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27919 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27920 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27921 Likewise.
27922 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27923 Likewise.
27924 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27925 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27926 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27927
27928 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27929
27930 * sysdeps/powerpc/powerpc64/multiarch/Makefile
27931 (sysdep_routines): Add memrchr_power8.
27932 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27933 (memrchr): Add __memrchr_power8 to list of memrchr functions.
27934 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
27935 New file.
27936 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27937 (memrchr): Add __memrchr_power8 to ifunc list.
27938 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
27939
27940 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27941
27942 [BZ #18822]
27943 * sysdeps/unix/sysv/linux/posix_fadvise64.c
27944 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
27945 libc_hidden_def.
27946 * sysdeps/unix/sysv/linux/posix_fallocate64.c
27947 (__posix_fallocate64_l64): Likewise.
27948
27949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27950
27951 [BZ #18822]
27952 * sysdeps/unix/sysv/linux/sched_setaffinity.c
27953 (__sched_setaffinity_new): Add libc_hidden_proto and
27954 libc_hidden_def.
27955
27956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27957
27958 [BZ #18822]
27959 * include/glob.h (__glob64): Add libc_hidden_proto.
27960 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
27961 libc_hidden_def.
27962
27963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27964
27965 [BZ #18822]
27966 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
27967 attribute_hidden.
27968
27969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27970
27971 [BZ #18822]
27972 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
27973
27974 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27975
27976 [BZ #18822]
27977 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
27978 libc_hidden_def.
27979
27980 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27981
27982 [BZ #18822]
27983 * csu/version.c (__libc_print_version): Add attribute_hidden.
27984
27985 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27986
27987 [BZ #18822]
27988 * include/libc-internal.h (__init_misc): Add attribute_hidden.
27989
27990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27991
27992 [BZ #18822]
27993 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
27994
27995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27996
27997 [BZ #18822]
27998 * nscd/nscd_helper.c (__nis_hash): New prototype.
27999
28000 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28001
28002 [BZ #18822]
28003 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28004 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28005 libc_hidden_def.
28006 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28007 * termios/tcgetattr.c (__tcgetattr): Likewise.
28008
28009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28010
28011 [BZ #18822]
28012 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28013 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28014 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28015 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28016 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28017
28018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28019
28020 [BZ #18822]
28021 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28022
28023 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28024
28025 [BZ #18822]
28026 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28027 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28028
28029 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28030
28031 [BZ #18822]
28032 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28033
28034 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28035
28036 [BZ #18822]
28037 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28038 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28039
28040 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28041
28042 [BZ #18822]
28043 * include/ifreq.h: New file.
28044 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28045 (__ifreq): Likewise.
28046 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28047 (__ifreq): Likewise.
28048
28049 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28050
28051 [BZ #18822]
28052 * include/idna.h: New file.
28053 * inet/getnameinfo.c: Include <idna.h> instead of
28054 <libidn/idna.h>.
28055 (__idna_to_unicode_lzlz): Removed.
28056 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28057 <libidn/idna.h>.
28058 (__idna_to_ascii_lz): Removed.
28059 (__idna_to_unicode_lzlz): Likewise.
28060
28061 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28062
28063 [BZ #18822]
28064 * include/plural-exp.h: New file.
28065 * intl/plural-exp.c: Include <plural-exp.h> instead of
28066 "plural-exp.h".
28067
28068 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28069
28070 [BZ #18822]
28071 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28072 "getsourcefilter.h".
28073 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28074 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28075 "getsourcefilter.h".
28076 (__get_sol): Removed.
28077
28078 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28079
28080 [BZ #18822]
28081 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28082 to ...
28083 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28084
28085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28086
28087 [BZ #18822]
28088 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28089 attribute_hidden.
28090
28091 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28092
28093 [BZ #18822]
28094 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28095
28096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28097
28098 [BZ #18822]
28099 * include/search.h (__tdestroy): Add libc_hidden_proto.
28100 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28101
28102 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28103
28104 [BZ #18822]
28105 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28106
28107 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28108
28109 [BZ #18822]
28110 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28111 attribute_hidden.
28112
28113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28114
28115 [BZ #18822]
28116 * include/signal.h (__kill): Add libc_hidden_proto.
28117 (__sigblock): Likewise.
28118 (__sigprocmask): Likewise.
28119 (__sigaltstack): Likewise.
28120 * signal/kill.c (__kill): Add libc_hidden_def.
28121 * signal/sigblock.c (__sigblock): Likewise.
28122 * signal/sigprocmask.c (__sigprocmask): Likewise.
28123 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28124 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28125 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28126 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28127 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28128 Likewise.
28129 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28130 Likewise.
28131 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28132 (__sigprocmask): Likewise.
28133 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28134 Likewise.
28135 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28136 (__sigprocmask): Likewise.
28137 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28138 Likewise.
28139
28140 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28141
28142 [BZ #18822]
28143 * include/string.h (__strsep): Add libc_hidden_proto.
28144 * string/strsep.c (__strsep): Add libc_hidden_def.
28145
28146 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28147
28148 [BZ #18822]
28149 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28150 attribute_hidden.
28151 (__spawni): Likewise.
28152
28153 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28154
28155 [BZ #18822]
28156 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28157 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28158 libc_hidden_def.
28159
28160 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28161
28162 [BZ #18822]
28163 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28164
28165 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28166
28167 [BZ #18822]
28168 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28169 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28170 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28171 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28172 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28173 Likewise.
28174 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28175 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28176
28177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28178
28179 [BZ #18822]
28180 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28181 (__dcigettext): Likewise.
28182
28183 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28184
28185 [BZ #18822]
28186 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28187 libc_hidden_proto.
28188 (__get_nprocs): Likewise.
28189 (__get_phys_pages): Likewise.
28190 (__get_avphys_pages): Likewise.
28191 (__get_child_max): Add attribute_hidden.
28192 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28193 (__get_nprocs): Likewise.
28194 (__get_phys_pages): Likewise.
28195 (__get_avphys_pages): Likewise.
28196 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28197 libc_hidden_def.
28198 (__get_nprocs): Likewise.
28199 (__get_phys_pages): Likewise.
28200 (__get_avphys_pages): Likewise.
28201 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28202 libc_hidden_def.
28203 (__get_nprocs_conf): Likewise.
28204 (__get_phys_pages): Likewise.
28205 (__get_avphys_pages): Likewise.
28206
28207 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28208
28209 [BZ #18822]
28210 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28211 attribute_hidden.
28212 (__netlink_close): Likewise.
28213 (__netlink_free_handle): Likewise.
28214 (__netlink_request): Likewise.
28215
28216 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28217
28218 [BZ #18822]
28219 * include/rpc/rpc.h (__rpc_thread_variables): Add
28220 attribute_hidden.
28221 (__rpc_thread_svc_cleanup): Likewise.
28222 (__rpc_thread_clnt_cleanup): Likewise.
28223 (__rpc_thread_key_cleanup): Likewise.
28224
28225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28226
28227 [BZ #18822]
28228 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28229 (__writev): Likewise.
28230 * misc/readv.c (__readv): Add libc_hidden_def.
28231 * misc/writev.c (__writev): Likewise.
28232 * sysdeps/posix/readv.c (__readv): Likewise.
28233 * sysdeps/posix/writev.c (__writev): Likewise.
28234 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28235 (__readv): Likewise.
28236 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28237 (__writev): Likewise.
28238
28239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28240
28241 [BZ #18822]
28242 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28243 (__regcomp): Add libc_hidden_proto.
28244 (__regexec): Likewise.
28245 (__regfree): Likewise.
28246 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28247 (__regfree): Likewise.
28248 * posix/regexec.c (__regexec): Likewise.
28249
28250 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28251
28252 [BZ #18822]
28253 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28254 (__getutent): Likewise.
28255 (__getutid): Likewise.
28256 (__getutline): Likewise.
28257 (__pututline): Likewise.
28258 (__getutent_r): Likewise.
28259 (__getutid_r): Likewise.
28260 (__getutline_r): Likewise.
28261 (__utmpname): Add attribute_hidden.
28262 (__setutent): Likewise.
28263 (__endutent): Likewise.
28264 * login/getutent.c (__getutent): Add libc_hidden_def.
28265 * login/getutent_r.c (__getutent_r): Likewise.
28266 (__pututline): Likewise.
28267 * login/getutid.c (__getutid): Likewise.
28268 * login/getutid_r.c (__getutid_r): Likewise.
28269 * login/getutline.c (__getutline): Likewise.
28270 * login/getutline_r.c (__getutline_r): Likewise.
28271 * login/updwtmp.c (__updwtmp): Likewise.
28272
28273 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28274
28275 [BZ #18822]
28276 * include/dirent.h (__opendir): Always add attribute_hidden.
28277 (__fdopendir): Likewise.
28278 (__closedir): Likewise.
28279 (__readdir): Likewise.
28280 (__readdir64): Add libc_hidden_proto.
28281 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28282 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28283 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28284 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28285 New alias.
28286
28287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28288
28289 [BZ #18822]
28290 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28291 * include/netdb.h (__gethostbyaddr_r): Likewise.
28292 (__gethostbyname_r): Likewise.
28293 (__gethostbyname2_r): Likewise.
28294 (__getnetbyaddr_r): Likewise.
28295 (__getnetbyname_r): Likewise.
28296 (__getservbyname_r): Likewise.
28297 (__getservbyport_r): Likewise.
28298 (__getprotobyname_r): Likewise.
28299 (__getprotobynumber_r): Likewise.
28300 (__getnetgrent_r): Likewise.
28301 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28302 (__getrpcbynumber_r): Likewise.
28303 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28304
28305 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28306
28307 [BZ #18822]
28308 * include/stdio.h (__fcloseall): Add attribute_hidden.
28309 (__getline): Likewise.
28310 (__path_search): Likewise.
28311 (__gen_tempname): Likewise.
28312 (__libc_message): Likewise.
28313 (__flockfile): Likewise.
28314 (__funlockfile): Likewise.
28315 (__fxprintf): Likewise.
28316 (__fxprintf_nocancel): Likewise.
28317
28318 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28319
28320 [BZ #18822]
28321 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28322 (__sgetsgent_r): Likewise.
28323
28324 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28325
28326 [BZ #18822]
28327 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28328 (__statfs64): Likewise.
28329 (__fstatfs64): Likewise.
28330 * include/sys/statvfs.h (__statvfs64): Likewise.
28331 (__fstatvfs64): Likewise.
28332 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28333 (__statfs_filesize_max): Likewise.
28334 (__statfs_symlinks): Likewise.
28335 (__statfs_chown_restricted): Likewise.
28336
28337 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28338
28339 [BZ #18822]
28340 * include/time.h (__tzstring): Add attribute_hidden.
28341 (__tzfile_read): Likewise.
28342 (__tzfile_compute): Likewise.
28343 (__tzfile_default): Likewise.
28344 (__tzset_parse_tz): Likewise.
28345 (__offtime): Likewise.
28346 (__asctime_r): Likewise.
28347 (__tzset): Likewise.
28348 (__tz_convert): Likewise.
28349 (__getdate_r): Likewise.
28350 (__getclktck): Likewise.
28351
28352 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28353
28354 [BZ #18822]
28355 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28356 (__nscd_unmap): Likewise.
28357 (__nscd_cache_search): Likewise.
28358 (__nscd_get_nl_timestamp): Likewise.
28359 (__nscd_getpwnam_r): Likewise.
28360 (__nscd_getpwuid_r): Likewise.
28361 (__nscd_getgrnam_r): Likewise.
28362 (__nscd_getgrgid_r): Likewise.
28363 (__nscd_gethostbyname_r): Likewise.
28364 (__nscd_gethostbyname2_r): Likewise.
28365 (__nscd_gethostbyaddr_r): Likewise.
28366 (__nscd_getai): Likewise.
28367 (__nscd_getgrouplist): Likewise.
28368 (__nscd_getservbyname_r): Likewise.
28369 (__nscd_getservbyport_r): Likewise.
28370 (__nscd_innetgr): Likewise.
28371 (__nscd_setnetgrent): Likewise.
28372
28373 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28374
28375 [BZ #18822]
28376 * include/gmp.h: Declare internal functions only if _ISOMAC is
28377 undefined.
28378 (__mpn_extract_double): Add attribute_hidden.
28379 (__mpn_extract_long_double): Likewise.
28380 (__mpn_extract_float128): Likewise.
28381 (__mpn_construct_float): Likewise.
28382 (__mpn_construct_double): Likewise.
28383 (__mpn_construct_long_double): Likewise.
28384 (__mpn_construct_float128): Likewise.
28385 (mpn_add_1): Likewise.
28386 (mpn_addmul_1): Likewise.
28387 (mpn_add_n): Likewise.
28388 (mpn_cmp): Likewise.
28389 (mpn_divrem): Likewise.
28390 (mpn_lshift): Likewise.
28391 (mpn_mul): Likewise.
28392 (mpn_mul_1): Likewise.
28393 (mpn_rshift): Likewise.
28394 (mpn_sub_1): Likewise.
28395 (mpn_submul_1): Likewise.
28396 (mpn_sub_n): Likewise.
28397
28398 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28399
28400 [BZ #18822]
28401 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28402 (__wcscat): Likewise.
28403 (__btowc): Likewise.
28404 (__wcrtomb): Likewise.
28405 (__mbsrtowcs): Likewise.
28406 (__wcsrtombs): Likewise.
28407 (__mbsnrtowcs): Likewise.
28408 (__wcsnrtombs): Likewise.
28409 (__wcsncpy): Likewise.
28410 (__wcpncpy): Likewise.
28411 (__wmemcpy): Likewise.
28412 (__wmempcpy): Likewise.
28413 (__wmemmove): Likewise.
28414 (__wcschrnul): Likewise.
28415 (__vfwscanf): Likewise.
28416 (__vswprintf): Likewise.
28417 (__fwprintf): Likewise.
28418 (__vfwprintf): Likewise.
28419
28420 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28421
28422 [BZ #18822]
28423 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28424 (__getgrgid_r): Likewise.
28425 (__getgrnam_r): Likewise.
28426 * include/pwd.h (__getpwuid_r): Likewise.
28427 (__getpwnam_r): Likewise.
28428 (__fgetpwent_r): Likewise.
28429 * include/shadow.h (__getspnam_r): Likewise.
28430 (__sgetspent_r): Likewise.
28431 (__fgetspent_r): Likewise.
28432
28433 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28434
28435 [BZ #18822]
28436 * include/unistd.h (__access): Add attribute_hidden.
28437 (__lseek64): Likewise.
28438 (__libc_pread64): Likewise.
28439 (__pipe2): Likewise.
28440 (__sleep): Likewise.
28441 (__chdir): Likewise.
28442 (__fchdir): Likewise.
28443 (__getcwd): Likewise.
28444 (__rmdir): Likewise.
28445 (__execvpe): Likewise.
28446 (__execve): Likewise.
28447 (__setsid): Likewise.
28448 (__getuid): Likewise.
28449 (__geteuid): Likewise.
28450 (__getgid): Likewise.
28451 (__getegid): Likewise.
28452 (__getgroups): Likewise.
28453 (__group_member): Likewise.
28454 (__ttyname_r): Likewise.
28455 (__isatty): Likewise.
28456 (__readlink): Likewise.
28457 (__unlink): Likewise.
28458 (__gethostname): Likewise.
28459 (__profil): Likewise.
28460 (__getdtablesize): Likewise.
28461 (__brk): Likewise.
28462 (__ftruncate): Likewise.
28463 (__ftruncate64): Likewise.
28464
28465 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28466
28467 [BZ #18822]
28468 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28469 * argp/argp-fs-xinl.c: Likewise.
28470 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28471 * argp/argp-parse.c: Include <argp.h>.
28472 * argp/argp-xinl.c: Likewise.
28473 * include/argp-fmtstream.h: New file.
28474 * include/argp.h (__argp_error): Add attribute_hidden.
28475 (__argp_failure): Likewise.
28476 (__argp_input): Likewise.
28477 (__argp_state_help): Likewise.
28478
28479 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28480
28481 [BZ #18822]
28482 * include/wchar.h (____wcstof_l_internal): New prototype.
28483 (____wcstod_l_internal): Likewise.
28484 (____wcstold_l_internal): Likewise.
28485 (____wcstol_l_internal): Likewise.
28486 (____wcstoul_l_internal): Likewise.
28487 (____wcstoll_l_internal): Likewise.
28488 (____wcstoull_l_internal): Likewise.
28489 (____wcstof128_l_internal): Likewise.
28490 * sysdeps/ieee754/float128/wcstof128.c
28491 (____wcstof128_l_internal): Removed.
28492 * sysdeps/ieee754/float128/wcstof128_l.c
28493 (____wcstof128_l_internal): Likewise.
28494 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28495 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28496 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28497 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28498 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28499 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28500 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28501 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28502 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28503 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28504
28505 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28506
28507 [BZ #18822]
28508 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28509 instead of <sys/statvfs.h>.
28510 (__internal_statvfs): Removed.
28511 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28512 instead of <sys/statvfs.h>.
28513 (__internal_statvfs64): Removed.
28514 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28515 "internal_statvfs.h" instead of <sys/statvfs.h>.
28516 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28517 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28518 instead of <sys/statvfs.h>.
28519 (__internal_statvfs): Removed.
28520 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28521 instead of <sys/statvfs.h>.
28522 (__internal_statvfs64): Removed.
28523
28524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28525
28526 [BZ #18822]
28527 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28528 (__gconv_close): Likewise.
28529 (__gconv): Likewise.
28530 (__gconv_find_transform): Likewise.
28531 (__gconv_lookup_cache): Likewise.
28532 (__gconv_compare_alias_cache): Likewise.
28533 (__gconv_load_cache): Likewise.
28534 (__gconv_get_path): Likewise.
28535 (__gconv_close_transform): Likewise.
28536 (__gconv_release_cache): Likewise.
28537 (__gconv_find_shlib): Likewise.
28538 (__gconv_release_shlib): Likewise.
28539 (__gconv_get_builtin_trans): Likewise.
28540 (__gconv_compare_alias): Likewise.
28541 * include/dlfcn.h (_dlerror_run): Likewise.
28542 * include/stdio.h (__fortify_fail_abort): Likewise.
28543 * include/time.h (__tz_compute): Likewise.
28544 (__strptime_internal): Likewise.
28545 * intl/gettextP.h (_nl_find_domain): Likewise.
28546 (_nl_load_domain): Likewise.
28547 (_nl_find_msg): Likewise.
28548 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28549 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28550 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28551 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28552 (__gai_find_request): Likewise.
28553 (__gai_remove_request): Likewise.
28554 (__gai_notify): Likewise.
28555 (__gai_notify_only): Likewise.
28556 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28557 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28558 (_dl_non_dynamic_init): Likewise.
28559 (_dl_aux_init): Likewise.
28560 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28561 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28562 Likewise.
28563 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28564 (__wcsmbs_clone_conv): Likewise.
28565 (__wcsmbs_named_conv): Likewise.
28566
28567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28568
28569 [BZ #18822]
28570 * include/stdlib.h (__random): Add attribute_hidden.
28571 (__random_r): Likewise.
28572 (__srandom_r): Likewise.
28573 (__initstate_r): Likewise.
28574 (__setstate_r): Likewise.
28575 (__erand48_r): Likewise.
28576 (__nrand48_r): Likewise.
28577 (__jrand48_r): Likewise.
28578 (__srand48_r): Likewise.
28579 (__seed48_r): Likewise.
28580 (__lcong48_r): Likewise.
28581 (__drand48_iterate): Likewise.
28582 (__setenv): Likewise.
28583 (__unsetenv): Likewise.
28584 (__clearenv): Likewise.
28585 (__ptsname_r): Likewise.
28586 (__posix_openpt): Likewise.
28587 (__add_to_environ): Likewise.
28588 (__realpath): Add libc_hidden_proto.
28589 (__ecvt_r): Likewise.
28590 (__fcvt_r): Likewise.
28591 (__qecvt_r): Likewise.
28592 (__qfcvt_r): Likewise.
28593 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28594 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28595
28596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28597
28598 [BZ #18822]
28599 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28600 * include/time.h (__mktime_internal): Likewise.
28601 * libio/iolibio.h (__fopen_internal): Likewise.
28602
28603 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28604
28605 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28606 pointer in frame.
28607 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28608 Correct offset used to restore PIC register.
28609
28610 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28611
28612 [BZ libc/22165]
28613 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28614 code to load address of __getcontext_ret when generating PIC code.
28615
28616 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28617
28618 * elf/Makefile (tests-static-internal): Add
28619 tst-tls1-static-non-pie.
28620 (LDFLAGS-tst-tls1-static-non-pie): New.
28621 * elf/tst-tls1-static-non-pie.c: New file.
28622
28623 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28624
28625 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28626 (asinh): Define using libm_alias_double.
28627 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28628 (cbrt): Define using libm_alias_double.
28629 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28630 <libm-alias-double.h>.
28631 (copysign): Define using libm_alias_double.
28632 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28633 (erf): Define using libm_alias_double.
28634 (erfc): Likewise.
28635 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28636 (expm1): Define using libm_alias_double.
28637 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28638 (fabs): Define using libm_alias_double.
28639 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28640 libm_alias_double.
28641 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28642 <libm-alias-double.h>.
28643 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28644 libm_alias_double.
28645 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28646 <libm-alias-double.h>.
28647 (getpayload): Define using libm_alias_double.
28648 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28649 <libm-alias-double.h>.
28650 (llrint): Define using libm_alias_double.
28651 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28652 (lrint): Define using libm_alias_double.
28653 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28654 <libm-alias-double.h>.
28655 (nextup): Define using libm_alias_double.
28656 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28657 <libm-alias-double.h>.
28658 (roundeven): Define using libm_alias_double.
28659 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28660 libm_alias_double.
28661 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28662 <libm-alias-double.h>.
28663 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28664 using libm_alias_double.
28665 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28666 (cos): Define using libm_alias_double.
28667 (sin): Likewise.
28668 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28669 <libm-alias-double.h>.
28670 (sincos): Define using libm_alias_double.
28671 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28672 (tanh): Define using libm_alias_double.
28673 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28674 <libm-alias-double.h>.
28675 (totalorder): Define using libm_alias_double.
28676 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28677 <libm-alias-double.h>.
28678 (totalordermag): Define using libm_alias_double.
28679 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28680 libm_alias_double.
28681 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28682 libm_alias_double.
28683 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28684 <libm-alias-double.h>.
28685 (getpayload): Define using libm_alias_double.
28686 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28687 <libm-alias-double.h>.
28688 (roundeven): Define using libm_alias_double.
28689 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28690 <libm-alias-double.h>.
28691 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28692 <libm-alias-double.h>.
28693 (totalorder): Define using libm_alias_double.
28694 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28695 <libm-alias-double.h>.
28696 (totalordermag): Define using libm_alias_double.
28697 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28698 libc compat symbol here.
28699 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28700 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28701 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28702 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28703 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28704 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28705 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28706 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28707 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28708 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28709
28710 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28711
28712 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28713 _dl_relocate_static_pie instead of _dl_start to compute load
28714 address in static PIE. Return 0 if _DYNAMIC is undefined for
28715 static executable.
28716
28717 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28718
28719 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28720 _DYNAMIC is undefined for static executable.
28721
28722 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28723
28724 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28725
28726 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28727
28728 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28729
28730 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28731
28732 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28733 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28734 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28735 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28736 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28737 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28738 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28739 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28740 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28741 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28742 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28743 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28744 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28745 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28746 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28747 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28748 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28749
28750 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28751
28752 * math/bits/cmathcalls.h (cimag): Remove inline.
28753 (creal): Remove inline.
28754 (conj): Remove inline.
28755
28756 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28757
28758 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28759 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28760 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28761 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28762 (issignalingf_inline): Likewise.
28763 (POWF_LOG2_TABLE_BITS): Likewise.
28764 (POWF_LOG2_POLY_ORDER): Likewise.
28765 (POWF_SCALE_BITS): Likewise.
28766 (POWF_SCALE): Likewise.
28767 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28768 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28769 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28770
28771 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28772
28773 * math/Makefile (type-float-routines): Add e_log2f_data.
28774 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28775 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28776 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28777 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28778 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28779 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28780 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28781
28782 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28783
28784 * math/Makefile (type-float-routines): Add e_logf_data.
28785 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28786 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28787 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28788 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28789 * sysdeps/i386/fpu/e_logf_data.c: New file.
28790 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28791 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28792
28793 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28794
28795 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28796 undefined _DYNAMIC in PIE libc.a.
28797 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28798 Likewse.
28799
28800 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28801
28802 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28803 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28804 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28805 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28806 (__signbit): Remove.
28807 (__signbitl): Remove.
28808 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28809 (__signbit): Remove.
28810 (__signbitl): Remove.
28811 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28812 (__signbit): Remove.
28813 (__signbitl): Remove.
28814 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28815 (__signbit): Remove.
28816 (__signbitl): Remove.
28817 * sysdeps/tile/bits/mathinline.h: Delete file.
28818 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28819 (__signbit): Remove.
28820 (__signbitl): Remove.
28821
28822 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28823
28824 * math/math.h: Improve handling of C99 isgreater macros.
28825 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28826 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28827 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28828 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28829 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28830
28831 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28832
28833 * sysdeps/aarch64/libm-test-ulps: Update.
28834
28835 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28836
28837 [BZ #22225]
28838 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28839 math_opt_barrier on argument when doing arithmetic on it.
28840 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28841 Likewise. Use math_force_eval not math_opt_barrier after
28842 arithmetic.
28843 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28844 math_opt_barrier on argument when doing arithmetic on it.
28845 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28846 Likewise.
28847
28848 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28849
28850 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28851 libc_hidden_def.
28852 (__freeifaddrs): Likewise.
28853
28854 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28855
28856 * include/dirent.h (__dirfd): New declaration.
28857 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28858 alias.
28859 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28860 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28861 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28862 * include/unistd.h (__revoke): New declaration.
28863 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28864 alias.
28865 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28866 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28867 revoke.
28868 * include/dirent.h (__seekdir): New declaration.
28869 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28870 redefine as weak alias.
28871 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28872 of seekdir.
28873 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28874 and use libc_hidden_def on them.
28875 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28876 them.
28877 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28878 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28879 instead of getifaddrs and freeifaddrs.
28880
28881 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28882
28883 [BZ #18822]
28884 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28885 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28886 (__dso_handle): Remove declaration.
28887 * dlfcn/tstatexit.c (__dso_handle): Removed.
28888 (main): Don't check __dso_handle.
28889 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28890 (main): Don't check __dso_handle.
28891 * include/dso_handle.h: New file.
28892 * malloc/mtrace.c: Include <dso_handle.h>.
28893 (mtrace): Pass __dso_handle directly.
28894 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28895 (__dso_handle): Remove declaration.
28896 (__pthread_atfork): Pass __dso_handle directly.
28897 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28898 (__dso_handle): Removed.
28899 * posix/wordexp-test.c: Include <dso_handle.h>.
28900 (__dso_handle): Remove declaration.
28901 (__app_register_atfork): Pass __dso_handle directly.
28902 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28903 (__dso_handle): Remove declaration.
28904 (at_quick_exit): Pass __dso_handle directly.
28905 * stdlib/atexit.c: Include <dso_handle.h>.
28906 (__dso_handle): Remove declaration.
28907 (atexit): Pass __dso_handle directly.
28908 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
28909 (__dso_handle): Removed.
28910
28911 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28912
28913 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
28914 using VDSO.
28915
28916 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
28917
28918 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
28919 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
28920 values to correct default value for given type.
28921
28922 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28923
28924 [BZ #22101]
28925 * elf/Makefile (tests): Add tst-debug1.
28926 ($(objpfx)tst-debug1): New.
28927 ($(objpfx)tst-debug1.out): Likewise.
28928 ($(objpfx)tst-debug1mod1.so): Likewise.
28929 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
28930 with p_filesz == 0.
28931 * elf/tst-debug1.c: New file.
28932
28933 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28934
28935 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
28936 Define using __ifunc.
28937
28938 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28939
28940 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
28941 exp2f() values.
28942
28943 2017-09-26 Joseph Myers <joseph@codesourcery.com>
28944
28945 [BZ #22156]
28946 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
28947
28948 2017-09-26 Florian Weimer <fweimer@redhat.com>
28949
28950 * resolv/Makefile (tests-internal): Fix typo in comment.
28951
28952 2017-09-26 Florian Weimer <fweimer@redhat.com>
28953
28954 * resolv/nss_dns/dns-host.c: Fix typo in comment.
28955
28956 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28957
28958 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
28959 Use an union instead of a max_align_t array for __space,
28960 so that __space is the same size on all platforms.
28961 * malloc/scratch_buffer_grow_preserve.c
28962 (__libc_scratch_buffer_grow_preserve): Likewise.
28963
28964 [BZ #22183]
28965 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
28966 version to 2.
28967 * posix/Makefile (routines): Add glob-lstat-compat and
28968 glob64-lstat-compat.
28969 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
28970 * posix/glob-lstat-compat.c: New file.
28971 * posix/glob64-lstat-compat.c: Likewise.
28972 * posix/tst-glob_lstat_compat.c: Likewise.
28973 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
28974 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
28975 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
28976 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
28977 Likewise.
28978 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
28979 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28980 * posix/glob.c (glob_lstat): New function.
28981 (glob): Rename to __glob and add versioned symbol to 2.27.
28982 (glob_in_dir): Use glob_lstat.
28983 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
28984 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
28985 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
28986 2.27.
28987 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
28988 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
28989 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
28990 gl_lstat on glob call.
28991 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
28992 and glob64 symbols.
28993 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
28994 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
28995 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
28996 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
28997 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
28998 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
28999 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29000 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29001 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29002 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29003 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29004 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29006 Likewise.
29007 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29009 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29010 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29011 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29012 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29014 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29015 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29016 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29017 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29018 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29019
29020 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29021
29022 * configure.ac (AS): Require binutils 2.25 or later.
29023 * configure: Regenerated.
29024
29025 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29026
29027 [BZ #22207]
29028 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29029 VM size.
29030
29031 2017-09-25 DJ Delorie <dj@redhat.com>
29032
29033 [BZ #22161]
29034 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29035 resetting timeout.
29036
29037 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29038
29039 * sysdeps/ieee754/dbl-64/sincos32.h
29040 [SINCCOS32_H]: Remove define.
29041 [SINCOS32_H]: Define.
29042
29043 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29044
29045 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29046 (exp2f): Likewise.
29047 * math/w_exp2f.c: New file.
29048 * math/w_expf.c: New file.
29049 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29050 * math/w_expf_compat.c (__expf_compat): Likewise.
29051 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29052 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29053 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29054 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29055 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29056 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29057 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29058 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29059 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29060 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29061 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29062 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29063 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29064 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29066 Likewise.
29067 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29068 Likewise.
29069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29070 Likewise.
29071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29072 Likewise.
29073 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29074 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29075 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29076 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29077 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29078 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29079 Likewise.
29080 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29081 Likewise.
29082 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29083 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29084 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29085
29086 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29087
29088 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29089 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29090 (roundtoint, converttoint): Likewise.
29091 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29092 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29093 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29094 * sysdeps/ieee754/flt-32/math_config.h: New file.
29095 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29096 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29097 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29098 * sysdeps/i386/fpu/math_errf.c: New file.
29099 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29100 * sysdeps/ia64/fpu/math_errf.c: New file.
29101 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29102 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29103
29104 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29105
29106 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29107 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29108 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29109 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29110 to make sure that these symbols are defined.
29111 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29112 of <limits.h>
29113 (__need_NULL): Do not define.
29114 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29115 alignment.
29116 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29117 CMGROUP_MAX, cmsgcred): Do not define.
29118 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29119 NULL.
29120 * bits/socket.h: Likewise.
29121 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29122 __gettimeofday instead of gettimeofday.
29123 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29124 instead of settimeofday.
29125
29126 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29127
29128 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29129 (asinhf): Define using libm_alias_float.
29130 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29131 (atanf): Define using libm_alias_float.
29132 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29133 (cbrtf): Define using libm_alias_float.
29134 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29135 (ceilf): Define using libm_alias_float.
29136 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29137 <libm-alias-float.h>.
29138 (copysignf): Define using libm_alias_float.
29139 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29140 (cosf): Define using libm_alias_float.
29141 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29142 (erff): Define using libm_alias_float.
29143 (erfcf): Likewise.
29144 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29145 (expm1f): Define using libm_alias_float.
29146 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29147 (fabsf): Define using libm_alias_float.
29148 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29149 (floorf): Define using libm_alias_float.
29150 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29151 (frexpf): Define using libm_alias_float.
29152 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29153 libm_alias_float.
29154 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29155 <libm-alias-float.h>.
29156 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29157 libm_alias_float.
29158 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29159 <libm-alias-float.h>.
29160 (getpayloadf): Define using libm_alias_float.
29161 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29162 <libm-alias-float.h>.
29163 (llrintf): Define using libm_alias_float.
29164 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29165 <libm-alias-float.h>.
29166 (llroundf): Define using libm_alias_float.
29167 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29168 (logbf): Define using libm_alias_float.
29169 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29170 (lrintf): Define using libm_alias_float.
29171 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29172 (lroundf): Define using libm_alias_float.
29173 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29174 (modff): Define using libm_alias_float.
29175 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29176 <libm-alias-float.h>.
29177 (nearbyintf): Define using libm_alias_float.
29178 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29179 <libm-alias-float.h>.
29180 (nextafterf): Define using libm_alias_float.
29181 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29182 <libm-alias-float.h>.
29183 (nextupf): Define using libm_alias_float.
29184 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29185 <libm-alias-float.h>.
29186 (remquof): Define using libm_alias_float.
29187 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29188 (rintf): Define using libm_alias_float.
29189 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29190 <libm-alias-float.h>.
29191 (roundevenf): Define using libm_alias_float.
29192 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29193 (roundf): Define using libm_alias_float.
29194 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29195 using libm_alias_float.
29196 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29197 <libm-alias-float.h>.
29198 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29199 Define using libm_alias_float.
29200 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29201 <libm-alias-float.h>.
29202 (sincosf): Define using libm_alias_float.
29203 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29204 (sinf): Define using libm_alias_float.
29205 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29206 (tanf): Define using libm_alias_float.
29207 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29208 (tanhf): Define using libm_alias_float.
29209 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29210 <libm-alias-float.h>.
29211 (totalorderf): Define using libm_alias_float.
29212 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29213 <libm-alias-float.h>.
29214 (totalordermagf): Define using libm_alias_float.
29215 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29216 (truncf): Define using libm_alias_float.
29217 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29218 libm_alias_float.
29219 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29220 libm_alias_float.
29221
29222 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29223
29224 [BZ #22146]
29225 math/math.h: Let fpclassify use the builtin in C++ mode, even
29226 when optimazing for size.
29227
29228 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29229
29230 * csu/Makefile (generated): Do not add version-info.h.
29231 (before-compile): Likewise.
29232 (all-Banner-files): Remove variable.
29233 ($(objpfx)version-info.h): Remove rule.
29234 * csu/version.c (banner): Do not include "version-info.h".
29235 * libidn/Banner: Remove.
29236 * manual/contrib.texi (Simon Josefsson): New entry.
29237
29238 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29239
29240 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29241 Remove conditionals on LDBL_MANT_DIG.
29242 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29243 (__ieee754_lgammal_r): Likewise.
29244
29245 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29246
29247 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29248 _Float128 and L().
29249 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29250 _Float128 and L(). Replace _Float128 with long double and L(x)
29251 with xL, throughout the file.
29252 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29253 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29254 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29255 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29256
29257 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29258
29259 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29260 sysdeps/ieee754/ldbl-128ibm.
29261 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29262 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29263 of including it. Keep _Float128 and L() intact. These will be
29264 reviewed by a separate patch.
29265 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29266 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29267 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29268 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29269
29270 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29271
29272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29273 (__finitef128): Define to __redirect___finitef128.
29274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29275 (__isinff128): Define to __redirect___isinff128.
29276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29277 (__isnanf128): Define to __redirect___isnanf128.
29278
29279 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29280
29281 * sysdeps/powerpc/powerpc64le/Makefile
29282 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29283 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29284
29285 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29286 Carlos O'Donell <carlos@redhat.com>
29287
29288 [BZ #22180]
29289 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29290 * stdlib/test-dlclose-exit-race.c: New file.
29291 * stdlib/test-dlclose-exit-race-helper.c: New file.
29292 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29293
29294 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29295
29296 * crypt/Banner: Remove file.
29297 * nptl/Banner: Likewise.
29298 * resolv/Banner: Likewise.
29299 * soft-fp/Banner: Likewise.
29300 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29301 ($(objpfx)version.d): Remove dependency on banner.h.
29302 ($(objpfx)version.os): Likewise.
29303 * nptl/version.c (banner): Do not include banner.h.
29304 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29305 Jelinek and BIND code.
29306
29307 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29308 Carlos O'Donell <carlos@redhat.com>
29309
29310 * support/xdlfcn.h: New file.
29311 * support/xdlfcn.c: New file.
29312 * support/Makefile (libsupport-routines): Add xdlfcn.
29313 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29314
29315 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29316
29317 [BZ #20142]
29318 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29319 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29320 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29321 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29322 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29323 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29324 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29325 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29326
29327 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29328 Ricky Zhou <rickyz@google.com>
29329 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29330
29331 [BZ #14333]
29332 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29333 Remove atomics.
29334 (__new_exitfn): Fail registration when we finished at_exit processing.
29335 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29336 * stdlib/on_exit.c (__on_exit): Likewise.
29337 * stdlib/exit.c (__exit_funcs_done): New variable.
29338 (__run_exit_handlers): Use __exit_funcs_lock.
29339 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29340 declarations.
29341 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29342 (test-cxa_atexit-race, test-on_exit-race): New tests.
29343 * stdlib/test-atexit-race-common.c: New file.
29344 * stdlib/test-atexit-race.c: New file.
29345 * stdlib/test-at_quick_exit-race.c: New file.
29346 * stdlib/test-cxa_atexit-race.c: New file.
29347 * stdlib/test-on_exit-race.c: New file.
29348
29349 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29350
29351 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29352 * benchtests/exp2f-inputs: Copy of expf-inputs.
29353 * benchtests/log2f-inputs: Copy of logf-inputs.
29354
29355 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29356
29357 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29358 Explicitly take address of first element of array arguments in
29359 call to INLINE_SYSCALL.
29360
29361 2017-09-19 Andreas Schwab <schwab@suse.de>
29362
29363 [BZ #22134]
29364 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29365 execveat first.
29366 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29367 unimplemented.
29368 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29369 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29370 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29371 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29372 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29373 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29374 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29375 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29376 * posix/Makefile (tests): Add tst-fexecve.
29377 * posix/tst-fexecve.c: New file.
29378
29379 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29380
29381 * benchtests/Makefile: Add logf benchmark.
29382 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29383
29384 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29385
29386 * benchtests/Makefile: Add expf benchmark.
29387 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29388
29389 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29390
29391 * csu/Makefile: Add -funwind-tables to libc-start.c.
29392 * debug/Makefile: Add -funwind-tables to backtrace.c.
29393 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29394 * sysdeps/arm/Makefile: Likewise.
29395 * sysdeps/i386/Makefile: Likewise.
29396 * sysdeps/m68k/Makefile: Likewise.
29397 * sysdeps/mips/Makefile: Likewise.
29398 * sysdeps/nios2/Makefile: Likewise.
29399 * sysdeps/sh/Makefile: Likewise.
29400 * sysdeps/sparc/Makefile: Likewise.
29401
29402 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29403
29404 * benchtests/Makefile (bench-math): Add trunc and truncf.
29405 (CFLAGS-bench-trunc.c): New variable.
29406 (CFLAGS-bench-truncf.c): Likewise.
29407 * benchtests/trunc-inputs: New file.
29408 * benchtests/truncf-inputs: Likewise.
29409
29410 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29411
29412 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29413
29414 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29415
29416 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29417 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29418 redefine.
29419 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29420 (exp10l): Define as weak alias.
29421 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29422 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29423 and redefine.
29424 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29425 (remainderl): Define as weak alias.
29426
29427 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29428 (fmal): Define using libm_alias_ldouble.
29429 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29430 (acoshl): Define using libm_alias_ldouble.
29431 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29432 (acosl): Define using libm_alias_ldouble.
29433 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29434 (asinl): Define using libm_alias_ldouble.
29435 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29436 (atan2l): Define using libm_alias_ldouble.
29437 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29438 (atanhl): Define using libm_alias_ldouble.
29439 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29440 (coshl): Define using libm_alias_ldouble.
29441 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29442 (exp10l): Define using libm_alias_ldouble.
29443 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29444 (exp2l): Define using libm_alias_ldouble.
29445 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29446 (expl): Define using libm_alias_ldouble.
29447 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29448 (fmodl): Define using libm_alias_ldouble.
29449 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29450 (hypotl): Define using libm_alias_ldouble.
29451 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29452 (j0l): Define using libm_alias_ldouble.
29453 (y0l): Likewise.
29454 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29455 (j1l): Define using libm_alias_ldouble.
29456 (y1l): Likewise.
29457 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29458 (jnl): Define using libm_alias_ldouble.
29459 (ynl): Likewise.
29460 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29461 (log10l): Define using libm_alias_ldouble.
29462 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29463 (log2l): Define using libm_alias_ldouble.
29464 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29465 (logl): Define using libm_alias_ldouble.
29466 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29467 (powl): Define using libm_alias_ldouble.
29468 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29469 (remainderl): Define using libm_alias_ldouble.
29470 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29471 (sinhl): Define using libm_alias_ldouble.
29472 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29473 (sqrtl): Define using libm_alias_ldouble.
29474 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29475 (tgammal): Define using libm_alias_ldouble.
29476 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29477 (exp10l): Do not use long_double_symbol here.
29478 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29479 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29480 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29481 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29482 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29483 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29484 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29485 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29486 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29487 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29488 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29489 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29490 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29491 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29492 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29493 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29494 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29495 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29496 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29497 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29498 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29499 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29500
29501 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29502
29503 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29504 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29505
29506 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29507
29508 * io/read.c (read): Add libc_hidden_weak.
29509 * sysdeps/mach/hurd/read.c (read): Likewise.
29510 * io/write.c (write): Likewise.
29511 * sysdeps/mach/hurd/write.c (write): Likewise.
29512 * io/pread64.c (__pread64): Likewise.
29513 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29514 * posix/pread64.c (__pread64): Add libc_hidden_def.
29515
29516 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29517
29518 * benchtests/scripts/compare_strings.py: New option -g.
29519 (draw_graph): Print a message that a graph is being generated.
29520 (process_results): Generate graph only if -g is passed.
29521 (main): Process option -g.
29522
29523 * benchtests/scripts/compare_strings.py (process_results):
29524 Better spacing for output.
29525
29526 * benchtests/scripts/compare_strings.py: Use argparse.
29527 * benchtests/README: Document existence of compare_strings.py.
29528
29529 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29530
29531 * math/s_fma.c: Include <libm-alias-double.h>.
29532 (fma): Define using libm_alias_double.
29533 * math/s_nextafter.c: Include <libm-alias-double.h>.
29534 (nextafter): Define using libm_alias_double.
29535 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29536 (acos): Define using libm_alias_double.
29537 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29538 (aocsh): Define using libm_alias_double.
29539 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29540 (asin): Define using libm_alias_double.
29541 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29542 (atan2): Define using libm_alias_double.
29543 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29544 (atanh): Define using libm_alias_double.
29545 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29546 (cosh): Define using libm_alias_double.
29547 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29548 (exp10): Define using libm_alias_double.
29549 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29550 (exp2): Define using libm_alias_double.
29551 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29552 (exp): Define using libm_alias_double.
29553 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29554 (fmod): Define using libm_alias_double.
29555 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29556 (hypot): Define using libm_alias_double.
29557 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29558 (j0): Define using libm_alias_double.
29559 (y0): Likewise.
29560 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29561 (j1): Define using libm_alias_double.
29562 (y1): Likewise.
29563 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29564 (jn): Define using libm_alias_double.
29565 (yn): Likewise.
29566 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29567 (log10): Define using libm_alias_double.
29568 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29569 (log2): Define using libm_alias_double.
29570 * math/w_log_compat.c: Include <libm-alias-double.h>.
29571 (log): Define using libm_alias_double.
29572 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29573 (pow): Define using libm_alias_double.
29574 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29575 (remainder): Define using libm_alias_double.
29576 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29577 (sinh): Define using libm_alias_double.
29578 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29579 (sqrt): Define using libm_alias_double.
29580 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29581 (tgamma): Define using libm_alias_double.
29582 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29583 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29584 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29585 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29586 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29587 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29588 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29589 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29590 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29591 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29592 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29593 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29594 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29595 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29596 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29597 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29598 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29599 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29600 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29601 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29602 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29603 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29604 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29605 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29606 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29607
29608 * math/e_acoshl.c: Remove.
29609 * math/e_acosl.c: Likewise.
29610 * math/e_asinl.c: Likewise.
29611 * math/e_atan2l.c: Likewise.
29612 * math/e_atanhl.c: Likewise.
29613 * math/e_coshl.c: Likewise.
29614 * math/e_expl.c: Likewise.
29615 * math/e_fmodl.c: Likewise.
29616 * math/e_gammal_r.c: Likewise.
29617 * math/e_hypotl.c: Likewise.
29618 * math/e_j0l.c: Likewise.
29619 * math/e_j1l.c: Likewise.
29620 * math/e_jnl.c: Likewise.
29621 * math/e_lgammal_r.c: Likewise.
29622 * math/e_log10l.c: Likewise.
29623 * math/e_log2l.c: Likewise.
29624 * math/e_logl.c: Likewise.
29625 * math/e_powl.c: Likewise.
29626 * math/e_rem_pio2l.c: Likewise.
29627 * math/e_sinhl.c: Likewise.
29628 * math/e_sqrtf128.c: Likewise.
29629 * math/e_sqrtl.c: Likewise.
29630 * math/k_cosl.c: Likewise.
29631 * math/k_sinl.c: Likewise.
29632 * math/k_tanl.c: Likewise.
29633 * math/s_asinhl.c: Likewise.
29634 * math/s_atanl.c: Likewise.
29635 * math/s_cbrtl.c: Likewise.
29636 * math/s_erfl.c: Likewise.
29637 * math/s_expm1l.c: Likewise.
29638 * math/s_log1pl.c: Likewise.
29639 * math/s_tanhl.c: Likewise.
29640
29641 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29642
29643 [BZ #21745]
29644 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29645 [$(subdir) = math] (sysdep_calls): New variable. Has the
29646 previous contents of sysdep_routines, but re-sorted..
29647 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29648 sysdep_calls.
29649 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29650 defined in sysdep_calls and replace by the respective m_* names.
29651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29652 (compat_symbol): Undefine to avoid duplicated compat symbols in
29653 libc.
29654
29655 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29656
29657 * math/s_fmaf.c: Include <libm-alias-float.h>.
29658 (fmaf): Define using libm_alias_float.
29659 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29660 (acosf): Define using libm_alias_float.
29661 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29662 (acoshf): Define using libm_alias_float.
29663 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29664 (asinf): Define using libm_alias_float.
29665 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29666 (atan2f): Define using libm_alias_float.
29667 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29668 (atanhf): Define using libm_alias_float.
29669 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29670 (coshf): Define using libm_alias_float.
29671 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29672 (exp10f): Define using libm_alias_float.
29673 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29674 (fmodf): Define using libm_alias_float.
29675 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29676 (hypotf): Define using libm_alias_float.
29677 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29678 (j0f): Define using libm_alias_float.
29679 (y0f): Likewise.
29680 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29681 (j1f): Define using libm_alias_float.
29682 (y1f): Likewise.
29683 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29684 (jnf): Define using libm_alias_float.
29685 (ynf): Likewise.
29686 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29687 (log10f): Define using libm_alias_float.
29688 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29689 (log2f): Define using libm_alias_float.
29690 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29691 (logf): Define using libm_alias_float.
29692 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29693 (powf): Define using libm_alias_float.
29694 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29695 (remainderf): Define using libm_alias_float.
29696 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29697 (sinhf): Define using libm_alias_float.
29698 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29699 (sqrtf): Define using libm_alias_float.
29700 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29701 (tgammaf): Define using libm_alias_float.
29702
29703 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29704
29705 * include/math.h (roundeven): Change hidden_proto call to
29706 __roundeven.
29707 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29708 alias.
29709 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29710 (y0): Rename to __y0 and define as weak alias.
29711 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29712 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29713 alias.
29714 (y0f): Rename to __y0f and define as weak alias.
29715 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29716 alias.
29717 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29718 (y1): Rename to __y1 and define as weak alias.
29719 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29720 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29721 alias.
29722 (y1f): Rename to __y1f and define as weak alias.
29723 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29724 alias.
29725 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29726 (yn): Rename to __yn and define as weak alias.
29727 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29728 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29729 alias.
29730 (ynf): Rename to __ynf and define as weak alias.
29731 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29732 (fromfp): Define as weak alias.
29733 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29734 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29735 (fromfpx): Define as weak alias.
29736 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29737 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29738 __getpayload and define as weak alias.
29739 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29740 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29741 __roundeven and define as weak alias.
29742 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29743 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29744 __setpayload.
29745 (setpayload): Define as weak alias.
29746 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29747 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29748 __setpayloadsig.
29749 (setpayloadsig): Define as weak alias.
29750 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29751 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29752 __totalorder and define as weak alias.
29753 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29754 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29755 to __totalordermag and define as weak alias.
29756 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29757 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29758 (ufromfp): Define as weak alias.
29759 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29760 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29761 __ufromfpx.
29762 (ufromfpx): Define as weak alias.
29763 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29764 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29765 Rename to __getpayload and define as weak alias.
29766 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29767 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29768 Rename to __roundeven and define as weak alias.
29769 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29770 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29771 Rename to __totalorder and define as weak alias.
29772 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29773 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29774 (totalordermag): Rename to __totalordermag and define as weak
29775 alias.
29776 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29777 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29778 macro.
29779 (__roundevenl): Likewise.
29780 (__totalorderl): Likewise.
29781 (__totalordermagl): Likewise
29782 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29783 __fromfpf128.
29784 (fromfpf128): Define as weak alias.
29785 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29786 __fromfpxf128.
29787 (fromfpxf128): Define as weak alias.
29788 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29789 __setpayloadf128.
29790 (setpayloadf128): Define as weak alias.
29791 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29792 __setpayloadsigf128.
29793 (setpayloadsigf128): Define as weak alias.
29794 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29795 __ufromfpf128.
29796 (ufromfpf128): Define as weak alias.
29797 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29798 __ufromfpxf128.
29799 (ufromfpxf128): Define as weak alias.
29800 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29801 (fromfpf): Define as weak alias.
29802 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29803 __fromfpxf.
29804 (fromfpxf): Define as weak alias.
29805 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29806 __getpayloadf and define as weak alias.
29807 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29808 __roundevenf and define as weak alias.
29809 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29810 __setpayloadf.
29811 (setpayloadf): Define as weak alias.
29812 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29813 __setpayloadsigf.
29814 (setpayloadsigf): Define as weak alias.
29815 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29816 __totalorderf and define as weak alias.
29817 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29818 Rename to __totalordermagf and define as weak alias.
29819 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29820 __ufromfpf.
29821 (ufromfpf): Define as weak alias.
29822 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29823 __ufromfpxf.
29824 (ufromfpxf): Define as weak alias.
29825 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29826 __fromfpl.
29827 (fromfpl): Define as weak alias.
29828 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29829 __fromfpxl.
29830 (fromfpxl): Define as weak alias.
29831 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29832 to __getpayloadl and define as weak alias.
29833 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29834 __roundevenl and define as weak alias.
29835 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29836 __setpayloadl.
29837 (setpayloadl): Define as weak alias.
29838 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29839 __setpayloadsigl.
29840 (setpayloadsigl): Define as weak alias.
29841 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29842 to __totalorderl and define as weak alias.
29843 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29844 Rename to __totalordermagl and define as weak alias.
29845 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29846 __ufromfpl.
29847 (ufromfpl): Define as weak alias.
29848 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29849 __ufromfpxl.
29850 (ufromfpxl): Define as weak alias.
29851 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29852 __fromfpl.
29853 (fromfpl): Define as weak alias.
29854 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29855 __fromfpxl.
29856 (fromfpxl): Define as weak alias.
29857 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29858 Rename to __getpayloadl and define as weak alias.
29859 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29860 to __roundevenl and define as weak alias. Call __roundeven
29861 instead of roundeven.
29862 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29863 __setpayloadl.
29864 (setpayloadl): Define as weak alias.
29865 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29866 __setpayloadsigl.
29867 (setpayloadsigl): Define as weak alias.
29868 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29869 Rename to __totalorderl and define as weak alias.
29870 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29871 Rename to __totalordermagl and define as weak alias.
29872 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29873 __ufromfpl.
29874 (ufromfpl): Define as weak alias.
29875 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29876 __ufromfpxl.
29877 (ufromfpxl): Define as weak alias.
29878 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29879 __fromfpl.
29880 (fromfpl): Define as weak alias.
29881 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29882 __fromfpxl.
29883 (fromfpxl): Define as weak alias.
29884 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29885 __getpayloadl and define as weak alias.
29886 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29887 __roundevenl and define as weak alias.
29888 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29889 __setpayloadl.
29890 (setpayloadl): Define as weak alias.
29891 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29892 __setpayloadsigl.
29893 (setpayloadsigl): Define as weak alias.
29894 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29895 __totalorderl and define as weak alias.
29896 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29897 Rename to __totalordermagl and define as weak alias.
29898 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29899 __ufromfpl.
29900 (ufromfpl): Define as weak alias.
29901 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29902 __ufromfpxl.
29903 (ufromfpxl): Define as weak alias.
29904
29905 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29906
29907 * benchtests/bench-string.h (realloc_bufs): New function.
29908 (test_init): Call it.
29909 * benchtests/bench-memset-large.c (do_test): Likewise.
29910 * benchtests/bench-memset.c (do_test): Likewise.
29911
29912 * benchtests/bench-memset-large.c: Print output in JSON
29913 format.
29914 * benchtests/bench-memset.c: Likewise.
29915
29916 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29917
29918 [BZ #21084]
29919 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
29920 * iconvdata/Makefile: Add IBM858.
29921 * iconvdata/gconv-modules: Likewise.
29922 * iconvdata/tst-tables.sh: Likewise.
29923 * iconvdata/ibm858.c: New file.
29924 * localedata/charmaps/IBM858: Likewise.
29925
29926 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
29927
29928 [BZ #22023]
29929 * locales/niu_NZ (LC_TIME): copy "niu_NU".
29930 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
29931
29932 2017-09-14 Mike FABIAN <mfabian@redhat.com>
29933
29934 [BZ #22112]
29935 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
29936 and add tel_int_fmt.
29937
29938 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29939
29940 * sysdeps/generic/libm-alias-float128.h: New file.
29941 * sysdeps/generic/math-type-macros-float128.h: Include
29942 <libm-alias-float128.h>.
29943 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
29944
29945 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29946
29947 * sysdeps/generic/libm-alias-ldouble.h: New file.
29948 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
29949 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
29950 * sysdeps/generic/math-type-macros-ldouble.h: Include
29951 <libm-alias-ldouble.h>.
29952 [!declare_mgen_alias] (declare_mgen_alias): Define to use
29953 libm_alias_ldouble.
29954
29955 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
29956
29957 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
29958 * math/w_exp_compat.c: ... here.
29959 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
29960 * math/w_expf_compat.c: ... here.
29961 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
29962 * math/w_expl_compat.c: ... here.
29963 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
29964 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
29965 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
29966 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29967
29968 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29969
29970 * math/w_scalbln_template.c (strong_alias): Do not undefine and
29971 redefine.
29972 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
29973 macro.
29974 (ldexpl): Only define as compat symbol for libc, not libm.
29975 (scalbnl): Define as compat symbol for libc here.
29976 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
29977 define for [IS_IN (libc)].
29978 (__ldexpl_2): Remove alias.
29979 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
29980 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
29981 name in long_double_symbol call.
29982 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
29983 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
29984 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
29985 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
29986 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
29987 Remove macro.
29988 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
29989 Define as compat symbol.
29990
29991 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29992
29993 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
29994 * sysdeps/unix/sysv/linux/alpha/Makefile
29995 [$(subdir) = csu] (sysdep_routines): Remove rule.
29996
29997 2017-09-13 Joseph Myers <joseph@codesourcery.com>
29998
29999 * sysdeps/generic/libm-alias-double.h: New file.
30000 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30001 * sysdeps/generic/math-type-macros-double.h: Include
30002 <libm-alias-double.h>.
30003 [declare_mgen_alias] (declare_mgen_alias): Define to use
30004 libm_alias_double.
30005 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30006 (M_LIBM_NEED_COMPAT): Remove macro.
30007 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30008 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30009 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30010 code.
30011 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30012 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30013 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30014 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30015 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30016 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30017 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30018 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30019 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30020 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30021 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30022 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30023 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30024 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30025 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30026 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30027 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30028 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30029 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30030 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30031 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30032 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30033 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30034 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30035 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30036 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30037 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30038 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30039 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30040 macro.
30041 (declare_mgen_alias): New macro.
30042 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30043 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30045 (M_LIBM_NEED_COMPAT): Remove macro.
30046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30047 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30048 <first-versions.h>.
30049 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30050 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30051
30052 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30053
30054 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30055 (declare_mgen_alias_2): Remove.
30056 * sysdeps/generic/math-type-macros-double.h
30057 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30058 Likewise.
30059 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30060 alias.
30061 (ldexp): Define with declare_mgen_alias.
30062 (scalbn): Likewise.
30063
30064 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30065
30066 * grp/initgroups.c: Include config.h.
30067 (DEFAULT_CONFIG): New macro.
30068 (internal_getgrouplist): Use DEFAULT_CONFIG.
30069 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30070 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30071 (DEFAULT_DEFCONFIG): New macro.
30072 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30073 * nss/grp-lookup.c: Include config.h
30074 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30075 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30076 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30077 * manual/nss.texi: Update default values section.
30078
30079 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30080
30081 [BZ #21967]
30082 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30083 New.
30084 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30085 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30086 Handle MathVec_Prefer_No_AVX512.
30087 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30088 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30089 is set.
30090
30091 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30092
30093 * posix/sched_primax.c (__sched_get_priority_max): Add
30094 libc_hidden_def.
30095 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30096 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30097 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30098 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30099 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30100 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30101 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30102 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30103 Add aliases.
30104
30105 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30106
30107 * sysdeps/generic/libm-alias-float.h: New file.
30108 * sysdeps/generic/math-type-macros-float.h: Include
30109 <libm-alias-float.h>.
30110 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30111
30112 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30113
30114 [BZ #22093]
30115 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30116 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30117 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30118 (HWCAP_IMPORTANT): Likewise.
30119 (HWCAP_X86_64): New enum.
30120 (HWCAP_X86_AVX512_1): Updated.
30121 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30122 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30123 (modules-names): Add x86_64/tst-x86_64mod-1.
30124 (LDFLAGS-tst-x86_64mod-1.so): New.
30125 ($(objpfx)tst-x86_64-1): Likewise.
30126 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30127 (tst-x86_64-1-clean): Likewise.
30128 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30129 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30130
30131 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30132
30133 * po/sv.po: Update translations.
30134 * po/fr.po: Likewise.
30135
30136 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30137
30138 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30139 seconds.
30140 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30141 seconds.
30142 * elf/rtld-Rules: Fix $(error) use.
30143
30144 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30145
30146 [BZ #14925]
30147 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30148 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30149 * localedata/locales/bn_BD: “Bengali” was still used in some
30150 comments. Change it to “Bangla”.
30151
30152 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30153
30154 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30155
30156 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30157
30158 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30159 thunderx2t99p1 to list of cpu names.
30160 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30161 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30162
30163 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30164
30165 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30166 Use strcmp instead of tunable_is_name.
30167
30168 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30169
30170 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30171 (F_GET_RW_HINT): New macro.
30172 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30173 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30174 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30175 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30176 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30177 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30178 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30179 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30180 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30181
30182 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30183 (F_ADD_SEALS): New macro.
30184 [__USE_GNU] (F_GET_SEALS): Likewise.
30185 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30186 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30187 [__USE_GNU] (F_SEAL_GROW): Likewise.
30188 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30189
30190 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30191
30192 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30193 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30194 * posix/glob_internal.h (__glob_pattern_type):
30195 * posix/glob.c (glob):
30196 * posix/glob_pattern_p.c (__glob_pattern_p):
30197 Use them.
30198
30199 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30200 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30201 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30202 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30203 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30205 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30206 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30207 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30208 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30209 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30210 * sysdeps/wordsize-64/glob.c: Likewise.
30211 * sysdeps/wordsize-64/glob64.c: Likewise.
30212 * sysdeps/wordsize-64/globfree.c: Likewise.
30213 * sysdeps/wordsize-64/globfree64.c: Likewise.
30214 * sysdeps/unix/sysv/linux/glob.c: New file.
30215 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30216 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30217 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30218 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30219 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30220 adds !GLOB_NO_OLD_VERSION as an extra condition.
30221 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30222 using relative path instead of absolute one.
30223 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30224 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30225 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30226 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30227 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30228 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30229
30230 [BZ #1062]
30231 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30232 (glob): Use the same scratch buffer for both getlogin_r and
30233 getpwnam_r. Don’t require preallocation of the login name. This
30234 simplifies storage allocation, and corrects the handling of
30235 long login names.
30236
30237 [BZ #1062]
30238 * posix/glob.c (glob): Port recent patches to platforms
30239 lacking getpwnam_r.
30240 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30241 returns an error number rather than setting errno.
30242
30243 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30244 instead of GCC extension.
30245 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30246 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30247 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30248
30249 [BZ #866]
30250 [BZ #1062]
30251 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30252 * posix/bug-glob1.c: Remove file.
30253 * posix/tst-glob_symlinks.c: New file.
30254 * posix/glob.c (__lstat64): New macro.
30255 (is_dir): New function.
30256 (glob, glob_in_dir): Match symlinks even if they are dangling.
30257 (link_stat, link_exists_p): Remove. All uses removed.
30258
30259 [BZ #1062]
30260 [BZ #19971]
30261 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30262 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30263 All uses removed.
30264
30265 [BZ #1062]
30266 CVE-2017-15671
30267 * posix/Makefile (routines): Add globfree, globfree64, and
30268 glob_pattern_p.
30269 * posix/flexmember.h: New file.
30270 * posix/glob_internal.h: Likewise.
30271 * posix/glob_pattern_p.c: Likewise.
30272 * posix/globfree.c: Likewise.
30273 * posix/globfree64.c: Likewise.
30274 * sysdeps/gnu/globfree64.c: Likewise.
30275 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30276 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30277 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30278 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30279 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30280 * sysdeps/wordsize-64/globfree.c: Likewise.
30281 * sysdeps/wordsize-64/globfree64.c: Likewise.
30282 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30283 [NDEBUG): Remove comments.
30284 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30285 (dirent_type): New type. Use uint_fast8_t not
30286 uint8_t, as C99 does not require uint8_t.
30287 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30288 (struct readdir_result): Use dirent_type. Do not define skip_entry
30289 unless it is needed; this saves a byte on platforms lacking d_ino.
30290 (readdir_result_type, readdir_result_skip_entry):
30291 New functions, replacing ...
30292 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30293 these functions, which were removed. This makes the callers
30294 easier to read. All callers changed.
30295 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30296 (size_add_wrapv, glob_use_alloca): New static functions.
30297 (glob, glob_in_dir): Check for size_t overflow in several places,
30298 and fix some size_t checks that were not quite right.
30299 Remove old code using SHELL since Bash no longer
30300 uses this.
30301 (glob, prefix_array): Separate MS code better.
30302 (glob_in_dir): Remove old Amiga and VMS code.
30303 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30304 separate files.
30305 (glob_in_dir): Do not rely on undefined behavior in accessing
30306 struct members beyond their bounds. Use a flexible array member
30307 instead
30308 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30309 0/1. Caller changed.
30310 (glob): Fix memory leaks.
30311 * posix/glob64 (globfree64): Move to separate file.
30312 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30313 (globfree64): Remove hidden alias.
30314 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30315 oldglob.
30316 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30317 separate file.
30318 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30319 define.
30320 Move compat code to separate file.
30321 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30322 separate file.
30323
30324 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30325
30326 * resolv/tst-resolv-qtypes.c (domain): Changed to
30327 "const char domain[] =".
30328
30329 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30330
30331 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30332 version to 3.1.6.
30333
30334 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30335 (TCP_MD5SIG_EXT): Likewise.
30336 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30337 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30338 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30339
30340 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30341
30342 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30343
30344 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30345
30346 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30347
30348 [BZ #22100]
30349 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30350
30351 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30352
30353 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30354 before assuming that the file is empty. Avoid testing buffer content
30355 when nread == 0.
30356
30357 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30358
30359 [BZ #18858]
30360 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30361 Remove define.
30362 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30363 Likewise.
30364 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30365 Likewise.
30366 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30367 Likewise.
30368 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30369 Likewise.
30370 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30371 Likewise.
30372 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30373 Likewise.
30374
30375 2017-09-06 Florian Weimer <fweimer@redhat.com>
30376
30377 * malloc/dynarray_emplace_enlarge.c
30378 (__libc_dynarray_emplace_enlarge): Add missing else.
30379
30380 2017-09-06 Florian Weimer <fweimer@redhat.com>
30381
30382 [BZ #22096]
30383 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30384 case of failure to obtain the global conf object.
30385
30386 2017-09-06 Florian Weimer <fweimer@redhat.com>
30387
30388 [BZ #22095]
30389 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30390 dynarray allocation failure.
30391
30392 2017-09-06 Florian Weimer <fweimer@redhat.com>
30393
30394 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30395 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30396 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30397 New functions.
30398 (response): Call them. Add 'p', '6' flag processing.
30399 (test_reverse): New function.
30400 (test_get2_any): Call it.
30401 (test_no_inet6): Add 'p' test.
30402 (test_inet6): Likewise.
30403
30404 2017-09-06 Florian Weimer <fweimer@redhat.com>
30405
30406 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30407 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30408 the QNAME.
30409 (test_gai): Adjust query names. Add additional tests.
30410 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30411 test_get2. Adjust query names. Add additional tests.
30412 (test_no_inet6): New function, extracted from threadfunc.
30413 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30414 Add additional tests.
30415
30416 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30417
30418 [BZ #22070]
30419 * localedata/unicode-gen/utf8_gen.py: Set the width for
30420 characters with Prepended_Concatenation_Mark property to 1
30421 * localedata/charmaps/UTF-8: Updated using the improved script.
30422
30423 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30424
30425 [BZ #21750]
30426 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30427 use the range notation for all ranges of neighbouring characters
30428 with the same width.
30429
30430 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30431
30432 * sysdeps/generic/math-type-macros-double.h: Include
30433 <math-svid-compat.h>.
30434 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30435 * sysdeps/generic/math-type-macros-float.h: Include
30436 <math-svid-compat.h>.
30437 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30438 * sysdeps/generic/math-type-macros-ldouble.h: Include
30439 <math-svid-compat.h>.
30440 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30441 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30442 condition.
30443 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30444 * math/w_acosf_compat.c: Likewise.
30445 * math/w_acosh_compat.c: Likewise.
30446 * math/w_acoshf_compat.c: Likewise.
30447 * math/w_acoshl_compat.c: Likewise.
30448 * math/w_acosl_compat.c: Likewise.
30449 * math/w_asin_compat.c: Likewise.
30450 * math/w_asinf_compat.c: Likewise.
30451 * math/w_asinl_compat.c: Likewise.
30452 * math/w_atan2_compat.c: Likewise.
30453 * math/w_atan2f_compat.c: Likewise.
30454 * math/w_atan2l_compat.c: Likewise.
30455 * math/w_atanh_compat.c: Likewise.
30456 * math/w_atanhf_compat.c: Likewise.
30457 * math/w_atanhl_compat.c: Likewise.
30458 * math/w_cosh_compat.c: Likewise.
30459 * math/w_coshf_compat.c: Likewise.
30460 * math/w_coshl_compat.c: Likewise.
30461 * math/w_exp10_compat.c: Likewise.
30462 * math/w_exp10f_compat.c: Likewise.
30463 * math/w_exp10l_compat.c: Likewise.
30464 * math/w_exp2_compat.c: Likewise.
30465 * math/w_exp2f_compat.c: Likewise.
30466 * math/w_exp2l_compat.c: Likewise.
30467 * math/w_fmod_compat.c: Likewise.
30468 * math/w_fmodf_compat.c: Likewise.
30469 * math/w_fmodl_compat.c: Likewise.
30470 * math/w_hypot_compat.c: Likewise.
30471 * math/w_hypotf_compat.c: Likewise.
30472 * math/w_hypotl_compat.c: Likewise.
30473 * math/w_j0_compat.c: Likewise.
30474 * math/w_j0f_compat.c: Likewise.
30475 * math/w_j0l_compat.c: Likewise.
30476 * math/w_j1_compat.c: Likewise.
30477 * math/w_j1f_compat.c: Likewise.
30478 * math/w_j1l_compat.c: Likewise.
30479 * math/w_jn_compat.c: Likewise.
30480 * math/w_jnf_compat.c: Likewise.
30481 * math/w_jnl_compat.c: Likewise.
30482 * math/w_lgamma_r_compat.c: Likewise.
30483 * math/w_lgammaf_r_compat.c: Likewise.
30484 * math/w_lgammal_r_compat.c: Likewise.
30485 * math/w_log10_compat.c: Likewise.
30486 * math/w_log10f_compat.c: Likewise.
30487 * math/w_log10l_compat.c: Likewise.
30488 * math/w_log2_compat.c: Likewise.
30489 * math/w_log2f_compat.c: Likewise.
30490 * math/w_log2l_compat.c: Likewise.
30491 * math/w_log_compat.c: Likewise.
30492 * math/w_logf_compat.c: Likewise.
30493 * math/w_logl_compat.c: Likewise.
30494 * math/w_pow_compat.c: Likewise.
30495 * math/w_powf_compat.c: Likewise.
30496 * math/w_powl_compat.c: Likewise.
30497 * math/w_remainder_compat.c: Likewise.
30498 * math/w_remainderf_compat.c: Likewise.
30499 * math/w_remainderl_compat.c: Likewise.
30500 * math/w_sinh_compat.c: Likewise.
30501 * math/w_sinhf_compat.c: Likewise.
30502 * math/w_sinhl_compat.c: Likewise.
30503 * math/w_sqrt_compat.c: Likewise.
30504 * math/w_sqrtf_compat.c: Likewise.
30505 * math/w_sqrtl_compat.c: Likewise.
30506 * math/w_tgamma_compat.c: Likewise.
30507 * math/w_tgammaf_compat.c: Likewise.
30508 * math/w_tgammal_compat.c: Likewise.
30509 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30510 [LIBM_SVID_COMPAT].
30511 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30512 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30513 [LIBM_SVID_COMPAT].
30514 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30515 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30516 [LIBM_SVID_COMPAT].
30517 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30518 * sysdeps/i386/fpu/w_sqrt.c: New file.
30519 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30520 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30521 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30522 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30523 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30524 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30525 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30526 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30527 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30528 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30529 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30530 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30531 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30532 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30533 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30534 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30535 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30536 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30537 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30538 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30539 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30540 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30541 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30542 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30543 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30544 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30545 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30546 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30547 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30548 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30549 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30550 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30551 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30552 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30553 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30554 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30555 * sysdeps/ia64/fpu/w_log.c: Likewise.
30556 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30557 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30558 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30559 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30560 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30561 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30562 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30563 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30564 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30565 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30566 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30567 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30568 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30569 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30570 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30571 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30572 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30573 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30574 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30575 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30576 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30577 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30578 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30579 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30580 [LIBM_SVID_COMPAT].
30581 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30582 * sysdeps/ieee754/k_standard.c: Likewise.
30583 * sysdeps/ieee754/k_standardf.c: Likewise.
30584 * sysdeps/ieee754/k_standardl.c: Likewise.
30585 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30586 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30587 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30588 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30589 long_double_symbol call on [LIBM_SVID_COMPAT].
30590 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30591 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30592 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30593 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30594 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30595 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30596 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30597 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30598 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30599 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30600 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30601 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30602 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30603 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30604 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30605 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30606 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30607 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30608 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30609 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30610 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30611 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30612
30613 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30614
30615 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30616 * malloc/tst-mallocstate.c: Convert from test-skeleton
30617 to test-driver. Ifdef code using TEST_COMPAT macro.
30618 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30619 * math/test-matherr.c: Likewise.
30620
30621 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30622
30623 [BZ #22086]
30624 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30625 comparing word with byte-swapped constant.
30626
30627 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30628
30629 [BZ #20498]
30630 * locale/iso-639.def: add Miskito.
30631 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30632 * localedata/locales/miq_NI: New file.
30633
30634 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30635
30636 [BZ #18822]
30637 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30638 (__mkdir): Likewise.
30639 * io/chmod.c (__chmod): Add libc_hidden_def.
30640 * io/mkdir.c (__mkdir): Likewise.
30641 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30642 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30643 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30644 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30645
30646 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30647
30648 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30649 version to 4.13.
30650
30651 [BZ #22082]
30652 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30653 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30654
30655 2017-09-04 Florian Weimer <fweimer@redhat.com>
30656
30657 * math/math.h: Issue warning if log is defined.
30658
30659 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30660
30661 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30662 kernel version to 4.13.
30663
30664 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30665
30666 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30667 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30668 parameter.
30669 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30670 just <bits/types.h>.
30671 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30672 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30673 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30674 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30675 * misc/preadv2.c: Include <errno.h>.
30676 * misc/preadv64v2.c: Include <errno.h>.
30677 * misc/pwritev2.c: Include <errno.h>.
30678 * misc/pwritev64v2.c: Include <errno.h>.
30679 * sysdeps/posix/preadv2.c: Include <errno.h>.
30680 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30681 Fix <unistd.h> inclusion.
30682 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30683 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30684 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30685 __strtoul_internal): New functions.
30686 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30687 * sysdeps/posix/system.c: Include <sigsetops.h>.
30688 * sysdeps/mach/hurd/i386/Makefile
30689 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30690 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30691 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30692 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30693 __feraiseexcept_renamed to feraiseexcept instead of
30694 __GI_feraiseexcept.
30695 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30696 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30697 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30698 RWF_NOWAIT): Define to 0 if undefined already.
30699 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30700 boils down to 0.
30701 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30702 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30703
30704 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30705
30706 * manual/math.texi (pow10): Do not document.
30707 (pow10f): Likewise.
30708 (pow10l): Likewise.
30709 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30710 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30711 * math/libm-test-exp10.inc (pow10_test): Remove.
30712 (do_test): Do not call pow10.
30713 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30714 [NO_LONG_DOUBLE] (pow10l): Likewise.
30715 * math/w_exp10f_compat.c (pow10f): Likewise.
30716 * math/w_exp10l_compat.c (pow10l): Likewise.
30717 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30718 (pow10): Make into compat symbol.
30719 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30720 (pow10f): Make into compat symbol.
30721 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30722 (pow10l): Make into compat symbol.
30723 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30724 pow10.
30725 (CFLAGS-nldbl-pow10.c): Remove variable..
30726 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30727 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30728 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30729 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30730 Undefine and redefine.
30731 (pow10l): Make into compat symbol.
30732 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30733 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30734 * sysdeps/arm/libm-test-ulps: Likewise.
30735 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30736 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30737 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30738 * sysdeps/microblaze/libm-test-ulps: Likewise.
30739 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30740 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30741 * sysdeps/nios2/libm-test-ulps: Likewise.
30742 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30743 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30744 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30745 * sysdeps/sh/libm-test-ulps: Likewise.
30746 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30747 * sysdeps/tile/libm-test-ulps: Likewise.
30748 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30749
30750 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30751
30752 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30753
30754 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30755
30756 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30757 "../ChangeLog.old/ChangeLog.8".
30758 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30759 "../ChangeLog.old/ChangeLog.14".
30760
30761 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30762
30763 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30764 Threads Library.
30765
30766 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30767
30768 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30769
30770 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30771
30772 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30773 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30774
30775 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30776
30777 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30778 32 atexit handlers.
30779
30780 2017-09-01 Zack Weinberg <zackw@panix.com>
30781
30782 * math/math.h (HUGE_VAL): Improve commentary.
30783
30784 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30785 Andreas Schwab <schwab@suse.de>
30786
30787 [BZ #21530]
30788 * include/stdio.h (__gen_tempfd): New function.
30789 * stdio-common/Makefile (routines): Add gentempfd.
30790 * stdio-common/gentempfd.c: New file.
30791 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30792 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30793 unnamed file first.
30794
30795 2017-09-01 Florian Weimer <fweimer@redhat.com>
30796
30797 [BZ #21915]
30798 [BZ #21922]
30799 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30800 result to determine success or failure, not the errno value.
30801 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30802 (tst-nss-files-hosts-erange): Link with -ldl.
30803 * nss/tst-nss-files-hosts-erange.c: New file.
30804 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30805 (do_test): Add NO_DATA tests.
30806 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30807 (do_test): Call it.
30808
30809 2017-09-01 Florian Weimer <fweimer@redhat.com>
30810
30811 [BZ #21922]
30812 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30813 coming from gethostbyname2_r.
30814
30815 2017-09-01 Florian Weimer <fweimer@redhat.com>
30816
30817 * support/namespace.h (struct support_chroot_configuration): Add
30818 hosts, host_conf.
30819 (struct support_chroot): Add path_hosts, path_host_conf.
30820 * support/support_chroot.c (write_file): New function.
30821 (support_chroot_create): Call it to process /etc/resolv.conf,
30822 /etc/hosts, /etc/host.conf.
30823 (support_chroot_free): Update.
30824
30825 2017-09-01 Florian Weimer <fweimer@redhat.com>
30826
30827 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30828 status indicates it is set.
30829
30830 2017-09-01 Florian Weimer <fweimer@redhat.com>
30831
30832 [BZ #20532]
30833 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30834 function lookup failures more reliable.
30835
30836 2017-09-01 Florian Weimer <fweimer@redhat.com>
30837
30838 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30839 (getcanonname): Likewise.
30840 (gaih_inet): Likewise.
30841
30842 2017-09-01 Florian Weimer <fweimer@redhat.com>
30843
30844 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30845 (getcanonname): Likewise.
30846 (gaih_inet): Likewise.
30847
30848 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30849 Richard Henderson <rth@twiddle.net>
30850
30851 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30852 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30853 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30854 (IREG_SIZE, OREG_SIZE): New macros.
30855 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30856 (IREG_SIZE, OREG_SIZE): New macros.
30857 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30858 (IREG_SIZE): New macro.
30859 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30860 (IREG_SIZE): New macro.
30861 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30862 New includes.
30863 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30864 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30865 (__CONCATX): Handle exceptions correctly on large values that may
30866 set FE_INVALID.
30867 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30868 Initialize if not already set.
30869 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30870
30871 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30872
30873 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30874 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30875 Likewise.
30876 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30877 Likewise.
30878 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30879 Likewise.
30880 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30881 Likewise.
30882 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30883 Likewise.
30884 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30885 Likewise.
30886 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30887 Likewise.
30888 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30889 (NO_CANCELLATION): Likewise.
30890 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30891 Likewise.
30892 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30893 Likewise.
30894 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30895 Likewise.
30896 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30897 (NO_CANCELLATION): Likewise.
30898 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30899 (NO_CANCELLATION): Likewise.
30900 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30901 Likewise
30902 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30903 Likewise.
30904 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30905 Likewise.
30906 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30907 Likewise.
30908 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
30909 hidden prototype.
30910 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
30911 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
30912
30913 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30914
30915 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
30916 in resolver call.
30917
30918 2017-08-31 Florian Weimer <fweimer@redhat.com>
30919
30920 * include/libc-symbols.h (internal_function): Remove.
30921
30922 2017-08-31 Florian Weimer <fweimer@redhat.com>
30923
30924 * stdlib/fmtmsg.c (internal_addseverity): Remove
30925 internal_function.
30926
30927 2017-08-31 Florian Weimer <fweimer@redhat.com>
30928
30929 * stdio-common/printf_fp.c (group_number): Remove
30930 internal_function.
30931 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
30932
30933 2017-08-31 Florian Weimer <fweimer@redhat.com>
30934
30935 * posix/fnmatch.c (internal_function): Remove definition.
30936 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
30937 * posix/regcomp.c (peek_token, init_word_char)
30938 (duplicate_node_closure, fetch_token, peek_token)
30939 (peek_token_bracket, build_range_exp, build_collating_symbol):
30940 Likewise.
30941 * posix/regex_internal.c (re_string_construct_common)
30942 (create_ci_newstate, create_cd_newstate, re_string_allocate)
30943 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
30944 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
30945 (re_string_translate_buffer, re_string_reconstruct)
30946 (re_string_peek_byte_case, re_string_fetch_byte_case)
30947 (re_string_destruct, re_string_context_at, re_node_set_alloc)
30948 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
30949 (re_node_set_add_intersect, re_node_set_init_union)
30950 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
30951 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
30952 (re_dfa_add_node, calc_state_hash, re_acquire_state)
30953 (re_acquire_state_context): Likewise.
30954 * posix/regex_internal.h (internal_function): Remove definition.
30955 (re_string_realloc_buffers, build_wcs_buffer)
30956 (build_wcs_upper_buffer, build_upper_buffer)
30957 (re_string_translate_buffer, re_string_context_at)
30958 (re_string_char_size_at, re_string_wchar_at)
30959 (re_string_elem_size_at): Likewise.
30960 * posix/regexec.c (match_ctx_init, match_ctx_clean)
30961 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
30962 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
30963 (re_search_internal, re_search_2_stub, re_search_stub)
30964 (re_copy_regs, prune_impossible_nodes, check_matching)
30965 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
30966 (free_fail_stack_return, sift_states_iter_mb)
30967 (sift_states_backward, build_sifted_states)
30968 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
30969 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
30970 (check_subexp_limits, sift_states_bkref, merge_state_array)
30971 (find_recover_state, transit_state, merge_state_with_log)
30972 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
30973 (transit_state_mb, transit_state_bkref, get_subexp)
30974 (get_subexp_sub, find_subexp_node, check_arrival)
30975 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
30976 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
30977 (check_node_accept_bytes, find_collation_sequence_value)
30978 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
30979 (acquire_init_state_context, check_halt_node_context)
30980 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
30981 (sub_epsilon_src_nodes): Likewise.
30982 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
30983 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
30984 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
30985 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
30986 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
30987 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
30988 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
30989 * sysdeps/posix/ttyname.c (getttyname): Likewise.
30990 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
30991 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
30992 (PREADV): Likewise.
30993 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
30994 (PREADV): Likewise.
30995 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
30996 (PWRITEV): Likewise.
30997 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
30998 (PWRITEV): Likewise.
30999 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31000 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31001
31002 2017-08-31 Florian Weimer <fweimer@redhat.com>
31003
31004 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31005 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31006 Remove internal_function.
31007 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31008 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31009 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31010 (__deallocate_stack, __libc_pthread_init)
31011 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31012 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31013 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31014 Likewise.
31015 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31016 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31017 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31018 Likewise.
31019 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31020 (__pthread_mutex_unlock_usercnt): Likewise.
31021
31022 2017-08-31 Florian Weimer <fweimer@redhat.com>
31023
31024 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31025 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31026 (fts_safe_changedir): Remove internal_function.
31027 * io/ftw.c (internal_function): Remove definition.
31028 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31029
31030 2017-08-31 Florian Weimer <fweimer@redhat.com>
31031
31032 * inet/deadline.c (__deadline_current_time)
31033 (__deadline_from_timeval, __deadline_to_ms): Remove
31034 internal_function.
31035 * inet/getnameinfo.c (nrl_domainname): Likewise.
31036 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31037 * inet/inet6_option.c (add_pad): Likewise.
31038 * inet/net-internal.h (__deadline_current_time)
31039 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31040 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31041 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31042 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31043
31044 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31045
31046 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31047 include <bits/nan.h>.
31048 * math/Makefile (headers): Remove bits/nan.h.
31049 * bits/nan.h: Remove.
31050 * sysdeps/ieee754/bits/nan.h: Likewise.
31051 * sysdeps/mips/bits/nan.h: Likewise.
31052
31053 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31054 not include <bits/inf.h>.
31055 * math/Makefile (headers): Remove bits/inf.h.
31056 * bits/inf.h: Remove.
31057 * sysdeps/ieee754/bits/inf.h: Likewise.
31058
31059 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31060 bits/huge_vall.h or bits/huge_val_flt128.h.
31061 (HUGE_VAL): Define directly here.
31062 [__USE_ISOC99] (HUGE_VALF): Likewise.
31063 [__USE_ISOC99] (HUGE_VALL): Likewise.
31064 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31065 (HUGE_VAL_F128): Likewise.
31066 * math/Makefile (headers): Remove bits/huge_val.h,
31067 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31068 * bits/huge_val.h: Remove.
31069 * bits/huge_val_flt128.h: Likewise.
31070 * bits/huge_valf.h: Likewise.
31071 * bits/huge_vall.h: Likewise.
31072 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31073 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31074 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31075 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31076 * sysdeps/sh/bits/huge_val.h: Likewise.
31077 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31078 * sysdeps/x86/bits/huge_vall.h: Likewise.
31079
31080 2017-08-31 Florian Weimer <fweimer@redhat.com>
31081
31082 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31083 internal_function.
31084 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31085 Likewise.
31086 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31087 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31088 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31089 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31090 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31091 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31092 * elf/dl-libc.c (dlerror_run): Likewise.
31093 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31094 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31095 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31096 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31097 Likewise.
31098 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31099 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31100 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31101 * elf/dl-profile.c (_dl_start_profile): Likewise.
31102 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31103 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31104 Likewise.
31105 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31106 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31107 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31108 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31109 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31110 (_dl_allocate_tls_storage): Likewise.
31111 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31112 (_dl_check_all_versions): Likewise.
31113 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31114 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31115 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31116 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31117 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31118 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31119 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31120 internal_function from __dl_start.
31121 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31122 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31123 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31124 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31125 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31126 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31127 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31128 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31129 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31130 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31131 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31132 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31133 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31134 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31135 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31136 Likewise.
31137 (struct rtld_global_ro): Remove internal_function from the
31138 _dl_lookup_symbol_x member.
31139 (_dl_symbol_value): Remove. No longer defined anywhere.
31140 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31141 internal_function.
31142 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31143 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31144 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31145 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31146 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31147 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31148 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31149 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31150 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31151 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31152 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31153 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31154
31155 2017-08-31 Florian Weimer <fweimer@redhat.com>
31156
31157 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31158 Remove internal_function.
31159 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31160 Likewise.
31161 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31162 Likewise.
31163
31164 2017-08-31 Florian Weimer <fweimer@redhat.com>
31165
31166 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31167 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31168 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31169
31170 2017-08-31 Florian Weimer <fweimer@redhat.com>
31171
31172 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31173 (__gai_enqueue_request): Remove internal_function.
31174 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31175 (__gai_remove_request, __gai_notify, __gai_notify_only)
31176 (__gai_sigqueue): Likewise.
31177 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31178 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31179 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31180 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31181 Likewise.
31182
31183 2017-08-31 Florian Weimer <fweimer@redhat.com>
31184
31185 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31186 * include/dirent.h (__opendirat, __getdents, __getdents64)
31187 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31188 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31189 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31190 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31191 Likewise.
31192 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31193
31194 2017-08-31 Florian Weimer <fweimer@redhat.com>
31195
31196 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31197 internal_function.
31198 (GETCWD_RETURN_TYPE): Likewise.
31199
31200 2017-08-31 Florian Weimer <fweimer@redhat.com>
31201
31202 * include/time.h (__tz_compute, __strptime_internal): Remove
31203 internal_function.
31204 * time/strptime_l.c (__strptime_internal): Likewise.
31205 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31206
31207 2017-08-31 Florian Weimer <fweimer@redhat.com>
31208
31209 * iconv/gconv.c (__gconv): Remove internal_function.
31210 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31211 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31212 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31213 (__gconv_release_cache): Likewise.
31214 * iconv/gconv_close.c (__gconv_close): Likewise.
31215 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31216 (read_conf_file, __gconv_get_path): Likewise.
31217 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31218 (__gconv_release_step, gen_steps, increment_counter)
31219 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31220 (__gconv_close_transform, free_modules_db): Likewise.
31221 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31222 Likewise.
31223 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31224 (__gconv_find_transform, __gconv_lookup_cache)
31225 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31226 (__gconv_close_transform, __gconv_release_cache)
31227 (__gconv_loaded_object, __gconv_release_shlib)
31228 (__gconv_compare_alias): Likewise.
31229 * iconv/gconv_open.c (__gconv_open): Likewise.
31230 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31231 * iconv/iconvconfig.c (add_module): Likewise.
31232 * intl/dcigettext.c (plural_lookup, guess_category_value)
31233 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31234 * intl/eval-plural.h (plural_eval): Likewise.
31235 * intl/finddomain.c (_nl_find_domain): Likewise.
31236 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31237 (_nl_load_domain, _nl_find_msg): Likewise.
31238 (internal_function): Remove definition.
31239 * intl/loadinfo.h (internal_function): Likewise.
31240 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31241 internal_function.
31242 * intl/localealias.c (internal_function): Remove definition.
31243 (read_alias_file): Remove internal_function.
31244 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31245 * intl/plural-exp.h (internal_function): Remove definition.
31246 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31247 internal_function.
31248 * intl/plural.c: Regenerate.
31249 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31250 * locale/coll-lookup.c (__collidx_table_lookup)
31251 (__collseq_table_lookup): Likewise.
31252 * locale/coll-lookup.h (__collidx_table_lookup)
31253 (__collseq_table_lookup): Likewise.
31254 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31255 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31256 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31257 (_nl_unload_locale): Likewise.
31258 * locale/localeinfo.h (struct __locale_data): Remove
31259 internal_function from cleanup member.
31260 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31261 (_nl_remove_locale, _nl_load_locale_from_archive)
31262 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31263 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31264 (_nl_cleanup_time): Remove internal_function.
31265 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31266 (_nl_parse_alt_digit): Likewise.
31267 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31268 (_nl_select_era_entry): Likewise.
31269 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31270 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31271 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31272 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31273 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31274
31275 2017-08-31 Florian Weimer <fweimer@redhat.com>
31276
31277 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31278 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31279 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31280 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31281 Likewise.
31282 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31283 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31284 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31285 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31286 Likewise.
31287 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31288
31289 2017-08-31 Florian Weimer <fweimer@redhat.com>
31290
31291 * misc/getttyent.c (skip, value): Remove internal_function.
31292 * misc/syslog.c (openlog_internal): Likewise.
31293 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31294
31295 2017-08-31 Florian Weimer <fweimer@redhat.com>
31296
31297 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31298 (__nss_rewrite_field): Remove internal_function.
31299 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31300 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31301 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31302 * nss/nsswitch.c (nss_parse_file, nss_getline)
31303 (nss_parse_service_list, nss_new_service): Likewise.
31304 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31305 * nss/valid_field.c (__nss_valid_field): Likewise.
31306 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31307
31308 2017-08-31 Florian Weimer <fweimer@redhat.com>
31309
31310 * malloc/arena.c (__malloc_fork_lock_parent)
31311 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31312 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31313 internal_function from defintions.
31314 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31315 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31316 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31317 internal_function from declarations.
31318 * malloc/malloc.c (internal_function): Do not define.
31319 (mem2mem_check): Remove internal_function from declaration.
31320 (munmap_chunk, mremap_chunk): Remove internal_function.
31321 * malloc/mtrace.c (tr_where): Likewise.
31322
31323 2017-08-31 Florian Weimer <fweimer@redhat.com>
31324
31325 * include/rpc/pmap_clnt.h (__get_socket): Remove
31326 internal_function.
31327 * sunrpc/auth_des.c (synchronize): Likewise.
31328 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31329 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31330 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31331 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31332 (key_call): Likewise.
31333 * sunrpc/pm_getport.c (__get_socket): Likewise.
31334 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31335 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31336 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31337 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31338 (invalidate): Likewise.
31339 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31340 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31341 (set_input_fragment, get_input_bytes): Likewise.
31342
31343 2017-08-31 Florian Weimer <fweimer@redhat.com>
31344
31345 * malloc/malloc.c (_int_free): Remove locked variable and related
31346 asserts.
31347
31348 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31349
31350 [BZ #22051]
31351 * Makerules (build-module-helper-objlist): Filter out
31352 $(elf-objpfx)sofini.os.
31353 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31354 needed.
31355
31356 2017-08-31 Florian Weimer <fweimer@redhat.com>
31357
31358 * libio/fcloseall.c: Assume weak_alias is defined.
31359 * libio/feof.c: Likewise.
31360 * libio/fileno.c: Likewise.
31361 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31362 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31363 definitions.
31364 (_IO_file_open): Call __open directly.
31365 (_IO_new_file_sync): Assume ESPIPE is defined.
31366 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31367 (_IO_new_file_write): Call __write directly.
31368 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31369 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31370 * libio/genops.c: Assume _LIBC is defined.
31371 (save_for_backup): Remove internal_function.
31372 * libio/getc.c: Assume weak_alias is defined.
31373 * libio/getwc.c: Likewise.
31374 * libio/iofclose.c: Assume _LIBC is defined.
31375 * libio/iofdopen.c: Likewise.
31376 (_IO_fcntl): Remove macro definition.
31377 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31378 Call __fcntl directly.
31379 * libio/iofflush.c: Assume weak_alias is defined.
31380 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31381 defined.
31382 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31383 * libio/iofgets.c: Likewise.
31384 * libio/iofopen.c: Assume _LIBC is defined.
31385 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31386 * libio/iofputs.c: Assume weak_alias is defined.
31387 * libio/iofread.c: Likewise.
31388 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31389 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31390 * libio/ioftell.c: Assume weak_alias is defined.
31391 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31392 * libio/iofwide.c: Assume _LIBC is defined.
31393 (_IO_fwide): Drop SHARED conditional because it is implied by
31394 SHLIB_COMPAT.
31395 * libio/iofwrite.c: Assume weak_alias is defined.
31396 * libio/iogetdelim.c: Likewise.
31397 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31398 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31399 (_IO_getwline): Call __wmemcpy directly.
31400 * libio/iopopen.c: Assume _LIBC is defined.
31401 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31402 (_IO_close): Remove macro definitions.
31403 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31404 _exit directly.
31405 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31406 directly.
31407 * libio/ioputs.c: Assume weak_alias is defined.
31408 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31409 * libio/iosetbuffer.c: Assume weak_alias is defined.
31410 * libio/iosetvbuf.c: Likewise.
31411 * libio/ioungetc.c: Likewise.
31412 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31413 libc_hidden_def, libc_hidden_weak, NULL are defined.
31414 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31415 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31416 defined.
31417 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31418 definitions.
31419 (_IO_old_file_init_internal): Drop SHARED conditional because it
31420 is implied by SHLIB_COMPAT.
31421 (_IO_old_file_fopen): Call __open directly.
31422 (_IO_old_file_sync): Assume ESPIPE is defined.
31423 (_IO_old_file_write): Call __write directly.
31424 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31425 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31426 Call __fcntl directly.
31427 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31428 (_IO_old_fgetpos): Assume EIO is defined.
31429 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31430 (_IO_old_fgetpos64): Assume EIO is defined.
31431 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31432 (_IO_old_fsetpos): Assume EIO is defined.
31433 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31434 (_IO_old_fsetpos64): Assume EIO is defined.
31435 * libio/oldiopopen.c: Assume _LIBC is defined.
31436 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31437 (_IO_close): Remove macro definitions.
31438 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31439 directly.
31440 (_IO_old_proc_close): Call __close, __waitpid directly.
31441 * libio/put.c: Assume weak_alias is defined.
31442 * libio/stdfiles.c: Assume _LIBC is defined.
31443 * libio/stdio.c: Likewise.
31444 * libio/wfileops.c: Likewise.
31445 (_IO_wfile_sync): Assume ESPIPE is defined.
31446 * libio/wgenops.c: Assume _LIBC is defined.
31447 (save_for_wbackup): Remove internal_function.
31448
31449 2017-08-31 Florian Weimer <fweimer@redhat.com>
31450
31451 * malloc/malloc.c (top_check): Change return type to void. Remove
31452 internal_function.
31453 * malloc/hooks.c (top_check): Likewise.
31454 (malloc_check, realloc_check, memalign_check): Adjust.
31455
31456 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31457
31458 [BZ #21457]
31459 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31460 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31461 sigcontext and namespace requirements.
31462 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31463 * sysdeps/m68k/sys/ucontext.h: Likewise.
31464 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31465 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31466 <bits/sigcontext.h>.
31467 (__ctx): Define earlier.
31468 (mcontext_t): Define structure contents rather than using struct
31469 sigcontext.
31470 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31471 __glibc_reserved1 instead of __reserved.
31472 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31473 <bits/sigcontext.h>.
31474 (__ctx): Define earlier.
31475 (mcontext_t): Define structure contents rather than using struct
31476 sigcontext.
31477 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31478 mcontext_t instead of struct sigcontext.
31479 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31480 <bits/sigcontext.h>.
31481 (__ctx): Define earlier.
31482 (mcontext_t): Define structure contents rather than using struct
31483 sigcontext.
31484 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31485 <bits/sigcontext.h>.
31486 (__ctx): Define earlier.
31487 (mcontext_t): Define structure contents rather than using struct
31488 sigcontext.
31489 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31490 mcontext_t instead of struct sigcontext.
31491 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31492 mcontext_t instead of struct sigcontext.
31493 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31494 <bits/sigcontext.h>.
31495 (__ctx): New macro.
31496 (struct __ia64_fpreg_mcontext): New type.
31497 (mcontext_t): Define structure contents rather than using struct
31498 sigcontext.
31499 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31500 (uc_sigmask): Define using __ctx.
31501 (uc_stack): Likewise.
31502 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31503 <bits/sigcontext.h>.
31504 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31505 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31506 <bits/sigcontext.h>.
31507 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31508 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31509 <bits/sigcontext.h>.
31510 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31511 <bits/sigcontext.h>.
31512 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31513 <bits/sigcontext.h>.
31514 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31515 <bits/sigcontext.h>.
31516 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31517 <bits/sigcontext.h>.
31518 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31519 <bits/sigcontext.h>.
31520 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31521 <bits/sigcontext.h>.
31522 (__ctx): Define earlier.
31523 (mcontext_t): Define structure contents rather than using struct
31524 sigcontext.
31525 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31526 <bits/sigcontext.h>. Include <bits/types.h>.
31527 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31528 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31529 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31530 (test-xfail-UNIX98/signal.h/conform): Likewise.
31531 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31532 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31533 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31534 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31535 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31536 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31537 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31538 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31539 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31540
31541 2017-08-30 Florian Weimer <fweimer@redhat.com>
31542
31543 * malloc/dynarray_emplace_enlarge.c
31544 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31545 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31546 * malloc/tst-dynarray.c (test_long_overflow): New function.
31547 (do_test): Call it.
31548
31549 2017-08-30 Florian Weimer <fweimer@redhat.com>
31550
31551 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31552 (set_arena_corrupt): Remove definitions.
31553 (mtrim): Do not check for corrupt arena.
31554 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31555 Likewise.
31556
31557 2017-08-30 Florian Weimer <fweimer@redhat.com>
31558
31559 [BZ #21754]
31560 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31561 check_action.
31562 (ptmalloc_init): Do not set or use check_action.
31563 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31564 call to malloc_printerr. Remove return statement.
31565 (free_check): Likewise. Remove arena unlock.
31566 (top_check): Update comment. Adjust call to malloc_printerr.
31567 Remove heap repair code.
31568 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31569 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31570 (sysmalloc): Adjust call to malloc_printerr.
31571 (munmap_chunk, __libc_realloc): Likewise. Remove return
31572 statement.
31573 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31574 Remove errout label and corresponding gotos.
31575 (_int_free): Likewise. Remove arena unlock.
31576 (do_set_mallopt_check): Do not set check_action.
31577 (malloc_printerr): Adjust parameter list. Do not mark arena as
31578 corrupt.
31579 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31580 comment.
31581 * manual/probes.texi (Memory Allocation Probes): Remove
31582 memory_mallopt_check_action.
31583
31584 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31585
31586 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31587 Use pointer to uint64_t instead of long int for sp.
31588
31589 2017-08-30 Florian Weimer <fweimer@redhat.com>
31590
31591 [BZ #21754]
31592 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31593 without printing a backtrace. Do not leak any information in the
31594 error message.
31595 * manual/memory.texi (Heap Consistency Checking): Update.
31596 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31597
31598 2017-08-30 Florian Weimer <fweimer@redhat.com>
31599
31600 Do not scale NPTL tests with available number of CPUs.
31601 * nptl/tst-cond16.c (count): Set to constant value of 8.
31602 * nptl/tst-cond18.c (count): Likewise.
31603
31604 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31605
31606 [BZ #22035]
31607 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31608 Define to take a second argument that is a macro that
31609 concatentates a suffix, not the suffix itself.
31610 (__CONCAT_d): New macro.
31611 (__CONCAT_f): Likewise.
31612 (__CONCAT_l): Likewise.
31613
31614 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31615
31616 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31617 by child.
31618
31619 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31620 Aurelien Jarno <aurelien@aurel32.net>
31621 Maciej W. Rozycki <macro@imgtec.com>
31622
31623 [BZ #21956]
31624 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31625 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31626 `mips16-syscall6' and `mips16-syscall7'.
31627 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31628 (CFLAGS-mips16-syscall7.c): Remove.
31629 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31630 Remove `__mips16_syscall5', `__mips16_syscall6' and
31631 `__mips16_syscall7'.
31632 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31633 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31634 `__mips_syscall_return'.
31635 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31636 (__mips16_syscall1): Likewise.
31637 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31638 (__mips16_syscall2): Likewise.
31639 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31640 (__mips16_syscall3): Likewise.
31641 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31642 (__mips16_syscall4): Likewise.
31643 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31644 Remove.
31645 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31646 Remove.
31647 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31648 Remove.
31649 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31650 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31651 `__mips16_syscall5'. Remove prototype.
31652 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31653 `__mips16_syscall6'. Remove prototype.
31654 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31655 `__mips16_syscall7'. Remove prototype.
31656 (__nomips16, __mips16_syscall_return): Move to...
31657 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31658 (__nomips16, __mips_syscall_return): ... here.
31659 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31660 `__mips16_syscall_return' to `__mips_syscall_return'.
31661 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31662 `internal_syscall##nr'.
31663 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31664 `internal_syscall##nr'.
31665 (FORCE_FRAME_POINTER): Remove.
31666 (__mips_syscall5): New prototype.
31667 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31668 (__mips_syscall6): New prototype.
31669 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31670 (__mips_syscall7): New prototype.
31671 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31672 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31673 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31674 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31675 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31676 (sysdep_routines): Add libc-do-syscall.
31677 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31678 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31679
31680 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31681
31682 [BZ #21672]
31683 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31684 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31685 (advise_stack_range): New function.
31686 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31687 stack non required to advise_stack_range at allocatestack.c
31688
31689 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31690
31691 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31692
31693 2017-08-29 Florian Weimer <fweimer@redhat.com>
31694
31695 [BZ #22026]
31696 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31697 __end_fct. Mangle __end_fct after setting it to NULL.
31698 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31699 (modules-names, modules-names-tests): Add
31700 tst-gconv-init-failure-mod.
31701 (gconv-modules): New target.
31702 (tst-gconv-init-failure-mod.so): Link against libsupport.
31703 (tst-gconv-init-failure): Depend on gconv-modules,
31704 tst-gconv-init-failure-mod.so.
31705 * iconv/tst-gconv-init-failure-mod.c: New file.
31706 * iconv/tst-gconv-init-failure.c: Likewise.
31707 * iconv/test-gconv-modules: Likewise.
31708
31709 2017-08-29 Florian Weimer <fweimer@redhat.com>
31710
31711 [BZ #22025]
31712 * iconv/gconv_db.c (free_derivation): Remove redundant
31713 parentheses.
31714 (gen_steps): Unconditionally mangle __btowc_fct after
31715 initialization.
31716 (increment_counter): Likewise. Do not call init_fct for internal
31717 modules.
31718
31719 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31720
31721 [BZ #22028]
31722 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31723 (_MSUF_): Remove macro.
31724 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31725 Likewise.
31726 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31727 (__REDIRFROM_X): New macro.
31728 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31729 Likewise.
31730 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31731 (__REDIRTO_X): Likewise.
31732 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31733 arguments.
31734 (__MATH_REDIRCALL_2): Likewise.
31735 (__MATH_REDIRCALL_INTERNAL): Likewise.
31736 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31737 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31738 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31739 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31740 * math/test-finite-macros.c: New file.
31741 * math/Makefile (tests): Add test-finite-macros.
31742 (CFLAGS-test-finite-macros.c): New variable.
31743
31744 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31745 Jeff Law <law@redhat.com>
31746
31747 [BZ #22025]
31748 Mangle NULL pointers in iconv/gconv.
31749 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31750 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31751 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31752 is non-NULL before demangling the end_fct. Check for NULL
31753 end_fct after demangling.
31754 (__gconv_release_step): Demangle the end_fct before checking
31755 it for NULL. Remove assert on __shlibc_handle != NULL.
31756 (gen_steps): Don't check btowc_fct for NULL before mangling.
31757 Demangle init_fct before checking for NULL.
31758 (increment_counter): Likewise.
31759 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31760 end_fct for NULL before mangling.
31761 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31762 for NULL.
31763
31764 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31765
31766 [BZ #21971]
31767 * locale/iso-639.def: add Morisyen.
31768
31769 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31770
31771 [BZ #21930]
31772 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31773 (iszero): New C++ implementation that does not use
31774 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31775 signaling nans are enabled, since __builtin_types_compatible_p
31776 is a C-only feature.
31777 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31778 defined, include ieee754_float128.h for access to the union and
31779 member ieee854_float128.ieee.
31780 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31781 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31782 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31783 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31784 options of test-math-zero on powerpc64le.
31785
31786 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31787
31788 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31789 Change double to float.
31790
31791 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31792
31793 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31794 unconditional.
31795 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31796 conditional code; define contents only for [LIBM_SVID_COMPAT].
31797
31798 2017-08-28 Florian Weimer <fweimer@redhat.com>
31799
31800 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31801 (abi-lp64_be-options): Remove.
31802 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31803 (abi-hard-options): Likewise.
31804 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31805 (abi-o32_hard-options, abi-o32_soft_2008-options)
31806 (abi-o32_hard_2008-options, abi-n32_soft-options)
31807 (abi-n32_hard-options, abi-n32_soft_2008-options)
31808 (abi-n32_hard_2008-options, abi-n64_soft-options)
31809 (abi-n64_hard-options, abi-n64_soft_2008-options)
31810 (abi-n64_hard_2008-options): Likewise.
31811 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31812 (abi-64-v1-options, abi-64-v2-options): Likewise.
31813 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31814 (abi-64-options): Likewise.
31815 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31816 (abi-64-options): Likewise.
31817 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31818 (abi-64-options): Likewise.
31819 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31820 (abi-64-options, abi-x32-options): Likewise.
31821
31822 2017-08-28 Florian Weimer <fweimer@redhat.com>
31823
31824 Store supported list of SYS_* system calls in the source tree.
31825 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31826 (bits/syscall.h): Generate from list file.
31827 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31828 [$(subdir) = misc] (tests): Add tst-syscall-list.
31829 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31830 [$(subdir) = misc] (tst-syscall-list-macros.list)
31831 [$(subdir) = misc] (tst-syscall-list-nr.list)
31832 (tst-syscall-list-sys.list): Helper targets for new
31833 tst-syscall-list test.
31834 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31835 tst-syscall-list.sh.
31836 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31837 target. Do not include bits/syscall.d.
31838 [$(subdir) = misc] (generated): Do not update.
31839 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31840 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31841 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31842 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31843
31844 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31845
31846 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31847 (tst-cxa_atexit, tst-on_exit): Likewise.
31848 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31849 tst-cxa_atexit, and tst-on_exit.
31850 * stdlib/tst-atexit-common.c: New file.
31851 * stdlib/tst-atexit.c: New file.
31852 * stdlib/tst-at_quick_exit.c: New file.
31853 * stdlib/tst-cxa_atexit.c: New file.
31854 * stdlib/tst-on_exit.c: New file.
31855
31856 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31857
31858 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31859 * mach/stack_chk_fail_local.c: New file.
31860 * hurd/stack_chk_fail_local.c: New file.
31861 * mach/Machrules ($(interface-library)-routines): Add
31862 stack_chk_fail_local.
31863 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31864 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31865 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31866 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31867 * hurd/Makefile (CFLAGS-hurdstartup.o,
31868 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31869
31870 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31871
31872 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31873 (index_cpu_*, index_arch_*): Removed.
31874
31875 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31876
31877 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31878 Use uint64_t instead of unsigned long.
31879
31880 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31881
31882 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31883 [__HAVE_DISTINCT_FLOAT128].
31884
31885 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31886 of <bits/math-finite.h>.
31887 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31888 inclusion of <bits/math-finite.h>.
31889 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31890 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31891 __NO_LONG_DOUBLE_MATH].
31892 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31893 (__MATH_REDIRCALL_2): Likewise.
31894 (__MATH_REDIRCALL_INTERNAL): Likewise.
31895 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31896 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31897 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31898
31899 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31900 Remove file.
31901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31902 Likewise.
31903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31904 Likewise.
31905 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31906 Likewise.
31907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
31908 Likewise.
31909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
31910 Likewise.
31911 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31912 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31913 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31914 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
31916 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
31917 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
31918 w_sqrtf_compat-ppc32.
31919
31920 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31921
31922 * math/math.h [defined __cplusplus] (issignaling): In the long
31923 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
31924 is not defined. Call __issignaling, otherwise.
31925
31926 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31927
31928 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
31929 syscall definitions and replace __builtin_expect with __glibc_likely.
31930 * sysdeps/unix/syscall-template.S: Update comment about cancellable
31931 syscall.
31932 (SYSCALL_CANCELLABLE): Removedefinition
31933 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
31934 definition.
31935 (PSEUDO_END): Likewise.
31936 [IS_IN (libpthread)] (CENABLE): Likewise.
31937 [IS_IN (libpthread)] (CDISABLE): Likewise.
31938 [IS_IN (libc)] (CENABLE): Likewise.
31939 [IS_IN (libc)] (CENABLE): Likewise.
31940 [IS_IN (librt)] (CDISABLE): Likewise.
31941 [IS_IN (librt)] (CDISABLE): Likewise.
31942 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31943 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
31944 definition.
31945 (PSEUDO_END): Likewise.
31946 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
31947 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
31948 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31949 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
31950 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31951 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
31952 (CENABLE): Likewise.
31953 (CDISABLE): Likewise.
31954 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31955 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
31956 defintion.
31957 (PSEUDO_END): Likewise.
31958 [IS_IN (libpthread)] (CENABLE): Likewise.
31959 [IS_IN (libpthread)] (CDISABLE): Likewise.
31960 [IS_IN (libc)] (CENABLE): Likewise.
31961 [IS_IN (libc)] (CENABLE): Likewise.
31962 [IS_IN (librt)] (CDISABLE): Likewise.
31963 [IS_IN (librt)] (CDISABLE): Likewise.
31964 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31965 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
31966 definition.
31967 (PSEUDO_END): Likewise.
31968 [IS_IN (libpthread)] (CENABLE): Likewise.
31969 [IS_IN (libpthread)] (CDISABLE): Likewise.
31970 [IS_IN (libc)] (CENABLE): Likewise.
31971 [IS_IN (libc)] (CENABLE): Likewise.
31972 [IS_IN (librt)] (CDISABLE): Likewise.
31973 [IS_IN (librt)] (CDISABLE): Likewise.
31974 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31975 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
31976 definition.
31977 (PSEUDO_END): Likewise.
31978 [IS_IN (libpthread)] (CENABLE): Likewise.
31979 [IS_IN (libpthread)] (CDISABLE): Likewise.
31980 [IS_IN (libc)] (CENABLE): Likewise.
31981 [IS_IN (libc)] (CENABLE): Likewise.
31982 [IS_IN (librt)] (CDISABLE): Likewise.
31983 [IS_IN (librt)] (CDISABLE): Likewise.
31984 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31985 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
31986 definition.
31987 (PSEUDO_END): Likewise.
31988 [IS_IN (libpthread)] (CENABLE): Likewise.
31989 [IS_IN (libpthread)] (CDISABLE): Likewise.
31990 [IS_IN (libc)] (CENABLE): Likewise.
31991 [IS_IN (libc)] (CENABLE): Likewise.
31992 [IS_IN (librt)] (CDISABLE): Likewise.
31993 [IS_IN (librt)] (CDISABLE): Likewise.
31994 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
31995 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
31996 definition.
31997 (PSEUDO_END): Likewise.
31998 [IS_IN (libpthread)] (CENABLE): Likewise.
31999 [IS_IN (libpthread)] (CDISABLE): Likewise.
32000 [IS_IN (libc)] (CENABLE): Likewise.
32001 [IS_IN (libc)] (CENABLE): Likewise.
32002 [IS_IN (librt)] (CDISABLE): Likewise.
32003 [IS_IN (librt)] (CDISABLE): Likewise.
32004 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32005 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32006 definition.
32007 (PSEUDO_END): Likewise.
32008 [IS_IN (libpthread)] (CENABLE): Likewise.
32009 [IS_IN (libpthread)] (CDISABLE): Likewise.
32010 [IS_IN (libc)] (CENABLE): Likewise.
32011 [IS_IN (libc)] (CENABLE): Likewise.
32012 [IS_IN (librt)] (CDISABLE): Likewise.
32013 [IS_IN (librt)] (CDISABLE): Likewise.
32014 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32015 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32016 Remove definition.
32017 (PSEUDO_END): Likewise.
32018 [IS_IN (libpthread)] (CENABLE): Likewise.
32019 [IS_IN (libpthread)] (CDISABLE): Likewise.
32020 [IS_IN (libc)] (CENABLE): Likewise.
32021 [IS_IN (libc)] (CENABLE): Likewise.
32022 [IS_IN (librt)] (CDISABLE): Likewise.
32023 [IS_IN (librt)] (CDISABLE): Likewise.
32024 (SINGLE_THREAD_P): Likewise.
32025 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32026 definition.
32027 (PSEUDO_END): Likewise.
32028 [IS_IN (libpthread)] (CENABLE): Likewise.
32029 [IS_IN (libpthread)] (CDISABLE): Likewise.
32030 [IS_IN (libc)] (CENABLE): Likewise.
32031 [IS_IN (libc)] (CENABLE): Likewise.
32032 [IS_IN (librt)] (CDISABLE): Likewise.
32033 [IS_IN (librt)] (CDISABLE): Likewise.
32034 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32035 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32036 definition.
32037 (PSEUDO_END): Likewise.
32038 [IS_IN (libpthread)] (CENABLE): Likewise.
32039 [IS_IN (libpthread)] (CDISABLE): Likewise.
32040 [IS_IN (libc)] (CENABLE): Likewise.
32041 [IS_IN (libc)] (CENABLE): Likewise.
32042 [IS_IN (librt)] (CDISABLE): Likewise.
32043 [IS_IN (librt)] (CDISABLE): Likewise.
32044 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32045 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32046 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32047 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32048 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32049 definition.
32050 (PSEUDO_END): Likewise.
32051 [IS_IN (libpthread)] (CENABLE): Likewise.
32052 [IS_IN (libpthread)] (CDISABLE): Likewise.
32053 [IS_IN (libc)] (CENABLE): Likewise.
32054 [IS_IN (libc)] (CENABLE): Likewise.
32055 [IS_IN (librt)] (CDISABLE): Likewise.
32056 [IS_IN (librt)] (CDISABLE): Likewise.
32057 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32058 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32059 definition.
32060 (PSEUDO_END): Likewise.
32061 [IS_IN (libpthread)] (CENABLE): Likewise.
32062 [IS_IN (libpthread)] (CDISABLE): Likewise.
32063 [IS_IN (libc)] (CENABLE): Likewise.
32064 [IS_IN (libc)] (CENABLE): Likewise.
32065 [IS_IN (librt)] (CDISABLE): Likewise.
32066 [IS_IN (librt)] (CDISABLE): Likewise.
32067 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32068 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32069 definition.
32070 (PSEUDO_END): Likewise.
32071 [IS_IN (libpthread)] (CENABLE): Likewise.
32072 [IS_IN (libpthread)] (CDISABLE): Likewise.
32073 [IS_IN (libc)] (CENABLE): Likewise.
32074 [IS_IN (libc)] (CENABLE): Likewise.
32075 [IS_IN (librt)] (CDISABLE): Likewise.
32076 [IS_IN (librt)] (CDISABLE): Likewise.
32077 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32078 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32079 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32080 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32081 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32082 definition.
32083 (PSEUDO_END): Likewise.
32084 [IS_IN (libpthread)] (CENABLE): Likewise.
32085 [IS_IN (libpthread)] (CDISABLE): Likewise.
32086 [IS_IN (libc)] (CENABLE): Likewise.
32087 [IS_IN (libc)] (CENABLE): Likewise.
32088 [IS_IN (librt)] (CDISABLE): Likewise.
32089 [IS_IN (librt)] (CDISABLE): Likewise.
32090 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32091 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32092 definition.
32093 (PSEUDO_END): Likewise.
32094 [IS_IN (libpthread)] (CENABLE): Likewise.
32095 [IS_IN (libpthread)] (CDISABLE): Likewise.
32096 [IS_IN (libc)] (CENABLE): Likewise.
32097 [IS_IN (libc)] (CENABLE): Likewise.
32098 [IS_IN (librt)] (CDISABLE): Likewise.
32099 [IS_IN (librt)] (CDISABLE): Likewise.
32100 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32101
32102 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32103
32104 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32105
32106 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32107
32108 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32109
32110 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32111
32112 [BZ #21982]
32113 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32114 middle and outer with size_t instead of int. Repleace %d and
32115 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32116 "MAX (outer, nchars - 64)" to support unsigned outer and
32117 nchars. Also exit loop when outer == 0.
32118
32119 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32120
32121 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32122 * include/signal.h (__sigsuspend_nocancel): Likewise.
32123 * include/time.h (__nanosleep_nocancel): Likewise.
32124 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32125 * login/utmp_file.c: Include non cancellable syscall header.
32126 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32127 prototype.
32128
32129 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32130
32131 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32132 .byte sequences with AVX512F instructions.
32133 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32134 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32135 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32136 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32137 Likewise.
32138 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32139 Likewise.
32140
32141 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32142 Steve Ellcey <sellcey@cavium.com>
32143
32144 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32145 Use PTR_REG macro in cmp instruction.
32146
32147 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32148
32149 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32150 Change the return type of the ifunc resolver to match the return
32151 type of the target function.
32152
32153 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32154
32155 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32156 (preadv64): Likewise.
32157 (pwrite64(: Likewise.
32158 (pwritev64): Likewise.
32159
32160 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32161 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32162 (LOAD_ARGS_0): Likewise.
32163 (LOAD_ARGS_1): Likewise.
32164 (LOAD_ARGS_2): Likewise.
32165 (LOAD_ARGS_3): Likewise.
32166 (LOAD_ARGS_4): Likewise.
32167 (LOAD_ARGS_5): Likewise.
32168 (LOAD_ARGS_6): Likewise.
32169 (LOAD_REGS_0): Likewise.
32170 (LOAD_REGS_1): Likewise.
32171 (LOAD_REGS_2): Likewise.
32172 (LOAD_REGS_3): Likewise.
32173 (LOAD_REGS_4): Likewise.
32174 (LOAD_REGS_5): Likewise.
32175 (LOAD_REGS_6): Likewise.
32176 (ASM_ARGS_0): Likewise.
32177 (ASM_ARGS_1): Likewise.
32178 (ASM_ARGS_2): Likewise.
32179 (ASM_ARGS_3): Likewise.
32180 (ASM_ARGS_4): Likewise.
32181 (ASM_ARGS_5): Likewise.
32182 (ASM_ARGS_6): Likewise.
32183 (LOAD_ARGS_TYPES_1): Likewise.
32184 (LOAD_ARGS_TYPES_2): Likewise.
32185 (LOAD_ARGS_TYPES_3): Likewise.
32186 (LOAD_ARGS_TYPES_4): Likewise.
32187 (LOAD_ARGS_TYPES_5): Likewise.
32188 (LOAD_ARGS_TYPES_6): Likewise.
32189 (LOAD_REGS_TYPES_1): Likewise.
32190 (LOAD_REGS_TYPES_2): Likewise.
32191 (LOAD_REGS_TYPES_3): Likewise.
32192 (LOAD_REGS_TYPES_4): Likewise.
32193 (LOAD_REGS_TYPES_5): Likewise.
32194 (LOAD_REGS_TYPES_6): Likewise.
32195 (TYPEFY): New define.
32196 (ARGIFY): Likewise.
32197 (internal_syscall0): Likewise.
32198 (internal_syscall1): Likewise.
32199 (internal_syscall2): Likewise.
32200 (internal_syscall3): Likewise.
32201 (internal_syscall4): Likewise.
32202 (internal_syscall5): Likewise.
32203 (internal_syscall6): Likewise.
32204 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32205 (INTERNAL_SYSCALL_NCS): Remove define.
32206 (internal_syscall1): Add define.
32207
32208 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32209
32210 * math/w_remainder_compat.c: Remove duplicate inclusion of
32211 math-svid-compat.h.
32212 * math/w_remainderf_compat.c: Likewise.
32213 * math/w_remainderl_compat.c: Likewise.
32214
32215 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32216
32217 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32218
32219 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32220
32221 [BZ #21684]
32222 * math/tgmath.h (__floating_type): Simplify definitions.
32223 (__real_integer_type): New macro.
32224 (__complex_integer_type): Likewise.
32225 (__expr_is_real): Likewise.
32226 (__tgmath_real_type_sub): Update comment to describe handling of
32227 complex types.
32228 (__tgmath_complex_type_sub): New macro.
32229 (__tgmath_complex_type): Likewise.
32230 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32231 (__TGMATH_CF128): Use __expr_is_real.
32232 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32233 __expr_is_real.
32234 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32235 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32236 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32237 integer types.
32238
32239 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32240
32241 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32242 macro.
32243 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32244 alias.
32245 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32246 Likewise.
32247
32248 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32249 nanosleep_not_cancel with __nanosleep_nocancel.
32250 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32251 (__nanosleep_nocancel): New macro.
32252 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32253 function.
32254 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32255 macro.
32256 (__nanosleep_nocancel): New prototype.
32257
32258 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32259 pause_not_cancel with __pause_nocancel.
32260 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32261 (__pause_nocancel): New macro.
32262 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32263 macro.
32264 (__pause_nocancel): New prototype.
32265 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32266
32267 2017-08-22 Martin Sebor <msebor@redhat.com>
32268
32269 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32270 to return a pointer to the same type as the target function.
32271
32272 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32273
32274 [BZ #18822]
32275 [BZ #21986]
32276 * include/printf.h (__printf_fphex): Add attribute_hidden.
32277 (__guess_grouping): New prototype.
32278 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32279 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32280 libc_hidden_proto and libc_hidden_def.
32281 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32282 (__vstrfmon_l): Remove the third argument passed to
32283 __guess_grouping.
32284
32285 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32286
32287 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32288 definition for issignaling that does not rely on __MATH_TG,
32289 since __MATH_TG uses __builtin_types_compatible_p, which is only
32290 available in C mode.
32291 (CFLAGS-test-math-issignaling.cc): New variable.
32292 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32293 * math/test-math-issignaling.cc: New test for C++ implementation
32294 of type-generic issignaling.
32295 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32296 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32297 options of test-math-issignaling on powerpc64le.
32298
32299 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32300
32301 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32302 building libc.a.
32303 (hidden_proto): Likewise.
32304 (hidden_tls_proto): Likewise.
32305 (__hidden_proto): Likewise.
32306
32307 2017-08-22 Florian Weimer <fweimer@redhat.com>
32308
32309 math: Statically link tests of internal functionality.
32310 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32311 atest-exp2.
32312 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32313 (gmp-objs): Remove assignment.
32314 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32315
32316 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32317
32318 [BZ #21987]
32319 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32320 and copy to ...
32321 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32322 ... here.
32323 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32324 ... and here.
32325
32326 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32327 variable definitions above inclusion of ../Rules.
32328
32329 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32330
32331 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32332 case calling __builtin_unreachable.
32333
32334 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32335
32336 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32337 __waitpid_nocancel.
32338 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32339 (__waitpid_nocancel): New macro.
32340 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32341 macro.
32342 (__waitpid_nocancel): Replace macro with a function.
32343 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32344 function.
32345
32346 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32347 __fcntl_nocancel.
32348 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32349 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32350
32351 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32352 __writev_nocancel_nostatus.
32353 (write_call_graph): Likewise.
32354 (write_bb_counts): Likewise.
32355 * resolv/herror.c (herror): Likewise.
32356 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32357 macro.
32358 (__writev_nocancel_nostatus): New macro.
32359 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32360 Remove macro.
32361 (__writev_nocancel_nostatus): New function.
32362
32363 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32364
32365 Revert:
32366 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32367
32368 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32369 building libc.a.
32370 (hidden_proto): Likewise.
32371 (hidden_tls_proto): Likewise.
32372 (__hidden_proto): Likewise.
32373
32374 [BZ #21973]
32375 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32376 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32378 Likewise.
32379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32380 Likewise.
32381 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32382 Likewise.
32383 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32384 Likewise.
32385 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32386 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32387 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32388 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32389 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32390 GLIBC_2.0 sqrtl symbol.
32391
32392 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32393 [__USE_MISC] (_LIB_VERSION): Likewise.
32394 [__USE_MISC] (struct exception): Likewise.
32395 [__USE_MISC] (matherr): Likewise.
32396 [__USE_MISC] (DOMAIN): Likewise.
32397 [__USE_MISC] (SING): Likewise.
32398 [__USE_MISC] (OVERFLOW): Likewise.
32399 [__USE_MISC] (UNDERFLOW): Likewise.
32400 [__USE_MISC] (TLOSS): Likewise.
32401 [__USE_MISC] (PLOSS): Likewise.
32402 [__USE_MISC] (HUGE): Likewise.
32403 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32404 * math/math-svid-compat.h: New file.
32405 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32406 and matherrl.
32407 * include/math.h [!_ISOMAC] (__matherr): Remove.
32408 * manual/arith.texi (FP Exceptions): Do not document matherr.
32409 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32410 (tests-internal): New variable.
32411 (install-lib): Do not add libieee.a.
32412 (non-lib.a): Likewise.
32413 (extra-objs): Do not add libieee.a and ieee-math.o.
32414 (CPPFLAGS-s_lib_version.c): Remove variable.
32415 ($(objpfx)libieee.a): Remove rule.
32416 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32417 * math/ieee-math.c: Remove.
32418 * math/libm-test-support.c (matherr): Remove.
32419 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32420 and license notices. Include <math-svid-compat.h> and
32421 <shlib-compat.h>.
32422 (matherr): Undefine as macro. Use compat_symbol_reference.
32423 (_LIB_VERSION): Likewise.
32424 * math/test-matherr-2.c: New file.
32425 * math/test-matherr-3.c: Likewise.
32426 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32427 declaration.
32428 (__kernel_standard_f): Likewise.
32429 (__kernel_standard_l): Likewise.
32430 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32431 <math_private.h>. Include <math-svid-compat.h>.
32432 (_LIB_VERSION): Undefine as macro.
32433 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32434 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32435 [LIBM_SVID_COMPAT], use compat_symbol.
32436 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32437 <math_private.h>. Include <math-svid-compat.h>.
32438 (matherr): Undefine as macro.
32439 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32440 compat_symbol.
32441 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32442 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32443 compat_symbol_reference.
32444 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32445 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32446 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32447 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32448 (MATHERR_D): Remove declaration.
32449 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32450 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32451 [LIBM_BUILD] (pmatherrf): Likewise.
32452 [LIBM_BUILD] (pmatherr): Likewise.
32453 [LIBM_BUILD] (pmatherrl): Likewise.
32454 (DOMAIN): Likewise.
32455 (SING): Likewise.
32456 (OVERFLOW): Likewise.
32457 (UNDERFLOW): Likewise.
32458 (TLOSS): Likewise.
32459 (PLOSS): Likewise.
32460 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32461 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32462 compat_symbol.
32463 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32464 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32465 compat_symbol.
32466 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32467 * math/w_acos_compat.c: Likewise.
32468 * math/w_acosf_compat.c: Likewise.
32469 * math/w_acosh_compat.c: Likewise.
32470 * math/w_acoshf_compat.c: Likewise.
32471 * math/w_acoshl_compat.c: Likewise.
32472 * math/w_acosl_compat.c: Likewise.
32473 * math/w_asin_compat.c: Likewise.
32474 * math/w_asinf_compat.c: Likewise.
32475 * math/w_asinl_compat.c: Likewise.
32476 * math/w_atan2_compat.c: Likewise.
32477 * math/w_atan2f_compat.c: Likewise.
32478 * math/w_atan2l_compat.c: Likewise.
32479 * math/w_atanh_compat.c: Likewise.
32480 * math/w_atanhf_compat.c: Likewise.
32481 * math/w_atanhl_compat.c: Likewise.
32482 * math/w_cosh_compat.c: Likewise.
32483 * math/w_coshf_compat.c: Likewise.
32484 * math/w_coshl_compat.c: Likewise.
32485 * math/w_exp10_compat.c: Likewise.
32486 * math/w_exp10f_compat.c: Likewise.
32487 * math/w_exp10l_compat.c: Likewise.
32488 * math/w_exp2_compat.c: Likewise.
32489 * math/w_exp2f_compat.c: Likewise.
32490 * math/w_exp2l_compat.c: Likewise.
32491 * math/w_fmod_compat.c: Likewise.
32492 * math/w_fmodf_compat.c: Likewise.
32493 * math/w_fmodl_compat.c: Likewise.
32494 * math/w_hypot_compat.c: Likewise.
32495 * math/w_hypotf_compat.c: Likewise.
32496 * math/w_hypotl_compat.c: Likewise.
32497 * math/w_j0_compat.c: Likewise.
32498 * math/w_j0f_compat.c: Likewise.
32499 * math/w_j0l_compat.c: Likewise.
32500 * math/w_j1_compat.c: Likewise.
32501 * math/w_j1f_compat.c: Likewise.
32502 * math/w_j1l_compat.c: Likewise.
32503 * math/w_jn_compat.c: Likewise.
32504 * math/w_jnf_compat.c: Likewise.
32505 * math/w_jnl_compat.c: Likewise.
32506 * math/w_lgamma_main.c: Likewise.
32507 * math/w_lgamma_r_compat.c: Likewise.
32508 * math/w_lgammaf_main.c: Likewise.
32509 * math/w_lgammaf_r_compat.c: Likewise.
32510 * math/w_lgammal_main.c: Likewise.
32511 * math/w_lgammal_r_compat.c: Likewise.
32512 * math/w_log10_compat.c: Likewise.
32513 * math/w_log10f_compat.c: Likewise.
32514 * math/w_log10l_compat.c: Likewise.
32515 * math/w_log2_compat.c: Likewise.
32516 * math/w_log2f_compat.c: Likewise.
32517 * math/w_log2l_compat.c: Likewise.
32518 * math/w_log_compat.c: Likewise.
32519 * math/w_logf_compat.c: Likewise.
32520 * math/w_logl_compat.c: Likewise.
32521 * math/w_pow_compat.c: Likewise.
32522 * math/w_powf_compat.c: Likewise.
32523 * math/w_powl_compat.c: Likewise.
32524 * math/w_remainder_compat.c: Likewise.
32525 * math/w_remainderf_compat.c: Likewise.
32526 * math/w_remainderl_compat.c: Likewise.
32527 * math/w_scalb_compat.c: Likewise.
32528 * math/w_scalbf_compat.c: Likewise.
32529 * math/w_scalbl_compat.c: Likewise.
32530 * math/w_sinh_compat.c: Likewise.
32531 * math/w_sinhf_compat.c: Likewise.
32532 * math/w_sinhl_compat.c: Likewise.
32533 * math/w_sqrt_compat.c: Likewise.
32534 * math/w_sqrtf_compat.c: Likewise.
32535 * math/w_sqrtl_compat.c: Likewise.
32536 * math/w_tgamma_compat.c: Likewise.
32537 * math/w_tgammaf_compat.c: Likewise.
32538 * math/w_tgammal_compat.c: Likewise.
32539 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32540 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32541 * sysdeps/ieee754/k_standard.c: Likewise.
32542 * sysdeps/ieee754/k_standardf.c: Likewise.
32543 * sysdeps/ieee754/k_standardl.c: Likewise.
32544 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32545 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32546 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32547 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32548 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32549 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32550 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32551 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32552 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32553 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32554 Likewise.
32555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32556 Likewise.
32557 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32558 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32559 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32560 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32561
32562 2017-08-21 Florian Weimer <fweimer@redhat.com>
32563
32564 [BZ #21864]
32565 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32566 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32567 Move before inclusion of ../Rules.
32568
32569 2017-08-21 Florian Weimer <fweimer@redhat.com>
32570
32571 [BZ #21972]
32572 * assert/assert.h (assert): Use static_cast (bool) for C++.
32573 Use the ternary operator in the warning branch for GNU C.
32574 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32575 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32576 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32577 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32578 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32579
32580 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32581
32582 [BZ #18822]
32583 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32584 (__syscall_clock_gettime): Add attribute_hidden.
32585 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32586 (__start_context): Likewise.
32587
32588 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32589
32590 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32591 building libc.a.
32592 (hidden_proto): Likewise.
32593 (hidden_tls_proto): Likewise.
32594 (__hidden_proto): Likewise.
32595
32596 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32597
32598 * include/libc-symbols.h (attribute_hidden): Enable hidden
32599 visibility in libc.a compiled with PIE.
32600
32601 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32602
32603 [BZ #18822]
32604 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32605 Add attribute_hidden.
32606
32607 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32608
32609 [BZ #21864]
32610 * Makerules (all-nonlib): Add $(others-extras).
32611 * catgets/Makefile (others-extras): New.
32612 * elf/Makefile (others-extras): Likewise.
32613 * nss/Makefile (others-extras): Likewise.
32614
32615 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32616
32617 [BZ #18822]
32618 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32619 * elf/dl-open.c: Include <libc-internal.h>.
32620 (__libc_multiple_libcs): Removed.
32621 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32622 <hp-timing.h>.
32623 * include/libc-internal.h (__libc_multiple_libcs): New.
32624 * misc/sbrk.c: Include <libc-internal.h>.
32625 (__libc_multiple_libcs): Removed.
32626
32627 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32628
32629 [BZ #18822]
32630 * grp/initgroups.c (__nss_group_database): Removed.
32631 (__nss_initgroups_database): Likewise.
32632 * nscd/gai.c (__nss_hosts_database): Likewise.
32633 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32634 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32635 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32636 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32637 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32638 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32639 attribute_hidden.
32640 * nss/nsswitch.c (__nss_database_custom): Define only if
32641 USE_NSCD is defined.
32642 (__nss_configure_lookup): Use __nss_database_custom only if
32643 USE_NSCD is defined.
32644 * nss/nsswitch.h (__nss_database_custom): Declare only if
32645 USE_NSCD is defined. Add attribute_hidden.
32646 (__nss_setent): Add attribute_hidden.
32647 (__nss_endent): Likewise.
32648 (__nss_getent_r): Likewise.
32649 (__nss_getent): Likewise.
32650 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32651
32652 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32653
32654 [BZ #18822]
32655 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32656 libc_hidden_proto and libc_hidden_def.
32657
32658 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32659
32660 [BZ #18822]
32661 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32662 Add libc_hidden_proto.
32663 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32664 Add libc_hidden_def.
32665
32666 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32667
32668 [BZ #21974]
32669 * gmon/Makefile (routines): Remove bb_init_func and
32670 bb_exit_func.
32671 (elide-routines.os): Removed.
32672 * gmon/bb_exit_func.c: Likewise.
32673 * gmon/bb_init_func.c: Likewise.
32674 * include/sys/gmon.h (__bb): Likewise.
32675 (__bb_init_func): Likewise.
32676 (__bb_exit_func): Likewise.
32677 * sysdeps/alpha/bb_init_func.S: Likewise.
32678
32679 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32680
32681 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32682 * include/setjmp.h (____longjmp_chk): Here. Add
32683 attribute_hidden.
32684
32685 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32686
32687 [BZ #18822]
32688 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32689 attribute_hidden.
32690 (__strspn_sse2): Likewise.
32691
32692 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32693
32694 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32695 (close_not_cancel_no_status): Likewise.
32696 (__close_nocancel): New macro.
32697 (__close_nocancel_nostatus): Likewise.
32698 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32699 macro.
32700 (close_not_cancel): Likewise.
32701 (close_not_cancel_no_status): Likewise.
32702 (__close_nocancel): New prototype.
32703 (__close_nocancel_nostatus): New function.
32704 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32705 * catgets/open_catalog.c (__open_catalog): Replace
32706 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32707 * gmon/gmon.c (write_gmon): Likewise.
32708 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32709 * intl/loadmsgcat.c (close): Likewise.
32710 * io/ftw.c (open_dir_stream): Likewise.
32711 (ftw_startup): Likewise.
32712 * libio/fileops.c (_IO_file_open): Likewise.
32713 (_IO_file_close_mmap): Likewise.
32714 (_IO_file_close): Likewise.
32715 * libio/iopopen.c (_IO_dup2): Likewise.
32716 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32717 * locale/loadlocale.c (_nl_load_locale): Likewise.
32718 * login/utmp_file.c (pututline_file): Likewise.
32719 (endutent_file): Likewise.
32720 * misc/daemon.c (daemon): Likewise.
32721 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32722 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32723 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32724 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32725 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32726 * nscd/nscd_helper.c (open_socket): Likewise.
32727 (__nscd_open_socket): Likewise.
32728 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32729 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32730 (__nscd_innetgr): Likewise.
32731 * nss/nss_db/db-open.c (internal_setent): Likewise.
32732 * resolv/res-close.c (__res_iclose): Likewise.
32733 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32734 * sysdeps/posix/closedir.c (__closedir): Likewise.
32735 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32736 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32737 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32738 (opendir_tail): Likewise.
32739 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32740 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32741 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32742 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32743 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32744 (gethostid): Likewise.
32745 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32746 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32747 Likewise.
32748 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32749 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32750 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32751 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32752 Likewise.
32753 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32754 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32755 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32756 Likewise.
32757 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32758 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32759 Likewise.
32760 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32761 Likewise.
32762 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32763 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32764 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32765 __close_nocancel.
32766
32767 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32768 (openat_not_cancel_3): Likewise.
32769 (openat64_not_cancel_3): Likewise).
32770 (openat_not_cancel_3): Likewise).
32771 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32772 macro.
32773 (openat_not_cancel_3): Likewise.
32774 (openat64_not_cancel): Likewise.
32775 (openat64_not_cancel_3): Likewise.
32776 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32777 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32778 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32779 __open{64}_nocancel.
32780 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32781 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32782 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32783
32784 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32785
32786 [BZ #18822]
32787 * include/argz.h (__argz_create_sep): New function prototype.
32788 (__argz_append): Likewise.
32789 (__argz_add): Likewise.
32790 (__argz_add_sep): Likewise.
32791 (__argz_delete): Likewise.
32792 (__argz_insert): Likewise.
32793 (__argz_replace): Likewise.
32794 * string/argz.h (__argz_create_sep): Removed.
32795 (__argz_append): Likewise.
32796 (__argz_add): Likewise.
32797 (__argz_add_sep): Likewise.
32798 (__argz_delete): Likewise.
32799 (__argz_insert): Likewise.
32800 (__argz_replace): Likewise.
32801
32802 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32803
32804 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32805 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32806 (GNU_PROPERTY_STACK_SIZE): Likewie.
32807 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32808 (GNU_PROPERTY_LOPROC): Likewise.
32809 (GNU_PROPERTY_HIPROC): Likewise.
32810 (GNU_PROPERTY_LOUSER): Likewise.
32811 (GNU_PROPERTY_HIUSER): Likewise.
32812 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32813 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32814 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32815 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32816 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32817 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32818 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32819 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32820 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32821 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32822 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32823 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32824 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32825 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32826 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32827 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32828 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32829 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32830 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32831 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32832 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32833 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32834 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32835
32836 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32837
32838 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32839 in C++ mode.
32840
32841 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32842
32843 [BZ #21930]
32844 * math/math.h (isinf): Check if in C or C++ mode before using
32845 __builtin_types_compatible_p, since this is a C mode feature.
32846
32847 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32848
32849 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32850 (__write_nocancel): New macro.
32851 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32852 Rewrite as a function prototype.
32853 (write_not_cancel): Remove macro.
32854 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32855 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32856 (write_gmon): Likewise.
32857 * libio/fileops.c (_IO_new_file_write): Likewise.
32858 * login/utmp_file.c (pututline_file): Likewise.
32859 (updwtmp_file): Likewise.
32860 * stdio-common/psiginfo.c (psiginfo): Likewise.
32861 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32862 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32863 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32864 Likewise.
32865 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32866 Likewise.
32867
32868 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32869 (__read_nocancel): New macro.
32870 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32871 __read_nocancel.
32872 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32873 macro.
32874 (__read_nocancel): New prototype.
32875 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32876 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32877 with __read_nocancel.
32878 * intl/loadmsgcat.c (read): Likewise.
32879 * libio/fileops.c (_IO_file_read): Likewise.
32880 * locale/loadlocale.c (_nl_load_locale): Likewise.
32881 * login/utmp_file.c (getutent_r_file): Likewise.
32882 (internal_getut_r): Likewise.
32883 (getutline_r_file): Likewise.
32884 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32885 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32886 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32887 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32888 Likewise.
32889 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32890 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32891 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32892 Likewise.
32893 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32894 Likewise.
32895 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32896 Likewise.
32897 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32898 Likewise.
32899 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32900
32901 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32902
32903 [BZ #21966]
32904 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32905 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32906 usable.
32907
32908 2017-08-17 DJ Delorie <dj@redhat.com>
32909
32910 * bug17079.c: Update to new test harness.
32911 * test-digits-dots.c: Likewise.
32912 * test-netdb.c: Likewise.
32913 * tst-field.c: Likewise.
32914 * tst-nss-getpwent.c: Likewise.
32915 * tst-nss-static.c: Likewise.
32916 * tst-nss-test1.c: Likewise.
32917 * tst-nss-test2.c: Likewise.
32918 * tst-nss-test3.c: Likewise.
32919 * tst-nss-test4.c: Likewise.
32920 * tst-nss-test5.c: Likewise.
32921
32922 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32923
32924 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
32925 (open_not_cancel_2): Likewise.
32926 (open_nocancel): New macro.
32927 (open64_nocancel): Likewise.
32928 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
32929 (open_not_cancel_2): Likewise.
32930 (__open_nocancel): New prototype.
32931 (__open64_nocancel): Likewise.
32932 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32933 __open_nocancel.
32934 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
32935 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
32936 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
32937 with __open_nocancel.
32938 * csu/check_fds.c (check_one_fd): Likewise.
32939 * gmon/gmon.c (write_gmon): Likewise.
32940 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
32941 * intl/loadmsgcat.c (open): Likewise.
32942 * libio/fileops.c (_IO_file_open): Likewise.
32943 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32944 * locale/loadlocale.c (_nl_load_locale): Likewise.
32945 * login/utmp_file.c (setutent_file): Likewise.
32946 * misc/daemon.c (daemon): Likewise.
32947 * nss/nss_db/db-open.c (internal_setent): Likewise.
32948 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32949 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
32950 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32951 (__opendir): Likewise.
32952 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32953 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32954 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32955 (gethostid): Likewise.
32956 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32957 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32958 Likewise.
32959 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32960 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
32961 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32962 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32963 Likewise.
32964 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32965 Likewise.
32966 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32967 Likewise.
32968 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
32969 Likewise.
32970 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32971 Likewise.
32972 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32973 Likewise.
32974 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32975 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32976
32977 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
32978
32979 * benchtests/bench-skeleton.c (main): Add support for
32980 latency benchmarking.
32981 * benchtests/scripts/bench.py: Add support for latency benchmarking.
32982
32983 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
32984
32985 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
32986 the startup object.
32987
32988 2017-08-17 Florian Weimer <fweimer@redhat.com>
32989
32990 * include/sys/socket.h (__opensock): Remove internal_function.
32991 * socket/opensock.c (__opensock): Likewise.
32992 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
32993
32994 2017-08-16 Joseph Myers <joseph@codesourcery.com>
32995
32996 [BZ #21944]
32997 * signal/bits/types/__sigval_t.h: New file.
32998 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
32999 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33000 and define sigval_t using __sigval_t.
33001 * include/bits/types/__sigval_t.h: New file.
33002 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33003 instead of <bits/types/__sigval_t.h>.
33004 (struct sigevent): Use __sigval_t instead of sigval_t.
33005 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33006 instead of <bits/types/__sigval_t.h>.
33007 (siginfo_t): Use __sigval_t instead of sigval_t.
33008 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33009 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33010 (struct sigevent): Use __sigval_t instead of sigval_t.
33011 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33012 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33013 (siginfo_t): Use __sigval_t instead of sigval_t.
33014 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33015
33016 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33017
33018 * NEWS: Remove "[Add new features here]" for 2.27.
33019
33020 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33021
33022 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33023 libc.so.
33024
33025 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33026
33027 * NEWS: Mention x86-64 FMA optimization.
33028
33029 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33030
33031 [BZ #21912]
33032 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33033 Add e_expf-fma.
33034 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33035 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33036 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33037
33038 2017-08-16 Andreas Schwab <schwab@suse.de>
33039
33040 [BZ #16750]
33041 CVE-2009-5064
33042 * elf/ldd.bash.in: Never run file directly.
33043
33044 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33045
33046 [BZ #21955]
33047 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33048 (L(SP_INF_0)): Likewise.
33049
33050 2017-08-15 Florian Weimer <fweimer@redhat.com>
33051
33052 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33053 run-built-tests.
33054
33055 2017-08-15 Florian Weimer <fweimer@redhat.com>
33056
33057 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33058 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33059 BROKEN_THREAD_SIGNALS code.
33060 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33061 request_list): Remove caller_pid member used for
33062 BROKEN_THREAD_SIGNALS.
33063 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33064 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33065 Remove BROKEN_THREAD_SIGNALS support.
33066 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33067 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33068
33069 2017-08-15 Florian Weimer <fweimer@redhat.com>
33070
33071 * gmon/Makefile (tests): Add tst-gmon.
33072 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33073 Set.
33074 (tests-special): Add tst-gmon-prof.out.
33075 (tst-gmon.out): Depend on clean-tst-gmon-data.
33076 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33077 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33078 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33079 startup object.
33080 * aclocal.m4 (GPROF): Set and substitute.
33081 * config.amke.in (GPROF): Set.
33082 * configure: Regenerate.
33083
33084 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33085
33086 * elf/elf.h A (NT_PPC_TAR): New macro.
33087 (NT_PPC_PPR): Likewise.
33088 (NT_PPC_DSCR): Likewise.
33089 (NT_PPC_EBB): Likewise.
33090 (NT_PPC_PMU): Likewise.
33091 (NT_PPC_TM_CGPR): Likewise.
33092 (NT_PPC_TM_CFPR): Likewise.
33093 (NT_PPC_TM_CVMX): Likewise.
33094 (NT_PPC_TM_CVSX): Likewise.
33095 (NT_PPC_TM_SPR): Likewise.
33096 (NT_PPC_TM_CTAR): Likewise.
33097 (NT_PPC_TM_CPPR): Likewise.
33098 (NT_PPC_TM_CDSCR): Likewise.
33099
33100 2017-08-15 Florian Weimer <fweimer@redhat.com>
33101
33102 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33103 regparm (2) instead of internal_function.
33104 (_MCOUNT_DECL): Adjust.
33105
33106 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33107
33108 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33109 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33110
33111 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33112
33113 * conform/data/sys/wait.h-data (si_value): Do not expect for
33114 XPG42.
33115
33116 2017-08-14 Florian Weimer <fweimer@redhat.com>
33117
33118 [BZ #21962]
33119 NSS: Create stubs for accidentally exported lookup functions.
33120 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33121 Remove declaration.
33122 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33123 (ether_hostton): Call __nss_ethers_lookup2 instead.
33124 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33125 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33126 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33127 (setup): Call __nss_netgroup_lookup2 instead.
33128 * nss/Makefile (routines): Add compat-lookup.
33129 * nss/Versions (GLIBC_2.27): Add symbol version.
33130 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33131 (DB_COMPAT_FCT): Remove.
33132 * nss/compat-lookup.c: New file.
33133 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33134 from databases.def.
33135 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33136 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33137 (netname2user): Call __nss_publickey_lookup2 instead.
33138 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33139 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33140 instead.
33141
33142 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33143 Sergei Trofimovich <slyfox@inbox.ru>
33144
33145 [BZ #21908]
33146 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33147 Rename to MMAP2_PAGE_UNIT.
33148 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33149 __OFF_T_MATCHES_OFF64_T is not defined.
33150 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33151 uint64_t.
33152 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33153 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33154
33155 2017-08-14 Florian Weimer <fweimer@redhat.com>
33156
33157 i386: Do not set internal_function.
33158 * config.h.in (USE_REGPARMS, internal_function): Remove.
33159 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33160 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33161
33162 2017-08-14 Florian Weimer <fweimer@redhat.com>
33163
33164 * elf/dl-init.c (_dl_init): Remove internal_function.
33165 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33166 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33167
33168 2017-08-14 Florian Weimer <fweimer@redhat.com>
33169
33170 * elf/rtld.c (_dl_start): Remove internal_function.
33171 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33172 _dl_start.
33173
33174 2017-08-14 Florian Weimer <fweimer@redhat.com>
33175
33176 * elf/dl-fini.c (_dl_fini): Remove internal_function
33177 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33178
33179 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33180
33181 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33182 (bit_cpu_SHSTK): Likewise.
33183 (index_cpu_IBT): Likewise.
33184 (index_cpu_SHSTK): Likewise.
33185 (reg_IBT): Likewise.
33186 (reg_SHSTK): Likewise.
33187 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33188 Handle index_cpu_IBT and index_cpu_SHSTK.
33189
33190 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33191
33192 [BZ #19982]
33193 * po/fr.po: Fix spelling mistake.
33194
33195 2017-08-13 Florian Weimer <fweimer@redhat.com>
33196
33197 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33198 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33199 (_dl_catch_error, _dl_receive_error): Likewise.
33200 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33201 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33202 (_dl_deallocate_tls): Likewise.
33203 * include/dlfcn.h (_dl_addr): Likewise.
33204 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33205 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33206 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33207 Likewise.
33208
33209 2017-08-13 Florian Weimer <fweimer@redhat.com>
33210
33211 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33212 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33213 internal_function.
33214 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33215
33216 2017-08-13 Florian Weimer <fweimer@redhat.com>
33217
33218 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33219 internal_function.
33220 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33221 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33222 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33223 internal_function from _dl_make_stack_executable_hook member.
33224 (_dl_make_stack_executable): Remove internal_function.
33225 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33226 Likewise.
33227 * sysdeps/unix/sysv/linux/dl-execstack.c
33228 (_dl_make_stack_executable): Likewise.
33229
33230 2017-08-13 Florian Weimer <fweimer@redhat.com>
33231
33232 * sysdeps/unix/sysv/linux/netlinkaccess.h
33233 (__netlink_assert_response): Remove internal_function.
33234 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33235 (__netlink_assert_response): Likewise.
33236
33237 2017-08-13 Florian Weimer <fweimer@redhat.com>
33238
33239 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33240 internal_function.
33241 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33242
33243 2017-08-13 Florian Weimer <fweimer@redhat.com>
33244
33245 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33246 internal_function.
33247 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33248 * inet/netgroup.h (__internal_setnetgrent)
33249 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33250 * inet/getnetgrent_r.c (__internal_setnetgrent)
33251 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33252 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33253 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33254 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33255 * nss/nsswitch.h (db_lookup_function): Likewise.
33256
33257 2017-08-13 Florian Weimer <fweimer@redhat.com>
33258
33259 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33260 Remove internal_function.
33261 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33262 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33263 message argument on the stack.
33264 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33265 Likeweise.
33266
33267 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33268
33269 Adapt test case data to the changes in the thousands
33270 separators.
33271
33272 [BZ #20756]
33273 * localedata/tst-langinfo.sh: Adapt test case data.
33274 * stdlib/tst-strfmon_l.c: Likewise.
33275 * stdlib/tst-strtod4.c: Likewise.
33276 * stdlib/tst-strtod5i.c: Likewise.
33277
33278 2017-08-11 Florian Weimer <fweimer@redhat.com>
33279
33280 [BZ #21242]
33281 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33282 Suppress pedantic warning resulting from statement expression.
33283 (__ASSERT_FUNCTION): Add missing __extension__.
33284
33285 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33286
33287 * benchtests/bench-memmove-large.c: Print output in JSON
33288 format.
33289 * benchtests/bench-memmove.c: Likewise.
33290
33291 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33292 * benchtests/bench-memchr.c (do_one_test): Likewise.
33293 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33294 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33295 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33296 * benchtests/bench-memmove.c (do_one_test): Likewise.
33297 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33298 * benchtests/bench-memset.c (do_one_test): Likewise.
33299 * benchtests/bench-string.h (test_init): Remove memsets.
33300
33301 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33302
33303 * manual/lang.texi
33304 (Computing the Width of an Integer Data Type): Rename section to
33305 "Width of an Integer Type". Remove inaccurate statement regarding
33306 lack of C language facilities for determining width of integer
33307 types, and reorder content to improve flow and context of
33308 discussion.
33309
33310 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33311
33312 * lang.texi (va_copy): Change standard from ISO to C99.
33313 (__va_copy): Add standard and header annotation.
33314 Update description for clarity of origins and current use.
33315
33316 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33317
33318 [BZ #21941]
33319 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33320 xssqrtqp requires operands to be in Vector Registers
33321 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33322 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33323 (__ieee754_sqrtf128): Likewise.
33324
33325 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33326
33327 * sysdeps/aarch64/memcmp.S (memcmp):
33328 Rewrite of optimized memcmp.
33329
33330 2017-08-10 Florian Weimer <fweimer@redhat.com>
33331
33332 Introduce ld.so exceptions.
33333 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33334 (_dl_exception_create, _dl_exception_create_format)
33335 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33336 (_dl_catch_exception): Declare.
33337 (_dl_catch_error): Update comment.
33338 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33339 errstring, malloced members with exception member.
33340 (_dl_out_of_memory): Remove.
33341 (fatal_error): New function, extracted from _dl_signal_error.
33342 (_dl_signal_exception, _dl_signal_cexception): New functions.
33343 (_dl_signal_error): Call _dl_exception_create to allocate an
33344 exception object.
33345 (_dl_catch_exception): New function, based on _dl_catch_error.
33346 (_dl_catch_error): Implement using _dl_catch_exception.
33347 * elf/dl-exception.c: New file.
33348 * elf/Makefile (dl-routines): Add dl-exception.
33349 (elide-routines.os): Likewise.
33350 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33351 _dl_exception_create_format, _dl_exception_free.
33352 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33353 _dl_signal_exception.
33354 * elf/dl-lookup.c (make_string): Remove.
33355 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33356 _dl_signal_cexception, _dl_exception_free.
33357 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33358 _dl_signal_exception.
33359 * elf/dl-sym.c (do_sym): Likewise.
33360 * elf/dl-version.c (make_string): Remove.
33361 (match_symbol): Use _dl_exception_create_format,
33362 _dl_signal_cexception, _dl_exception_free.
33363 (_dl_check_map_versions): Likewise.
33364 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33365 _dl_catch_exception.
33366 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33367 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33368 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33369 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33370 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33371 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33372 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33373 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33374 Likewise.
33375 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33377 (ld.so): Likewise.
33378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33379 (ld.so): Likewise.
33380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33381 Likewise.
33382 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33383 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33384 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33385 Likewise.
33386 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33387 Likewise.
33388 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33389
33390 2017-08-10 Florian Weimer <fweimer@redhat.com>
33391
33392 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33393 attribute_hidden, internal_function.
33394 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33395 internal_function.
33396
33397 2017-08-10 Florian Weimer <fweimer@redhat.com>
33398
33399 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33400 function which calls __builtin_unreachable.
33401
33402 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33403
33404 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33405 Indian monetary formatting
33406 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33407 test cases.
33408
33409 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33410
33411 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33412 Fix typo in comment.
33413
33414 [BZ #21928]
33415 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33416 PTRACE_SEIZE_DEVEL): Remove.
33417 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33418 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33419 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33420 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33421 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33422
33423 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33424
33425 * posix/bits/types.h (__qaddr_t): Remove.
33426
33427 [BZ #21457]
33428 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33429 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33430 __glibc_reserved1.
33431 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33432 (ucontext_t): Use __ctx with uc_flags.
33433 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33434 (__ctxt): Likewise.
33435 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33436 __glibc_reserved1.
33437 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33438 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33439 __glibc_reserved1.
33440 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33441 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33442 __glibc_reserved1.
33443 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33444 macro.
33445 (ucontext_t): Use __ctx with uc_flags.
33446 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33447 (ucontext_t): Use __ctx with uc_flags.
33448 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33449 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33450 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33451 (ucontext_t): Use __ctx with uc_flags.
33452 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33453 undefine further down.
33454 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33455 __glibc_reserved1.
33456 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33457 undefine further down.
33458 (ucontext_t): Use __ctx with uc_flags.
33459 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33460 undefine further down.
33461 (ucontext_t): Use __ctx with uc_flags.
33462 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33463 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33464 Rename uc_pad to __glibc_reserved1.
33465 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33466 undefine further down.
33467 (ucontext_t): Use __ctx with uc_flags.
33468 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33469 further down.
33470 (ucontext_t): Use __ctx with uc_flags.
33471 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33472 __ctx with uc_flags.
33473 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33474 (ucontext_t): Use __ctx with uc_flags.
33475 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33476 __ctx with uc_flags.
33477
33478 2017-08-09 Florian Weimer <fweimer@redhat.com>
33479
33480 [BZ #21932]
33481 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33482 before early return.
33483
33484 2017-08-09 Andreas Schwab <schwab@suse.de>
33485
33486 [BZ #21041]
33487 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33488 renamed alias.
33489
33490 [BZ #21041]
33491 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33492 tst-compat-forwarder.
33493 (modules-names): Add tst-compat-forwarder-mod.
33494 ($(objpfx)tst-compat-forwarder): Depend on
33495 $(objpfx)tst-compat-forwarder-mod.so.
33496 * nptl/tst-compat-forwarder.c: New file.
33497 * nptl/tst-compat-forwarder-mod.c: New file.
33498
33499 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33500
33501 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33502 comments.
33503
33504 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33505 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33506 memcpy_falkor.
33507 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33508 Bump.
33509 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33510 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33511 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33512 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33513 Add falkor.
33514 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33515 New macro.
33516
33517 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33518
33519 [BZ #759]
33520 * manual/setjmp.texi (getcontex): Document uc_stack value
33521 compatibility differences.
33522
33523 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33524
33525 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33526 (old_malloc_hook): Likewise.
33527 (old_memalign_hook): Likewise.
33528 (old_realloc_hook): Likewise.
33529 (struct hdr): Likewise.
33530 (flood): Likewise.
33531 (freehook): Likewise.
33532 (mallochook): Likewise.
33533 (memalignhook): Likewise.
33534 (reallochook): Likewise.
33535 (mprobe): Likewise.
33536 * malloc/mtrace.c (mallwatch): Likewise.
33537 (tr_old_free_hook): Likewise.
33538 (tr_old_malloc_hook): Likewise.
33539 (tr_old_realloc_hook): Likewise.
33540 (tr_old_memalign_hook): Likewise.
33541 (tr_where): Likewise.
33542 (lock_and_info): Likewise.
33543 (tr_freehook): Likewise.
33544 (tr_mallochook): Likewise.
33545 (tr_reallochook): Likewise.
33546 (tr_memalignhook): Likewise.
33547 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33548 * misc/mmap.c (__mmap): Likewise.
33549 * misc/mmap64.c (__mmap64): Likewise.
33550 * misc/mprotect.c (__mprotect): Likewise.
33551 * misc/msync.c (msync): Likewise.
33552 * misc/munmap.c (__munmap): Likewise.
33553 * posix/posix_madvise.c (posix_madvise): Likewise.
33554 * socket/send.c (__send): Likewise.
33555 * socket/sendto.c (__sendto): Likewise.
33556 * socket/setsockopt.c (__setsockopt): Likewise.
33557 * string/memcmp.c (__ptr_t): Remove macro.
33558 (MEMCMP): Use void * instead of ptr_t.
33559 * string/memrchr.c (__ptr_t): Remove macro.
33560 (__memrchr): Use void * instead of ptr_t.
33561 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33562 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33563 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33564 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33565 * sysdeps/mach/msync.c (msync): Likewise.
33566 * sysdeps/mach/munmap.c (__munmap): Likewise.
33567 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33568 Likewise.
33569 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33570 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33571 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33572 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33573 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33574 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33575 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33576 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33577 Likewise.
33578 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33579 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33580 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33581 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33582 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33583 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33584 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33585 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33586 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33587 Likewise.
33588 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33589 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33590 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33591 (MEMCMP): Use void * instead of ptr_t.
33592 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33593 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33594
33595 2017-08-08 Florian Weimer <fweimer@redhat.com>
33596
33597 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33598 return statement.
33599
33600 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33601
33602 [BZ #21913]
33603 * csu/libc-tls.c: Include <startup.h> first.
33604 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33605 * elf/dl-tunables.c: Include <startup.h> first.
33606 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33607 * sysdeps/generic/startup.h: New file.
33608 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33609 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33610 (I386_USE_SYSENTER): New. Defined to 0.
33611
33612 2017-08-08 Andreas Schwab <schwab@suse.de>
33613
33614 [BZ #21041]
33615 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33616 * nptl/pt-system.c (system): Likewise.
33617
33618 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33619
33620 [BZ #21780]
33621 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33622 EOPNOTSUPP.
33623 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33624 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33625 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33626 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33627 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33628 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33629 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33630
33631 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33632
33633 [BZ #21899]
33634 * bits/sigaction.h (struct sigaction): Define sa_handler and
33635 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33636 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33637 [__USE_XOPEN_EXTENDED].
33638 (SA_RESTART): Likewise.
33639 (SA_NODEFER): Likewise.
33640 (SA_RESETHAND): Likewise.
33641 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33642 (struct sigaction): Define sa_handler and sa_sigaction using union
33643 also for [__USE_XOPEN_EXTENDED].
33644 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33645 [__USE_XOPEN_EXTENDED].
33646 (SA_RESTART): Likewise.
33647 (SA_NODEFER): Likewise.
33648 (SA_RESETHAND): Likewise.
33649 * sysdeps/unix/sysv/linux/bits/sigaction.h
33650 (struct sigaction): Define sa_handler and sa_sigaction using union
33651 also for [__USE_XOPEN_EXTENDED].
33652 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33653 [__USE_XOPEN_EXTENDED].
33654 (SA_RESTART): Likewise.
33655 (SA_NODEFER): Likewise.
33656 (SA_RESETHAND): Likewise.
33657 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33658 (struct sigaction): Define sa_handler and sa_sigaction using union
33659 also for [__USE_XOPEN_EXTENDED].
33660 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33661 [__USE_XOPEN_EXTENDED].
33662 (SA_RESTART): Likewise.
33663 (SA_NODEFER): Likewise.
33664 (SA_RESETHAND): Likewise.
33665 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33666 (struct sigaction): Define sa_handler and sa_sigaction using union
33667 also for [__USE_XOPEN_EXTENDED].
33668 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33669 [__USE_XOPEN_EXTENDED].
33670 (SA_RESTART): Likewise.
33671 (SA_NODEFER): Likewise.
33672 (SA_RESETHAND): Likewise.
33673 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33674 (struct sigaction): Define sa_handler and sa_sigaction using union
33675 also for [__USE_XOPEN_EXTENDED].
33676 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33677 [__USE_XOPEN_EXTENDED].
33678 (SA_RESTART): Likewise.
33679 (SA_NODEFER): Likewise.
33680 (SA_RESETHAND): Likewise.
33681 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33682 (struct sigaction): Define sa_handler and sa_sigaction using union
33683 also for [__USE_XOPEN_EXTENDED].
33684 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33685 [__USE_XOPEN_EXTENDED].
33686 (SA_RESTART): Likewise.
33687 (SA_NODEFER): Likewise.
33688 (SA_RESETHAND): Likewise.
33689 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33690 (struct sigaction): Define sa_handler and sa_sigaction using union
33691 also for [__USE_XOPEN_EXTENDED].
33692 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33693 [__USE_XOPEN_EXTENDED].
33694 (SA_RESTART): Likewise.
33695 (SA_NODEFER): Likewise. Define directly rather than as alias.
33696 (SA_RESETHAND): Likewise.
33697 (SA_INTERRUPT): Define only for [__USE_MISC].
33698 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33699 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33700 [__USE_MISC].
33701 (SA_STACK): Define only for [__USE_MISC].
33702 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33703 (struct sigaction): Define sa_handler and sa_sigaction using union
33704 also for [__USE_XOPEN_EXTENDED].
33705 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33706 [__USE_XOPEN_EXTENDED].
33707 (SA_RESTART): Likewise.
33708 (SA_NODEFER): Likewise.
33709 (SA_RESETHAND): Likewise.
33710 (SA_NOPTRACE): Define only for [__USE_MISC].
33711
33712 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33713 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33714 (struct catalog_info): Likewise.
33715 * inet/htontest.c (lo): Likewise.
33716 (foo): Likewise.
33717 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33718 * inet/inet_net.c (inet_network): Likewise.
33719 * inet/inet_netof.c (inet_netof): Likewise.
33720 * inet/rcmd.c (__ivaliduser): Likewise.
33721 (iruserok): Likewise.
33722 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33723 * locale/programs/locale-spec.c (locale_special): Likewise.
33724 * nis/nis_findserv.c (struct findserv_req): Likewise.
33725 (__nis_findfastest_with_timeout): Likewise.
33726 * nss/test-netdb.c (test_network): Likewise.
33727 * resolv/inet_neta.c (inet_neta): Likewise.
33728 * resolv/ns_date.c (ns_datetosecs): Likewise.
33729 (SECS_PER_DAY): Likewise.
33730 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33731 Likewise.
33732 * resolv/res_comp.c (__putlong): Likewise.
33733 (__putshort): Likewise.
33734 (_getlong): Likewise.
33735 (_getshort): Likewise.
33736 * resolv/res_debug.c (p_time): Likewise.
33737 (precsize_ntoa): Likewise.
33738 (precsize_aton): Likewise.
33739 (latlon2ul): Likewise.
33740 (loc_aton): Likewise.
33741 (loc_ntoa): Likewise.
33742 * resolv/res_hconf.c (struct netaddr): Likewise.
33743 (_res_hconf_reorder_addrs): Likewise.
33744 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33745 (clnttcp_control): Likewise.
33746 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33747 (clntudp_control): Likewise.
33748 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33749 (clntunix_control): Likewise.
33750 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33751 * sunrpc/rpc/auth.h (union des_block): Likewise.
33752 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33753 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33754 (xdrrec_create): Likewise.
33755 (xdrrec_endofrecord): Likewise.
33756 (flush_out): Likewise.
33757 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33758 (xdrstdio_putlong): Likewise.
33759 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33760 Likewise.
33761
33762 * misc/sys/cdefs.h (__long_double_t): Remove.
33763 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33764 instead of __long_double_t,
33765 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33766
33767 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33768
33769 * benchtests/scripts/compare_strings.py: Avoid display error when
33770 running on a text terminal.
33771
33772 * benchtests/scripts/compare_strings.py (main): Add an
33773 optional -base option.
33774 (process_results): New argument base_func.
33775
33776 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33777 hardcoding memcpy.
33778 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33779 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33780
33781 2017-08-07 Andreas Schwab <schwab@suse.de>
33782
33783 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33784 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33785 * intl/Makefile ($(objpfx)tst-gettext.out)
33786 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33787 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33788 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33789 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33790 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33791 * posix/Makefile ($(objpfx)globtest.out)
33792 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33793 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33794 ($(objpfx)tst-printf.out): Likewise.
33795 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33796 ($(objpfx)tst-setcontext3.out): Likewise.
33797
33798 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33799
33800 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33801 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33802 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33803 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33804 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33805 and mptan-fma.
33806 (CFLAGS-doasin-fma.c): New.
33807 (CFLAGS-dosincos-fma.c): Likewise.
33808 (CFLAGS-e_asin-fma.c): Likewise.
33809 (CFLAGS-e_atan2-fma.c): Likewise.
33810 (CFLAGS-e_exp-fma.c): Likewise.
33811 (CFLAGS-e_log-fma.c): Likewise.
33812 (CFLAGS-e_pow-fma.c): Likewise.
33813 (CFLAGS-halfulp-fma.c): Likewise.
33814 (CFLAGS-mpa-fma.c): Likewise.
33815 (CFLAGS-mpatan-fma.c): Likewise.
33816 (CFLAGS-mpatan2-fma.c): Likewise.
33817 (CFLAGS-mpexp-fma.c): Likewise.
33818 (CFLAGS-mplog-fma.c): Likewise.
33819 (CFLAGS-mpsqrt-fma.c): Likewise.
33820 (CFLAGS-mptan-fma.c): Likewise.
33821 (CFLAGS-s_atan-fma.c): Likewise.
33822 (CFLAGS-sincos32-fma.c): Likewise.
33823 (CFLAGS-slowexp-fma.c): Likewise.
33824 (CFLAGS-slowpow-fma.c): Likewise.
33825 (CFLAGS-s_sin-fma.c): Likewise.
33826 (CFLAGS-s_tan-fma.c): Likewise.
33827 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33828 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33829 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33830 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33831 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33832 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33833 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33834 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33835 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33836 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33837 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33838 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33839 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33840 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33841 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33842 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33843 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33844 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33845 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33846 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33847 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33848 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33849 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33850 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33851 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33852 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33853 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33854 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33855 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33856 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33857 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33858
33859 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33860
33861 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33862 (min_of_type_f): New macro.
33863 (min_of_type_): Likewise.
33864 (min_of_type_l): Likewise.
33865 (min_of_type_f128): Likewise.
33866 (min_of_type): Define using __MATH_TG and taking an expression
33867 argument.
33868 (math_check_force_underflow): Pass expression instead of type to
33869 min_of_type.
33870 (math_check_force_underflow_nonneg): Likewise.
33871
33872 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33873
33874 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33875 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33876 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33877
33878 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33879
33880 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33881 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33882 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33883 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33884 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33885 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33886 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33887 memmove_chk-nonshared and memset_chk-nonshared
33888 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33889 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33890 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33891 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33892 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33893 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33894 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33895 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33896 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33897 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33898 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33899 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33900 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33901 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33902 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33903 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33904 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33905 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33906 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33907 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
33908 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
33909 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
33910 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
33911 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
33912 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
33913 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
33914 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
33915 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
33916 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
33917 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
33918 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
33919 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
33920 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
33921 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33922 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
33923 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
33924 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
33925 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
33926 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
33927 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
33928 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
33929 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
33930 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
33931 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
33932 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
33933 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
33934 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
33935 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
33936 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
33937 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
33938 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
33939 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
33940 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
33941 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
33942 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
33943 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
33944 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
33945 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
33946 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
33947 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
33948 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
33949 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
33950 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
33951 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
33952 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
33953 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
33954 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
33955 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
33956 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
33957 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
33958 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
33959 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33960 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33961 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33962 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33963 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33964 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33965 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33966 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33967 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33968 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33969 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33970 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33971 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33972 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33973 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33974 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33975 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33976 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33977 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33978 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33979 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33980 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33981 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33982 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33983 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33984 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33985 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33986 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33987 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33988 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33989 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33990 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33991 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33992 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33993 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33994 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33995 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33996
33997 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33998
33999 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34000 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34001 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34002 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34003 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34004 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34005 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34006 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34007 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34008 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34009 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34010 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34011 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34012 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34013 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34014 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34015 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34016 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34017 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34018 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34019 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34020 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34021 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34022 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34023 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34024 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34025 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34026 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34027 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34028 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34029 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34030 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34031 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34032 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34033 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34034 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34035 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34036 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34037 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34038 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34039 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34040 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34041 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34042 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34043 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34044 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34045 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34046 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34047 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34048 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34049 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34050 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34051 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34052 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34053 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34054 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34055 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34056 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34057 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34058 ...
34059 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34060 Don't include <sysdep.h> nor <init-arch.h>.
34061 (_ZGVbN2v_cos): Removed.
34062 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34063 ...
34064 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34065 Don't include <sysdep.h> nor <init-arch.h>.
34066 (_ZGVdN4v_cos): Removed.
34067 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34068 ...
34069 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34070 Don't include <sysdep.h> nor <init-arch.h>.
34071 (_ZGVeN8v_cos): Removed.
34072 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34073 ...
34074 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34075 Don't include <sysdep.h> nor <init-arch.h>.
34076 (_ZGVbN2v_exp): Removed.
34077 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34078 ...
34079 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34080 Don't include <sysdep.h> nor <init-arch.h>.
34081 (_ZGVdN4v_exp): Removed.
34082 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34083 ...
34084 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34085 Don't include <sysdep.h> nor <init-arch.h>.
34086 (_ZGVeN8v_exp): Removed.
34087 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34088 ...
34089 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34090 Don't include <sysdep.h> nor <init-arch.h>.
34091 (_ZGVbN2v_log): Removed.
34092 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34093 ...
34094 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34095 Don't include <sysdep.h> nor <init-arch.h>.
34096 (_ZGVdN4v_log): Removed.
34097 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34098 ...
34099 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34100 Don't include <sysdep.h> nor <init-arch.h>.
34101 (_ZGVeN8v_log): Removed.
34102 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34103 ...
34104 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34105 Don't include <sysdep.h> nor <init-arch.h>.
34106 (_ZGVbN2vv_pow): Removed.
34107 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34108 ...
34109 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34110 Don't include <sysdep.h> nor <init-arch.h>.
34111 (_ZGVdN4vv_pow): Removed.
34112 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34113 ...
34114 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34115 Don't include <sysdep.h> nor <init-arch.h>.
34116 (_ZGVeN8vv_pow): Removed.
34117 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34118 ...
34119 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34120 Don't include <sysdep.h> nor <init-arch.h>.
34121 (_ZGVbN2v_sin): Removed.
34122 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34123 ...
34124 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34125 Don't include <sysdep.h> nor <init-arch.h>.
34126 (_ZGVbN4v_sin): Removed.
34127 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34128 ...
34129 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34130 Don't include <sysdep.h> nor <init-arch.h>.
34131 (_ZGVbN8v_sin): Removed.
34132 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34133 ...
34134 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34135 Don't include <sysdep.h> nor <init-arch.h>.
34136 (_ZGVbN2vvv_sincos): Removed.
34137 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34138 ...
34139 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34140 Don't include <sysdep.h> nor <init-arch.h>.
34141 (_ZGVdN4vvv_sincos): Removed.
34142 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34143 ...
34144 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34145 Don't include <sysdep.h> nor <init-arch.h>.
34146 (_ZGVeN8vvv_sincos): Removed.
34147 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34148 ...
34149 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34150 Don't include <sysdep.h> nor <init-arch.h>.
34151 (_ZGVeN16v_cosf): Removed.
34152 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34153 ...
34154 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34155 Don't include <sysdep.h> nor <init-arch.h>.
34156 (_ZGVbN4v_cosf): Removed.
34157 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34158 ...
34159 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34160 Don't include <sysdep.h> nor <init-arch.h>.
34161 (_ZGVdN8v_cosf): Removed.
34162 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34163 ...
34164 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34165 Don't include <sysdep.h> nor <init-arch.h>.
34166 (_ZGVeN16v_expf): Removed.
34167 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34168 ...
34169 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34170 Don't include <sysdep.h> nor <init-arch.h>.
34171 (_ZGVbN4v_expf): Removed.
34172 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34173 ...
34174 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34175 Don't include <sysdep.h> nor <init-arch.h>.
34176 (_ZGVdN8v_expf): Removed.
34177 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34178 ...
34179 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34180 Don't include <sysdep.h> nor <init-arch.h>.
34181 (_ZGVeN16v_logf): Removed.
34182 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34183 ...
34184 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34185 Don't include <sysdep.h> nor <init-arch.h>.
34186 (_ZGVbN4v_logf): Removed.
34187 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34188 ...
34189 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34190 Don't include <sysdep.h> nor <init-arch.h>.
34191 (_ZGVdN8v_logf): Removed.
34192 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34193 ...
34194 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34195 Don't include <sysdep.h> nor <init-arch.h>.
34196 (_ZGVeN16vv_powf): Removed.
34197 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34198 ...
34199 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34200 Don't include <sysdep.h> nor <init-arch.h>.
34201 (_ZGVbN4vv_powf): Removed.
34202 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34203 ...
34204 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34205 Don't include <sysdep.h> nor <init-arch.h>.
34206 (_ZGVdN8vv_powf): Removed.
34207 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34208 ...
34209 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34210 Don't include <sysdep.h> nor <init-arch.h>.
34211 (_ZGVeN16vvv_sincosf): Removed.
34212 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34213 ...
34214 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34215 Don't include <sysdep.h> nor <init-arch.h>.
34216 (_ZGVbN4vvv_sincosf): Removed.
34217 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34218 ...
34219 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34220 Don't include <sysdep.h> nor <init-arch.h>.
34221 (_ZGVdN8vvv_sincosf): Removed.
34222 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34223 ...
34224 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34225 Don't include <sysdep.h> nor <init-arch.h>.
34226 (_ZGVeN16v_sinf): Removed.
34227 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34228 ...
34229 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34230 Don't include <sysdep.h> nor <init-arch.h>.
34231 (_ZGVbN4v_sinf): Removed.
34232 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34233 ...
34234 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34235 Don't include <sysdep.h> nor <init-arch.h>.
34236 (_ZGVdN8v_sinf): Removed.
34237
34238 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34239
34240 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34241 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34242 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34243 s_rint-sse4_1 and s_rintf-sse4_1.
34244 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34245 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34246 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34247 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34248 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34249 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34250 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34251 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34252 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34253 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34254 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34255 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34256 (__ceil): Removed.
34257 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34258 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34259 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34260 (__ceilf): Removed.
34261 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34262 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34263 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34264 (__floor): Removed.
34265 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34266 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34267 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34268 (__floorf): Removed.
34269 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34270 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34271 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34272 (__nearbyint): Removed.
34273 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34274 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34275 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34276 (__nearbyintf): Removed.
34277 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34278 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34279 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34280 (__rint): Removed.
34281 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34282 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34283 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34284 (__rintf): Removed.
34285
34286 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34287
34288 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34289 SHARED. Avoid dynamic relocation against main in static PIE.
34290
34291 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34292
34293 [BZ #21815]
34294 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34295 (LDFLAGS-tst-prelink): Likewise.
34296
34297 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34298
34299 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34300 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34301 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34302 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34303 (INTERNAL_SYSCALL_NCS): Likewise.
34304 (LOADARGS_1): Likewise.
34305 (LOADARGS_5): Likewise.
34306 (RESTOREARGS_1): Likewise.
34307 (RESTOREARGS_5): Likewise.
34308
34309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34310
34311 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34312 (MEMPCPY_SYMBOL): Likewise.
34313 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34314 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34315 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34316 in libc.a.
34317 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34318 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34319 Likewise.
34320 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34321 (__hidden_ver1): Don't use in libc.a.
34322 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34323 (__mempcpy): Don't create a weak alias in libc.a.
34324 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34325 libc.a.
34326 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34327 (__hidden_ver1): Don't use in libc.a.
34328
34329 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34330
34331 * config.make.in (have-insert): New.
34332 * configure.ac (libc_cv_insert): New. Set to yes if linker
34333 supports INSERT in linker script.
34334 (AC_SUBST(libc_cv_insert): New.
34335 * configure: Regenerated.
34336 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34337 if $(have-insert) == yes.
34338
34339 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34340
34341 * elf/Makefile (tests): Add vismain only if
34342 $(have-protected-data) == yes.
34343 (tests-pie): Likewise.
34344
34345 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34346
34347 [BZ #21871]
34348 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34349 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34350
34351 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34352
34353 [BZ #21790]
34354 * sysdeps/i386/i586/memset.S
34355 (__memset_zero_constant_len_parameter): Removed.
34356 * sysdeps/i386/i686/memset.S
34357 (__memset_zero_constant_len_parameter): Likewise.
34358 * sysdeps/i386/i686/multiarch/memset_chk.S
34359 (__memset_zero_constant_len_parameter): Likewise.
34360 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34361 Likewise.
34362
34363 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34364
34365 * stdlib/getentropy.c (getentropy): Change return type to int.
34366
34367 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34368
34369 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34370
34371 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34372
34373 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34374 u_intN_t.
34375 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34376 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34377 Likewise.
34378 (ieee_float_shape_type): Likewise.
34379 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34380 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34381 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34382 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34383 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34384 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34385 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34386 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34387 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34388 Likewise.
34389 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34390 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34391 (__ieee754_yn): Likewise.
34392 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34393 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34394 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34395 Likewise.
34396 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34397 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34398 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34399 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34400 (__erfc): Likewise.
34401 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34402 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34403 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34404 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34405 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34406 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34407 Likewise.
34408 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34409 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34410 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34411 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34412 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34413 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34414 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34415 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34416 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34417 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34418 (__issignaling): Likewise.
34419 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34420 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34421 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34422 Likewise.
34423 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34424 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34425 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34426 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34427 Likewise.
34428 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34429 Likewise.
34430 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34431 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34432 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34433 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34434 (__erfcf): Likewise.
34435 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34436 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34437 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34438 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34439 Likewise.
34440 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34441 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34442 Likewise.
34443 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34444 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34445 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34446 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34447 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34448 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34449 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34450 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34451 Likewise.
34452 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34453 Likewise.
34454 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34455 Likewise.
34456 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34457 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34458 Likewise.
34459 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34460 Likewise.
34461 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34462 (__ieee754_ynl): Likewise.
34463 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34464 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34465 Likewise.
34466 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34467 Likewise.
34468 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34469 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34470 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34471 Likewise.
34472 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34473 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34474 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34475 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34476 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34477 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34478 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34479 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34480 Likewise.
34481 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34482 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34483 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34484 Likewise.
34485 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34486 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34487 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34488 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34489 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34490 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34491 Likewise.
34492 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34493 Likewise.
34494 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34495 Likewise.
34496 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34497 Likewise.
34498 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34499 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34500 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34501 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34502 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34503 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34504 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34505 Likewise.
34506 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34507 Likewise.
34508 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34509 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34510 Likewise.
34511 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34512 (__ieee754_remainderl): Likewise.
34513 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34514 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34515 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34516 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34517 Likewise.
34518 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34519 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34520 Likewise.
34521 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34522 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34523 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34524 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34525 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34526 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34527 Likewise.
34528 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34529 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34530 (__ieee754_y0l): Likewise.
34531 (pzero): Likewise.
34532 (qzero): Likewise.
34533 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34534 (__ieee754_y1l): Likewise.
34535 (pone): Likewise.
34536 (qone): Likewise.
34537 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34538 (__ieee754_ynl): Likewise.
34539 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34540 (__ieee754_lgammal_r): Likewise.
34541 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34542 Likewise.
34543 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34544 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34545 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34546 (__erfcl): Likewise.
34547 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34548 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34549 Likewise.
34550 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34551 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34552 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34553 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34554 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34555 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34556 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34557 Likewise.
34558 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34559 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34560 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34561 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34562 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34563 Likewise.
34564 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34565 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34566 Likewise.
34567 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34568 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34569 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34570 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34571 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34572
34573 2017-08-03 Florian Weimer <fweimer@redhat.com>
34574
34575 [BZ #21885]
34576 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34577 on memory allocation failure.
34578
34579 2017-08-03 Alan Modra <amodra@gmail.com>
34580
34581 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34582 tst-tlsopt-powerpc.c with function name change and no test harness.
34583 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34584 Call tls_get_addr_opt_test.
34585 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34586 (modules-names): Add mod-tlsopt-powerpc.
34587 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34588 (tst-tlsopt-powerpc): Depend on .so.
34589 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34590 define. Expand use in TLS_GD and TLS_LD.
34591
34592 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34593
34594 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34595 function.
34596 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34597
34598 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34599
34600 [BZ #21686]
34601 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34602 comparing size with that of double.
34603 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34604 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34605 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34606 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34607 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34608 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34609 unsigned __int128 types.
34610
34611 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34612
34613 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34614 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34615 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34616 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34617 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34618
34619 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34620
34621 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34622
34623 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34624
34625 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34626 of SHARED.
34627 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34628 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34629 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34630 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34631 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34632 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34633 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34634
34635 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34636
34637 [BZ #21685]
34638 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34639 bit-field expressions passed to sizeof or typeof.
34640 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34641 (__TGMATH_F128): Likewise.
34642 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34643 (__TGMATH_CF128): Likewise.
34644 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34645 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34646 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34647 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34648 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34649 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34650 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34651 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34652 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34653 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34654 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34655 (__TGMATH_UNARY_IMAG): Likewise.
34656 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34657 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34658 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34659 type.
34660 (define_vars_for_type): Handle bit_field type specially.
34661 (Tests.__init__): Declare structure with bit-field element.
34662
34663 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34664
34665 [BZ #21791]
34666 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34667 (MEMCPY_CHK): Define only if SHARED is defined.
34668 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34669 Likewise.
34670 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34671 Likewise.
34672
34673 See ChangeLog.18 for earlier changes.