]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
sysvipc: Add missing bit of semtimedop s390 consolidation
[thirdparty/glibc.git] / ChangeLog
1 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
4 New define.
5 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
6 (SEMTIMEDOP_IPC_ARGS): Likewise.
7
8 2019-05-21 Florian Weimer <fweimer@redhat.com>
9
10 [BZ #24584]
11 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
12 before updating __counter field and release it afterwards. Add
13 overflow check.
14 * iconv/gconv.h (struct __gconv_step): Mention synchronization
15 requirement for __counter member.
16
17 2019-05-21 Florian Weimer <fweimer@redhat.com>
18
19 [BZ #24583]
20 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
21 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
22 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
23 instead of __gconv_release_step.
24 * libio/Makefile (tests): Add tst-wfile-gconv.
25 (tests-container): Add tst-wfile-ascii.
26 (tst-wfile-gconv-ENV): Enable mtrace.
27 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
28 (tests-special): Add tst-wfile-gconv-mem.out.
29 (tst-wfile-gconv.out): Depend on locales.
30 (tst-wfile-gconv-mem.out): Add mtrace rule.
31 * libio/tst-wfile-ascii.c: New file.
32 * libio/tst-wfile-gconv.c: Likewise.
33
34 2019-05-20 Florian Weimer <fweimer@redhat.com>
35
36 [BZ #24588]
37 libio: Remove codecvt vtable.
38 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
39 __libio_codecvt.
40 * libio/iofgetpos.c (_IO_new_fgetpos): Call
41 __libio_codecvt_encoding.
42 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
43 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
44 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
45 * libio/iofwide.c (__libio_codecvt): Remove variable.
46 (_IO_fwide): Do not copy __libio_codecvt.
47 (__libio_codecvt_out): Rename from do_out and export.
48 (do_unshift): Remove function.
49 (__libio_codecvt_in): Rename from do_in and export.
50 (__libio_codecvt_encoding): Rename from do_encoding and export.
51 (do_always_noconv): Remove function.
52 (__libio_codecvt_length): Rename from do_length and export.
53 (do_max_length): Remove function.
54 * libio/libio.h (enum __codecvt_result): Remove definition; moved
55 to libioP.h.
56 (struct _IO_codecvt): Remove fields __codecvt_destr,
57 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
58 __codecvt_do_encoding, __codecvt_do_always_noconv,
59 __codecvt_do_length, __codecvt_do_max_length.
60 * libio/libioP.h (enum __codecvt_result): Define; moved from
61 libio.h.
62 (__libio_codecvt_out, __libio_codecvt_in)
63 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
64 functions.
65 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
66 (_IO_wfile_underflow): Call __libio_codecvt_in.
67 (_IO_wfile_underflow): Likewise.
68 (_IO_wfile_underflow_mmap): Likewise.
69 (_IO_wfile_sync): Call __libio_codecvt_encoding,
70 __libio_codecvt_length.
71 (adjust_wide_data): Call __libio_codecvt_encoding,
72 __libio_codecvt_in.
73 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
74 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
75 __libio_codecvt_length.
76
77 2019-05-20 Florian Weimer <fweimer@redhat.com>
78
79 * support/support.h (support_sbindir_prefix): Declare.
80 (support_install_rootsbindir): Update comment.
81 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
82 * support/support_paths.c (support_sbindir_prefix): Define.
83
84 2019-05-20 Mike Crowe <mac@mcrowe.com>
85
86 * support/timespec.c: Add backslash to correct newline in failure
87 message.
88
89 * support/timespec.h: Correct confusing comment.
90
91 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
92
93 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
94 define.
95 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
96 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
97 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
98 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
99
100 [BZ #24570]
101 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
102 usage.
103
104 2019-05-20 Joseph Myers <joseph@codesourcery.com>
105
106 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
107 (NT_ARM_PACG_KEYS): Likewise.
108
109 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
110
111 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
112 (tcache_put): Remove redundant assert.
113 (tcache_get): Remove redundant asserts.
114 (__libc_malloc): Check tcache count is not zero.
115 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
116
117 2019-05-17 Florian Weimer <fweimer@redhat.com>
118
119 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
120
121 2019-05-16 Joseph Myers <joseph@codesourcery.com>
122
123 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
124 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
125 0x050100].
126 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
127 Likewise.
128 * sysdeps/unix/sysv/linux/sh/kernel-features.h
129 (__ASSUME_STATX): Likewise.
130
131 2019-05-16 Florian Weimer <fweimer@redhat.com>
132
133 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
134 flags argument.
135 (LINE_PARSER): Do not map IPv4 addresses.
136 (internal_nis_gethostent_r): Remove flags argument. Adjust call
137 to parse_line.
138 (_nss_nis_gethostent_r): Always pass AF_INET to
139 internal_nis_gethostent_r.
140 (internal_gethostbyname2_r): Remove flags argument. Adjust call
141 to parse_line.
142 (_nss_nis_gethostbyname2_r): Adjust call to
143 internal_nis_gethostent_r.
144 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
145 call to internal_nis_gethostent_r.
146 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
147 from parse_line.
148 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
149 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
150 Remove flags argument. Do not map IPv4 addresses.
151 (internal_nisplus_gethostent_r): Adjust call to
152 _nss_nisplus_parse_hostent.
153 (internal_gethostbyname2_r): Remove flags argument. Adjust call
154 to _nss_nisplus_parse_hostent.
155 (_nss_nisplus_gethostbyname2_r): Adjust call to
156 internal_gethostbyname2_r.
157 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
158 Adjust call to internal_gethostbyname2_r.
159 (_nss_nisplus_gethostbyaddr_r): Adjust call to
160 _nss_nisplus_parse_hostent.
161 (_nss_nisplus_gethostbyname4_r): Adjust call to
162 internal_gethostbyname2_r.
163
164 2019-05-16 Florian Weimer <fweimer@redhat.com>
165
166 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
167 Remove flags.
168 (LINE_PARSER): Remove address mapping.
169 (EXTRA_ARGS_VALUE): Remove flags argument.
170 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
171 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
172 gethostbyname3_multi.
173 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
174 _nss_files_gethostbyname3_r.
175 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
176
177 2019-05-16 Florian Weimer <fweimer@redhat.com>
178
179 * support/support_test_compare_blob.c (report_blob): Report
180 incorrect NULL blobs.
181
182 2019-05-15 Mark Wielaard <mark@klomp.org>
183
184 [BZ# 24476]
185 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
186 __libc_once_get (once) and static_buf == NULL.
187 (__dlerror): Check we have a valid key, set result to static_buf
188 otherwise.
189
190 2019-05-15 Andreas Schwab <schwab@suse.de>
191
192 [BZ #20568]
193 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
194 __codecvt_do_length.
195 * libio/Makefile (tests): Add tst-wfile-sync.
196 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
197 * libio/tst-wfile-sync.c: New file.
198 * libio/tst-wfile-sync.input: New file.
199
200 2019-05-15 Florian Weimer <fweimer@redhat.com>
201
202 nss: Turn __nss_database_lookup into a compatibility symbol.
203 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
204 __nss_database_lookup.
205 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
206 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
207 __nss_database_lookup.
208 (__nss_next): Move to …
209 * nss/compat-lookup.c (nss_next): … here. Change it to fail
210 unconditionally.
211 (__nss_database_lookup): New function.
212 * nss/Versions (GLIBC_2.0): Update comment.
213 (GLIBC_PRIVATE): Export __nss_database_lookup2.
214 * grp/initgroups.c (internal_getgrouplist): Call
215 __nss_database_lookup2 instead of __nss_database_lookup.
216 * nscd/aicache.c (addhstaiX): Likewise.
217 * nscd/initgrcache.c (addinitgroupsX): Likewise.
218 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
219 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
220 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
221 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
222 Likewise.
223 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
224 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
225 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
226
227 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
228
229 * support/support.h (support_install_rootsbindir): New variable.
230 * support/support_paths.c: Likewise.
231 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
232
233 2019-05-15 Florian Weimer <fweimer@redhat.com>
234
235 * iconv/gconv.h (__gconv_transliterate): Move declaration …
236 * iconv/gconv_int.h (__gconv_transliterate): … here.
237 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
238 * iconv/skeleton.c: Likewise.
239
240 2019-05-14 Florian Weimer <fweimer@redhat.com>
241
242 Linux: Add the tgkill function.
243 * bits/signal_ext.h: New file.
244 * manual/signal.texi (Signaling Another Process): Document tgkill.
245 * signal/Makefile (headers): Add bits/signal_ext.h.
246 * signal/signal.h: Include <bits/signal_ext.h>.
247 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
248 (tst-tgkill): Link with libpthread.
249 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
250 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
251 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
252 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
253 tgkill.
254 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
255 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
256 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
257 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
258 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
259 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
260 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
261 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
262 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
263 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
264 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
265 Likewise.
266 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
267 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
268 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
270 Likewise.
271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
272 Likewise.
273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
274 Likewise.
275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
276 Likewise.
277 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
278 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
279 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
280 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
281 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
282 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
283 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
284 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
285
286 2019-05-14 Carlos O'Donell <carlos@redhat.com>
287
288 * manual/search.texi (Tree Search Function): Adjust twalk_r
289 documentation.
290
291 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
292
293 [BZ #24544]
294 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
295 pre-defined value.
296
297 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
298 * support/support.h (support_bindir_prefix): New variable.
299 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
300
301 * config.make.in (bindir): New variable.
302
303 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
304 (lll_trylock): Call __lll_trylock.
305 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
306 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
307 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
308 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
309 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
310 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
311 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
312 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
313 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
314 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
315 lowlevellock-futex.h.
316
317 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
318 initialization for LLL_LOCK_INITIALIZER different than 0.
319 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
320 Assume LLL_LOCK_INITIALIZER being 0.
321 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
322 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
323 Likewise.
324 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
325 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
326
327 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
328 Optimize futex call and add systemtap probe.
329
330 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
331 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
332 __libc_disable_asynccancel, __librt_enable_asynccancel,
333 __libc_disable_asynccancel, __librt_enable_asynccancel,
334 __librt_disable_asynccancel): Move to ...
335 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
336 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
337 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
338 * sysdeps/generic/single-thread.h: New file.
339 * sysdeps/unix/sysdep.h: Include single-thread.h.
340 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
341 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
342
343 2019-05-08 Mike FABIAN <mfabian@redhat.com>
344
345 [BZ #24535]
346 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
347 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
348 Unicode 12.1.0.
349 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
350 * localedata/unicode-gen/PropList.txt: Likewise.
351 * localedata/unicode-gen/UnicodeData.txt: Likewise.
352 * localedata/charmaps/UTF-8: Regenerate.
353 * localedata/locales/i18n_ctype: Likewise.
354 * localedata/locales/tr_TR: Likewise.
355 * localedata/locales/translit_circle: Likewise.
356 * localedata/locales/translit_cjk_compat: Likewise.
357 * localedata/locales/translit_combining: Likewise.
358 * localedata/locales/translit_compat: Likewise.
359 * localedata/locales/translit_font: Likewise.
360 * localedata/locales/translit_fraction: Likewise.
361
362 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
363
364 [BZ #24531]
365 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
366 (do_set_tcache_count): Only update if count is small enough.
367 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
368
369 2019-05-10 Florian Weimer <fweimer@redhat.com>
370
371 * nptl/sem_close.c (struct walk_closure): Define.
372 (walker): Adjust for __twalk_r.
373 (sem_close): Call __twalk_r.
374
375 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
376
377 * support/timespec.c (test_timespec_before_impl,
378 test_timespec_equal_or_after_impl): print timespec member as intmax_t
379 insted of long int.
380
381 2019-05-09 Mike Crowe <mac@mcrowe.com>
382
383 * nptl/tst-abstime.c: Use libsupport.
384
385 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
386 small bug where only tv.tv_usec was checked which could cause an
387 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
388 than a second.
389
390 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
391 libsupport.
392
393 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
394 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
395
396 * nptl/tst-cond11.c: Use libsupport.
397
398 * support/timespec.h: New file. Provide timespec helper functions
399 along with macros in the style of those in check.h.
400 * support/timespec.c: New file. Implement check functions declared
401 in support/timespec.h.
402 * support/timespec-add.c: New file from gnulib containing
403 timespec_add implementation that handles overflow.
404 * support/timespec-sub.c: New file from gnulib containing
405 timespec_sub implementation that handles overflow.
406 * support/README: Mention timespec.h.
407
408 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
409
410 [BZ #24537]
411 * nptl/Makefile: Move tst-eintr1 to xtests.
412
413 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
414
415 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
416 TRUNC handling.
417 (round_mode): Add definition for TRUNC.
418 * sysdeps/powerpc/fpu/s_trunc.c: New file.
419 * sysdeps/powerpc/fpu/s_truncf.c: New file.
420 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
421 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
422 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
423 Likewise.
424 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
425 Likewise.
426 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
427 Likewise.
428 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
429 Likewise.
430 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
431 file.
432 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
433 Likewise.
434 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
435 Likewise.
436 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
437 Likewise.
438 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
439 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
440 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
441 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
442 s_truncf-power5+, and s_truncf-ppc64.
443 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
444 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
445 file.
446 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
448 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
449 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
450 file.
451 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
452 Likewise.
453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
454 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
455 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
456 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
457 s_truncf-power5+, and s_truncf-ppc64.
458 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
459 file.
460 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
461 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
462 Likewise.
463 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
464 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
465 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
466 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
467 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
468
469 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
470 ROUND handling.
471 (round_mode): Add definition for ROUND.
472 (round_to_integer_float): Likewise.
473 * sysdeps/powerpc/fpu/s_round.c: New file.
474 * sysdeps/powerpc/fpu/s_roundf.c: New file.
475 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
476 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
477 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
478 Likewise.
479 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
480 Likewise.
481 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
482 Likewise.
483 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
484 Likewise.
485 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
486 file.
487 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
488 Likewise.
489 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
490 Likewise.
491 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
492 Likewise.
493 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
494 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
495 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
496 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
497 s_roundf-power5+, and s_roundf-ppc64.
498 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
499 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
500 file.
501 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
502 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
503 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
504 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
505 file.
506 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
507 Likewise.
508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
509 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
510 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
511 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
512 s_roundf-power5+, and s_roundf-ppc64.
513 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
514 file.
515 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
516 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
517 Likewise.
518 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
519 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
520 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
521 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
522 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
523
524 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
525 Add FLOOR option.
526 (round_mode): Add definition for FLOOR.
527 * sysdeps/powerpc/fpu/s_floor.c: New file.
528 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
529 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
530 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
532 Remove file.
533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
534 Likewise
535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
536 Likewise.
537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
538 Likewise.
539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
540 New file.
541 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
542 Likewise.
543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
544 Likewise.
545 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
546 Likewise.
547 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
548 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
549 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
550 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
551 s_floorf-power5+, and s_floorf-ppc64.
552 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
553 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
554 file.
555 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
557 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
558 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
559 file.
560 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
561 Likewise.
562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
563 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
564 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
565 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
566 s_floorf-power5+, and s_floorf-ppc64.
567 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
568 file.
569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
570 file.
571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
572 Likewise.
573 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
574 Likewise.
575 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
576 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
577 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
578 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
579
580 2019-05-08 Mike Crowe <mac@mcrowe.com>
581
582 * support/xclock_gettime.c (xclock_gettime): New file. Provide
583 clock_gettime wrapper for use in tests that fails the test rather
584 than returning failure.
585
586 * support/xtime.h: New file to declare xclock_gettime.
587
588 * support/Makefile: Add xclock_gettime.c.
589
590 * support/README: Mention xtime.h.
591
592 2019-05-08 Florian Weimer <fweimer@redhat.com>
593
594 malloc/tst-mallocfork2: Use process-shared barriers.
595 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
596 (signal_count, sigusr1_sender_pid): Remove.
597 (iterations): Define constant.
598 (shared): New variable.
599 (sigusr1_received): Update comment.
600 (sigusr1_handler): Do not send SIGSTOP to the sender process.
601 (signal_sender): Optional use barriers to avoid sending signals
602 during irrelevant times.
603 (do_it): Initialize variable shared. Use xfork for error
604 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
605 the iteration count, independent of signal delivery. Check for
606 deadlocks in fork. Introduce barriers for reducing signal
607 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
608 replaced by the barriers. Count signals during fork/free/malloc
609 and report them.
610 * malloc/Makefile (tst-mallocfork): Link with libpthread.
611
612 2019-05-07 Joseph Myers <joseph@codesourcery.com>
613
614 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
615 version to 5.1.
616 (clock_adjtime64) New syscall.
617 (clock_getres_time64) Likewise.
618 (clock_gettime64) Likewise.
619 (clock_nanosleep_time64) Likewise.
620 (clock_settime64) Likewise.
621 (futex_time64) Likewise.
622 (io_pgetevents_time64) Likewise.
623 (io_uring_enter) Likewise.
624 (io_uring_register) Likewise.
625 (io_uring_setup) Likewise.
626 (mq_timedreceive_time64) Likewise.
627 (mq_timedsend_time64) Likewise.
628 (pidfd_send_signal) Likewise.
629 (ppoll_time64) Likewise.
630 (pselect6_time64) Likewise.
631 (recvmmsg_time64) Likewise.
632 (rt_sigtimedwait_time64) Likewise.
633 (sched_rr_get_interval_time64) Likewise.
634 (semtimedop_time64) Likewise.
635 (timer_gettime64) Likewise.
636 (timer_settime64) Likewise.
637 (timerfd_gettime64) Likewise.
638 (timerfd_settime64) Likewise.
639 (utimensat_time64) Likewise.
640
641 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
642 version to 9 branch.
643
644 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
645
646 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
647 __memmove_thunderx2 to the list of implementations
648 * sysdeps/aarch64/multiarch/memmove.c: Likewise
649 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
650 (__memmove_thunderx2): Rewritten using SIMD ld/st
651 (__memcpy_thunderx2): Fixed handling overlapping cases.
652 Used ldp/stp instead of ldr/str if possible. Made loops
653 tails branchless.
654
655 2019-05-03 Florian Weimer <fweimer@redhat.com>
656
657 * misc/tst-tsearch.c (walk_tree): Add more error checking.
658
659 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
660
661 [BZ #24506]
662 * elf/tst-pldd.c (in_str_list): New function.
663 (do_test): Add default names for ld and libc as one option.
664
665 2019-05-02 Florian Weimer <fweimer@redhat.com>
666
667 misc: Add twalk_r function.
668 * include/search.h (__twalk_r): Declare.
669 * manual/examples/twalk.c: New file.
670 * manual/search.texi (Tree Search Function): Document twalk_r.
671 * misc/Versions (2.30): Export twalk_r.
672 (GLIBC_PRIVATE): Export __twalk_r.
673 * misc/search.h [__USE_GNU] (twalk_r): Declare.
674 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
675 (twalk_r): Add weak alias.
676 * misc/tst-tsearch.c (struct walk_trace_element): Define.
677 (walk_trace): New variable.
678 (struct twalk_with_twalk_r_closure): Define.
679 (twalk_with_twalk_r_action): New function.
680 (twalk_with_twalk_r): Likewise.
681 (walk_action): Call walk_trace_add.
682 (walk_tree_with): Rename from walk_tree. Add walk argument.
683 (walk_tree): New function.
684 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
685 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
686 Likewise.
687 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
688 Likewise.
689 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
690 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
691 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
692 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
693 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
694 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
695 Likewise.
696 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
697 Likewise.
698 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
699 Likewise.
700 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
701 (GLIBC_2.30): Likewise.
702 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
703 (GLIBC_2.30): Likewise.
704 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
705 (GLIBC_2.30): Likewise.
706 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
707 (GLIBC_2.30): Likewise.
708 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
709 Likewise.
710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
711 (GLIBC_2.30): Likewise.
712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
713 (GLIBC_2.30): Likewise.
714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
715 (GLIBC_2.30): Likewise.
716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
717 (GLIBC_2.30): Likewise.
718 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
719 Likewise.
720 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
721 Likewise.
722 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
723 Likewise.
724 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
725 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
726 Likewise.
727 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
728 Likewise.
729 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
730 Likewise.
731 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
732 Likewise.
733
734 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
735
736 Make mktime etc. compatible with __time64_t
737 Keep these functions compatible with Gnulib while adding
738 __time64_t support. The basic idea is to move private API
739 declarations from include/time.h to time/mktime-internal.h, since
740 the former file cannot easily be shared with Gnulib whereas the
741 latter can.
742 Also, do some other minor cleanup while in the neighborhood.
743 * include/time.h: Include stdbool.h, time/mktime-internal.h.
744 (__mktime_internal): Move this prototype to time/mktime-internal.h,
745 since Gnulib needs it.
746 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
747 Move these macros to time/mktime-internal.h, since Gnulib needs them.
748 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
749 (in_time_t_range): New static function.
750 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
751 so that glibc users are not tempted to use __time64_t.
752 * time/mktime-internal.h: Rewrite so that it does both glibc
753 and Gnulib work. Include time.h if not _LIBC.
754 (mktime_offset_t) [!_LIBC]: Define for gnulib.
755 (__time64_t): New type or macro, moved here from
756 posix/bits/types.h.
757 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
758 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
759 from include/time.h.
760 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
761 New macros, taken from GNulib.
762 (__mktime_internal): New prototype, moved here from include/time.h.
763 * time/mktime.c (mktime_min, mktime_max, convert_time)
764 (ranged_convert, __mktime_internal, __mktime64):
765 * time/timegm.c (__timegm64):
766 Use __time64_t, not time_t.
767 * time/mktime.c: Stop worrying about whether time_t is floating-point.
768 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
769 Rename from mktime.
770 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
771 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
772 for libc_hidden_def.
773 Include errno.h.
774 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
775 Rename from timegm.
776 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
777
778 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
779
780 [BZ #19444]
781 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
782 from `-Wmaybe-uninitialized'.
783 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
784
785 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
786
787 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
788 function.
789 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
790 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
791 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
792 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
793 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
794 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
795 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
797 Remove file.
798 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
799 Likewise.
800 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
801 Likewise.
802 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
803 Likewise.
804 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
805 New file.
806 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
807 Likewise.
808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
809 Likewise.
810 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
811 Likewise.
812 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
813 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
814 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
815 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
816 Likewise.
817 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
818 Likewise.
819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
820 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
821 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
822 file.
823 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
824 Likewise.
825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
826 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
827 * here.
828 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
829 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
830 s_ceilf-power5+, and s_ceilf-ppc64.
831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
832 file.
833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
836 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
837 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
838 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
839 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
840
841 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
842 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
843 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
844
845 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
846
847 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
848 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
849 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
850 (sem_getvalue): Likewise.
851
852 2019-04-26 Florian Weimer <fweimer@redhat.com>
853
854 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
855 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
856
857 2019-04-26 Florian Weimer <fweimer@redhat.com>
858
859 Makeconfig: Move -Wl,-rpath-link options before library references.
860 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
861 (link-libc): Remove $(link-libc-rpath-link).
862
863 2019-04-25 Florian Weimer <fweimer@redhat.com>
864
865 * Makeconfig (+link-pie-before-libc): Remove $(CC).
866 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
867 (+link-static-before-libc): Remove $(CC).
868 (+link-static, +link-static-tests): Add $(CC).
869 (+link-before-libc): Remove $(CC).
870 (+link, +link-pie, +link-pie-printers): Add $(CC).
871
872 2019-04-26 Florian Weimer <fweimer@redhat.com>
873
874 * Makeconfig (+link-pie-before-libc): Remove $(CC).
875 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
876 (+link-static-before-libc): Remove $(CC).
877 (+link-static, +link-static-tests): Add $(CC).
878 (+link-before-libc): Remove $(CC).
879 (+link, +link-pie, +link-pie-printers): Add $(CC).
880
881 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
882
883 [BZ#24484]
884 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
885
886 2019-04-25 Florian Weimer <fweimer@redhat.com>
887
888 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
889 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
890 (bench-link-targets): New variable.
891 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
892
893 2019-04-25 Florian Weimer <fweimer@redhat.com>
894
895 Also enable BIND_NOW for programs if --enable-bind-now.
896 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
897 (+link-pie): Use $(link-extra-flags).
898 (+link-static): Likewise.
899 [! $(build-pie-default)] (+link): Likewise.
900 * manual/install.texi (Configuring and compiling): Update
901 --enable-bind-now description.
902 * INSTALL: Regenerated.
903
904 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
905
906 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
907 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
908
909 2019-04-24 Mike Frysinger <vapier@gentoo.org>
910
911 [BZ #18465]
912 * malloc/Makefile (others): Add memusagestat.
913 ($(objpfx)memusagestat): Delete rule.
914 (LDLIBS-memusagestat): New variable.
915
916 2019-04-24 Florian Weimer <fweimer@redhat.com>
917
918 * locale/Makefile (tests-special): Guard setting by
919 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
920 to run while cross-compiling.
921
922 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
923
924 [BZ #18035]
925 * elf/Makefile (tests-container): Add tst-pldd.
926 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
927 (E(find_maps)): Avoid use alloca, use default read file operations
928 instead of explicit LFS names, and fix infinite loop.
929 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
930 (get_process_info): Use _Static_assert instead of assert, use default
931 directory operations instead of explicit LFS names, and free some
932 leadek pointers.
933 * elf/tst-pldd.c: New file.
934
935 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
936
937 * malloc/arena.c (do_set_mallopt_check): Removed.
938
939 2019-04-23 Florian Weimer <fweimer@redhat.com>
940
941 locale: Add LOCPATH diagnostics to the locale program.
942 * locale/programs/locale.c (setlocale_failed): New variable.
943 (try_setlocale): New function.
944 (quote_string): Likewise.
945 (setlocale_diagnostics): Likewise.
946 (main): Call try_setlocale instead of setlocale. Call
947 setlocale_diagnostics.
948 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
949 (tst-locale-locpath.out): New target.
950 * locale/tst-locale-locpath.sh: New file.
951
952 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
953
954 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
955 to 2.30 notes.
956
957 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
958
959 [BZ #23741]
960 * malloc/hooks.c (malloc_check, realloc_check): Use
961 __builtin_add_overflow on overflow check and adapt to
962 checked_request2size change.
963 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
964 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
965 allocation size to PTRDIFF_MAX.
966 (REQUEST_OUT_OF_RANGE): Remove macro.
967 (checked_request2size): Change to inline function and limit maximum
968 requested size to PTRDIFF_MAX.
969 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
970 maximum allocation size to PTRDIFF_MAX.
971 (_mid_memalign): Use _int_memalign call for overflow check.
972 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
973 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
974 limit maximum requested size to PTRDIFF_MAX.
975 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
976 valloc, pvalloc): Add __attribute_alloc_size__.
977 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
978 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
979 larger than PTRDIFF_MAX.
980 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
981 around tests of malloc with negative sizes.
982 * malloc/tst-posix_memalign.c (do_test): Likewise.
983 * malloc/tst-pvalloc.c (do_test): Likewise.
984 * malloc/tst-valloc.c (do_test): Likewise.
985 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
986 with resulting size allocation larger than PTRDIFF_MAX with
987 reallocarray_nowarn.
988 (reallocarray_nowarn): New function.
989 * NEWS: Mention the malloc function semantic change.
990
991 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
992
993 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
994 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
995
996 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
997 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
998 * sysdeps/powerpc/fpu/s_fma.c: New file.
999 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1000
1001 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1002 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1003
1004 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1005 the magic flag store.
1006 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1007 Likewise.
1008 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1009 Likewise.
1010 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1011 Remove rt_sigreturn call.
1012
1013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1014 Remove rt_sigreturn call.
1015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1016 Likewise.
1017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1019
1020 * support/Makefile (libsupport-routines): Add support_subprocess,
1021 xposix_spawn, xposix_spawn_file_actions_addclose, and
1022 xposix_spawn_file_actions_adddup2.
1023 (tst-support_capture_subprocess-ARGS): New rule.
1024 * support/capture_subprocess.h (support_capture_subprogram): New
1025 prototype.
1026 * support/support_capture_subprocess.c (support_capture_subprocess):
1027 Refactor to use support_subprocess and support_capture_poll.
1028 (support_capture_subprogram): New function.
1029 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1030 str_to_write_mode, test_common, parse_int, handle_restart,
1031 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1032 (do_test): Add support_capture_subprogram tests.
1033 * support/subprocess.h: New file.
1034 * support/support_subprocess.c: Likewise.
1035 * support/xposix_spawn.c: Likewise.
1036 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1037 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1038 * support/xspawn.h: Likewise.
1039
1040 2019-04-17 Mike Gerow <gerow@google.com>
1041
1042 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1043 groups limit.
1044
1045 2019-04-11 Florian Weimer <fweimer@redhat.com>
1046
1047 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1048 domain with empty string.
1049 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1050
1051 2019-04-11 Florian Weimer <fweimer@redhat.com>
1052
1053 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1054 comment.
1055 (alloc_buffer_next): Change return type to non-const. Update
1056 comment.
1057
1058 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1059
1060 * manual/time.texi (Formatting Calendar Time): Add missing percent
1061 sign to conversion specifier.
1062
1063 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1064 Kwok Cheung Yeung <kcy@codesourcery.com>
1065
1066 [BZ #16573]
1067 * malloc/mtrace.c: Define prototypes for all hooks.
1068 (set_default_hooks): New function.
1069 (set_trace_hooks): Likewise.
1070 (save_default_hooks): Likewise.
1071 (tr_freehook): Use new s*_hooks functions.
1072 (tr_mallochook): Likewise.
1073 (tr_reallochook): Likewise.
1074 (tr_memalignhook): Likewise.
1075 (mtrace): Likewise.
1076 (muntrace): Likewise.
1077
1078 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1079
1080 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1081 (generic_stpcpy): New function.
1082 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1083 (generic_stpncpy): New function.
1084 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1085 (generic_strcat): New function.
1086 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1087 (generic_strcpy): New function.
1088 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1089 (STUPID_STRNCAT): Remove function.
1090 (generic_strncat): New function.
1091 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1092 (STUPID_STRNCPY): Remove function.
1093 (generic_strncpy): New function.
1094 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1095 (generic_strnlen): New function.
1096 (memchr_strnlen): New function.
1097 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1098 (memchr_strlen): Likewise.
1099
1100 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1101
1102 * benchtests/bench-strstr.c (input): Add realistic input text.
1103 (stupid_strstr): Remove function.
1104 (basic_strstr): Add function.
1105 (twoway_strstr): Add function.
1106 (do_one_test): Add result checking.
1107 (do_test): Use new input text. Remove accidental early matches.
1108 (test_main): Improve range of tests, reduce unaligned cases.
1109
1110 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1111
1112 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1113 (basic_memmem): Add function.
1114 (twoway_memmem): Add function.
1115
1116 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1117
1118 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1119 * benchtests/bench-malloc-thread.c: Likewise.
1120 * benchtests/bench-skeleton.c: Likewise.
1121 * benchtests/bench-strtod.c: Likewise.
1122 * benchtests/bench-timing.h: Likewise.
1123
1124 2019-04-08 Florian Weimer <fweimer@redhat.com>
1125
1126 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1127 definitions.
1128 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1129 RES_INSECURE2 security checks.
1130 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1131 RES_INSECURE2 handling.
1132
1133 2019-04-08 Florian Weimer <fweimer@redhat.com>
1134
1135 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1136 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1137 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1138 GETHOSTBYNAME.
1139 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1140 (tests-internal): Update justification for tst-resolv-res_init,
1141 tst-resolv-res_init-thread.
1142 (tst-res_use_inet6): Remove target.
1143 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1144 * resolv/res_debug.c (p_option): Remove "inet6" support.
1145 * resolv/res_init.c (res_setoptions): Likewise.
1146 * resolv/res_use_inet6.h: Remove file.
1147 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1148 definition.
1149 (res_use_inet6): Always return false.
1150 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1151 * resolv/resolv_context.h: Adjust file comment.
1152 (struct resolv_context): Update comment on __next field.
1153 (__resolv_context_put): Update comment.
1154 * resolv/tst-res_use_inet6.c: Remove file.
1155 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1156 "inet6" support.
1157 (test_cases): Adjust test case.
1158 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1159 (thread_byname2_af_inet6): Use old byname_inet6 code.
1160 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1161 (gai): Remove do_inet6 argument.
1162 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1163 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1164 (thread_gai_unspec_inet6): Remove functions.
1165 (do_test): Adjust thread_funcs.
1166 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1167 RES_USE_INET6 flag.
1168 (gaih_inet): Do not disable RES_USE_INET6 flag.
1169
1170 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1171
1172 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1173 and remove redundant code.
1174
1175 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1176
1177 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1178 New rule.
1179 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1180 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1181 Likewise.
1182 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1183 Likewise.
1184 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1185 Likewise.
1186 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1187 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1188 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1189 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1190 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1191 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1192 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1193 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1194 wcsrchr-power7.
1195 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1196 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1197 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1198 Remove wcsrchr optimizations.
1199 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1200
1201 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1202 the loop unroll.
1203
1204 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1205 New rule.
1206 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1207 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1208 Likewise.
1209 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1210 Likewise.
1211 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1212 Likewise.
1213 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1214 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1215 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1216 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1217 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1218 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1219 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1220 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1221 wcschr-power7.
1222 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1223 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1224 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1225 Remove wcschr optimizations.
1226 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1227
1228 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1229 the loop unroll.
1230
1231 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1232 New rule.
1233 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1234 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1235 Likewise.
1236 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1237 Likewise.
1238 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1239 Likewise.
1240 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1241 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1242 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1243 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1244 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1245 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1246 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1247 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1248 wcscpy-power7.
1249 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1250 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1251 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1252 Remove wcscpy optimizations.
1253 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1254
1255 * include/loop_unroll.h: New file.
1256 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1257 besides generic implementation.
1258
1259 2019-04-03 DJ Delorie <dj@redhat.com>
1260
1261 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1262 snprintf truncating output.
1263
1264 2019-04-02 DJ Delorie <dj@redhat.com>
1265
1266 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1267 warning.
1268
1269 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1270
1271 [BZ #22964]
1272 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1273 era.
1274 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1275 (mkreftable): Add rules for the new Japanese era and the new dates.
1276
1277 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1278 Rafal Luzynski <digitalfreak@lingonborough.com>
1279
1280 * time/tst-strftime2.c (date_t): Explicitly define the type.
1281 (dates): Use natural month and year numbers to express a date.
1282 (is_before): New function to compare dates.
1283 (mkreftable): Minor improvements to simplify maintenance.
1284 (do_test): Reflect the changes in dates array.
1285
1286 [BZ #24293]
1287 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1288 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1289 * time/tst-strftime2.c (locales): Likewise.
1290 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1291 2010-04-01, and 2011-04-01.
1292 (mkreftable): Add rules for the new locales and the new dates.
1293
1294 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1295
1296 * localedata/locales/ja_JP: Add comments to era entries.
1297
1298 2019-04-01 DJ Delorie <dj@redhat.com>
1299
1300 [BZ #24394]
1301 * time/strptime_l.c (%Ey): Fix fencepost error.
1302 * time/tst-strftime3.c: New.
1303 * time/Makefile (tests): Add tst-strftime3.
1304
1305 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1306
1307 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1308 conditional branch to DIVBYZERO. Fix unwind info.
1309 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1310 excb after conditional branch to $powerof2. Add missing unop
1311 instructions and .align directives and reorder instructions to
1312 match __divqu.
1313
1314 2019-04-01 Richard Henderson <rth@twiddle.net>
1315
1316 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1317 Do not redefine.
1318 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1319 Do not redefine.
1320
1321 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1322
1323 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1324 $libc_cv_riscv_float_abi in `test' invocation.
1325 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1326
1327 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1328
1329 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1330 asm with builtin.
1331 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1332 Likewise.
1333 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1334 (_GET_SI_FPSCR): Likewise.
1335 (_SET_SI_FPSCR): Likewise.
1336
1337 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1338
1339 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1340 clang 2.8.
1341 (signbit): Use builtin for clang 3.3.
1342 (isinf): Use builtin for clang 3.7.
1343
1344 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1345
1346 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1347
1348 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1349
1350 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1351 quote in printf.
1352
1353 2019-03-25 Mike Crowe <mac@mcrowe.com>
1354
1355 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1356 pthread_rwlock_timedrdlock with calls to
1357 pthread_rwlock_timedwrlock to ensure that the latter is tested
1358 too. Use new function name in diagnostic messages too.
1359
1360 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1361 (do_test) Use libsupport test macros rather than hand-coded
1362 conditionals and error messages. Ensure that sem_init returns zero
1363 rather than not -1. Use <support/test-driver.c> rather than
1364 test-skeleton.c.
1365
1366 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1367 test macros rather than hand-coded conditionals and error messages.
1368 Use <support/test-driver.c> rather than test-skeleton.c.
1369
1370 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1371
1372 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1373
1374 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1375 (NT_MIPS_MSA): Likewise.
1376
1377 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1378
1379 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1380 * benchtests/README: Update description.
1381 * benchtests/bench-timing.h: Default to hp-timing.
1382 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1383 HP_TIMING_PRINT): Remove.
1384 (HP_TIMING_NOW): Add generic implementation.
1385 (hp_timing_t): Change to uint64_t.
1386
1387 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1388 HP_TIMING_INLINE.
1389 * nptl/descr.h: Likewise.
1390 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1391 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1392 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1393 Abstract hp-timing usage with RTLD_* macros.
1394 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1395 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1396 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1397 HP_TIMING_NONAVAIL): Likewise.
1398 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1399 Likewise.
1400 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1401 HP_SMALL_TIMING_AVAIL): Likewise.
1402 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1403 HP_SMALL_TIMING_AVAIL): Likewise.
1404 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1405 HP_SMALL_TIMING_AVAIL): Likewise.
1406 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1407 HP_SMALL_TIMING_AVAIL): Likewise.
1408 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1409 Likewise.
1410 * sysdeps/generic/hp-timing-common.h: Update comment with
1411 HP_TIMING_AVAIL removal.
1412
1413 * include/random-bits.h: New file.
1414 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1415 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1416 random_bits.
1417 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1418 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1419 Likewise.
1420
1421 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1422 * rt/Makefile (clock-routines): Remove get_clockfreq.
1423 * rt/get_clockfreq.c: Remove file.
1424 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1425 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1426 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1427 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1428 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1429
1430 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1431 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1432 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1433 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1434 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1435
1436 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1437 pthread_clock_settime.
1438 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1439 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1440 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1441 * elf/rtld.c (_dl_start_final): Likewise.
1442 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1443 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1444 Remove.
1445 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1446 (_dl_cpuclock_offset): Remove.
1447 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1448 cpuclock_offset_ununsed.
1449 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1450 cpuclock_offset set.
1451 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1452 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1453 * nptl/pthread_clock_gettime.c: Remove file.
1454 * nptl/pthread_clock_settime.c: Likewise.
1455 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1456 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1457 and CLOCK_PROCESS_CPUTIME_ID support.
1458 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1459 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1460 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1461 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1462 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1463 Likewise.
1464 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1465
1466 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1467
1468 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1469 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1470 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1471 New defines.
1472 * sysdeps/s390/memmem-arch13.S: New file.
1473 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1474 if it is only used as fallback.
1475 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1476 * sysdeps/s390/multiarch/ifunc-impl-list.c
1477 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1478
1479 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1480
1481 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1482 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1483 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1484 New defines.
1485 * sysdeps/s390/multiarch/ifunc-impl-list.c
1486 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1487 * sysdeps/s390/strstr-arch13.S: New file.
1488 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1489 if it is only used as fallback.
1490 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1491
1492 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1493
1494 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1495 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1496 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1497 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1498 ifunc selector.
1499 * sysdeps/s390/multiarch/ifunc-impl-list.c
1500 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1501 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1502 S390_IS_ARCH13_MIE3): New defines.
1503
1504 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1505
1506 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1507 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1508 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1509 * sysdeps/s390/configure: Regenerated.
1510
1511 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1512
1513 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1514 Add vxe2, vxp, dflt, sort flags.
1515 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1516 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1517 capabilities.
1518 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1519 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1520 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1521 HWCAP_S390_DFLT): Define.
1522
1523 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1524
1525 [BZ #24372]
1526 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1527 of compiler warning.
1528 * locale/programs/ld-collate.c (collate_output): Likewise.
1529
1530 2019-03-21 DJ Delorie <dj@redhat.com>
1531
1532 [BZ #24372]
1533 * iconv/iconvconfig.c (write_output): Replace floating point math
1534 with integer math to avoid imprecise results.
1535 * locale/programs/ld-collate.c (collate_output): Likewise.
1536
1537 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1538
1539 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1540 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1541
1542 2019-03-20 mansayk <6688000@gmail.com>
1543
1544 [BZ #24296]
1545 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1546 (abday): Likewise, but remove the trailing dots.
1547
1548 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1549
1550 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1551 macro.
1552 (HWCAP_PACA): Likewise.
1553 (HWCAP_PACG): Likewise.
1554 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1555 Increase to 32.
1556 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1557
1558 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1559
1560 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1561 should be handled.
1562
1563 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1564
1565 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1566 version to 5.0.
1567 (old_getpagesize): New syscall.
1568
1569 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1570
1571 [BZ #24293]
1572 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1573 * localedata/locales/cmn_TW (era): Likewise.
1574 * localedata/locales/hak_TW (era): Likewise.
1575 * localedata/locales/lzh_TW (era): Likewise.
1576 * localedata/locales/nan_TW (era): Likewise.
1577
1578 2019-03-14 Adam Maris <amaris@redhat.com>
1579
1580 * malloc/malloc.c (_int_malloc): Check for large bin list
1581 corruption when inserting unsorted chunk.
1582
1583 2019-03-14 Florian Weimer <fweimer@redhat.com>
1584
1585 Remove obsolete, never-implemented XSI STREAMS declarations.
1586 * manual/terminal.texi (Allocation): Remove portability note and
1587 adjust example.
1588 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1589 _SC_STREAMS.
1590 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1591 * sysdeps/unix/inet/Subdirs (streams): Remove.
1592 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1593 (conformtest-headers-UNIX98): Likewise.
1594 (conformtest-headers-XOPEN2K): Likewise.
1595 (conformtest-headers-POSIX2008): Likewise.
1596 * posix/compat-streams.c: New file.
1597 * posix/Makefile (routines): Add it.
1598 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1599 getpmsg, isastream, putmsg, putpmsg.
1600 (GLIBC_2.30): New section.
1601 * bits/stropts.h: Remove file.
1602 * bits/xtitypes.h: Likewise.
1603 * conform/data/stropts.h-data: Likewise.
1604 * include/stropts.h: Likewise.
1605 * include/sys/stropts.h: Likewise.
1606 * include/xtitypes.h: Likewise.
1607 * streams/Makefile: Likewise.
1608 * streams/fattach.c: Likewise.
1609 * streams/fdetach.c: Likewise.
1610 * streams/getmsg.c: Likewise.
1611 * streams/getpmsg.c: Likewise.
1612 * streams/isastream.c: Likewise.
1613 * streams/putmsg.c: Likewise.
1614 * streams/putpmsg.c: Likewise.
1615 * streams/stropts.h: Likewise.
1616 * streams/sys/stropts.h: Likewise.
1617 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1618 * sysdeps/s390/bits/xtitypes.h: Likewise.
1619 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1620 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1621 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1622 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1623 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1624 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1625 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1626 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1627 * sysdeps/x86/bits/xtitypes.h: Likewise.
1628
1629 2019-03-14 Florian Weimer <fweimer@redhat.com>
1630
1631 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1632 libnss_files.
1633 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1634 but not with libnss_files.
1635 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1636
1637 2019-03-14 Zack Weinberg <zackw@panix.com>
1638
1639 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1640 Specify encoding="utf-8" when opening headers to check.
1641
1642 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1643
1644 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1645 version to 5.0.
1646 (Context.checkout_tar): Handle variable major version for Linux
1647 kernel.
1648
1649 2019-03-13 Florian Weimer <fweimer@redhat.com>
1650
1651 [BZ #24047]
1652 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1653
1654 2019-03-13 Zack Weinberg <zackw@panix.com>
1655
1656 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1657 Move to stdlib.
1658 * include/inttypes.h: Adjust to match.
1659 * include/stdint.h: New wrapper.
1660
1661 2019-03-13 Zack Weinberg <zackw@panix.com>
1662
1663 * scripts/check-obsolete-constructs.py: New test script.
1664 * scripts/check-installed-headers.sh: Remove tests for
1665 obsolete typedefs, superseded by check-obsolete-constructs.py.
1666 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1667 as a special test. Update commentary.
1668 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1669 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1670 Update commentary.
1671 * posix/sys/types.h (__u_intN_t): Remove.
1672 (u_int8_t): Typedef using __uint8_t.
1673 (u_int16_t): Typedef using __uint16_t.
1674 (u_int32_t): Typedef using __uint32_t.
1675 (u_int64_t): Typedef using __uint64_t.
1676
1677 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1678
1679 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1680 call _dl_procinfo.
1681 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1682 Ignore types other than AT_HWCAP.
1683 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1684 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1685 Likewise.
1686 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1687 in the case of falling back to generic output mechanism.
1688 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1689 Likewise.
1690
1691 2019-03-12 Florian Weimer <fweimer@redhat.com>
1692
1693 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1694
1695 2019-03-12 Florian Weimer <fweimer@redhat.com>
1696
1697 [BZ #24047]
1698 resolv: Enable full ICMP errors for UDP DNS sockets
1699 * resolv/res_enable_icmp.c: New file.
1700 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1701 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1702 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1703 socket.
1704
1705 2019-03-11 Mao Han <han_mao@c-sky.com>
1706
1707 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1708 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1709
1710 2019-03-11 Mao Han <han_mao@c-sky.com>
1711
1712 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1713 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1714 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1715
1716 2019-03-11 Mao Han <han_mao@c-sky.com>
1717
1718 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1719 directly.
1720 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1721 definition.
1722
1723 2019-03-11 Mao Han <han_mao@c-sky.com>
1724
1725 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1726 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1727 in mcontext_t
1728
1729 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1730
1731 [BZ #24307]
1732 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1733 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1734 Unicode 12.0.0.
1735 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1736 * localedata/unicode-gen/PropList.txt: Likewise.
1737 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1738 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1739 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1740 * localedata/charmaps/UTF-8: Regenerate.
1741 * localedata/locales/i18n_ctype: Likewise.
1742 * localedata/locales/tr_TR: Likewise.
1743 * localedata/locales/translit_circle: Likewise.
1744 * localedata/locales/translit_cjk_compat: Likewise.
1745 * localedata/locales/translit_combining: Likewise.
1746 * localedata/locales/translit_compat: Likewise.
1747 * localedata/locales/translit_font: Likewise.
1748 * localedata/locales/translit_fraction: Likewise.
1749
1750 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1751
1752 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1753 than after operators.
1754 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1755 (setitimer_locked): Likewise.
1756 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1757 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1758 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1759 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1760 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1761 (PPC_CPU_SUPPORTED): Likewise.
1762 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1763 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1764 (stat_overflow): Likewise.
1765 (statfs_overflow): Likewise.
1766 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1767 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1768 (eq_ttyname_r): Likewise.
1769 (run_chroot_tests): Likewise.
1770
1771 2019-03-07 Florian Weimer <fweimer@redhat.com>
1772
1773 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1774 header check.
1775
1776 2019-03-07 Martin Liska <mliska@suse.cz>
1777
1778 * math/Makefile: Change location where math-vector-fortran.h is
1779 installed.
1780 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1781 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1782 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1783 * scripts/check-installed-headers.sh: Skip Fortran header files.
1784 * scripts/check-wrapper-headers.py: Likewise.
1785
1786 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1787
1788 * nptl/nptl-init.c (__have_futex_clock_realtime,
1789 __have_futex_clock_realtime): Remove definition.
1790 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1791 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1792 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1793 __ASSUME_FUTEX_CLOCK_REALTIME support.
1794 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1795 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1796 * sysdeps/unix/sysv/linux/kernel-features.h
1797 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1798 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1799 Adjust comment.
1800
1801 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1802
1803 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1804 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1805 __GI___wcscpy and wcscpy.
1806
1807 2019-03-04 Florian Weimer <fweimer@redhat.com>
1808
1809 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1810 declaration.
1811 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1812 defined.
1813
1814 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1815
1816 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1817 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1818
1819 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1820
1821 [BZ #24162]
1822 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1823 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1824
1825 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1826
1827 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1828 tests.
1829 (do_test): Likewise.
1830 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1831 (do_test_call_varg): Likewise.
1832 (do_test_call_rarg): Likewise.
1833 * sysdeps/ieee754/ldbl-opt/Makefile
1834 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1835 tst-nldbl-error.
1836 ($(objpfx)tst-nldbl-warn.c): New rule.
1837 ($(objpfx)tst-nldbl-error.c): Likewise.
1838 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1839 New variables.
1840
1841 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1842
1843 [BZ #23984]
1844 * include/bits/error-ldbl.h: New file.
1845 * include/error.h: Include stdarg.h. Declare internal functions
1846 __error_internal and __error_at_line_internal.
1847 * misc/Makefile (headers): Add bits/error-ldbl.h.
1848 * misc/bits/error-ldbl.h: New file.
1849 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1850 avoid the inclusion of bits/error.h.
1851 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1852 and __nldbl_error_at_line.
1853 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1854 (__nldbl_error, __ndlbl_error_at_line): New functions.
1855 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1856 Redirect error and error_at_line.
1857 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1859 Likewise.
1860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1861 Likewise.
1862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1863 Likewise.
1864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1865 Likewise.
1866 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1867 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1868 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1869
1870 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1871
1872 [BZ #23984]
1873 * include/bits/err-ldbl.h: New file.
1874 * include/err.h: Add prototypes for the internal functions:
1875 __vwarnx_internal and __vwarn_internal.
1876 * misc/Makefile (headers): Add bits/err-ldbl.h.
1877 * misc/bits/err-ldbl.h: New file.
1878 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1879 defined, i.e.: when -mlong-double-64 is in use.
1880 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1881 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1882 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1883 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1884 (VA_CALL): New macro.
1885 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1886 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1887 functions.
1888 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1889 declare prototypes for the new functions.
1890 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1892 Likewise.
1893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1894 Likewise.
1895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1896 Likewise.
1897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1898 Likewise.
1899 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1900 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1901 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1902
1903 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1904
1905 * sysdeps/ieee754/ldbl-opt/Makefile
1906 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1907 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1908 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1909
1910 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1911
1912 [BZ #23983]
1913 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1914 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1915 * argp/bits/argp-ldbl.h: New file.
1916 * include/argp.h: Include stdarg.h. Add prototypes for internal
1917 functions: __argp_error_internal and __argp_failure_internal.
1918 * include/bits/argp-ldbl.h: New file.
1919 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1920 __nldbl_argp_error and __nldbl_argp_failure.
1921 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1922 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1923 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1924 Redirect argp_error and argp_failure calls.
1925 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1926 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1927 Likewise.
1928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1929 Likewise.
1930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1931 Likewise.
1932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1933 Likewise.
1934 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1935 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1936 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1937
1938 2019-03-01 Florian Weimer <fweimer@redhat.com>
1939
1940 [BZ #20419]
1941 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1942 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1943 code, to avoid creating an ABI tag note.
1944 (modules-names-nobuild): Add tst-big-note-lib.
1945
1946 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1947
1948 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1949 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1950
1951 2019-03-01 Florian Weimer <fweimer@redhat.com>
1952
1953 [BZ #20271]
1954 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1955 (__netlink_assert_response): Add additional missing newlines.
1956
1957 2019-02-28 Joseph Myers <joseph@codesourcery.com>
1958
1959 * sysdeps/powerpc/powerpc32/dl-machine.c
1960 (__elf_machine_fixup_plt): Use space before '('.
1961 (__process_machine_rela): Likewise.
1962 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1963 Likewise.
1964 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1965 Likewise.
1966 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1967 Likewise.
1968 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1969 (pattern): Likewise.
1970 (delta): Likewise.
1971 (check_result): Likewise.
1972 (check_excepts): Likewise.
1973 (check_op): Likewise.
1974 (fail_xr): Likewise.
1975 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1976 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1977 (SCNHSZ): Likewise.
1978 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1979 Likewise.
1980 (ARGS): Likewise.
1981 (__makecontext): Likewise.
1982 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1983 Likewise.
1984
1985 2019-02-28 Florian Weimer <fweimer@redhat.com>
1986
1987 [BZ #23937]
1988 elf: Add test with a local IFUNC resolver.
1989 * elf/ifuncmain9.c: New file.
1990 * elf/ifuncmain9pic.c: Likewise.
1991 * elf/ifuncmain9picstatic.c: Likewise.
1992 * elf/ifuncmain9pie.c: Likewise.
1993 * elf/ifuncmain9static.c: Likewise.
1994 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1995 ifuncmain9static, ifuncmain9picstatic.
1996 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1997 Add ifuncmain9, ifuncmain9pic.
1998 * elf/Makefile [multi-arch && build-shared && have-fpie]
1999 (ifunc-pie-tests): Add ifuncmain9pie.
2000 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2001 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2002 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2003
2004 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2007 * configure: Regenerated.
2008 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2009
2010 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2011
2012 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2013 symbol as __wcspcy instead of wcscpy.
2014
2015 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2016
2017 * include/stdio.h (__renameat2): New hidden prototype.
2018 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2019 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2020 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2021 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2022
2023 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2024
2025 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2026 if statement.
2027
2028 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2029 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2030 * benchtests/bench-strlen.c (do_test): Likewise.
2031 (test_main): Likewise.
2032 * catgets/gencat.c (read_old): Likewise.
2033 * elf/cache.c (load_aux_cache): Likewise.
2034 * iconvdata/bug-iconv8.c (do_test): Likewise.
2035 * math/test-tgmath-ret.c (do_test): Likewise.
2036 * nis/nis_call.c (rec_dirsearch): Likewise.
2037 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2038 * nptl/tst-audit-threads.c (do_test): Likewise.
2039 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2040 * nss/nss_test1.c (init): Likewise.
2041 * nss/test-netdb.c (test_hosts): Likewise.
2042 * posix/execvpe.c (maybe_script_execute): Likewise.
2043 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2044 * stdio-common/tst-printf.c (do_test): Likewise.
2045 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2046 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2047 * stdlib/qsort.c (STACK_SIZE): Likewise.
2048 * stdlib/test-canon.c (do_test): Likewise.
2049 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2050 * string/memcmp.c (OPSIZ): Likewise.
2051 * string/test-strcpy.c (do_test): Likewise.
2052 (do_random_tests): Likewise.
2053 * string/test-strlen.c (do_test): Likewise.
2054 (test_main): Likewise.
2055 * string/test-strrchr.c (do_test): Likewise.
2056 (do_random_tests): Likewise.
2057 * string/tester.c (test_memrchr): Likewise.
2058 (test_memchr): Likewise.
2059 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2060 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2061 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2062 (read_encoded_value_with_base): Likewise.
2063 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2064 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2065 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2066 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2067 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2068 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2069 Likewise.
2070 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2071 Likewise.
2072 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2073 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2074 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2075 Likewise.
2076 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2077 Likewise.
2078 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2079 Likewise.
2080 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2081 Likewise.
2082 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2083 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2084 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2085 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2086 * time/test_time.c (main): Likewise.
2087
2088 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2089
2090 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2091
2092 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2093 wmemcpy.
2094
2095 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2096 wmemcpy.
2097
2098 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2099
2100 * include/wchar.h (__wcscpy): New prototype.
2101 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2102 (__wcscpy): Route internal symbol to generic implementation.
2103 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2104 Add internal __wcscpy alias.
2105 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2106 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2107 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2108 * wcsmbs/wcscpy.c (wcscpy): Add
2109 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2110 use generic implementation.
2111 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2112
2113 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2114 wmemset.
2115
2116 * sysdeps/m68k/wcpcpy.c: Remove file.
2117 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2118
2119 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2120
2121 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2122 than after operators.
2123 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2124 * sysdeps/mach/hurd/getcwd.c
2125 (__hurd_canonicalize_directory_name_internal): Likewise.
2126 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2127 (pthread_mutex_consistent): Likewise.
2128 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2129 Likewise.
2130 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2131 (__pthread_mutex_transfer_np): Likewise.
2132 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2133 (__pthread_mutex_unlock): Likewise.
2134 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2135 (mtx_owned_p): Likewise.
2136 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2137 (pthread_mutexattr_getrobust): Likewise.
2138 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2139 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2140 Likewise.
2141 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2142 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2143 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2144 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2145 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2146 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2147 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2148 Likewise.
2149 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2150 Likewise.
2151 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2152 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2153 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2154 (____longjmp_chk): Likewise.
2155 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2156 Likewise.
2157 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2158 (INTERNAL_SYSCALL): Likewise.
2159 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2160 (INTERNAL_SYSCALL): Likewise.
2161 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2162 (__get_clockfreq_via_cpuinfo): Likewise.
2163
2164 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2165 comments.
2166 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2167 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2168 (WORD_COPY_BWD): Likewise.
2169 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2170 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2171 Likewise.
2172 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2173 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2174 comment.
2175 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2176
2177 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2178
2179 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2180 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2181 rather than after operators.
2182 * elf/cache.c (print_cache): Likewise.
2183 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2184 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2185 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2186 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2187 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2188 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2189 (reauth_proc): Likewise.
2190 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2191 (__file_name_split_at): Likewise.
2192 (__directory_name_split_at): Likewise.
2193 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2194 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2195 * iconv/gconv_dl.c (do_print): Likewise.
2196 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2197 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2198 * locale/setlocale.c (new_composite_name): Likewise.
2199 * malloc/memusagestat.c (main): Likewise.
2200 * misc/fstab.c (fstab_convert): Likewise.
2201 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2202 Likewise.
2203 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2204 (getgrent_next_file): Likewise.
2205 (internal_getgrnam_r): Likewise.
2206 (internal_getgrgid_r): Likewise.
2207 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2208 Likewise.
2209 (internal_getgrent_r): Likewise.
2210 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2211 (getpwent_next_nss): Likewise.
2212 (getpwent_next_file): Likewise.
2213 (internal_getpwnam_r): Likewise.
2214 (internal_getpwuid_r): Likewise.
2215 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2216 Likewise.
2217 (getspent_next_nss): Likewise.
2218 (internal_getspnam_r): Likewise.
2219 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2220 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2221 * string/strchr.c (STRCHR): Likewise.
2222 * string/strchrnul.c (STRCHRNUL): Likewise.
2223 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2224 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2225 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2226 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2227 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2228 Likewise.
2229 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2230 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2231 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2232 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2233 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2234 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2235 (open_file): Likewise.
2236 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2237 (pthread_mutexattr_setprotocol): Likewise.
2238 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2239 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2240 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2241 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2242 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2243 Likewise.
2244 (elf_machine_rela): Likewise.
2245 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2246 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2247 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2248 * sysdeps/posix/rename.c (rename): Likewise.
2249 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2250 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2251 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2252 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2253 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2254 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2255 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2256 Likewise.
2257 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2258 Likewise.
2259 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2260 * time/tzfile.c (__tzfile_compute): Likewise.
2261
2262 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2263
2264 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2265 rather than after operators.
2266 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2267 * crypt/md5.c (md5_finish_ctx): Likewise.
2268 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2269 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2270 * elf/cache.c (load_aux_cache): Likewise.
2271 * elf/dl-load.c (open_verify): Likewise.
2272 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2273 * elf/readelflib.c (process_elf_file): Likewise.
2274 * elf/rtld.c (dl_main): Likewise.
2275 * elf/sprof.c (generate_call_graph): Likewise.
2276 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2277 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2278 * hurd/dtable.c (reauth_dtable): Likewise.
2279 * hurd/getdport.c (__getdport): Likewise.
2280 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2281 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2282 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2283 Likewise.
2284 * hurd/hurdioctl.c (fioctl): Likewise.
2285 * hurd/hurdselect.c (_hurd_select): Likewise.
2286 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2287 (STOPSIGS): Likewise.
2288 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2289 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2290 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2291 * hurd/msgportdemux.c (msgport_server): Likewise.
2292 * hurd/setauth.c (_hurd_setauth): Likewise.
2293 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2294 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2295 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2296 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2297 * login/tst-utmp.c (do_check): Likewise.
2298 (simulate_login): Likewise.
2299 * mach/lowlevellock.h (lll_lock): Likewise.
2300 (lll_trylock): Likewise.
2301 * math/test-fenv.c (ALL_EXC): Likewise.
2302 * math/test-fenvinline.c (ALL_EXC): Likewise.
2303 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2304 * nis/nis_call.c (__do_niscall3): Likewise.
2305 * nis/nis_callback.c (cb_prog_1): Likewise.
2306 * nis/nis_defaults.c (searchaccess): Likewise.
2307 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2308 * nis/nis_ismember.c (internal_ismember): Likewise.
2309 * nis/nis_local_names.c (nis_local_principal): Likewise.
2310 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2311 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2312 Likewise.
2313 * nis/ypclnt.c (yp_match): Likewise.
2314 (yp_first): Likewise.
2315 (yp_next): Likewise.
2316 (yp_master): Likewise.
2317 (yp_order): Likewise.
2318 * nscd/hstcache.c (cache_addhst): Likewise.
2319 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2320 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2321 (internal_getpwuid_r): Likewise.
2322 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2323 * posix/glob.h (__GLOB_FLAGS): Likewise.
2324 * posix/regcomp.c (peek_token): Likewise.
2325 (peek_token_bracket): Likewise.
2326 (parse_expression): Likewise.
2327 * posix/regexec.c (sift_states_iter_mb): Likewise.
2328 (check_node_accept_bytes): Likewise.
2329 * posix/tst-spawn3.c (do_test): Likewise.
2330 * posix/wordexp-test.c (testit): Likewise.
2331 * posix/wordexp.c (parse_tilde): Likewise.
2332 (exec_comm): Likewise.
2333 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2334 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2335 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2336 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2337 * stdio-common/tst-fileno.c (do_test): Likewise.
2338 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2339 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2340 * stdlib/strtod_l.c (round_and_return): Likewise.
2341 (____STRTOF_INTERNAL): Likewise.
2342 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2343 * string/strcspn.c (STRCSPN): Likewise.
2344 * string/test-memmem.c (simple_memmem): Likewise.
2345 * termios/tcsetattr.c (tcsetattr): Likewise.
2346 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2347 * time/asctime.c (asctime_internal): Likewise.
2348 * time/strptime_l.c (__strptime_internal): Likewise.
2349 * time/sys/time.h (timercmp): Likewise.
2350 * time/tzfile.c (__tzfile_compute): Likewise.
2351
2352 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2353
2354 [BZ #21915]
2355 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2356
2357 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2358
2359 * argp/argp-help.c (__argp_error_internal): New function,
2360 renamed from __argp_error, but that takes a 'mode_flags'
2361 parameter to control the format of long double parameters.
2362 (__argp_error): Converted into a call __argp_error_internal.
2363 (__argp_failure_internal): New function, renamed from
2364 __argp_failure, but that takes a 'mode_flags' parameter.
2365 (__argp_failure): Converted into a call __argp_failure_internal.
2366 * misc/err.c (__vwarnx_internal): New function, renamed from
2367 vwarnx, but that takes a 'mode_flags' parameter.
2368 (vwarnx): Converted into a call to __vwarnx_internal.
2369 (__vwarn_internal): New function, renamed from vwarn, but that
2370 takes a 'mode_flags' parameter.
2371 (vwarn): Converted into a call to __vwarn_internal.
2372 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2373 call to __vfxprintf with 'mode_flags'.
2374 (__error_internal): New function, renamed from error, but that
2375 takes a 'mode_flags' parameter.
2376 (error): Converted into a call to __error_internal.
2377 (__error_at_line_internal): New function, renamed from
2378 error_at_line, but that takes a 'mode_flags' parameter.
2379 (error_at_line): Converted into a call to
2380 __error_at_line_internal.
2381 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2382 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2383 Likewise.
2384
2385 2019-02-20 Martin Liska <mliska@suse.cz>
2386
2387 * math/Makefile: Install math-vector-fortran.h.
2388 * bits/math-vector-fortran.h: New file.
2389 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2390
2391 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2392
2393 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2394 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2395
2396 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2397
2398 * nptl/pthread_mutex_trylock.c: Fix comment.
2399
2400 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2401
2402 * nptl/pthread_tryjoin.c: Fix comment.
2403
2404 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2405
2406 [BZ #24231]
2407 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2408 after R_SPARC_H34 case.
2409
2410 2019-02-18 Florian Weimer <fweimer@redhat.com>
2411
2412 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2413 (getanswer): Do not call Dprintf.
2414 (res_gethostbyname2_context): Likewise.
2415 (res_gethostbyaddr_context): Likewise.
2416
2417 2019-02-18 Florian Weimer <fweimer@redhat.com>
2418
2419 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2420 declaration.
2421 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2422 Remove definitions.
2423 * libio/stdfiles.c: Update comment.
2424 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2425 set _IO_stdin, _IO_stdout, _IO_stderr.
2426 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2427 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2428 inline function.
2429 (_IO_deallocate_file): New inline function.
2430 * libio/iolibio.h (_IO_vprintf): Remove definition.
2431 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2432 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2433 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2434 _IO_legacy_file.
2435 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2436 __builtin_expect. Use _IO_legacy_file.
2437
2438 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2439
2440 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2441 Initialize ctid with a known value and remove update of ctid
2442 after clone.
2443 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2444 as assumed current value of ctid_ptr.
2445
2446 2019-02-16 Florian Weimer <fweimer@redhat.com>
2447
2448 Check that non-sysdeps headers have wrapper headers.
2449 * scripts/check-wrapper-headers.py: New file.
2450 * Makefile (tests-special): Add check-wrapper-headers.out.
2451 (check-wrapper-headers.out): New target.
2452 * Rules (tests-special): Add check-wrapper-headers.out.
2453 (check-wrapper-headers.out): New target.
2454
2455 2019-02-16 Florian Weimer <fweimer@redhat.com>
2456
2457 Add missing header wrappers under include/.
2458 * include/ar.h: New file.
2459 * include/bits/mqueue2.h: Likewise.
2460 * include/bits/stdio.h: Likewise.
2461 * include/bits/stdio2.h: Likewise.
2462 * include/fstab.h: Likewise.
2463 * include/fts.h: Likewise.
2464 * include/lastlog.h: Likewise.
2465 * include/netinet/icmp6.h: Likewise.
2466 * include/netinet/igmp.h: Likewise.
2467 * include/netinet/ip6.h: Likewise.
2468 * include/re_comp.h: Likewise.
2469 * include/regexp.h: Likewise.
2470 * include/rpcsvc/bootparam.h: Likewise.
2471 * include/rpcsvc/yp_prot.h: Likewise.
2472 * include/sys/random.h: Likewise.
2473 * include/sys/stropts.h: Likewise.
2474 * include/sys/ttychars.h: Likewise.
2475 * include/sys/vfs.h: Likewise.
2476 * include/wait.h: Likewise.
2477
2478 2019-02-16 Florian Weimer <fweimer@redhat.com>
2479
2480 * nptl_db/proc_service.h: Move to ...
2481 * sysdeps/nptl/proc_service.h: ... here.
2482 * nptl_db/thread_db.h: Move to ...
2483 * sysdeps/nptl/thread_db.h: ... here.
2484 * nptl/descr.h: Include <thread_db.h>.
2485
2486 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2487
2488 * io/Makefile (tests): Add tst-lockf.
2489 * io/lockf.c (lockf): Use __fcntl and only define for
2490 !__OFF_T_MATCHES_OFF64_T.
2491 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2492 __OFF_T_MATCHES_OFF64_T case.
2493 * io/tst-lockf.c: New file.
2494 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2495 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2496 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2497 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2498 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2500 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2501 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2502 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2503
2504 2019-02-15 Florian Weimer <fweimer@redhat.com>
2505
2506 [BZ #24211]
2507 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2508 pd->result after the thread descriptor has been freed.
2509
2510 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2511
2512 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2513 from function return type.
2514
2515 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2516
2517 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 * scripts/test_printers_common.py: Set TERM to a known harmless
2520 value.
2521
2522 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2523
2524 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2525 (xdr_u_int): Likewise.
2526 (xdr_enum): Likewise.
2527 (xdr_bytes): Reword fall-through comment.
2528 (xdr_string): Likewise.
2529
2530 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2531
2532 [BZ #2421]
2533 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2534 (tests): Add tst-join8 tst-join9.
2535 * nptl/lll_timedwait_tid.c: Remove file.
2536 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2537 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2538 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2539 * nptl/pthread_join_common.c (timedwait_tid): New function.
2540 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2541 is set.
2542 * nptl/tst-join5.c (thread_join): New function.
2543 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2544 check.
2545 * nptl/tst-join8.c: New file.
2546 * nptl/tst-join9.c: Likewise.
2547 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2548 lll_futex_timed_wait_cancel): Add generic macros.
2549 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2550 Remove definitions.
2551 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2552 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2553 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2554 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2555 Remove function.
2556 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2557 Likewise.
2558 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2559 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2560 (lll_futex_timed_wait_cancel): New macro.
2561
2562 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2563
2564 * benchtests/Makefile: Add malloc-simple benchmark.
2565 * benchtests/bench-malloc-simple.c: New benchmark.
2566
2567 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2568
2569 * benchtests/bench-memmove.c (do_one_test): Remove unused
2570 ORIG_SRC.
2571 (do_test): Adjust.
2572 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2573 ORIG_SRC.
2574 (do_test): Adjust.
2575
2576 2019-01-13 Jim Wilson <jimw@sifive.com>
2577
2578 [BZ #24040]
2579 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2580 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2581 (func): New.
2582 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2583 call func directly.
2584 * nptl/Makefile (tests): Add tst-unwind-thread.
2585 (CFLAGS-tst-unwind-thread.c): Define.
2586 * nptl/tst-unwind-thread.c: New file.
2587 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2588 as undefined.
2589
2590 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2591
2592 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2593 comment wording.
2594 * nis/nis_call.c (__do_niscall3): Likewise.
2595
2596 * catgets/gencat.c (normalize_line): Use braces around empty
2597 'else' body.
2598 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2599 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2600 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2601 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2602 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2603 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2604 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2605 definition.
2606
2607 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2608 execlp returns.
2609
2610 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2611
2612 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2613 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2614 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2615 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2616 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2617 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2618 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2619 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2620 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2621 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2622 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2623 * benchtests/bench-bcopy.c: Delete file.
2624 * benchtests/bench-bzero.c: Likewise.
2625 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2626 (simple_memccpy): Remove.
2627 (generic_memccpy): Add function.
2628 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2629 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2630 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2631 (generic_mempcpy): Add new function.
2632 * benchtests/bench-memset.c (simple_bzero): Remove.
2633 (builtin_bzero): Remove.
2634 (builtin_memset): Remove.
2635 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2636 (generic_rawmemchr): Add new function.
2637
2638 2019-02-12 Florian Weimer <fweimer@redhat.com>
2639
2640 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2641
2642 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2643
2644 [BZ #24122]
2645 * elf/Makefile (tests): Add tst-audit13.
2646 (modules-names): Add tst-audit13mod1.
2647 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2648 rule.
2649 * elf/tst-audit13.c: New file.
2650 * elf/tst-audit13mod1.c: Likewise.
2651
2652 2019-02-12 Florian Weimer <fweimer@redhat.com>
2653
2654 [BZ #24122]
2655 * elf/rtld.c (unload_audit_module): New function.
2656 (report_audit_module_load_error): Likewise.
2657 (load_audit_module): Likewise. Extracted from dl_main. Call
2658 _dl_close if the laversion symbol cannot be found. Use early
2659 returns for error handling. Add malloc error check. Check for a
2660 zero return value from la_version. Remove spurious comment about
2661 static TLS initialization. Remove useless casts.
2662 (notify_audit_modules_of_loaded_object): New function. Extracted
2663 from dl_main.
2664 (load_audit_module): Likewise.
2665 (dl_main): Call load_audit_modules.
2666
2667 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2668
2669 * elf/dl-exception.c (_dl_exception_create_format): Add
2670 fall-through comments.
2671 * elf/ldconfig.c (parse_conf_include): Likewise.
2672 * elf/rtld.c (print_statistics): Likewise.
2673 * locale/programs/charmap.c (parse_charmap): Likewise.
2674 * misc/mntent_r.c (__getmntent_r): Likewise.
2675 * posix/wordexp.c (parse_arith): Likewise.
2676 (parse_backtick): Likewise.
2677 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2678 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2679 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2680
2681 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2682
2683 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2684 Use float instead of double.
2685
2686 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2687
2688 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2689
2690 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2691
2692 * sysdeps/powerpc/bits/mathinline.h: Remove.
2693
2694 2019-02-08 Florian Weimer <fweimer@redhat.com>
2695
2696 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2697 * math/bits/math-finite.h: Move to ...
2698 * bits/math-finite.h: ... here.
2699
2700 2019-02-08 Florian Weimer <fweimer@redhat.com>
2701
2702 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2703 * bits/unistd_ext.h: here.
2704
2705 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2706
2707 [BZ #21915]
2708 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2709 * nss/tst-nss-files-hosts-long.c: New file.
2710 * nss/tst-nss-files-hosts-long.root: New directory.
2711 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2712 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2713
2714 2019-02-08 Florian Weimer <fweimer@redhat.com>
2715
2716 * include/bits/unistd_ext.h: Remove file.
2717 * posix/bits/unistd_ext.h: Move to ...
2718 * sysdeps/generic/bits/unistd_ext.h: ... here.
2719
2720 2019-02-08 Florian Weimer <fweimer@redhat.com>
2721
2722 * include/bits/unistd_ext.h: New file.
2723
2724 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2725
2726 * time/tst-strftime2.c: Use array_length macros instead of magic
2727 numbers.
2728
2729 2019-02-08 Florian Weimer <fweimer@redhat.com>
2730
2731 [BZ #24161]
2732 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2733 argument.
2734 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2735 locking if the new do_locking argument is true.
2736 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2737 __run_fork_handlers.
2738
2739 2019-02-08 Florian Weimer <fweimer@redhat.com>
2740
2741 [BZ #6399]
2742 Linux: Add gettid system call wrapper.
2743 * posix/Makefile (headers): Add bits/unistd_ext.h.
2744 * posix/bits/unistd_ext.h: New file.
2745 * posix/unistd.h: Include it.
2746 * manual/process.texi (Process Identification): Document gettid.
2747 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2748 tst-gettid, tst-gettid-kill.
2749 (tst-gettid): Link with $(shared-thread-library).
2750 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2751 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2752 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2753 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2754 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2755 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2756 Add gettid.
2757 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2758 Likewise.
2759 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2760 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2761 Likewise.
2762 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2763 Likewise.
2764 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2765 Likewise.
2766 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2767 Likewise.
2768 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2769 Likewise.
2770 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2771 Likewise.
2772 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2773 Likewise.
2774 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2775 (GLIBC_2.30): Likewise.
2776 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2777 (GLIBC_2.30): Likewise.
2778 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2779 (GLIBC_2.30): Likewise.
2780 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2781 (GLIBC_2.30): Likewise.
2782 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2783 Likewise.
2784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2785 (GLIBC_2.30): Likewise.
2786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2787 (GLIBC_2.30): Likewise.
2788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2789 (GLIBC_2.30): Likewise.
2790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2791 (GLIBC_2.30): Likewise.
2792 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2793 Likewise.
2794 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2795 Likewise.
2796 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2797 Likewise.
2798 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2799 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2800 Likewise.
2801 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2802 Likewise.
2803 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2804 Likewise.
2805 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2806 Likewise.
2807 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2808
2809 2019-02-08 Florian Weimer <fweimer@redhat.com>
2810
2811 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2812 compatibility symbols.
2813
2814 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2815
2816 [BZ #24180]
2817 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2818 Add compiler barriers and comments.
2819
2820 2019-02-07 Florian Weimer <fweimer@redhat.com>
2821
2822 * include/array_length.h (array_length): Do not use a statement
2823 expression and _Static_assert, so that array_length can be used at
2824 file scope and as a constant expression.
2825
2826 2019-02-07 Florian Weimer <fweimer@redhat.com>
2827
2828 * support/xdlfcn.h (xdlmopen): Declare.
2829 * support/xdlmopen.c: New file.
2830 * support/Makefile (libsupport-routines): Add xdlmopen.
2831
2832 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2833
2834 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2835 before return type, without separate inline.
2836 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2837 * elf/dl-tunables.h (tunable_is_name): Likewise.
2838 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2839 (do_set_top_pad): Likewise.
2840 (do_set_mmap_threshold): Likewise.
2841 (do_set_mmaps_max): Likewise.
2842 (do_set_mallopt_check): Likewise.
2843 (do_set_perturb_byte): Likewise.
2844 (do_set_arena_test): Likewise.
2845 (do_set_arena_max): Likewise.
2846 (do_set_tcache_max): Likewise.
2847 (do_set_tcache_count): Likewise.
2848 (do_set_tcache_unsorted_limit): Likewise.
2849 * nis/nis_subr.c (count_dots): Likewise.
2850 * nptl/allocatestack.c (advise_stack_range): Likewise.
2851 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2852 (do_sin): Likewise.
2853 (reduce_sincos): Likewise.
2854 (do_sincos): Likewise.
2855 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2856 (do_set_elision_enable): Likewise.
2857 (TUNABLE_CALLBACK_FNDECL): Likewise.
2858
2859 2019-02-06 Florian Weimer <fweimer@redhat.com>
2860
2861 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2862 (xdlsym): Use dlerror to detect a NULL symbol.
2863
2864 2019-02-06 Florian Weimer <fweimer@redhat.com>
2865
2866 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2867 <stap-probe.h>.
2868 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2869
2870 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2871
2872 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2873
2874 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2875
2876 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2877 __wmemcmp and weak alias to wmemcmp.
2878
2879 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2880
2881 [BZ #23403]
2882 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2883 TLS_TCB_AT_TP tls variant.
2884 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2885 Add alignment checks.
2886 * support/Makefile (libsupport-routines): Add xposix_memalign and
2887 xpthread_setstack.
2888 * support/support.h: Add xposix_memalign.
2889 * support/xthread.h: Add xpthread_attr_setstack.
2890 * support/xposix_memalign.c: New File.
2891 * support/xpthread_attr_setstack.c: Likewise.
2892
2893 2019-02-05 Florian Weimer <fweimer@redhat.com>
2894
2895 [BZ #24164]
2896 arm: Use "nr" constraint for Systemtap probes, to avoid the
2897 compiler using memory operands for constants, due to the "o"
2898 alternative in the default "nor" constraint.
2899 * include/stap-probe.h [USE_STAP_PROBE]: Include
2900 <stap-probe-machine.h>
2901 * sysdeps/generic/stap-probe-machine.h: New file.
2902 * sysdeps/arm/stap-probe-machine.h: Likewise.
2903
2904 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2905
2906 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2907 with 0, not tcache->entries[tc_idx].
2908
2909 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2910 once.
2911
2912 2019-02-04 Andreas Schwab <schwab@suse.de>
2913
2914 [BZ #16976]
2915 [BZ #17396]
2916 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2917 looking up collating elements match against (wide) character
2918 sequence instead of name. Correct alignment adjustment.
2919 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2920 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2921 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2922 (LOCALES): Add cs_CZ.ISO-8859-2.
2923 * posix/tst-fnmatch4.c: New file.
2924 * posix/tst-fnmatch5.c: New file.
2925 * include/wchar.h (__wmemcmp): Declare.
2926 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2927 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2928 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2929 * sysdeps/s390/wmemcmp.c: Likewise.
2930
2931 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 [BZ #24155]
2934 CVE-2019-7309
2935 * NEWS: Updated for CVE-2019-7309.
2936 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2937 upper 32 bits of RDX register for x32. Use unsigned Jcc
2938 instructions, instead of signed.
2939 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2940 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2941
2942 2019-02-04 Florian Weimer <fweimer@redhat.com>
2943
2944 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2945 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2946 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2947 Likewise.
2948 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2949 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2950 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2951 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2952 Likewise.
2953 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2954 Likewise.
2955 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2956 Likewise.
2957 (posix_spawn_file_actions_addopen): Likewise.
2958 (posix_spawn_file_actions_addclose): Likewise.
2959 (posix_spawn_file_actions_adddup2): Likewise.
2960 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2961 qualifiers.
2962 (posix_spawn_file_actions_addfchdir_np): Likewise.
2963
2964 2019-02-04 David Newall <glibc@davidnewall.com>
2965
2966 elf: Implement --preload option for the dynamic linker.
2967 * elf/rtld.c (preloadarg): New variable.
2968 (handle_preload_list): Pass through “where” argument to
2969 do_preload.
2970 (dl_main): Handle "--preload" and add second call to
2971 handle_preload_list.
2972 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2973 (tst-rtld-preload-OBJS): Set variable.
2974 (tst-rtld-preload.out): New target.
2975 * elf/tst-rtld-preload.sh: New file.
2976
2977 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2978
2979 * Makefile (testrun.sh): Exit in case of incorrect argument.
2980
2981 2019-02-04 Florian Weimer <fweimer@redhat.com>
2982
2983 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2984 alignment gaps.
2985
2986 2019-02-03 Florian Weimer <fweimer@redhat.com>
2987
2988 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2989 implicit overflow checks.
2990
2991 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2992
2993 * stdlib/isomac.c: Include <unistd.h>.
2994
2995 2019-02-03 Florian Weimer <fweimer@redhat.com>
2996
2997 * include/time.h (__tzfile_default): Use int, not long int, for
2998 the GMT offsets.
2999 * time/tzfile.c (struct ttinfo): Change type of the offset member
3000 to int.
3001 (__tzfile_read): Remove useless cast.
3002 (__tzfile_default): Adjust prototype.
3003 * time/tzset.c (tz_rule): Change type of the offset member to int.
3004 (parse_offset): Change the type of the sign variable to int.
3005
3006 2019-02-03 Florian Weimer <fweimer@redhat.com>
3007
3008 [BZ #24153]
3009 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3010 * libio/getchar.c (getchar): Likewise.
3011 * libio/getchar_u.c (getchar_unlocked): Likewise.
3012 * libio/getwchar.c (getwchar): Likewise.
3013 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3014 * libio/iogets.c (_IO_gets): Likewise.
3015 * libio/vscanf.c (_IO_vscanf): Likewise.
3016 * libio/vwscanf.c (__vwscanf): Likewise.
3017 * libio/tst-bz24153.c: New file.
3018 * libio/Makefile (tests): Add it.
3019
3020 2019-02-02 Florian Weimer <fweimer@redhat.com>
3021
3022 [BZ #14829]
3023 * manual/resource.texi (Basic Scheduling Functions): Add
3024 portability note. Change process to task throughout the section.
3025 Remove incorrect comment about sched_yield as it affects
3026 tasks/threads, not entire processes.
3027 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3028 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3029
3030 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3031
3032 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3033 * configure: Regenerated.
3034 * manual/install.texi (Tools for Compilation): Update minimum GCC
3035 version.
3036 * INSTALL: Regenerated.
3037
3038 2019-02-01 Florian Weimer <fweimer@redhat.com>
3039
3040 * support/support_test_compare_string.c
3041 (support_test_compare_string): Use "string" in error message.
3042 * support/tst-test_compare_string.c (do_test): Adjust.
3043
3044 2019-02-01 Florian Weimer <fweimer@redhat.com>
3045
3046 * support/support_format_address_family.c
3047 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3048
3049 2019-02-01 Florian Weimer <fweimer@redhat.com>
3050
3051 * manual/socket.texi (Internet Address Formats): Clarify the byte
3052 order of struct sockaddr_in, struct sockaddr_in6. Document
3053 sin6_flowinfo and sin6_scope_id.
3054
3055 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3056
3057 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3058 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3059 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3060 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3061 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3062 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3063
3064 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3065
3066 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3067 [!MEMCHR](MEMCHR): Set to __memchr.
3068 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3069 Add memchr_generic and memchr_nosimd.
3070 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3071 (__libc_ifunc_impl_list): Add memchr ifuncs.
3072 * sysdeps/aarch64/multiarch/memchr.c: New file.
3073 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3074 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3075
3076 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3077
3078 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3079 Add memset_emag.
3080 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3081 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3082 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3083 Add IS_EMAG check for ifunc dispatch.
3084 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3085 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3086
3087 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3088
3089 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3090 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3091 Add emag.
3092 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3093 New macro.
3094
3095 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3096
3097 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3098
3099 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3100
3101 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3102 syscall-template file.
3103
3104 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3105 Torvald Riegel <triegel@redhat.com>
3106 Rik Prohaska <prohaska7@gmail.com>
3107
3108 [BZ# 23844]
3109 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3110 tst-rwlock-trywrlock-stall.
3111 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3112 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3113 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3114 Set __wrphase_fute to 1 only if we started the write phase.
3115 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3116 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3117 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3118 * support/xpthread_rwlock_destroy.c: New file.
3119 * support/xthread.h: Declare xpthread_rwlock_destroy.
3120
3121 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3122
3123 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3124 version to 4.0.2.
3125
3126 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3127
3128 [BZ #24051]
3129 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3130 * libio/fileops.c (_IO_new_file_underflow): Likewise
3131 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3132 * libio/putchar.c (putchar): Likewise.
3133 * libio/putchar_u.c (putchar_unlocked): Likewise.
3134 * libio/putwchar.c (putchar): Likewise.
3135 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3136 * libio/tst-bz24051.c: New test.
3137 * libio/Makefile (tests): Add tst-bz24051
3138
3139 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3140
3141 CVE-2019-9169
3142 regex: fix read overrun [BZ #24114]
3143 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3144 https://debbugs.gnu.org/34140
3145 * posix/regexec.c (proceed_next_node):
3146 Do not read past end of input buffer.
3147
3148 2019-01-31 Florian Weimer <fweimer@redhat.com>
3149
3150 [BZ #24059]
3151 * nss/nss_files/files-alias.c (get_next_alias): Handle
3152 continuation line without newline at the end.
3153 * nss/tst-nss-files-alias-truncated.c: New file.
3154 * nss/Makefile [$(build-shared)] (tests): Add
3155 tst-nss-files-alias-truncated.
3156 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3157 * support/namespace.h (struct support_chroot_configuration): Add
3158 aliases member.
3159 (struct support_chroot): Add path_aliases member.
3160 * support/support_chroot.c (support_chroot_create): Handle
3161 aliases.
3162 (support_chroot_free): Free path_aliases.
3163
3164 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3165
3166 * version.h (RELEASE): Set to "development".
3167 (VERSION): Set to "2.29.9000".
3168 * NEWS: Add section for 2.30.
3169
3170 * version.h (RELEASE): Set to "stable".
3171 (VERSION): Set to "2.29".
3172 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3173
3174 * NEWS: Add the list of bugs fixed in 2.29.
3175 * manual/contrib.texi: Update contributors list with some more
3176 names.
3177 * manual/install.texi: Update latest versions of packages
3178 tested.
3179 * INSTALL: Regenerated.
3180
3181 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3182
3183 * po/be.po: Update translations.
3184 * po/bg.po: Likewise.
3185 * po/ca.po: Likewise.
3186 * po/cs.po: Likewise.
3187 * po/da.po: Likewise.
3188 * po/de.po: Likewise.
3189 * po/el.po: Likewise.
3190 * po/eo.po: Likewise.
3191 * po/es.po: Likewise.
3192 * po/fi.po: Likewise.
3193 * po/fr.po: Likewise.
3194 * po/gl.po: Likewise.
3195 * po/hr.po: Likewise.
3196 * po/hu.po: Likewise.
3197 * po/ia.po: Likewise.
3198 * po/id.po: Likewise.
3199 * po/it.po: Likewise.
3200 * po/ja.po: Likewise.
3201 * po/ko.po: Likewise.
3202 * po/lt.po: Likewise.
3203 * po/nb.po: Likewise.
3204 * po/nl.po: Likewise.
3205 * po/pl.po: Likewise.
3206 * po/pt_BR.po: Likewise.
3207 * po/ru.po: Likewise.
3208 * po/rw.po: Likewise.
3209 * po/sk.po: Likewise.
3210 * po/sl.po: Likewise.
3211 * po/sv.po: Likewise.
3212 * po/tr.po: Likewise.
3213 * po/uk.po: Likewise.
3214 * po/vi.po: Likewise.
3215 * po/zh_CN.po: Likewise.
3216 * po/zh_TW.po: Likewise.
3217
3218 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3219
3220 [BZ #24130]
3221 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3222 of $f3 register on $y_is_neg path.
3223
3224 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3225
3226 [BZ #24110]
3227 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3228 sigaltstack.ss_flags.
3229
3230 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3231
3232 [BZ #23758]
3233 * manual/time.texi (strftime): Document "%Ey".
3234 * time/strftime_l.c (__strftime_internal): Set the default width
3235 padding with zero of "%Ey" to 2.
3236
3237 [BZ #24096]
3238 * manual/time.texi (strftime): Document "%EC" and "%EY".
3239 * time/Makefile (tests): Add tst-strftime2.
3240 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3241 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3242 override padding for "%Ey".
3243 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3244 "%Ey" in the subformat as if decorated with that flag.
3245 * time/tst-strftime2.c: New file.
3246
3247 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3248
3249 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3250 are not defined.
3251
3252 [BZ #24122]
3253 * elf/Makefile (tests): Add tst-audit13.
3254 (modules-names): Add tst-audit13mod1.
3255 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3256 rule.
3257 * elf/rtld.c (dl_main): Handle invalid audit module version.
3258 * elf/tst-audit13.c: New file.
3259 * elf/tst-audit13mod1.c: Likewise.
3260
3261 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3262
3263 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3264 returned by __hurd_at_flags.
3265 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3266 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3267 directly instead of __hurd_file_name_lookup.
3268
3269 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3270
3271 * scripts/build-many-glibcs.py (Context.checkout): Default
3272 binutils version to 2.32 branch.
3273
3274 2019-01-21 Florian Weimer <fweimer@redhat.com>
3275
3276 [BZ #20018]
3277 CVE-2016-10739
3278 resolv: Reject trailing characters in host names
3279 * include/arpa/inet.h (__inet_aton_exact): Declare.
3280 (inet_aton): Remove hidden prototype. No longer used internally.
3281 * nscd/gai.c (__inet_aton): Do not define.
3282 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3283 * nss/digits_dots.c (__inet_aton): Likewise.
3284 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3285 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3286 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3287 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3288 (tst-resolv-trailing): Likewise.
3289 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3290 libc.
3291 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3292 Make static. Add endp parameter.
3293 (__inet_aton_exact): New function.
3294 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3295 (__inet_addr): Call inet_aton_end.
3296 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3297 not just IPv6. Call __inet_aton_exact.
3298 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3299 (tests): Make const. Add additional test cases with trailing
3300 characters.
3301 (do_test): Use array_length.
3302 * resolv/tst-inet_aton_exact.c: New file.
3303 * resolv/tst-resolv-trailing.c: Likewise.
3304 * resolv/tst-resolv-nondecimal.c: Likewise.
3305 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3306
3307 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3308
3309 [BZ# 24097]
3310 CVE-2019-6488
3311 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3312 Clear the upper 32 bits of RSI register.
3313 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3314 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3315 and tst-size_t-wcsnlen.
3316 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3317 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3318
3319 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3320
3321 [BZ# 24097]
3322 CVE-2019-6488
3323 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3324 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3325 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3326 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3327 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3328
3329 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3330
3331 [BZ# 24097]
3332 CVE-2019-6488
3333 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3334 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3335 * sysdeps/x86_64/strcmp.S: Likewise.
3336 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3337 tst-size_t-strncmp and tst-size_t-wcsncmp.
3338 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3339 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3340 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3341
3342 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3343
3344 [BZ# 24097]
3345 CVE-2019-6488
3346 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3347 RDX_LP for length. Clear the upper 32 bits of RDX register.
3348 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3349 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3350 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3351 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3352
3353 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 [BZ# 24097]
3356 CVE-2019-6488
3357 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3358 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3359 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3360 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3361
3362 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3363
3364 [BZ# 24097]
3365 CVE-2019-6488
3366 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3367 length. Clear the upper 32 bits of RDX register.
3368 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3369 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3370 Likewise.
3371 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3372 Likewise.
3373 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3374 tst-size_t-wmemchr.
3375 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3376
3377 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3378
3379 [BZ# 24097]
3380 CVE-2019-6488
3381 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3382 length. Clear the upper 32 bits of RDX register.
3383 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3384 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3385 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3386 tst-size_t-wmemcmp.
3387 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3388 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3389
3390 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3391
3392 [BZ# 24097]
3393 CVE-2019-6488
3394 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3395 upper 32 bits of RDX register.
3396 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3397 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3398 tst-size_t-wmemchr.
3399 * sysdeps/x86_64/x32/test-size_t.h: New file.
3400 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3401 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3402
3403 2019-01-18 Florian Weimer <fweimer@redhat.com>
3404
3405 [BZ #24112]
3406 resolv: Do not send queries for non-host-names in nss_dns.
3407 * resolv/nss_dns/dns-host.c (check_name): New function.
3408 (_nss_dns_gethostbyname2_r): Use it.
3409 (_nss_dns_gethostbyname_r): Likewise.
3410 (_nss_dns_gethostbyname4_r): Likewise.
3411
3412 2019-01-21 Florian Weimer <fweimer@redhat.com>
3413
3414 * resolv/inet_addr.c: Reformat to GNU style.
3415 (__inet_addr, __inet_aton): Update comment.
3416
3417 2019-01-18 Florian Weimer <fweimer@redhat.com>
3418
3419 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3420 ("malloc: Use current (C11-style) atomics for fastbin access").
3421 This commit introduces a substantial performance regression on
3422 POWER and Aarch64.
3423 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3424 (REMOVE_FB): Define.
3425 (_int_malloc): Use it and reindent.
3426 (_int_free): Use CAS loop with
3427 catomic_compare_and_exchange_val_rel.
3428 (malloc_consolidate): Use atomic_exchange_acq.
3429
3430
3431 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3432
3433 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3434 -Wl,-z,now.
3435 (LDFLAGS-tst-minsigstksz-2): Likewise.
3436 (LDFLAGS-tst-minsigstksz-3): Likewise.
3437 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3438 (LDFLAGS-tst-minsigstksz-4): Likewise.
3439
3440 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3441
3442 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3443 than "alternate".
3444
3445 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3446
3447 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3448
3449 2019-01-16 Zack Weinberg <zackw@panix.com>
3450
3451 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3452 (xget_sigstack_location): New test support functions.
3453 * support/xsigstack.c: New file, implementing them.
3454 * support/tst-xsigstack.c: New test for them.
3455 * support/Makefile: Update.
3456
3457 * signal/tst-minsigstksz-1.c
3458 * signal/tst-minsigstksz-2.c
3459 * signal/tst-minsigstksz-3.c
3460 * signal/tst-minsigstksz-3a.c
3461 * signal/tst-minsigstksz-4.c: New tests.
3462 * signal/Makefile: Run them.
3463
3464 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3465
3466 * po/libc.pot: Regenerate.
3467
3468 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3469
3470 * math/libm-test-fma.inc (fma_test_data): Set
3471 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3472
3473 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3474
3475 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3476 (do_test): Changed __vector __int128_t to __vector unsigned int.
3477
3478 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3479
3480 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3481 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3482 stpcpy-avx2 and stpncpy-avx2.
3483 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3484 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3485 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3486 and __stpncpy_avx2.
3487 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3488 ifunc-strcpy.h}: rename header for a more generic name.
3489 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3490 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3491 AVX unaligned load is fast and vzeroupper is preferred.
3492 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3493 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3494 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3495 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3496 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3497 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3498
3499 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3500
3501 * argp/argp-help.c: Fix typo in comment.
3502 * misc/sys/cdefs.h: Likewise.
3503 * posix/regexec.c (sift_states_iter_mb): Likewise.
3504 * socket/sockatmark.c: Likewise.
3505 * socket/sys/socket.h: Likewise.
3506 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3507 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3508 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3509 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3510 * sysdeps/unix/sockatmark.c: Likewise.
3511 * time/strptime_l.c: Likewise.
3512
3513 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3514
3515 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3516 missing space after the cast of "_NL_CURRENT".
3517
3518 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3519
3520 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3521 ifdef to fix read of VSCR.
3522 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3523 tst-ucontext-ppc64-vscr.c to test list.
3524 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3525
3526 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3527
3528 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3529 fall-through.
3530
3531 2019-01-09 Jim Wilson <jimw@sifive.com>
3532
3533 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3534
3535 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3536
3537 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3538 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3539 __memcpy_falkor for ares.
3540 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3541 Add new define.
3542 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3543 Add ares cpu.
3544
3545 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3546
3547 [BZ #24066]
3548 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3549 4_FP_W_TYPEs are used for IEEE quad precision.
3550 * soft-fp/extendhftf2.c: Likewise.
3551 * soft-fp/extendsftf2.c: Likewise.
3552 * soft-fp/extendxftf2.c: Likewise.
3553 * soft-fp/trunctfdf2.c: Likewise.
3554 * soft-fp/trunctfhf2.c: Likewise.
3555 * soft-fp/trunctfsf2.c: Likewise.
3556 * soft-fp/trunctfxf2.c: Likewise.
3557 * sysdeps/alpha/ots_cvttx.c: Likewise.
3558 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3559 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3560 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3561 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3562 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3563 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3564 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3565 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3566 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3567 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3568 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3569 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3570 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3571 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3572 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3573 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3574 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3575
3576 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3577
3578 [BZ #24024]
3579 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3580 code with -fmath-errno.
3581 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3582 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3583 * string/test-strerror-errno.c: New file.
3584
3585 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3586
3587 [BZ #24046]
3588 * localedata/locales/en_US (date_fmt): Add, set to
3589 "%a %d %b %Y %r %Z".
3590
3591 2019-01-07 Florian Weimer <fweimer@redhat.com>
3592
3593 [BZ #24063]
3594 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3595 instead of @var{errno}.
3596 (Parsing of Integers): Likewise.
3597 (Parsing of Floats): Likewise.
3598 * manual/filesys.texi (Working with Directory Trees): Likewise.
3599 (Temporary Files): Likewise.
3600 * manual/job.texi (Terminal Access Functions): Likewise.
3601 * manual/llio.texi (Synchronizing I/O): Likewise.
3602 * manual/math.texi (SVID Random): Likewise.
3603 * manual/message.texi (The catgets Functions): Likewise.
3604 (Translation with gettext): Likewise.
3605 (Locating gettext catalog): Likewise.
3606 (Charset conversion in gettext): Likewise.
3607 * manual/nss.texi (NSS Module Function Internals): Likewise.
3608 * manual/search.texi (Hash Search Function): Likewise.
3609 * manual/setjmp.texi (System V contexts): Likewise.
3610 * manual/time.texi (Sleeping): Likewise.
3611 * manual/users.texi (Lookup User): Likewise.
3612 (Lookup Group): Likewise.
3613
3614 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3615
3616 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3617 fix typo.
3618
3619 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3620
3621 [BZ #19444]
3622 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3623 __builtin_unreachable for default case in switch.
3624 (__ieee754_yn): Likewise.
3625 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3626 (__ieee754_ynl): Likewise.
3627 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3628 (__ieee754_ynl): Likewise.
3629 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3630 (__ieee754_ynl): Likewise.
3631
3632 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3633
3634 * manual/maint.texi: Use @{ and @}.
3635
3636 2019-01-04 Florian Weimer <fweimer@redhat.com>
3637
3638 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3639 function.
3640 (do_in_chroot_1): Call it.
3641 (run_chroot_tests):
3642 Improve error reporting in case it is not possible to create a
3643 collision for the PTY name required by the test.
3644
3645 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3646
3647 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3648 lll_wait_tid with timeout.
3649 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3650 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3651 futex_reltimed_wait_cancelable for cancelabla mode.
3652 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3653 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3654 macros.
3655 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3656 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3657 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3658 SYSCALL_CANCEL_NCS): New macro.
3659 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3660 (lll_timedwait_tid): Remove macro.
3661 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3662 Likewise.
3663 (lll_timedwait_tid): Likewise.
3664 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3665 Likewise.
3666 (lll_timedwait_tid): Likewise.
3667 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3668 Likewise.
3669 (lll_timedwait_tid): Likewise.
3670 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3671 Use INTERNAL_SYSCALL_CANCEL.
3672 * sysdeps/unix/sysv/linux/futex-internal.h
3673 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3674 instead of __pthread_{enable,disable}_asynccancel.
3675 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3676 (lll_futex_wait_cancel): New macro.
3677
3678 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3679 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3680
3681 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3682 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3683
3684 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3685 in backtrace analysis.
3686 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3687 side-effects.
3688 (tf_send): Likewise.
3689
3690 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3691 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3692 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3693 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3694 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3695 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3696 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3697 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3698 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3699 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3700 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3701 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3702 Likewise.
3703 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3704 tst-cancel-wrappers.sh.
3705 (generated): Remove tst-cancel-wrappers.out.
3706 (tst-cancel-wrappers.out): Remove rule.
3707 * nptl/tst-cancel-wrappers.sh: Remove file.
3708
3709 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3710
3711 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3712 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3713 Update.
3714
3715 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3716
3717 [BZ #23640]
3718 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3719 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3720 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3721 close-on-exec reset for adddup2 file action.
3722 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3723
3724 2019-01-03 Zack Weinberg <zackw@panix.com>
3725
3726 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3727 parameter. Only use deprecated scanf when __USE_GNU is defined
3728 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3729 than 201103L, whichever is relevant for the language being compiled.
3730
3731 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3732 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3733 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3734 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3735 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3736
3737 * libio/iovsscanf.c
3738 * libio/fwscanf.c
3739 * libio/iovswscanf.c
3740 * libio/swscanf.c
3741 * libio/vscanf.c
3742 * libio/vwscanf.c
3743 * libio/wscanf.c
3744 * stdio-common/fscanf.c
3745 * stdio-common/scanf.c
3746 * stdio-common/vfscanf.c
3747 * stdio-common/vfwscanf.c
3748 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3749 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3750 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3751 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3752 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3753 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3754 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3755 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3756 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3757 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3758 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3759 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3760 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3761 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3762 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3763
3764 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3765 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3766 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3767 not sscanf.
3768 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3769 with a preprocessor macro.
3770
3771 * stdio-common/bug21.c, stdio-common/scanf14.c:
3772 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3773 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3774 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3775 to xscanf, xfscanf, xsscanf.
3776
3777 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3778 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3779 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3780 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3781 xfscanf, xsscanf.
3782 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3783 override feature selection macros or provide definitions of u_char etc.
3784 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3785 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3786 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3787 with -std=gnu89.
3788
3789 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3790
3791 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3792 bits/termios-misc.h.
3793 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3794 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3795 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3796 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3797 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3798 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3799
3800 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3801 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3802 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3803 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3804 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3805 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3806 termios-misc.h.
3807 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3808 (sysdep_headers): Add termios-misc.h.
3809
3810 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3811 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3812 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3813
3814 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3815 termios-tcflow.h.
3816 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3817 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3818 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3819 TCSAFLUSH): Move to termios-tcflow.h.
3820 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3821 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3822 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3823 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3824
3825 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3826 termios-c_lflag.h.
3827 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3828 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3829 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3830 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3831 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3832 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3833 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3834 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3835 Likewise.
3836 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3837 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3838 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3839 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3840
3841 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3842 termios-c_cflag.h.
3843 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3844 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3845 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3846 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3847 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3848 termios-c_cflag.h.
3849 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3850 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3851 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3852 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3853
3854 [BZ #23783]
3855 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3856 termios-baud.h.
3857 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3858 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3859 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3860 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3861 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3862 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3863 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3864 __MAX_BAUD): Move to termios-baud.h.
3865 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3866 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3867 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3868 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3869 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3870
3871 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3872 termios-c_oflag.h.
3873 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3874 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3875 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3876 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3877 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3878 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3879 termios-c_oflag.h.
3880 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3881 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3882 FFR1): Likewise.
3883 [USE_MISC] (XTABS): Likewise.
3884 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3885 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3886 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3887 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3888
3889 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3890 termios-c_iflag.h.
3891 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3892 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3893 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3894 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3895 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3896 IUTF8): Move to termios-c_iflag.h.
3897 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3898 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3899 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3900 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3901
3902 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3903 termios-cc.h.
3904 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3905 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3906 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3907 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3908 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3909 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3910 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3911 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3912 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3913 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3914 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3915 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3916
3917 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3918 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3919 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3920 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3921 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3922 termios-struct.h.
3923 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3924 termios-struct.h.
3925 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3926 Likewise.
3927 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3928 Likewise.
3929 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3930 Likewise.
3931 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3932 Likewise.
3933 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3934 _HAVE_C_OSPEED): Define.
3935 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3936 _HAVE_C_OSPEED): Likewise.
3937 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3938 _HAVE_C_OSPEED): Likewise.
3939 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3940 (cfsetospeed): Check for define value instead of existence.
3941 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3942 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3943 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3944 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3945 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3946
3947 [BZ #17783]
3948 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3949 Define.
3950 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3951 (TIOCSER_TEMT): Likewise.
3952 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3953 (TEOCSER_TEMT): Likewise.
3954
3955 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
3956
3957 [BZ #24011]
3958 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3959
3960 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3961
3962 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3963
3964 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3965
3966 * sysdeps/htl/pt-barrierattr-setpshared.c
3967 (pthread_barrierattr_setpshared): Add stub warning.
3968 * sysdeps/htl/pt-condattr-setpshared.c
3969 (pthread_condattr_setpshared): Likewise.
3970 * sysdeps/htl/pt-mutexattr-setpshared.c
3971 (pthread_mutexattr_setpshared): Likewise.
3972 * sysdeps/htl/pt-rwlockattr-setpshared.c
3973 (pthread_rwlockattr_setpshared): Likewise.
3974 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3975 (pthread_mutexattr_setpshared): Likewise.
3976
3977 2019-01-02 Joseph Myers <joseph@codesourcery.com>
3978
3979 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3980 constants to match with Linux 4.20.
3981
3982 * sysdeps/mips/mips32/libm-test-ulps: Update.
3983 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3984
3985 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3986
3987 [BZ #24034]
3988 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3989 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3990 than __typeof (...) for the a_ptr variable.
3991
3992 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3993
3994 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3995 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3996 * libio/Makefile (tests): Add tst-sprintf-ub and
3997 tst-sprintf-chk-ub.
3998 (CFLAGS-tst-sprintf-ub.c): New variable.
3999 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4000 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4001 destination buffer and check for overflows in fortified mode.
4002 * libio/libioP.h (PRINTF_CHK): New macro.
4003 * libio/tst-sprintf-chk-ub.c: New file.
4004 * libio/tst-sprintf-ub.c: Likewise.
4005
4006 2019-01-02 Florian Weimer <fweimer@redhat.com>
4007
4008 [BZ #24018]
4009 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4010 failure.
4011
4012 2019-01-02 Florian Weimer <fweimer@redhat.com>
4013
4014 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4015
4016 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4017
4018 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4019 macro.
4020
4021 * sysdeps/unix/sysv/linux/netpacket/packet.h
4022 (PACKET_IGNORE_OUTGOING): New macro.
4023
4024 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4025 macro.
4026
4027 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4028 version to 4.20.
4029 (riscv_flush_icache): New syscall.
4030
4031 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4032 trailing whitespace removed.
4033 * scripts/config.guess: Update to version 2019-01-01.
4034 * scripts/config.sub: Update to version 2019-01-01.
4035 * scripts/move-if-change: Update from gnulib.
4036
4037 * NEWS: Update copyright dates.
4038 * catgets/gencat.c (print_version): Likewise.
4039 * csu/version.c (banner): Likewise.
4040 * debug/catchsegv.sh: Likewise.
4041 * debug/pcprofiledump.c (print_version): Likewise.
4042 * debug/xtrace.sh (do_version): Likewise.
4043 * elf/ldconfig.c (print_version): Likewise.
4044 * elf/ldd.bash.in: Likewise.
4045 * elf/pldd.c (print_version): Likewise.
4046 * elf/sotruss.sh: Likewise.
4047 * elf/sprof.c (print_version): Likewise.
4048 * iconv/iconv_prog.c (print_version): Likewise.
4049 * iconv/iconvconfig.c (print_version): Likewise.
4050 * locale/programs/locale.c (print_version): Likewise.
4051 * locale/programs/localedef.c (print_version): Likewise.
4052 * login/programs/pt_chown.c (print_version): Likewise.
4053 * malloc/memusage.sh (do_version): Likewise.
4054 * malloc/memusagestat.c (print_version): Likewise.
4055 * malloc/mtrace.pl: Likewise.
4056 * manual/libc.texinfo: Likewise.
4057 * nptl/version.c (banner): Likewise.
4058 * nscd/nscd.c (print_version): Likewise.
4059 * nss/getent.c (print_version): Likewise.
4060 * nss/makedb.c (print_version): Likewise.
4061 * posix/getconf.c (main): Likewise.
4062 * scripts/test-installation.pl: Likewise.
4063 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4064
4065 * All files with FSF copyright notices: Update copyright dates
4066 using scripts/update-copyrights.
4067 * locale/programs/charmap-kw.h: Regenerated.
4068 * locale/programs/locfile-kw.h: Likewise.
4069
4070 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4071
4072 * timezone/zdump.c: Update from tzcode 2018i.
4073 * timezone/zic.c: Likewise.
4074
4075 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4076
4077 regex: improve Gnulib port to AIX
4078 From the glibc point of view, this removes duplicate macro
4079 definitions and is obviously safe.
4080 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4081 * posix/regex_internal.h:
4082 (__attribute__, __attribute_warn_unused_result__):
4083 Remove; already defined elsewhere.
4084
4085 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4086
4087 [BZ #24027]
4088 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4089 copying operation. (ncopies had the wrong type, resulting in an
4090 integer wraparound and too few elements being copied.)
4091
4092 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4093
4094 [BZ #24022]
4095 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4096 <asm/syscalls.h> exists with __has_include__ before including it.
4097
4098 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4099
4100 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4101 version to 4.20.
4102
4103 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4104
4105 * hurd/lookup-retry: Include <unistd.h>.
4106 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4107 Release it on return. Handle "pid" magical lookup retry.
4108
4109 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4110
4111 [BZ #10496]
4112 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4113 (t_fmt_ampm): Likewise.
4114 * localedata/locales/aa_ER (t_fmt): Likewise.
4115 (t_fmt_ampm): Likewise.
4116 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4117 (t_fmt_ampm): Likewise.
4118 * localedata/locales/aa_ET (t_fmt): Likewise.
4119 (t_fmt_ampm): Likewise.
4120 * localedata/locales/am_ET (t_fmt): Likewise.
4121 (t_fmt_ampm): Likewise.
4122 * localedata/locales/byn_ER (t_fmt): Likewise.
4123 (t_fmt_ampm): Likewise.
4124 * localedata/locales/om_ET (t_fmt): Likewise.
4125 (t_fmt_ampm): Likewise.
4126 * localedata/locales/sid_ET (t_fmt): Likewise.
4127 (t_fmt_ampm): Likewise.
4128 * localedata/locales/so_DJ (t_fmt): Likewise.
4129 (t_fmt_ampm): Likewise.
4130 * localedata/locales/so_ET (t_fmt): Likewise.
4131 (t_fmt_ampm): Likewise.
4132 * localedata/locales/so_SO (t_fmt): Likewise.
4133 (t_fmt_ampm): Likewise.
4134 * localedata/locales/ti_ER (t_fmt): Likewise.
4135 (t_fmt_ampm): Likewise.
4136 * localedata/locales/ti_ET (t_fmt): Likewise.
4137 (t_fmt_ampm): Likewise.
4138 * localedata/locales/tig_ER (t_fmt): Likewise.
4139 (t_fmt_ampm): Likewise.
4140 * localedata/locales/wal_ET (t_fmt): Likewise.
4141 (t_fmt_ampm): Likewise.
4142
4143 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4144 * localedata/locales/ar_IN (t_fmt): Likewise.
4145 * localedata/locales/bhb_IN (t_fmt): Likewise.
4146 * localedata/locales/bho_IN (t_fmt): Likewise.
4147 * localedata/locales/bi_VU (t_fmt): Likewise.
4148 * localedata/locales/bn_BD (t_fmt): Likewise.
4149 * localedata/locales/bn_IN (t_fmt): Likewise.
4150 * localedata/locales/brx_IN (t_fmt): Likewise.
4151 * localedata/locales/doi_IN (t_fmt): Likewise.
4152 * localedata/locales/en_HK (t_fmt): Likewise.
4153 (t_fmt_ampm): Likewise.
4154 * localedata/locales/en_IN (t_fmt): Likewise.
4155 * localedata/locales/en_PH (t_fmt): Likewise.
4156 * localedata/locales/gu_IN (t_fmt): Likewise.
4157 * localedata/locales/hi_IN (t_fmt): Likewise.
4158 * localedata/locales/hif_FJ (t_fmt): Likewise.
4159 * localedata/locales/hne_IN (t_fmt): Likewise.
4160 * localedata/locales/kn_IN (t_fmt): Likewise.
4161 * localedata/locales/kok_IN (t_fmt): Likewise.
4162 * localedata/locales/ks_IN (t_fmt): Likewise.
4163 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4164 * localedata/locales/mag_IN (t_fmt): Likewise.
4165 * localedata/locales/mai_IN (t_fmt): Likewise.
4166 * localedata/locales/mjw_IN (t_fmt): Likewise.
4167 * localedata/locales/ml_IN (t_fmt): Likewise.
4168 * localedata/locales/mni_IN (t_fmt): Likewise.
4169 * localedata/locales/mr_IN (t_fmt): Likewise.
4170 * localedata/locales/ms_MY (t_fmt): Likewise.
4171 * localedata/locales/pa_IN (t_fmt): Likewise.
4172 * localedata/locales/raj_IN (t_fmt): Likewise.
4173 * localedata/locales/sa_IN (t_fmt): Likewise.
4174 * localedata/locales/sat_IN (t_fmt): Likewise.
4175 * localedata/locales/sd_IN (t_fmt): Likewise.
4176 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4177 * localedata/locales/tcy_IN (t_fmt): Likewise.
4178 * localedata/locales/the_NP (t_fmt): Likewise.
4179 * localedata/locales/to_TO (t_fmt): Likewise.
4180 * localedata/locales/ur_IN (t_fmt): Likewise.
4181
4182 * localedata/locales/hif_FJ (d_t_fmt): Set to
4183 "%A %d %b %Y %I:%M:%S %p".
4184 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4185
4186 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4187 * localedata/locales/ar_BH (t_fmt): Likewise.
4188 * localedata/locales/ar_DZ (t_fmt): Likewise.
4189 * localedata/locales/ar_EG (t_fmt): Likewise.
4190 * localedata/locales/ar_IQ (t_fmt): Likewise.
4191 * localedata/locales/ar_JO (t_fmt): Likewise.
4192 * localedata/locales/ar_KW (t_fmt): Likewise.
4193 * localedata/locales/ar_LB (t_fmt): Likewise.
4194 * localedata/locales/ar_LY (t_fmt): Likewise.
4195 * localedata/locales/ar_OM (t_fmt): Likewise.
4196 * localedata/locales/ar_QA (t_fmt): Likewise.
4197 * localedata/locales/ar_SD (t_fmt): Likewise.
4198 * localedata/locales/ar_SS (t_fmt): Likewise.
4199 * localedata/locales/ar_SY (t_fmt): Likewise.
4200 * localedata/locales/ar_TN (t_fmt): Likewise.
4201 * localedata/locales/ar_YE (t_fmt): Likewise.
4202
4203 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4204 (t_fmt_ampm): Likewise.
4205 * localedata/locales/gez_ET (t_fmt): Likewise.
4206 (t_fmt_ampm): Likewise.
4207
4208 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4209 (t_fmt_ampm): Likewise.
4210 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4211
4212 * localedata/locales/zh_HK (t_fmt):
4213 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4214
4215 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4216 because this locale does not use the 12-hour clock.
4217 (t_fmt): Set to "%Z %H:%M:%S".
4218 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4219
4220 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4221 because this locale does not use the 12-hour clock.
4222 (t_fmt): Set to "%H:%M:%S %Z".
4223 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4224
4225 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4226 because this locale does not use the 12-hour clock.
4227 (t_fmt): Set to "%T".
4228 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4229 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4230
4231 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4232 because this locale does not use the 12-hour clock.
4233 (t_fmt): Set to "%H:%M:%S %Z".
4234 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4235
4236 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4237 because this locale does not use the 12-hour clock.
4238 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4239 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4240
4241 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4242
4243 [BZ #10496]
4244 [BZ #23724]
4245 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4246 (t_fmt_ampm): Likewise.
4247 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4248 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4249 (d_fmt): Set to "%-d.%-m.%y".
4250
4251 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4252
4253 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4254 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4255 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4256 Likewise.
4257 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4258 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4259 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4260 function.
4261 * support/blob_repeat.c (check_mul_overflow_size_t,
4262 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4263
4264 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4265
4266 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4267
4268 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4269
4270 regex: simplify Gnulib port
4271 This simplifies the code, by removing stuff intended for porting
4272 to Gnulib but no longer needed there.
4273 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4274 uses of libc_hidden_def, weak_alias.
4275 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4276 _Restrict_ except for public-facing headers.
4277 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4278 Remove; already defined elsewhere.
4279 * posix/regex.c, posix/regex_internal.h:
4280 Use __GNUC_PREREQ instead of rolling our own.
4281 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4282
4283 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4284
4285 * benchtests/bench-strlen.c (generic_strlen): New function.
4286 (memchr_strlen): New function.
4287
4288 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4289
4290 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4291 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4292 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4293
4294 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4295
4296 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4297
4298 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4299
4300 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4301 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4302 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4303 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4304 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4305 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4306 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4307
4308 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4309
4310 [BZ #24023]
4311 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4312 PLT reference in libc.so.
4313 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4314 _Q_lltoq and _Q_qtod PLT references in libc.so.
4315
4316 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4317
4318 * benchtests/bench-memchr.c: Cleanup defines.
4319 * benchtests/bench-memcmp.c: Likewise.
4320 * benchtests/bench-memset.c: Likewise.
4321 * benchtests/bench-memset-large.c: Likewise.
4322 * benchtests/bench-memset-walk.c: Likewise.
4323 * benchtests/bench-stpcpy.c: Likewise.
4324 * benchtests/bench-stpncpy.c: Likewise.
4325 * benchtests/bench-strcat.c: Likewise.
4326 * benchtests/bench-strchr.c: Likewise.
4327 * benchtests/bench-strcmp.c: Likewise.
4328 * benchtests/bench-strcpy.c: Likewise.
4329 * benchtests/bench-strcspn.c: Likewise.
4330 * benchtests/bench-string.h: Likewise.
4331 * benchtests/bench-strlen.c: Likewise.
4332 * benchtests/bench-strncat.c: Likewise.
4333 * benchtests/bench-strncmp.c: Likewise.
4334 * benchtests/bench-strncpy.c: Likewise.
4335 * benchtests/bench-strnlen.c: Likewise.
4336 * benchtests/bench-strpbrk.c: Likewise.
4337 * benchtests/bench-strrchr.c: Likewise.
4338 * benchtests/bench-strspn.c: Likewise.
4339
4340 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4341
4342 * stdlib/longlong.h: Update from GCC.
4343
4344 [BZ #23993]
4345 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4346 * configure: Regenerated.
4347 * manual/install.texi (Tools for Compilation): Update minimum GCC
4348 version.
4349 * INSTALL: Regenerated.
4350
4351 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4352
4353 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4354
4355 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4356
4357 * malloc/malloc.c (mremap_chunk): Additional checks.
4358
4359 2018-12-21 Mao Han <han_mao@c-sky.com>
4360
4361 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4362 * scripts/build-many-glibcs.py: Add C-SKY targets.
4363 * sysdeps/csky/Implies: New file.
4364 * sysdeps/csky/Makefile: Likewise.
4365 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4366 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4367 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4368 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4369 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4370 * sysdeps/csky/abiv2/memmove.S: Likewise.
4371 * sysdeps/csky/abiv2/memset.S: Likewise.
4372 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4373 * sysdeps/csky/abiv2/start.S: Likewise.
4374 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4375 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4376 * sysdeps/csky/abiv2/strlen.S: Likewise.
4377 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4378 * sysdeps/csky/abort-instr.h: Likewise.
4379 * sysdeps/csky/atomic-machine.h: Likewise.
4380 * sysdeps/csky/bits/endian.h: Likewise.
4381 * sysdeps/csky/bits/fenv.h: Likewise.
4382 * sysdeps/csky/bits/link.h: Likewise.
4383 * sysdeps/csky/bits/setjmp.h: Likewise.
4384 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4385 * sysdeps/csky/bsd-setjmp.S: Likewise.
4386 * sysdeps/csky/configure: Likewise.
4387 * sysdeps/csky/configure.ac: Likewise.
4388 * sysdeps/csky/dl-machine.h: Likewise.
4389 * sysdeps/csky/dl-procinfo.c: Likewise.
4390 * sysdeps/csky/dl-procinfo.h: Likewise.
4391 * sysdeps/csky/dl-sysdep.h: Likewise.
4392 * sysdeps/csky/dl-tls.h: Likewise.
4393 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4394 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4395 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4396 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4397 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4398 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4399 * sysdeps/csky/fpu/fegetround.c: Likewise.
4400 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4401 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4402 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4403 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4404 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4405 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4406 * sysdeps/csky/fpu/fesetround.c: Likewise.
4407 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4408 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4409 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4410 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4411 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4412 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4413 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4414 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4415 * sysdeps/csky/fpu_control.h: Likewise.
4416 * sysdeps/csky/gccframe.h: Likewise.
4417 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4418 * sysdeps/csky/ldsodefs.h: Likewise.
4419 * sysdeps/csky/libc-tls.c: Likewise.
4420 * sysdeps/csky/linkmap.h: Likewise.
4421 * sysdeps/csky/machine-gmon.h: Likewise.
4422 * sysdeps/csky/memusage.h: Likewise.
4423 * sysdeps/csky/nofpu/Implies: Likewise.
4424 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4425 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4426 * sysdeps/csky/nptl/Makefile: Likewise.
4427 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4428 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4429 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4430 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4431 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4432 * sysdeps/csky/nptl/tls.h: Likewise.
4433 * sysdeps/csky/preconfigure: Likewise.
4434 * sysdeps/csky/sfp-machine.h: Likewise.
4435 * sysdeps/csky/sotruss-lib.c: Likewise.
4436 * sysdeps/csky/stackinfo.h: Likewise.
4437 * sysdeps/csky/sysdep.h: Likewise.
4438 * sysdeps/csky/tininess.h: Likewise.
4439 * sysdeps/csky/tst-audit.h: Likewise.
4440 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4441 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4442 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4443 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4444 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4445 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4446 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4447 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4448 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4449 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4450 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4451 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4452 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4453 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4454 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4455 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4456 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4457 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4458 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4459 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4460 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4461 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4462 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4463 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4464 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4465 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4466 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4467 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4468 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4469 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4470 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4471 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4472 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4473 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4474 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4475 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4476 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4477 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4478 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4479 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4480 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4481 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4482 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4483 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4484
4485 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4486
4487 * include/time.h (__difftime64): Add.
4488 * time/difftime.c (subtract): convert to 64-bit time.
4489 * time/difftime.c (__difftime64): Add.
4490 * time/difftime.c (__difftime): Wrap around __difftime64.
4491
4492 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4493
4494 * manual/examples/add.c: Remove redundant "if not".
4495 * manual/examples/argp-ex1.c: Likewise.
4496 * manual/examples/argp-ex2.c: Likewise.
4497 * manual/examples/argp-ex3.c: Likewise.
4498 * manual/examples/argp-ex4.c: Likewise.
4499 * manual/examples/atexit.c: Likewise.
4500 * manual/examples/db.c: Likewise.
4501 * manual/examples/dir.c: Likewise.
4502 * manual/examples/dir2.c: Likewise.
4503 * manual/examples/execinfo.c: Likewise.
4504 * manual/examples/filecli.c: Likewise.
4505 * manual/examples/filesrv.c: Likewise.
4506 * manual/examples/fmtmsgexpl.c: Likewise.
4507 * manual/examples/genpass.c: Likewise.
4508 * manual/examples/inetcli.c: Likewise.
4509 * manual/examples/inetsrv.c: Likewise.
4510 * manual/examples/isockad.c: Likewise.
4511 * manual/examples/longopt.c: Likewise.
4512 * manual/examples/memopen.c: Likewise.
4513 * manual/examples/memstrm.c: Likewise.
4514 * manual/examples/mkdirent.c: Likewise.
4515 * manual/examples/mkfsock.c: Likewise.
4516 * manual/examples/mkisock.c: Likewise.
4517 * manual/examples/mygetpass.c: Likewise.
4518 * manual/examples/pipe.c: Likewise.
4519 * manual/examples/popen.c: Likewise.
4520 * manual/examples/rprintf.c: Likewise.
4521 * manual/examples/search.c: Likewise.
4522 * manual/examples/select.c: Likewise.
4523 * manual/examples/setjmp.c: Likewise.
4524 * manual/examples/sigh1.c: Likewise.
4525 * manual/examples/sigusr.c: Likewise.
4526 * manual/examples/stpcpy.c: Likewise.
4527 * manual/examples/strdupa.c: Likewise.
4528 * manual/examples/strftim.c: Likewise.
4529 * manual/examples/subopt.c: Likewise.
4530 * manual/examples/swapcontext.c: Likewise.
4531 * manual/examples/termios.c: Likewise.
4532 * manual/examples/testopt.c: Likewise.
4533 * manual/examples/testpass.c: Likewise.
4534 * manual/examples/timeval_subtract.c: Likewise.
4535
4536 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4537
4538 * sysdeps/x86/fpu/math_private.h: New file.
4539 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4540
4541 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4542 definition.
4543 (cosh): Likewise.
4544 (tanh): Likewise.
4545
4546 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4547
4548 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4549 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4550 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4551 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4552 fields.
4553 (_dl_show_auxv): Give a special treatment to
4554 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4555 and AT_L3_CACHEGEOMETRY.
4556 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4557 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4558 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4559 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4560
4561 2018-12-19 Andreas Schwab <schwab@suse.de>
4562
4563 * nscd/connections.c (check_use): Don't abort on invalid len.
4564
4565 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4566
4567 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4568 values in the 64bit value cases.
4569
4570 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4571
4572 * include/time.h
4573 (__ctime64_r): Add.
4574 * time/ctime_r.c
4575 (__ctime64_r): Add.
4576 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4577
4578 * include/time.h
4579 (__ctime64): Add.
4580 * time/gmtime.c
4581 (__ctime64): Add.
4582 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4583
4584 * include/time.h
4585 (__gmtime64_r): Add.
4586 * time/gmtime.c
4587 (__gmtime64_r): Add.
4588 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4589
4590 * include/time.h
4591 (__gmtime64): Add.
4592 * time/gmtime.c
4593 (__gmtime64): Add.
4594 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4595
4596 * include/time.h
4597 (__localtime64_r): Add.
4598 * time/localtime.c
4599 (__localtime64_r): Add.
4600 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4601
4602 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4603
4604 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4605 kernel_sigction definition.
4606
4607 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4608
4609 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4610
4611 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4612 __syscall_rt_sigaction.
4613 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4614 (kernel_sigaction): Use Linux generic defintion.
4615 (STUB): Define.
4616 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4617 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4618 (__syscall_rt_sigaction): Remove implementation.
4619 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4620 hidden.
4621 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4622 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4623 INTERNAL_SYSCALL): Remove definitions.
4624 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4625 action and signal set size.
4626 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4627 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4628
4629 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4630 James Clarke <jrtc27@jrtc27.com>
4631
4632 [BZ #23967]
4633 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4634 Define if SA_RESTORER is defined.
4635 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4636 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4637 already defined.
4638 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4639 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4640 definitions.
4641 (HAS_SA_RESTORER): Define.
4642 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4643 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4644 (HAS_SA_RESTORER): Define.
4645 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4646 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4647 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4648 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4649 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4650
4651 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4652
4653 * sysdeps/unix/sysv/linux/kernel-features.h
4654 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4655 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4656 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4657 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4658 (__ASSUME_ST_INO_64_BIT): Likewise.
4659 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4660 <kernel-features.h>.
4661 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4662 Remove conditional code.
4663 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4664 <kernel-features.h>.
4665 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4666 Remove conditional code.
4667 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4668 <kernel-features.h>.
4669 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4670 Remove conditional code.
4671 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4672 <kernel-features.h>.
4673 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4674 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4675
4676 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4677
4678 * sysdeps/s390/multiarch/ifunc-resolve.h
4679 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4680 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4681 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4682 Delete macro definition.
4683 (s390_libc_ifunc_init): Rename to
4684 s390_libc_ifunc_expr_stfle_init.
4685 * sysdeps/s390/bzero: Use
4686 s390_libc_ifunc_expr_stfle_init instead of
4687 s390_libc_ifunc_init.
4688 * sysdeps/s390/memcmp.c: Likewise.
4689 * sysdeps/s390/memcpy.c: Likewise.
4690 * sysdeps/s390/mempcpy.c: Likewise.
4691 * sysdeps/s390/memset.c: Likewise.
4692
4693 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4694
4695 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4696 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4697
4698 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4699
4700 * sysdeps/s390/multiarch/Makefile
4701 (sysdep_routines): Remove wmemcmp variants.
4702 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4703 * sysdeps/s390/multiarch/ifunc-impl-list.c
4704 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4705 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4706 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4707 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4708 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4709 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4710 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4711 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4712
4713 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4714
4715 * sysdeps/s390/multiarch/Makefile
4716 (sysdep_routines): Remove wmemset variants.
4717 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4718 * sysdeps/s390/multiarch/ifunc-impl-list.c
4719 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4720 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4721 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4722 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4723 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4724 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4725 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4726 * sysdeps/s390/ifunc-wmemset.h: New file.
4727
4728 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4729
4730 * sysdeps/s390/multiarch/Makefile
4731 (sysdep_routines): Remove wmemchr variants.
4732 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4733 * sysdeps/s390/multiarch/ifunc-impl-list.c
4734 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4735 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4736 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4737 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4738 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4739 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4740 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4741 * sysdeps/s390/ifunc-wmemchr.h: New file.
4742
4743 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4744
4745 * sysdeps/s390/multiarch/Makefile
4746 (sysdep_routines): Remove wcscspn variants.
4747 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4748 * sysdeps/s390/multiarch/ifunc-impl-list.c
4749 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4750 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4751 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4752 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4753 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4754 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4755 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4756 * sysdeps/s390/ifunc-wcscspn.h: New file.
4757
4758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4759
4760 * sysdeps/s390/multiarch/Makefile
4761 (sysdep_routines): Remove wcspbrk variants.
4762 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4763 * sysdeps/s390/multiarch/ifunc-impl-list.c
4764 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4765 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4766 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4767 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4768 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4769 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4770 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4771 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4772
4773 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4774
4775 * sysdeps/s390/multiarch/Makefile
4776 (sysdep_routines): Remove wcsspn variants.
4777 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4778 * sysdeps/s390/multiarch/ifunc-impl-list.c
4779 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4780 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4781 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4782 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4783 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4784 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4785 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4786 * sysdeps/s390/ifunc-wcsspn.h: New file.
4787
4788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4789
4790 * sysdeps/s390/multiarch/Makefile
4791 (sysdep_routines): Remove wcsrchr variants.
4792 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4793 * sysdeps/s390/multiarch/ifunc-impl-list.c
4794 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4795 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4796 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4797 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4798 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4799 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4800 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4801 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4802
4803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4804
4805 * sysdeps/s390/multiarch/Makefile
4806 (sysdep_routines): Remove wcschrnul variants.
4807 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4808 * sysdeps/s390/multiarch/ifunc-impl-list.c
4809 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4810 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4811 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4812 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4813 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4814 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4815 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4816 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4817
4818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4819
4820 * sysdeps/s390/multiarch/Makefile
4821 (sysdep_routines): Remove wcschr variants.
4822 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4823 * sysdeps/s390/multiarch/ifunc-impl-list.c
4824 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4825 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4826 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4827 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4828 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4829 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4830 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4831 * sysdeps/s390/ifunc-wcschr.h: New file.
4832
4833 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4834
4835 * sysdeps/s390/multiarch/Makefile
4836 (sysdep_routines): Remove wcsncmp variants.
4837 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4838 * sysdeps/s390/multiarch/ifunc-impl-list.c
4839 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4840 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4841 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4842 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4843 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4844 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4845 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4846 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4847
4848 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4849
4850 * sysdeps/s390/multiarch/Makefile
4851 (sysdep_routines): Remove wcscmp variants.
4852 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4853 * sysdeps/s390/multiarch/ifunc-impl-list.c
4854 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4855 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4856 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4857 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4858 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4859 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4860 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4861 * sysdeps/s390/ifunc-wcscmp.h: New file.
4862
4863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4864
4865 * sysdeps/s390/multiarch/Makefile
4866 (sysdep_routines): Remove wcsncat variants.
4867 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4868 * sysdeps/s390/multiarch/ifunc-impl-list.c
4869 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4870 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4871 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4872 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4873 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4874 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4875 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4876 * sysdeps/s390/ifunc-wcsncat.h: New file.
4877
4878 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4879
4880 * sysdeps/s390/multiarch/Makefile
4881 (sysdep_routines): Remove wcscat variants.
4882 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4883 * sysdeps/s390/multiarch/ifunc-impl-list.c
4884 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4885 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4886 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4887 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4888 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4889 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4890 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4891 * sysdeps/s390/ifunc-wcscat.h: New file.
4892
4893 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4894
4895 * sysdeps/s390/multiarch/Makefile
4896 (sysdep_routines): Remove wcpncpy variants.
4897 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4898 * sysdeps/s390/multiarch/ifunc-impl-list.c
4899 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4900 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4901 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4902 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4903 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4904 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4905 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4906 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4907
4908 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4909
4910 * sysdeps/s390/multiarch/Makefile
4911 (sysdep_routines): Remove wcsncpy variants.
4912 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4913 * sysdeps/s390/multiarch/ifunc-impl-list.c
4914 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4915 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4916 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4917 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4918 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4919 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4920 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4921 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4922
4923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4924
4925 * sysdeps/s390/multiarch/Makefile
4926 (sysdep_routines): Remove wcpcpy variants.
4927 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4928 * sysdeps/s390/multiarch/ifunc-impl-list.c
4929 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4930 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4931 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4932 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4933 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4934 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4935 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4936 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4937
4938 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4939
4940 * sysdeps/s390/multiarch/Makefile
4941 (sysdep_routines): Remove wcscpy variants.
4942 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4943 * sysdeps/s390/multiarch/ifunc-impl-list.c
4944 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4945 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4946 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4947 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4948 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4949 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4950 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4951 * sysdeps/s390/ifunc-wcscpy.h: New file.
4952
4953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4954
4955 * sysdeps/s390/multiarch/Makefile
4956 (sysdep_routines): Remove wcsnlen variants.
4957 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4958 * sysdeps/s390/multiarch/ifunc-impl-list.c
4959 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4960 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4961 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4962 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4963 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4964 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4965 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4966 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4967
4968 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4969
4970 * sysdeps/s390/multiarch/Makefile
4971 (sysdep_routines): Remove wcslen variants.
4972 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4973 * sysdeps/s390/multiarch/ifunc-impl-list.c
4974 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4975 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4976 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4977 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4978 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4979 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4980 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4981 * sysdeps/s390/ifunc-wcslen.h: New file.
4982
4983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4984
4985 * sysdeps/s390/multiarch/Makefile
4986 (sysdep_routines): Remove memrchr variants.
4987 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4988 * sysdeps/s390/multiarch/ifunc-impl-list.c
4989 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4990 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4991 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4992 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4993 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4994 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4995 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4996 * sysdeps/s390/ifunc-memrchr.h: New file.
4997
4998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4999
5000 * sysdeps/s390/multiarch/Makefile
5001 (sysdep_routines): Remove memccpy variants.
5002 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5003 * sysdeps/s390/multiarch/ifunc-impl-list.c
5004 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5005 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5006 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5007 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5008 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5009 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5010 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5011 * sysdeps/s390/ifunc-memccpy.h: New file.
5012
5013 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5014
5015 * sysdeps/s390/multiarch/Makefile
5016 (sysdep_routines): Remove rawmemchr variants.
5017 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5018 * sysdeps/s390/multiarch/ifunc-impl-list.c
5019 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5020 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5021 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5022 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5023 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5024 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5025 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5026 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5027
5028 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5029
5030 * sysdeps/s390/multiarch/Makefile
5031 (sysdep_routines): Remove memchr variants.
5032 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5033 * sysdeps/s390/multiarch/ifunc-impl-list.c
5034 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5035 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5036 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5037 * sysdeps/s390/multiarch/memchr.c: Move to ...
5038 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5039 * sysdeps/s390/ifunc-memchr.h: New file.
5040 * sysdeps/s390/s390-64/memchr.S: Move to ...
5041 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5042 for 31/64bit and ifunc handling.
5043 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5044 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5045 * sysdeps/s390/s390-32/memchr.S: Likewise.
5046
5047 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5048
5049 * sysdeps/s390/multiarch/Makefile
5050 (sysdep_routines): Remove strcspn variants.
5051 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5052 * sysdeps/s390/multiarch/ifunc-impl-list.c
5053 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5054 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5055 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5056 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5057 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5058 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5059 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5060 * sysdeps/s390/ifunc-strcspn.h: New file.
5061
5062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5063
5064 * sysdeps/s390/multiarch/Makefile
5065 (sysdep_routines): Remove strpbrk variants.
5066 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5067 * sysdeps/s390/multiarch/ifunc-impl-list.c
5068 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5069 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5070 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5071 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5072 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5073 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5074 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5075 * sysdeps/s390/ifunc-strpbrk.h: New file.
5076
5077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5078
5079 * sysdeps/s390/multiarch/Makefile
5080 (sysdep_routines): Remove strspn variants.
5081 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5082 * sysdeps/s390/multiarch/ifunc-impl-list.c
5083 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5084 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5085 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5086 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5087 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5088 * sysdeps/s390/multiarch/strspn.c: Move to ...
5089 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5090 * sysdeps/s390/ifunc-strspn.h: New file.
5091
5092 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5093
5094 * sysdeps/s390/multiarch/Makefile
5095 (sysdep_routines): Remove strrchr variants.
5096 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5097 * sysdeps/s390/multiarch/ifunc-impl-list.c
5098 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5099 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5100 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5101 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5102 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5103 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5104 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5105 * sysdeps/s390/ifunc-strrchr.h: New file.
5106
5107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5108
5109 * sysdeps/s390/multiarch/Makefile
5110 (sysdep_routines): Remove strchrnul variants.
5111 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5112 * sysdeps/s390/multiarch/ifunc-impl-list.c
5113 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5114 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5115 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5116 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5117 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5118 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5119 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5120 * sysdeps/s390/ifunc-strchrnul.h: New file.
5121
5122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5123
5124 * sysdeps/s390/multiarch/Makefile
5125 (sysdep_routines): Remove strchr variants.
5126 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5127 * sysdeps/s390/multiarch/ifunc-impl-list.c
5128 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5129 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5130 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5131 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5132 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5133 * sysdeps/s390/multiarch/strchr.c: Move to ...
5134 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5135 * sysdeps/s390/ifunc-strchr.h: New file.
5136
5137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5138
5139 * sysdeps/s390/multiarch/Makefile
5140 (sysdep_routines): Remove strncmp variants.
5141 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5142 * sysdeps/s390/multiarch/ifunc-impl-list.c
5143 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5144 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5145 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5146 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5147 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5148 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5149 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5150 * sysdeps/s390/ifunc-strncmp.h: New file.
5151
5152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5153
5154 * sysdeps/s390/multiarch/Makefile
5155 (sysdep_routines): Remove strcmp variants.
5156 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5157 * sysdeps/s390/multiarch/ifunc-impl-list.c
5158 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5159 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5160 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5161 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5162 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5163 * sysdeps/s390/ifunc-strcmp.h: New file.
5164 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5165 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5166 for 31/64bit and ifunc handling.
5167 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5168 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5169 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5170
5171 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5172
5173 * sysdeps/s390/multiarch/Makefile
5174 (sysdep_routines): Remove strncat variants.
5175 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5176 * sysdeps/s390/multiarch/ifunc-impl-list.c
5177 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5178 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5179 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5180 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5181 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5182 * sysdeps/s390/multiarch/strncat.c: Move to ...
5183 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5184 * sysdeps/s390/ifunc-strncat.h: New file.
5185
5186 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5187
5188 * sysdeps/s390/multiarch/Makefile
5189 (sysdep_routines): Remove strcat variants.
5190 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5191 * sysdeps/s390/multiarch/ifunc-impl-list.c
5192 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5193 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5194 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5195 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5196 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5197 * sysdeps/s390/multiarch/strcat.c: Move to ...
5198 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5199 * sysdeps/s390/ifunc-strcat.h: New file.
5200
5201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5202
5203 * sysdeps/s390/multiarch/Makefile
5204 (sysdep_routines): Remove stpncpy variants.
5205 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5206 * sysdeps/s390/multiarch/ifunc-impl-list.c
5207 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5208 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5209 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5210 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5211 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5212 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5213 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5214 * sysdeps/s390/ifunc-stpncpy.h: New file.
5215
5216 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5217
5218 * sysdeps/s390/multiarch/Makefile
5219 (sysdep_routines): Remove strncpy variants.
5220 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5221 * sysdeps/s390/multiarch/ifunc-impl-list.c
5222 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5223 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5224 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5225 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5226 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5227 * sysdeps/s390/ifunc-strncpy.h: New file.
5228 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5229 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5230 and adjust ifunc handling.
5231 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5232 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5233 and adjust ifunc handling.
5234 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5235 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5236
5237 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5238
5239 * sysdeps/s390/multiarch/Makefile
5240 (sysdep_routines): Remove stpcpy variants.
5241 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5242 * sysdeps/s390/multiarch/ifunc-impl-list.c
5243 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5244 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5245 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5246 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5247 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5248 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5249 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5250 * sysdeps/s390/ifunc-stpcpy.h: New file.
5251
5252 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5253
5254 * sysdeps/s390/multiarch/Makefile
5255 (sysdep_routines): Remove strcpy variants.
5256 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5257 * sysdeps/s390/multiarch/ifunc-impl-list.c
5258 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5259 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5260 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5261 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5262 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5263 * sysdeps/s390/ifunc-strcpy.h: New file.
5264 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5265 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5266 for 31/64bit and ifunc handling.
5267 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5268 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5269 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5270
5271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5272
5273 * sysdeps/s390/multiarch/Makefile
5274 (sysdep_routines): Remove strnlen variants.
5275 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5276 * sysdeps/s390/multiarch/ifunc-impl-list.c
5277 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5278 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5279 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5280 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5281 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5282 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5283 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5284 * sysdeps/s390/ifunc-strnlen.h: New file.
5285
5286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5287
5288 * sysdeps/s390/multiarch/Makefile
5289 (sysdep_routines): Remove strlen variants.
5290 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5291 * sysdeps/s390/multiarch/ifunc-impl-list.c
5292 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5293 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5294 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5295 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5296 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5297 * sysdeps/s390/multiarch/strlen.c: Move to ...
5298 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5299 * sysdeps/s390/ifunc-strlen.h: New file.
5300
5301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5302
5303 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5304 * sysdeps/s390/multiarch/ifunc-impl-list.c
5305 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5306 * sysdeps/s390/ifunc-memmem.h: New file.
5307 * sysdeps/s390/memmem.c: Likewise.
5308 * sysdeps/s390/memmem-c.c: Likewise.
5309 * sysdeps/s390/memmem-vx.c: Likewise.
5310
5311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5312
5313 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5314 * sysdeps/s390/multiarch/ifunc-impl-list.c
5315 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5316 * sysdeps/s390/ifunc-strstr.h: New file.
5317 * sysdeps/s390/strstr.c: Likewise.
5318 * sysdeps/s390/strstr-c.c: Likewise.
5319 * sysdeps/s390/strstr-vx.c: Likewise.
5320
5321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5322
5323 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5324 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5325 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5326 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5327 New defines.
5328 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5329 * sysdeps/s390/memmove-c.c: New file.
5330 * sysdeps/s390/memmove.c: Likewise.
5331 * sysdeps/s390/multiarch/ifunc-impl-list.c
5332 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5333
5334 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5335
5336 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5337 * sysdeps/s390/configure.ac: Add check for z13 support.
5338 * sysdeps/s390/configure: Regenerated.
5339
5340 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5341
5342 * sysdeps/s390/memcopy.h: New file.
5343
5344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5345
5346 * sysdeps/s390/s390-32/bcopy.S: Remove.
5347 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5348
5349 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5350
5351 * sysdeps/s390/ifunc-memcpy.h: New File.
5352 * sysdeps/s390/memcpy.S: Move to ...
5353 * sysdeps/s390/memcpy-z900.S ... here.
5354 Move implementations from memcpy-s390x.s to here.
5355 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5356 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5357 Remove memcpy/mempcpy variants.
5358 * sysdeps/s390/Makefile (sysdep_routines):
5359 Add memcpy/mempcpy variants.
5360 * sysdeps/s390/multiarch/ifunc-impl-list.c
5361 (__libc_ifunc_impl_list): Adjust ifunc variants for
5362 memcpy and mempcpy.
5363 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5364 to ...
5365 * sysdeps/s390/memcpy.c: ... here.
5366 Adjust ifunc variants for memcpy.
5367 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5368 * sysdeps/s390/mempcpy.c: ... here.
5369 Adjust ifunc variants for mempcpy.
5370 * sysdeps/s390/mempcpy.S: Delete file.
5371
5372 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5373
5374 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5375 * sysdeps/s390/memcpy.S: ... here.
5376 Adjust to be usable for 31/64bit.
5377 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5378 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5379 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5380 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5381 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5382 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5383 Adjust to be usable for 31/64bit.
5384 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5385 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5386 * sysdeps/s390/multiarch/memcpy.c: ... here.
5387 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5388
5389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5390
5391 * sysdeps/s390/ifunc-memcmp.h: New File.
5392 * sysdeps/s390/memcmp.S: Move to ...
5393 * sysdeps/s390/memcmp-z900.S ... here.
5394 Move implementations from memcmp-s390x.s to here.
5395 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5396 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5397 Remove memcmp variants.
5398 * sysdeps/s390/Makefile (sysdep_routines):
5399 Add memcmp variants.
5400 * sysdeps/s390/multiarch/ifunc-impl-list.c
5401 (__libc_ifunc_impl_list): Adjust ifunc variants for
5402 memcmp.
5403 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5404 to ...
5405 * sysdeps/s390/memcmp.c: ... here.
5406 Adjust ifunc variants for memcmp.
5407
5408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5409
5410 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5411 * sysdeps/s390/memcmp.S: ... here.
5412 Adjust to be usable for 31/64bit.
5413 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5414 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5415 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5416 Remove memcmp.
5417 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5418 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5419 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5420 Adjust to be usable for 31/64bit.
5421 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5422 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5423 * sysdeps/s390/multiarch/memcmp.c: ... here.
5424 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5425
5426 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5427
5428 * sysdeps/s390/s390-32/bzero.S: Delete file.
5429 * sysdeps/s390/s390-64/bzero.S: Likewise.
5430 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5431 * sysdeps/s390/bzero.c: New file.
5432 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5433 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5434 * sysdeps/s390/multiarch/ifunc-impl-list.c
5435 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5436
5437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5438
5439 * sysdeps/s390/ifunc-memset.h: New File.
5440 * sysdeps/s390/memset.S: Move to ...
5441 * sysdeps/s390/memset-z900.S ... here.
5442 Move implementations from memset-s390x.s to here.
5443 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5444 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5445 Remove memset variants.
5446 * sysdeps/s390/Makefile (sysdep_routines):
5447 Add memset variants.
5448 * sysdeps/s390/multiarch/ifunc-impl-list.c
5449 (__libc_ifunc_impl_list): Adjust ifunc variants for
5450 memset.
5451 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5452 to ...
5453 * sysdeps/s390/memset.c: ... here.
5454 Adjust ifunc variants for memset.
5455
5456 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5457
5458 * sysdeps/s390/s390-64/memset.S: Move to ...
5459 * sysdeps/s390/memset.S: ... here.
5460 Adjust to be usable for 31/64bit.
5461 * sysdeps/s390/s390-32/memset.S: Delete File.
5462 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5463 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5464 Remove memset.
5465 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5466 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5467 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5468 Adjust to be usable for 31/64bit.
5469 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5470 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5471 * sysdeps/s390/multiarch/memset.c: ... here.
5472 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5473
5474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5475
5476 * sysdeps/s390/multiarch/ifunc-resolve.h
5477 (s390_libc_ifunc_init, s390_libc_ifunc,
5478 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5479
5480 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5481
5482 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5483 * sysdeps/s390/configure.ac: Add check for z10 support.
5484 * sysdeps/s390/configure: Regenerated.
5485
5486 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5487
5488 * sysdeps/i386/atomic-machine.h: Merged with ...
5489 * sysdeps/x86_64/atomic-machine.h: To ...
5490 * sysdeps/x86/atomic-machine.h: This. New file.
5491
5492 2018-12-18 Florian Weimer <fweimer@redhat.com>
5493
5494 Rewrite locale/gen-translit.pl in Python.
5495 * locale/Makefile (generated): Add C-translit.h.
5496 (before-compile): Add $(objpfx)C-translit.h.
5497 (C-translit.h): Move to $(objpfx). Create target directory.
5498 Build using Python script.
5499 * locale/gen-translit.py: New file.
5500 * locale/gen-translit.pl: Remove file.
5501 * locale/C-translit.h.in: Change comment character to '#' for
5502 easier parsing without a C preprocessor.
5503 * locale/C-translit.h: Remove generated file.
5504 * manual/install.texi (Tools for Compilation): Do not mention
5505 C-translit.h.
5506 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5507 Remove locale/C-translit.h.
5508 * scripts/update-copyrights: Likewise.
5509 * INSTALL: Regenerate.
5510
5511 2018-12-18 Florian Weimer <fweimer@redhat.com>
5512
5513 [BZ #23995]
5514 * localedata/locales/bi_VU: Remove executable bit from file.
5515
5516 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5517
5518 * include/time.h
5519 (__localtime64): Add.
5520 * manual/maint.texi: Document Y2038 symbol handling.
5521 * time/localtime.c
5522 (__localtime64): Add.
5523 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5524
5525 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5526
5527 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5528 Do not clobber r12.
5529
5530 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5531 to allow extra macros from first or second sources.
5532 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5533 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5534 (tests-special): Add $(objpfx)tst-mman-consts.out.
5535 ($(objpfx)tst-mman-consts.out): New makefile target.
5536
5537 2018-12-17 Mao Han <han_mao@c-sky.com>
5538
5539 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5540 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5541 without stat64 system call support.
5542 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5543 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5544 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5545 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5546 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5547 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5548 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5549 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5550 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5551 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5552 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5553
5554 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5555
5556 regex: fix storage-exhaustion error
5557 [BZ #18040]
5558 * posix/regexec.c (get_subexp):
5559 Do not continue if storage is exhausted.
5560
5561 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5562
5563 regex: fix heap-use-after-free error
5564 [BZ #18040]
5565 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5566 https://debbugs.gnu.org/32592
5567 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5568 call extend_buffers which reallocates the re_string_t internal buffer.
5569 Local variable 'buf' was not updated in such case, resulting in
5570 use-after-free.
5571 * posix/regexec.c (get_subexp): Update 'buf' after call to
5572 get_subexp_sub.
5573
5574 2018-12-15 Florian Weimer <fweimer@redhat.com>
5575
5576 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5577 (minimum_stride_size): Use it.
5578 (support_blob_repeat_allocate): Likewise.
5579
5580 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5581
5582 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5583 definition.
5584 (acosh): Likewise.
5585 (atanh): Likewise.
5586
5587 2018-12-14 Florian Weimer <fweimer@redhat.com>
5588
5589 * manual/process.texi (Process Creation Concepts): Remove
5590 documentation of process (ID) lifetime. List more process
5591 creation functions. Reference Process Identification section.
5592 (Process Identification): Add information about process ID
5593 lifetime. Describe Linux thread/task IDs.
5594 * manual/signal.texi (Signaling Another Process): Mention that the
5595 signal is always sent to the process.
5596
5597 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5598
5599 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5600 and tst-ldbl-efgcvt.
5601 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5602 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5603 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5604 (fcvt_tests, output_error, output_r_error, do_test): Use the
5605 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5606 select the type of floating-point variables and arguments; to
5607 produce extra tests for double and conversion specifiers for
5608 printf; and to set the names of called functions.
5609 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5610 in tst-efgcvt-template.c.
5611 * misc/tst-ldbl-efgcvt.c: Likewise.
5612
5613 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5614
5615 * nss/Makefile (tst-nss-test3.out): New rule.
5616
5617 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5618
5619 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5620 clobber sp.
5621
5622 2018-12-13 fanjinke <fanjinke@hygon.cn>
5623
5624 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5625 "HygonGenuine".
5626
5627 2018-12-13 Andreas Schwab <schwab@suse.de>
5628
5629 [BZ #23861]
5630 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5631 (__pthread_rwlock_rdlock_full): Update expected value for
5632 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5633 * nptl/tst-rwlock-pwn.c: New file.
5634 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5635
5636 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5637
5638 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5639 definition.
5640
5641 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5642
5643 * benchtests/scripts/compare_bench.py (do_compare): write to
5644 stderr in casestat is not present.
5645 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5646 stderr in case timings field is not present. Also string showing
5647 the output filename goes into the stderr.
5648
5649 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5650
5651 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5652 and ZeroDivisorError exceptions.
5653 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5654 argument to loop through user provided statistics.
5655 * benchtests/scripts/compare_bench.py (main): Include the --stats
5656 argument.
5657
5658 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5659
5660 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5661 instead of return.
5662
5663 2018-12-12 Florian Weimer <fweimer@redhat.com>
5664
5665 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5666 clause to copyright header.
5667
5668 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5669
5670 [BZ #23614]
5671 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5672 registers saved in the stack frame.
5673 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5674 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5675
5676 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5677
5678 * include/bits/monetary-ldbl.h: New file.
5679 * include/bits/printf-ldbl.h: Likewise.
5680 * include/bits/stdio-ldbl.h: Likewise.
5681 * include/bits/stdlib-ldbl.h: Likewise.
5682 * include/bits/syslog-ldbl.h: Likewise.
5683 * include/bits/wchar-ldbl.h: Likewise.
5684
5685 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5686
5687 * libio/libio.h: Remove redirection for _IO_vfprintf.
5688
5689 2018-12-11 Andreas Schwab <schwab@suse.de>
5690
5691 * Makerules: Remove all references to abilist-pattern.
5692 (update-all-abi): Simplify find expression.
5693
5694 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5695
5696 [BZ #23961]
5697 * math/auto-libm-test-in: Add new test case.
5698 * math/auto-libm-test-out-pow: Regenerated.
5699 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5700
5701 2018-12-10 DJ Delorie <dj@redhat.com>
5702
5703 [BZ #23948]
5704 * support/test-container.c: Move postclean step to before we
5705 change namespaces.
5706
5707 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5708
5709 * scripts/gen-as-const.py (main): Handle --python option.
5710 * scripts/gen-py-const.awk: Remove.
5711 * Makerules (py-const-script): Use gen-as-const.py.
5712 ($(py-const)): Likewise.
5713 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5714 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5715 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5716 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5717 ~PTHREAD_MUTEX_NO_ELISION_NP.
5718 * manual/README.pretty-printers: Update reference to
5719 gen-py-const.awk.
5720
5721 * scripts/glibcextract.py: New file.
5722 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5723 or tempfile. Import glibcexctract.
5724 (compute_c_consts): Remove. Moved to glibcextract.py.
5725 (gen_test): Update reference to compute_c_consts.
5726 (main): Likewise.
5727 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5728 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5729 * sysdeps/unix/sysv/linux/Makefile
5730 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5731 Redirect stderr as well as stdout.
5732
5733 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5734
5735 [BZ #19767]
5736 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5737 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5738 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5739 ALWAYS_USE_VSYSCALL.
5740 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5741 ALWAYS_USE_VSYSCALL.
5742 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5743 ALWAYS_USE_VSYSCALL.
5744
5745 2018-12-10 Florian Weimer <fweimer@redhat.com>
5746
5747 [BZ #23972]
5748 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5749 offset instead of count for clarity. Fix typo in comment.
5750 (__old_getdents64): Keep track of previous offset. Use it to call
5751 handle_overflow.
5752 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5753 that d_off is never zero.
5754
5755 2018-12-10 Andreas Schwab <schwab@suse.de>
5756
5757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5758 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5760 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5761 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5762
5763 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5764
5765 * timezone/private.h: Update from tzcode 2018g.
5766 * timezone/tzfile.h: Likewise.
5767 * timezone/tzselect.ksh: Likewise.
5768 * timezone/zdump.c: Likewise.
5769 * timezone/zic.c: Likewise.
5770
5771 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5772
5773 [BZ #23490]
5774 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5775 (do_test): Adjust buffer size and fix format.
5776
5777 2018-12-07 DJ Delorie <dj@redhat.com>
5778
5779 [BZ #23907]
5780 * malloc/tst-tcfree3.c: New.
5781 * malloc/Makefile: Add it.
5782
5783 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5784
5785 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5786
5787 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5788
5789 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5790 used as a mask for the mode argument of __vfscanf_internal and
5791 __vfwscanf_internal.
5792 * stdio-common/vfscanf-internal.c
5793 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5794 (__strtof128_internal): Define to __wcstof128_internal.
5795 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5796 __strtof128_internal or __wcstof128_internal when the format of
5797 long double is the same as _Float128.
5798
5799 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5800
5801 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5802 * posix/confstr.c (confstr): Rename to __confstr.
5803 (__confstr): Add hidden def.
5804 (confstr): Add weak alias for __confstr.
5805 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5806 confstr.
5807
5808 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5809
5810 * NEWS: Mention getcpu.
5811 * include/sched.h (__getcpu): New libc_hidden_proto.
5812 * manual/resource.texi: Document getcpu.
5813 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5814 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5815 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5816 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5817 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5818 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5819 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5820 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5821 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5822 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5823 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5824 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5825 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5826 Likewise.
5827 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5828 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5829 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5831 Likewise.
5832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5833 Likewise.
5834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5835 Likewise.
5836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5837 Likewise.
5838 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5839 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5840 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5841 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5842 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5843 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5844 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5845 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5846 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5847 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5848 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5849 Also check getcpu.
5850
5851 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5852
5853 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5854 functions.
5855 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5856
5857 2018-12-07 Florian Weimer <fweimer@redhat.com>
5858
5859 [BZ #17405]
5860 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5861 * posix/Versions (GLIBC_2.29): Export
5862 posix_spawn_file_actions_addfchdir_np.
5863 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5864 * posix/spawn_faction_destroy.c
5865 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5866 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5867 and the field action.fchdir_action.
5868 * posix/tst-spawn-chdir.c (add_chdir): New function.
5869 (do_test): Add do_fchdir loop. Call add_chdir.
5870 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5871 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5872 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5873 posix_spawn_file_actions_addfchdir_np.
5874 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5875 Likewise.
5876 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5877 Likewise.
5878 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5879 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5880 Likewise.
5881 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5882 Likewise.
5883 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5884 Likewise.
5885 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5886 Likewise.
5887 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5888 Likewise.
5889 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5890 Likewise.
5891 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5892 (GLIBC_2.29): Likewise.
5893 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5894 (GLIBC_2.29): Likewise.
5895 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5896 (GLIBC_2.29): Likewise.
5897 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5898 (GLIBC_2.29): Likewise.
5899 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5900 Likewise.
5901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5902 (GLIBC_2.29): Likewise.
5903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5904 (GLIBC_2.29): Likewise.
5905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5906 (GLIBC_2.29): Likewise.
5907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5908 (GLIBC_2.29): Likewise.
5909 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5910 Likewise.
5911 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5912 Likewise.
5913 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5914 Likewise.
5915 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5916 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5917 Likewise.
5918 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5919 Likewise.
5920 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5921 Likewise.
5922 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5923 Likewise.
5924
5925 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5926
5927 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5928 trailing whitespace removed.
5929 * scripts/config.guess: Update to version 2018-11-28.
5930 * scripts/config.sub: Update to version 2018-11-28.
5931 * scripts/install-sh: Update to version 2018-03-11.20.
5932 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5933 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5934
5935 2018-12-07 Florian Weimer <fweimer@redhat.com>
5936
5937 [BZ #23927]
5938 CVE-2018-19591
5939 * inet/tst-if_index-long.c: New file.
5940 * inet/Makefile (tests): Add tst-if_index-long.
5941
5942 2018-12-07 Florian Weimer <fweimer@redhat.com>
5943
5944 * support/check.h (support_record_failure_is_failed): Declare.
5945 * support/descriptors.h: New file.
5946 * support/support_descriptors.c: Likewise.
5947 * support/tst-support_descriptors.c: Likewise.
5948 * support/support_record_failure.c
5949 (support_record_failure_is_failed): New function.
5950 * support/Makefile (libsupport-routines): Add support_descriptors.
5951 (tests): Add tst-support_descriptors.
5952
5953 2018-12-05 Zack Weinberg <zackw@panix.com>
5954 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5955
5956 * stdio-common/vfprintf-internal.c
5957 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5958 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5959 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5960 and __no_long_double.
5961 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5962 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5963 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5964 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5965 and __nldbl_*syslog* functions.
5966 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5967 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5968 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5969 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5970 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5971 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5972 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5973 (__nldbl_vwprintf, __nldbl_wprintf):
5974 Directly call the appropriate __v*printf_internal routine, passing
5975 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5976 variable names.
5977 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5978 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5979 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5980 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5981 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5982 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5983 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5984 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5985 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5986 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5987 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5988 (__nldbl_syslog, __nldbl_vsyslog):
5989 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5990 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5991 appropriate.
5992 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5993 appropriate.
5994
5995 2018-12-05 Zack Weinberg <zackw@panix.com>
5996 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5997
5998 [BZ #11319]
5999 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6000 Moved here from debug/vsprintf_chk.c.
6001 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6002 and completion logic for the strfile to match exactly what
6003 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6004 _IO_str_init_static_internal instead of maxlen-1.
6005 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6006 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6007 __vsprintf_internal.
6008
6009 * debug/vsprintf_chk.c (__vsprintf_chk)
6010 * debug/sprintf_chk.c (__sprintf_chk):
6011 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6012 'flags' argument is positive, and slen as maxlen. No need to lock
6013 the FILE and/or construct a temporary FILE. Minimize and normalize
6014 header inclusions and variable names. Do not libc_hidden_def anything.
6015
6016 * debug/asprintf_chk.c (__asprintf_chk)
6017 * debug/dprintf_chk.c (__dprintf_chk)
6018 * debug/fprintf_chk.c (__fprintf_chk)
6019 * debug/fwprintf_chk.c (__fwprintf_chk)
6020 * debug/printf_chk.c (__printf_chk)
6021 * debug/snprintf_chk.c (__snprintf_chk)
6022 * debug/swprintf_chk.c (__swprintf_chk)
6023 * debug/vasprintf_chk.c (__vasprintf_chk)
6024 * debug/vdprintf_chk.c (__vdprintf_chk)
6025 * debug/vfprintf_chk.c (__vfprintf_chk)
6026 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6027 * debug/vprintf_chk.c (__vprintf_chk)
6028 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6029 * debug/vswprintf_chk.c (__vswprintf_chk)
6030 * debug/vwprintf_chk.c (__vwprintf_chk)
6031 * debug/wprintf_chk.c (__wprintf_chk):
6032 Directly call the corresponding vxxprintf_internal function, passing
6033 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6034 the FILE and/or construct a temporary FILE. Minimize and normalize
6035 header inclusions and variable names. Do not libc_hidden_def anything.
6036
6037 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6038 __obstack_vprintf_internal.
6039 (__obstack_vprintf_chk): Convert into a wrapper that calls
6040 __obstack_vprintf_internal (these two functions already had the
6041 same code) and move to new file...
6042 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6043 file.
6044 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6045 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6046 * debug/Makefile (routines): Add vobprintf_chk.
6047
6048 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6049 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6050 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6051 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6052 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6053 (__nldbl___obstack_vfprintf_chk):
6054 Directly call the corresponding vxxprintf_internal function,
6055 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6056 duplicate comparison of slen with 0 or maxlen from the corresponding
6057 non-__nldbl function.
6058
6059 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6060 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6061 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6062 Remove libc_hidden_proto.
6063
6064 * stdio-common/vfprintf-internal.c
6065 (__vfprintf_internal, __vfwprintf_internal):
6066 Do not check _IO_FLAGS2_FORTIFY.
6067 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6068 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6069 a comment explaining why it has the maxlen argument.
6070 (_IO_acquire_lock_clear_flags2_fct): Remove.
6071 (_IO_acquire_lock_clear_flags2): Remove.
6072 (_IO_release_lock): Remove conditional statement which will
6073 now never execute.
6074 (_IO_acquire_lock): Remove variable which is now unused.
6075 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6076 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6077
6078 * stdio-common/Makefile (tests): Add tst-bz11319 and
6079 tst-bz11319-fortify2.
6080 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6081 * stdio-common/tst-bz11319-fortify2.c: New file.
6082 * stdio-common/tst-bz11319.c: Likewise.
6083
6084 2018-12-05 Zack Weinberg <zackw@panix.com>
6085 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6086
6087 * misc/syslog.c: Include libioP.h, not iolibio.h.
6088 (__vsyslog_internal): New function with the former body of
6089 __vsyslog_chk; takes mode_flags argument same as
6090 __v*printf_internal. Call __vfprintf_internal directly.
6091
6092 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6093 Remove libc_hidden_def.
6094 (__syslog, __syslog_chk): Use __vsyslog_internal.
6095 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6096
6097 * include/sys/syslog.h: Add multiple inclusion guard.
6098 Add prototype for __vsyslog_internal.
6099 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6100
6101 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6102 Use __vsyslog_internal.
6103
6104 2018-12-05 Zack Weinberg <zackw@panix.com>
6105 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6106
6107 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6108 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6109 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6110 New functions.
6111 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6112 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6113
6114 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6115 Include wctype.h here if COMPILE_WPRINTF is defined.
6116 Define __vfprintf_internal or __vfwprintf_internal, depending
6117 on COMPILE_WPRINTF.
6118 Temporarily, on entry to this function, update mode_flags
6119 according to the environmental settings corresponding to
6120 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6121 Throughout, check mode_flags instead of __ldbl_is_dbl and
6122 _IO_FLAGS2_FORTIFY on the destination FILE.
6123 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6124 Include vfprintf-internal.c. Don't include wctype.h.
6125 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6126 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6127 and vfprintf.
6128 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6129 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6130 and vfwprintf.
6131 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6132
6133 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6134 and add mode_flags argument; use __vfprintf_internal.
6135 (__vdprintf): New function. Alias vdprintf to this.
6136 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6137 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6138 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6139 (__obstack_printf): Use __obstack_printf_internal.
6140 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6141 public aliases __vsnprintf and vsnprintf.
6142 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6143 called internally.
6144 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6145 public aliases _IO_vsprintf and vsprintf.
6146 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6147 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6148 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6149 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6150 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6151
6152 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6153 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6154 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6155 * stdio-common/printf.c: Use __vfprintf_internal.
6156
6157 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6158 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6159 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6160
6161 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6162 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6163 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6164 __vfwprintf_internal.
6165
6166 * libio/libio.h: Remove libc_hidden_proto and declaration for
6167 _IO_vfprintf.
6168 Remove declaration of _IO_vfwprintf.
6169 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6170 _IO_vsprintf.
6171 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6172 _IO_obstack_printf.
6173 * include/stdio.h: Add prototype for __vasprintf.
6174 (__vsnprintf): Remove declaration, because there are no more
6175 internal calls.
6176 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6177 declaration, because there are no more internal calls.
6178
6179 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6180 __vsnprintf_internal, instead of _IO_vsnprintf.
6181 * argp/argp-help.c (__argp_error, __argp_failure): Use
6182 __vasprintf_internal, instead of _IO_vasprintf.
6183 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6184 redefine, because there are no more internal calls.
6185
6186 2018-12-05 Zack Weinberg <zackw@panix.com>
6187 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6188
6189 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6190 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6191 Include libio/strfile.h instead of libioP.h.
6192 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6193 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6194 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6195 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6196 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6197 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6198 necessary. Do not set __no_long_double. Normalize variable names.
6199 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6200 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6201 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6202 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6203 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6204 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6205 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6206 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6207 Do not set __no_long_double. Normalize variable names.
6208
6209 2018-12-05 Zack Weinberg <zackw@panix.com>
6210 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6211
6212 * stdio-common/isoc99_scanf.c
6213 * stdio-common/isoc99_fscanf.c
6214 * stdio-common/isoc99_sscanf.c
6215 * stdio-common/isoc99_vscanf.c
6216 * stdio-common/isoc99_vfscanf.c
6217 * stdio-common/isoc99_vsscanf.c
6218 * wcsmbs/isoc99_wscanf.c
6219 * wcsmbs/isoc99_fwscanf.c
6220 * wcsmbs/isoc99_swscanf.c
6221 * wcsmbs/isoc99_vwscanf.c
6222 * wcsmbs/isoc99_vfwscanf.c
6223 * wcsmbs/isoc99_vswscanf.c:
6224 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6225 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6226 No need to lock and unlock the FILE passed to that function.
6227
6228 * stdio-common/vfscanf-internal.c
6229 (__vfscanf_internal, __vfwscanf_internal):
6230 Don't look at _IO_FLAGS2_SCANF_STD.
6231 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6232 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6233 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6234
6235 2018-12-05 Zack Weinberg <zackw@panix.com>
6236 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6237
6238 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6239 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6240 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6241 * libio/strfile.h: Add multiple inclusion guard.
6242 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6243
6244 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6245 consistency with the other version of this file.
6246 (ldbl_compat_symbol): New macro.
6247 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6248 New macro.
6249
6250 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6251 Define __vfscanf_internal or __vfwscanf_internal, depending on
6252 COMPILE_WSCANF; don't define any other public symbols.
6253 Remove errval and code to set errp.
6254 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6255 as the mode_flags argument.
6256 (encode_error, conv_error, input_error): Don't set errval.
6257 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6258 Include vfscanf-internal.c.
6259 * stdio-common/vfscanf.c: New file defining the public entry
6260 point vfscanf, which calls __vfscanf_internal.
6261 * stdio-common/vfwscanf.c: New file defining the public entry
6262 point vfwscanf, which calls __vfwscanf_internal.
6263
6264 * stdio-common/iovfscanf.c: New file.
6265 * stdio-common/iovfwscanf.c: Likewise.
6266
6267 * stdio-common/Makefile (routines): Add vfscanf-internal,
6268 vfwscanf-internal, iovfscanf, iovfwscanf.
6269 * stdio-common/Versions: Mention GLIBC_2.29, so that
6270 it can be used in SHLIB_COMPAT expressions.
6271 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6272 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6273 Call __vfscanf_internal, instead of _IO_vfscanf.
6274 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6275 _IO_vfscanf.
6276 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6277 _IO_vfwscanf.
6278
6279 * libio/iovsscanf.c: Clean up includes, when possible. Use
6280 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6281 __vfscanf_internal or __vfwscanf_internal directly.
6282 * libio/iovswscanf.c: Likewise.
6283 * libio/swscanf.c: Likewise.
6284 * libio/vscanf.c: Likewise.
6285 * libio/vwscanf.c: Likewise.
6286 * libio/wscanf.c: Likewise.
6287 * stdio-common/isoc99_fscanf.c: Likewise.
6288 * stdio-common/isoc99_scanf.c: Likewise.
6289 * stdio-common/isoc99_sscanf.c: Likewise.
6290 * stdio-common/isoc99_vfscanf.c: Likewise.
6291 * stdio-common/isoc99_vscanf.c: Likewise.
6292 * stdio-common/isoc99_vsscanf.c: Likewise.
6293 * stdio-common/scanf.c: Likewise.
6294 * stdio-common/sscanf.c: Likewise.
6295 * wcsmbs/isoc99_fwscanf.c: Likewise.
6296 * wcsmbs/isoc99_swscanf.c: Likewise.
6297 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6298 * wcsmbs/isoc99_vswscanf.c: Likewise.
6299 * wcsmbs/isoc99_vwscanf.c: Likewise.
6300 * wcsmbs/isoc99_wscanf.c: Likewise.
6301
6302 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6303
6304 * include/time.h
6305 (__tz_compute): Replace time_t with __time64_t.
6306 (__tz_convert): Replace time_t* with __time64_t.
6307 (__offtime): Replace time_t* with __time64_t.
6308 * time/gmtime.c
6309 (__gmtime_r): Adjust call to __tz_convert.
6310 (gmtime): Likewise.
6311 * time/localtime.c
6312 (__localtime_r): Likewise.
6313 (localtime): Likewise.
6314 * time/offtime.c: Replace time_t with __time64_t.
6315 * time/tzset.c: Likewise.
6316
6317 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6318
6319 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6320 dynamic linker unless [$(run-built-tests) = yes].
6321
6322 2018-12-03 DJ Delorie <dj@delorie.com>
6323
6324 * support/test-container.c (check_for_unshare_hints): New.
6325 (main): Call it if unshare fails. Add support for "su" scriptlet
6326 command.
6327
6328 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6329
6330 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6331 'START' to indicate that start text should be output.
6332 (gen_test): Likewise.
6333 (main): Generate 'START' for first symbol or '--' line, or at end
6334 of input if not previously generated.
6335
6336 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6337
6338 [BZ #19767]
6339 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6340 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6341 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6342 ALWAYS_USE_VSYSCALL.
6343
6344 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6345
6346 [BZ #23913]
6347 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6348 new_argv by one.
6349
6350 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6351
6352 [BZ #23923]
6353 * locale/programs/localedef.c: Declare boolean hard_links default true.
6354 (options): Add --no-hard-links option.
6355 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6356 * locale/programs/localedef.h: Declare prototype for hard_links.
6357 * locale/programs/locfile.c (write_locale_data): Don't use hard
6358 links if hard_links is false.
6359
6360 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6361
6362 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6363 cpu_features_basic.
6364 (__cache_sysconf): Likewise.
6365 (init_cacheinfo): Likewise.
6366 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6367 populate COMMON_CPUID_INDEX_80000007 and
6368 COMMON_CPUID_INDEX_80000008.
6369 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6370 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6371 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6372 (init_cpu_features): Use _Static_assert on
6373 index_arch_Fast_Unaligned_Load.
6374 __get_cpuid_registers and __get_arch_feature. Updated for
6375 cpu_features_basic. Set stepping in cpu_features.
6376 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6377 (FEATURE_INDEX_2): New.
6378 (FEATURE_INDEX_MAX): Changed to enum.
6379 (COMMON_CPUID_INDEX_D_ECX_1): New.
6380 (COMMON_CPUID_INDEX_80000007): Likewise.
6381 (COMMON_CPUID_INDEX_80000008): Likewise.
6382 (cpuid_registers): Likewise.
6383 (cpu_features_basic): Likewise.
6384 (CPU_FEATURE_USABLE): Likewise.
6385 (bit_arch_XXX_Usable): Likewise.
6386 (cpu_features): Use cpuid_registers and cpu_features_basic.
6387 (bit_arch_XXX): Reweritten.
6388 (bit_cpu_XXX): Likewise.
6389 (index_cpu_XXX): Likewise.
6390 (reg_XXX): Likewise.
6391 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6392 <support/check.h>.
6393 (CHECK_CPU_FEATURE): New.
6394 (CHECK_CPU_FEATURE_USABLE): Likewise.
6395 (cpu_kinds): Likewise.
6396 (do_test): Print vendor, family, model and stepping. Check
6397 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6398 (TEST_FUNCTION): Removed.
6399 Include <support/test-driver.c> instead of
6400 "../../test-skeleton.c".
6401 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6402 Check POPCNT instead of POPCOUNT.
6403 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6404
6405 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6406
6407 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6408 there is no element in `consts'.
6409
6410 2018-12-01 Florian Weimer <fweimer@redhat.com>
6411
6412 * support/support_capture_subprocess.c
6413 (support_capture_subprocess): Check that pipe descriptors have
6414 expected values. Close original pipe descriptors in subprocess.
6415
6416 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6417
6418 [BZ #23032]
6419 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6420 attr with __pthread_default_barrierattr.
6421 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6422 attr with __pthread_default_condattr.
6423 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6424 attr with __pthread_default_mutexattr.
6425 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6426 attr with __pthread_default_rwlockattr.
6427
6428 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6429
6430 * manual/tunables.texi (POSIX Thread Tunables): New node.
6431 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6432 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6433 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6434 __pthread_tunables_init.
6435 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6436 (max_adaptive_count): Define.
6437 * nptl/pthread_mutex_conf.c: New file.
6438 * nptl/pthread_mutex_conf.h: New file.
6439 * sysdeps/generic/adaptive_spin_count.h: New file.
6440 * sysdeps/nptl/dl-tunables.list: New file.
6441 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6442 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6443 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6444 Likewise.
6445
6446 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6447
6448 [BZ #20544]
6449 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6450 * stdlib/on_exit.c (__on_exit): Likewise.
6451 * stdlib/Makefile (tests): Add tst-bz20544.
6452 * stdlib/tst-bz20544.c: New test.
6453
6454 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6455
6456 [BZ #19767]
6457 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6458 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6459 New.
6460
6461 2018-11-30 Florian Weimer <fweimer@redhat.com>
6462
6463 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6464 Extend error logging.
6465 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6466 symbol.
6467
6468 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6469
6470 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6471 __sigismember instead of sigismember.
6472 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6473 cancel_handler): New definitions.
6474 (do_system): Use posix_spawn instead of fork and execl and remove
6475 reentracy code.
6476 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6477 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6478 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6479 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6480 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6481 * sysdeps/unix/sysv/linux/system.c: Likewise.
6482
6483 [BZ #22834]
6484 [BZ #17490]
6485 * NEWS: Add new semantic for atfork with popen and system.
6486 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6487 fork and execl.
6488
6489 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6490
6491 [BZ #23690]
6492 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6493 modification order when accessing reloc_result->addr.
6494 * include/link.h (reloc_result): Add field init.
6495 * nptl/Makefile (tests): Add tst-audit-threads.
6496 (modules-names): Add tst-audit-threads-mod1 and
6497 tst-audit-threads-mod2.
6498 Add rules to build tst-audit-threads.
6499 * nptl/tst-audit-threads-mod1.c: New file.
6500 * nptl/tst-audit-threads-mod2.c: Likewise.
6501 * nptl/tst-audit-threads.c: Likewise.
6502 * nptl/tst-audit-threads.h: Likewise.
6503
6504 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6505
6506 * scripts/gen-as-const.py: New file.
6507 * scripts/gen-as-const.awk: Remove.
6508 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6509 gen-as-const.py.
6510 ($(objpfx)test-as-const-%.c): Likewise.
6511
6512 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6513
6514 * elf/dl-exception.c: Include <_itoa.h>.
6515
6516 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6517
6518 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6519 returned by __f_setlk.
6520
6521 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6522 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6523
6524 * elf/Makefile (tests-internal): Add tst-create_format1.
6525 * elf/dl-exception.c (_dl_exception_create_format): Support
6526 %x, %lx and %zx.
6527 * elf/tst-create_format1.c: New file.
6528
6529 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6530
6531 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6532 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6533 gnulib.)
6534 * argp/argp-help.c (__argp_failure): Likewise.
6535
6536 2018-11-29 Mao Han <han_mao@c-sky.com>
6537
6538 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6539 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6540 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6541 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6542 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6543 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6544 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6545 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6546 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6547 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6548 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6549 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6550 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6551 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6552 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6553 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6554 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6555 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6556 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6557 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6558 (R_CKCORE_TLS_TPOFF32): New defines.
6559
6560 2018-11-29 Florian Weimer <fweimer@redhat.com>
6561
6562 * posix/Makefile (before-compile): Remove testcases.h and
6563 ptestcases.h.
6564 (generated): Add testcases.h and ptestcases.h.
6565 (testcases.h, ptestcases.h): Move to $(objpfx).
6566 (runtests.o): Add dependency on testcases.h.
6567 (runptests.o): Add dependency on ptestcases.h.
6568 * posix/testcases.h, posix/ptestcases.h: Remove files.
6569 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6570 not touch posix/testcases.h and posix/ptestcases.h.
6571
6572 2018-11-28 Florian Weimer <fweimer@redhat.com>
6573
6574 support: Add signal support to support_capture_subprocess_check.
6575 * support/capture_subprocess.h (support_capture_subprocess_check):
6576 Adjust comment and rename parameter.
6577 * support/support_capture_subprocess_check.c
6578 (print_actual_status): New function.
6579 (support_capture_subprocess_check): Support negative
6580 status_or_signal. Call print_actual_status.
6581 * support/tst-support_capture_subprocess.c (do_test): Call
6582 support_capture_subprocess_check.
6583 * libio/tst-vtables-common.c (termination_status)
6584 (init_termination_status): Remove.
6585 (check_for_termination): Adjust support_capture_subprocess_check
6586 call.
6587 (do_test): Remove call to init_termination_status.
6588
6589 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6590
6591 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6592 source directory instead of a copy.
6593 (CommandList.create_copy_dir): Remove.
6594
6595 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6596
6597 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6598
6599 2018-11-28 Florian Weimer <fweimer@redhat.com>
6600
6601 * support/support.h (support_quote_string): Do not use str
6602 parameter name.
6603
6604 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6605
6606 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6607 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6608
6609 2018-11-27 Florian Weimer <fweimer@redhat.com>
6610
6611 * support/support.h (support_quote_string): Declare.
6612 * support/support_quote_string.c: New file.
6613 * support/tst-support_quote_string.c: Likewise.
6614 * support/Makefile (libsupport-routines): Add
6615 support_quote_string.
6616 (tests): Add tst-support_quote_string.
6617
6618 2018-11-27 Florian Weimer <fweimer@redhat.com>
6619
6620 [BZ #23927]
6621 CVE-2018-19591
6622 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6623 descriptor leak in case of ENODEV error.
6624
6625 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6626
6627 [BZ #19767]
6628 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6629 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6630 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6631
6632 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6633
6634 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6635 Error for unknown lines.
6636
6637 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6638
6639 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6640 Touch additional files.
6641
6642 2018-11-26 Florian Weimer <fweimer@redhat.com>
6643
6644 [BZ #23907]
6645 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6646 double-frees.
6647
6648 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6649
6650 [BZ #19767]
6651 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6652 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6653 SHARED. Include sysdep.h.
6654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6655 ALWAYS_USE_VSYSCALL.
6656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6657 ALWAYS_USE_VSYSCALL.
6658
6659 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6660
6661 [BZ #19767]
6662 * nptl/Makefile (tests-static): Add tst-cond11-static.
6663 (tests): Likewise.
6664 * nptl/tst-cond11-static.c: New File.
6665 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6666 tst-affinity-static.
6667 (tests): Likewise.
6668 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6669 instead of SHARED.
6670 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6671 (USE_VSYSCALL): Likewise.
6672 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6673 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6674 instead of SHARED.
6675 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6676 SHARED.
6677 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6678 New.
6679
6680 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6681
6682 [BZ #23915]
6683 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6684 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6685 Undefine.
6686
6687 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6688
6689 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6690 (tst-cet-legacy-1a-ARGS): New.
6691 ($(objpfx)tst-cet-legacy-1a): New target.
6692 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6693
6694 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6695
6696 * conform/conformtest.py (CompileSubTest.__init__): Set
6697 self.run_early to False.
6698 (ExecuteSubTest.__init__): Likewise.
6699 (HeaderTests.run): Try running all non-optional, non-XFAILed
6700 compilation tests in a single execution of the compiler.
6701
6702 * conform/conformtest.py (CompileSubTest): New class.
6703 (ExecuteSubTest): Likewise.
6704 (ElementTest.run): Rename to gen_subtests. Append tests to
6705 self.subtests instead of running them.
6706 (ConstantTest.run): Likewise.
6707 (SymbolTest.run): Likewise.
6708 (TypeTest.run): Likewise.
6709 (TagTest.run): Likewise.
6710 (FunctionTest.run): Likewise.
6711 (VariableTest.run): Likewise.
6712 (MacroFunctionTest.run): Likewise.
6713 (MacroStrTest.run): Likewise.
6714 (HeaderTests.handle_test_line): Generate subtests for tests.
6715 (HeaderTests.run): Run subtests for tests.
6716
6717 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6718
6719 * math/Versions (GLIBC_2.29): Add pow.
6720 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6721 symbol.
6722 * math/w_pow.c: New file.
6723 * sysdeps/i386/fpu/w_pow.c: New file.
6724 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6725 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6726 and add necessary aliases.
6727 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6728 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6729 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6730 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6731 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6732 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6733 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6734 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6735 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6736 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6737 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6738 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6739 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6740 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6741 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6746 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6747 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6748 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6749 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6750 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6751 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6752 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6753 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6754 __pow.
6755 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6756 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6757 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6758
6759 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6760
6761 * math/Versions (GLIBC_2.29): Add log2.
6762 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6763 symbol.
6764 * math/w_log2.c: New file.
6765 * sysdeps/i386/fpu/w_log2.c: New file.
6766 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6767 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6768 and add necessary aliases.
6769 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6770 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6771 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6772 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6773 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6774 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6775 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6776 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6777 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6778 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6779 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6780 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6781 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6782 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6783 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6788 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6789 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6790 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6791 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6792 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6793 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6794 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6795
6796 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6797
6798 * math/Versions (GLIBC_2.29): Add log.
6799 * math/w_log_compat.c (__log_compat): Change to versioned compat
6800 symbol.
6801 * math/w_log.c: New file.
6802 * sysdeps/i386/fpu/w_log.c: New file.
6803 * sysdeps/ia64/fpu/e_log.S: Update.
6804 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6805 and add necessary aliases.
6806 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6807 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6808 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6809 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6810 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6811 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6812 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6813 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6814 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6815 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6816 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6817 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6818 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6819 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6820 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6825 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6826 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6827 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6828 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6829 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6830 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6831 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6832 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6833 __log.
6834 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6835 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6836 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6837 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6838
6839 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6840
6841 * math/Versions (GLIBC_2.29): Add exp and exp2.
6842 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6843 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6844 * math/w_exp_compat.c (__exp_compat): Likewise.
6845 * math/w_exp.c: New file.
6846 * math/w_exp2.c: New file.
6847 * sysdeps/i386/fpu/w_exp.c: New file.
6848 * sysdeps/i386/fpu/w_exp2.c: New file.
6849 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6850 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6851 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6852 and add necessary aliases.
6853 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6854 and add necessary aliases.
6855 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6856 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6857 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6858 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6859 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6860 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6861 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6862 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6863 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6864 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6865 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6866 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6867 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6868 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6869 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6870 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6871 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6877 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6879 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6880 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6881 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6882 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6883 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6884 (__ieee754_exp): Rename to __exp.
6885 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6886 (__ieee754_exp): Rename to __exp.
6887 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6888 (__ieee754_exp): Rename to __exp.
6889 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6890 __exp.
6891 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6892
6893 2018-11-20 DJ Delorie <dj@redhat.com>
6894
6895 * malloc/malloc.c (tcache_entry): Add key field.
6896 (tcache_put): Set it.
6897 (tcache_get): Likewise.
6898 (_int_free): Check for double free in tcache.
6899 * malloc/tst-tcfree1.c: New.
6900 * malloc/tst-tcfree2.c: New.
6901 * malloc/Makefile: Run the new tests.
6902 * manual/probes.texi: Document memory_tcache_double_free probe.
6903
6904 * dlfcn/dlerror.c (check_free): Prevent double frees.
6905
6906 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6907
6908 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6909
6910 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6911
6912 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6913 in tests. Use names for format arguments.
6914 (ConstantTest.run): Likewise.
6915 (SymbolTest.run): Likewise.
6916 (TypeTest.run): Likewise.
6917 (TagTest.run): Likewise.
6918 (FunctionTest.run): Likewise.
6919 (VariableTest.run): Likewise.
6920 (MacroFunctionTest.run): Likewise.
6921 (MacroStrTest.run): Likewise.
6922 (HeaderTests.__init__): Set self.num_tests.
6923 (HeaderTests.handle_test_line): Set test.num. Increment
6924 self.num_tests.
6925
6926 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6927
6928 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6929 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6930 SEEK_SET.
6931
6932 2018-11-19 Mao Han <han_mao@c-sky.com>
6933
6934 * scripts/config.guess: Update to version 2018-08-29.
6935 * scripts/config.sub: Update to version 2018-08-29.
6936
6937 2018-11-19 Florian Weimer <fweimer@redhat.com>
6938
6939 support: Print timestamps in timeout handler.
6940 * support/support_test_main.c (print_timestamp): New function.
6941 (signal_handler): Use it to print the termination time and the
6942 time of the last write to standard output.
6943
6944 2018-11-16 Zack Weinberg <zackw@panix.com>
6945 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6946
6947 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6948 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6949 argument.
6950 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6951 and add flags argument. Check flags instead of __ldbl_is_dbl when
6952 deciding whether to set is_long_double.
6953 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6954 passing zero for flags argument.
6955 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6956
6957 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6958 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6959 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6960 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6961 variable names. Remove libc_hidden_def/libc_hidden_proto from
6962 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6963 longer called from within the library.
6964 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6965 for __nldbl___vstrfmon_l, declare it explicitly.
6966
6967 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6968
6969 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6970
6971 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6972 macros
6973 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6974 F_SETLK64, F_SETLKW64, respectively.
6975 * sysdeps/mach/hurd/f_setlk.c: New file.
6976 * sysdeps/mach/hurd/f_setlk.h: New file.
6977 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6978 f_setlk.
6979 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6980 (__libc_fcntl): Move non-flock operations to...
6981 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6982 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6983
6984 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6985
6986 mktime: DEBUG_MKTIME cleanup
6987 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6988 And it’s no longer needed now that glibc and Gnulib both have
6989 their own testing mechanisms for mktime.
6990 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6991
6992 mktime: fix non-EOVERFLOW errno handling
6993 [BZ#23789]
6994 mktime was not properly reporting failures when the underlying
6995 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6996 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6997 The problem could happen on non-glibc platforms, with Gnulib.
6998 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6999 (tm_diff): ... this simpler function, which does not change errno.
7000 All callers changed to deal with errno themselves.
7001 (ranged_convert, __mktime_internal): Return failure immediately if
7002 the underlying function reports any failure other than EOVERFLOW.
7003 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7004 gap code fails.
7005
7006 mktime: fix bug with Y2038 DST transition
7007 [BZ#23789]
7008 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7009 mishandle a DST transition that jumps over the Y2038 boundary.
7010 No such DST transitions are known so this is only a theoretical
7011 bug, but we might as well do things right.
7012
7013 mktime: make more room for overflow
7014 [BZ#23789]
7015 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7016 This is so that we can add tm_diff results to a previous guess,
7017 which will be useful in a later patch.
7018
7019 mktime: simplify offset guess
7020 [BZ#23789]
7021 * time/mktime.c (__mktime_internal): Omit excess precision.
7022
7023 mktime: new test for mktime failure
7024 [BZ#23789]
7025 Based on a test suggested by Albert Aribaud in:
7026 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7027 * time/Makefile (tests): Add bug-mktime4.
7028 * time/bug-mktime4.c: New file.
7029
7030 mktime: fix EOVERFLOW bug
7031 [BZ#23789]
7032 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7033 Include libc-config.h, not config.h, for __set_errno.
7034 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7035
7036 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7037
7038 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7039 __attribute_copy__ to copy attributes from name. Drop static qualifier
7040 to avoid warnings about leaf attribute not having effect on static
7041 functions.
7042
7043 2018-11-13 Florian Weimer <fweimer@redhat.com>
7044
7045 * malloc/malloc.c (fastbin_push_entry): New function.
7046 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7047 (REMOVE_FB): Remove macro.
7048 (_int_malloc): Use fastbin_pop_entry and reindent.
7049 (_int_free): Use fastbin_push_entry.
7050 (malloc_consolidate): Use atomic_exchange_acquire.
7051
7052 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7053
7054 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7055 alias attribute, not with strong_alias.
7056
7057 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7058 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7059 with additional parameter thread.
7060 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7061 in terms of __hidden_ver2.
7062 (hidden_tls_def): New macro.
7063 (libc_hidden_tls_def): Likewise.
7064 (rtld_hidden_tls_def): Likewise.
7065 (libm_hidden_tls_def): Likewise.
7066 (libmvec_hidden_tls_def): Likewise.
7067 (libresolv_hidden_tls_def): Likewise.
7068 (librt_hidden_tls_def): Likewise.
7069 (libdl_hidden_tls_def): Likewise.
7070 (libnss_files_hidden_tls_def): Likewise.
7071 (libnsl_hidden_tls_def): Likewise.
7072 (libnss_nisplus_hidden_tls_def): Likewise.
7073 (libutil_hidden_tls_def): Likewise.
7074 (libutil_hidden_tls_def): Likweise.
7075 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7076 libc_hidden_tls_def.
7077 (__sim_disabled_exceptions_thread): Likewise.
7078 (__sim_round_mode_thread): Likewise.
7079
7080 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7081 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7082 copy attributes from name.
7083
7084 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7085
7086 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7087 Use __attribute_copy__ to copy attributes from name.
7088
7089 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7090 with __hidden_ver1 call.
7091 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7092 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7093 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7094 (__cosf): Do not declare here.
7095 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7096 (__sincosf): Do not declare here.
7097 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7098 (__sinf): Do not declare here.
7099
7100 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7101 (__BIG_ENDIAN): Likewise.
7102 (__BYTE_ORDER): Likewise.
7103 (strong_alias): Likewise.
7104 (_strong_alias): Likewise.
7105
7106 2018-11-12 Florian Weimer <fweimer@redhat.com>
7107
7108 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7109 function. Move after the definition of in_smallbin_range. Do not
7110 use __builtin_expect for paths that lead to a noreturn function.
7111 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7112 because it is unclear whether this is in fact an unlikely
7113 condition.
7114 (_int_malloc, _int_free): Adjust.
7115 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7116 variables.
7117 * malloc/arena.c (heap_trim): Likewise.
7118
7119 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7120
7121 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7122 it, free it if needed.
7123 (reauthenticate): Test and use ccwdir.
7124 (child_init_port): In non-resetids case, test and use ccwdir.
7125 (child_chdir): New nested function to set ccwdir.
7126 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7127 * hurd/hurd/port.h (_hurd_port_move): New function.
7128 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7129 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7130 * hurd/Versions (_hurd_port_move): Export function.
7131 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7132 symbol.
7133 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7134 of dtablesize for allocating dtable_cloexec.
7135
7136 2018-11-09 Martin Sebor <msebor@redhat.com>
7137
7138 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7139 it's already defined.
7140 (_strong_alias): Use __attribute_copy__.
7141 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7142 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7143 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7144 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7145 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7146 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7147 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7148 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7149 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7150 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7151 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7152 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7153 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7154 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7155 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7156 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7157 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7158 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7159 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7160
7161 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7162
7163 * misc/tst-efgcvt.c: Include support/check.h and
7164 support/test-driver.c. Do not include test-skeleton.c.
7165 (error_count): Remove.
7166 (output_error): Replace increments to error_count with calls to
7167 support_record_failure.
7168 (output_r_error): Likewise.
7169 (special): Likewise.
7170 (do_test): Unconditionally return zero.
7171 (TEST_FUNCTION): Remove.
7172
7173 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7174
7175 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7176 not $(@D)/scratch.
7177 ($(linknamespace-header-tests)): Likewise.
7178
7179 * conform/conformtest.py: New file.
7180 * conform/conformtest.pl: Remove.
7181 * conform/GlibcConform.pm: Likewise.
7182 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7183 (KEYWORDS_C99): Likewise.
7184 (KEYWORDS): Likewise.
7185 * conform/Makefile ($(conformtest-header-tests)): Use
7186 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7187 option. Use --header instead of --headers.
7188 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7189 function entries.
7190 * conform/data/spawn.h-data: Likewise.
7191 * conform/data/fcntl.h-data (openat): Add space after function
7192 name.
7193 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7194 (wcscasecmp_l): Likewise.
7195 * conform/data/termios.h-data (c_cc): Add space after element
7196 name.
7197
7198 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7199
7200 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7201 instead of manually comparing and reporting mismatching strings.
7202 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7203 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7204
7205 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7206
7207 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7208 __ASSUME_SOCKETCALL.
7209 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7210 (__ASSUME_SOCKETCALL): Remove.
7211 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7212 (__ASSUME_SOCKETCALL): Likewise.
7213 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7214 (__ASSUME_SOCKETCALL): Likewise.
7215 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7216 (__ASSUME_SOCKETCALL): Likewise.
7217 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7218 (__ASSUME_SOCKETCALL): Likewise.
7219 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7220 (__ASSUME_SOCKETCALL): Likewise.
7221 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7222 (__ASSUME_SOCKETCALL): Likewise.
7223
7224 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7225
7226 [BZ #23509]
7227 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7228 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7229 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7230 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7231 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7232 lc_unknown.
7233
7234 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7235
7236 [BZ #17630]
7237 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7238
7239 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7240
7241 [BZ #23867]
7242 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7243 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7244 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7245 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7246
7247 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7248
7249 * support/support_test_compare_string.c
7250 (support_test_compare_string): Fix printf format.
7251
7252 2018-11-07 Florian Weimer <fweimer@redhat.com>
7253
7254 Implement TEST_COMPARE_STRING.
7255 * support/check.h (TEST_COMPARE_STRING): Define.
7256 (support_test_compare_string): Declare.
7257 * support/Makefile (libsupport-routines): Add
7258 support_test_compare_string.
7259 (tests): Add tst-test_compare_string.
7260 * support/support_test_compare_string.c: New file.
7261 * support/tst-test_compare_string.c: Likewise.
7262
7263 2018-11-07 Andreas Schwab <schwab@suse.de>
7264
7265 [BZ #23864]
7266 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7267 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7268 Undef.
7269
7270 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7271
7272 [BZ #23862]
7273 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7274 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7275 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7276 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7277 Likewise.
7278
7279 2018-11-06 Florian Weimer <fweimer@redhat.com>
7280
7281 [BZ #17405]
7282 * posix/Makefile (routines): Add spawn_faction_addchdir.
7283 (tests): Add tst-spawn-chdir.
7284 * posix/Versions (GLIBC_2.29): Add
7285 posix_spawn_file_actions_addchdir_np.
7286 * posix/spawn_faction_addchdir.c: New file.
7287 * posix/spawn_faction_destroy.c
7288 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7289 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7290 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7291 chdir_action.
7292 * posix/tst-spawn-chdir.c: New file.
7293 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7294 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7295 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7296 posix_spawn_file_actions_addchdir_np.
7297 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7298 Likewise.
7299 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7300 Likewise.
7301 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7302 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7303 Likewise.
7304 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7305 Likewise.
7306 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7307 Likewise.
7308 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7309 Likewise.
7310 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7311 Likewise.
7312 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7313 Likewise.
7314 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7315 (GLIBC_2.29): Likewise.
7316 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7317 (GLIBC_2.29): Likewise.
7318 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7319 (GLIBC_2.29): Likewise.
7320 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7321 (GLIBC_2.29): Likewise.
7322 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7323 Likewise.
7324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7325 (GLIBC_2.29): Likewise.
7326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7327 (GLIBC_2.29): Likewise.
7328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7329 (GLIBC_2.29): Likewise.
7330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7331 (GLIBC_2.29): Likewise.
7332 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7333 Likewise.
7334 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7335 Likewise.
7336 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7337 Likewise.
7338 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7339 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7340 Likewise.
7341 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7342 Likewise.
7343 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7344 Likewise.
7345 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7346 Likewise.
7347
7348 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7349
7350 * misc/Makefile (tests): Add tst-ldbl-error.
7351 * misc/tst-ldbl-error.c: New file.
7352
7353 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7354
7355 * misc/Makefile (tests): Add tst-ldbl-warn.
7356 * misc/tst-ldbl-warn.c: New file.
7357
7358 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7359
7360 * argp/Makefile (tests): Add tst-ldbl-argp.
7361 * argp/tst-ldbl-argp.c: New file.
7362
7363 2018-11-05 Arjun Shankar <arjun@redhat.com>
7364
7365 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7366 __gconv_path_elem and call __gconv_get_path unconditionally.
7367
7368 2018-11-05 Andreas Schwab <schwab@suse.de>
7369
7370 [BZ #22927]
7371 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7372 creating the first helper thread failed.
7373
7374 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7375
7376 * sysdeps/mach/hurd/msync.c: New file.
7377
7378 2018-11-02 Florian Weimer <fweimer@redhat.com>
7379
7380 * support/shell-container.c (copy_func): Call
7381 support_copy_file_range instead of copy_file_range to support
7382 cross-device copies.
7383
7384 2018-11-02 Florian Weimer <fweimer@redhat.com>
7385
7386 * support/test-container.c: Include <libc-pointer-arith.h> for
7387 ALIGN_UP.
7388
7389 2018-11-01 Zong Li <zong@andestech.com>
7390
7391 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7392 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7393 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7394 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7395
7396 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7397 variable to avoid overlap arguments.
7398
7399 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7400
7401 * posix/bug-regex22.c (main): Use puts with distinct error
7402 messages for unexpected success of re_compile_pattern, not printf
7403 with NULL argument to %s.
7404
7405 * stdio-common/bug22.c: Include <libc-diag.h>.
7406 (do_test): Disable -Wformat-overflow= warnings around fprintf
7407 calls outputting more than INT_MAX characters.
7408 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7409 around printf call with NULL %s argument.
7410
7411 [BZ #23848]
7412 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7413 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7414 Undefine.
7415 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7416 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7417 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7418 (__ASSUME_SENDTO_SYSCALL): Likewise.
7419 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7420 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7421 [!__arch64__].
7422 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7423 (__ASSUME_CONNECT_SYSCALL): Likewise.
7424 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7425 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7426 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7427 Define.
7428 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7429 Likewise.
7430 [__LINUX_KERNEL_VERSION >= 0x040400]
7431 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7432 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7433 Remove.
7434 (listen): Likewise.
7435 (setsockopt): Likewise.
7436
7437 2018-11-01 Fredrik Noring <noring@nocrew.org>
7438
7439 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7440 with the ISA override.
7441
7442 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7443
7444 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7445 #endif.
7446
7447 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7448
7449 * manual/errno.texi (EIEIO): Document how translators should
7450 translate the error message.
7451 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7452 printing trailing whitespaces refused by git.
7453 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7454 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7455 * hurd/Makefile (user-interfaces): Add pci.
7456
7457 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7458
7459 * conform/linknamespace.py: New file.
7460 * conform/linknamespace.pl: Remove file.
7461 * conform/Makefile ($(linknamespace-header-tests)): Use
7462 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7463 option.
7464
7465 2018-10-30 Florian Weimer <fweimer@redhat.com>
7466
7467 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7468 memory leaks.
7469
7470 2018-10-30 Florian Weimer <fweimer@redhat.com>
7471
7472 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7473
7474 2018-10-30 Florian Weimer <fweimer@redhat.com>
7475
7476 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7477 support_blob_repeat.
7478
7479 2018-10-30 Florian Weimer <fweimer@redhat.com>
7480
7481 Avoid spurious test failures in stdlib/test-bz22786.
7482 * support/Makefile (libsupport-routines): Add blob_repeat.
7483 (tests): Add tst-support_blob_repeat.
7484 * support/blob_repeat.h: New file.
7485 * support/blob_repeat.c: Likewise.
7486 * support/tst-support_blob_repeat.c: Likewise.
7487 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7488 support_blob_repeat_allocate.
7489
7490 2018-10-30 Andreas Schwab <schwab@suse.de>
7491
7492 [BZ #23125]
7493 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7494 Don't use tail call.
7495 * elf/tst-unwind-main.c: New file.
7496 * elf/Makefile (tests): Add tst-unwind-main.
7497 (CFLAGS-tst-unwind-main.c): Define.
7498
7499 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7500
7501 [BZ #23791]
7502 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7503 n_cs_precedes to 0.
7504 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7505
7506 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7507
7508 * conform/glibcconform.py: Do not import shutil.
7509 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7510 of mkdtemp.
7511
7512 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7513 critic_missing for versions before 3.4.
7514 * configure: Regenerated.
7515 * manual/install.texi (Tools for Compilation): Document
7516 requirement for Python to build glibc.
7517 * INSTALL: Regenerated.
7518 * Rules [PYTHON]: Make code unconditional.
7519 * benchtests/Makefile [PYTHON]: Likewise.
7520 * conform/Makefile [PYTHON]: Likewise.
7521 * manual/Makefile [PYTHON]: Likewise.
7522 * math/Makefile [PYTHON]: Likewise.
7523
7524 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7525
7526 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7527 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7528 answer to interrupt_operation, return EIEIO instead of EINTR.
7529 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7530 _hurd_intr_rpc_msg_about_to global point to start of controlled
7531 assembly snippet. Make it check canceled flag.
7532 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7533 the _hurd_intr_rpc_msg_about_to point.
7534 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7535 issue, remove cancel flag check.
7536
7537 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7538
7539 * scripts/build-many-glibcs.py: Remove compatibility for missing
7540 os.cpu_count and re.fullmatch.
7541
7542 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7543
7544 [BZ #23822]
7545 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7546 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7547 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7548
7549 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7550
7551 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7552 macro.
7553
7554 2018-10-25 Florian Weimer <fweimer@redhat.com>
7555
7556 [BZ #23562]
7557 [BZ #23821]
7558 XFAIL siginfo_t si_band conform test on sparc64.
7559 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7560 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7561 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7562 (conformtest-xfail-conds): Add sparc64-linux.
7563 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7564 sparc64.
7565 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7566
7567 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7568
7569 * elf/elf.h (NT_MIPS_DSP): New macro.
7570 (NT_MIPS_FP_MODE): Likewise.
7571
7572 2018-10-25 Zong Li <zong@andestech.com>
7573
7574 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7575 name by adding the file extension (.so).
7576
7577 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7578
7579 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7580 (test-xfail-ISO11/threads.h/linknamespace,
7581 test-xfail-ISO11/threads.h/conform): Add.
7582
7583 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7584
7585 * math/gen-libm-test.py: Import os.
7586 (ALL_FLOATS_MANUAL): New constant.
7587 (ALL_FLOATS_SUFFIX): Likewise.
7588 (Ulps.all_functions): New function.
7589 (real_all_ulps): Likewise.
7590 (generate_err_table_sub): Likewise.
7591 (generate_err_table): Likewise.
7592 (main): Handle -s and -m options.
7593 * manual/libm-err-tab.pl: Remove.
7594 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7595 instead of libm-err-tab.pl.
7596 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7597 != no].
7598 * manual/install.texi (Tools for Compilation): Document
7599 requirement for Python to build manual.
7600 * INSTALL: Regenerated.
7601
7602 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7603
7604 * bits/time64.h: New file.
7605 * include/time.h: Replace internal_time_t with __time64_t.
7606 * posix/bits/types (__time64_t): Add.
7607 * stdlib/Makefile: Add bits/time64.h to includes.
7608 * time/tzfile.c: Replace internal_time_t with __time64_t.
7609
7610 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7611
7612 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7613 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7614 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7615 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7616 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7617 prototype.
7618 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7619 * posix/spawn_faction_addclose.c
7620 (__posix_spawn_file_actions_addclose): Add hidden definition.
7621 * posix/spawn_faction_adddup2.c
7622 (__posix_spawn_file_actions_adddup2): Likewise.
7623 * posix/spawn_faction_destroy.c
7624 (__posix_spawn_file_actions_destroy): Likewise.
7625 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7626 Likewise.
7627 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7628 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7629 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7630 Likewise.
7631 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7632 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7633 Likewise.
7634
7635 2018-10-24 Andreas Schwab <schwab@suse.de>
7636
7637 [BZ #18093]
7638 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7639 format cache.
7640 * elf/cache.c (print_cache): Likewise.
7641
7642 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7643
7644 * bits/timesize.h: New file.
7645 * stdlib/Makefile (headers): Add bits/timesize.h.
7646 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7647 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7648 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7649 (__SEM_PAD_AFTER_TIME): Likewise.
7650 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7651 (__SHM_PAD_AFTER_TIME): Likewise.
7652 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7653 (__MSQ_PAD_BEFORE_TIME): Likewise.
7654 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7655 (__SEM_PAD_BEFORE_TIME): Likewise.
7656 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7657 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7658 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7659 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7660 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7661 (__MSQ_PAD_BEFORE_TIME): Likewise.
7662 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7663 (__SEM_PAD_BEFORE_TIME): Likewise.
7664 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7665 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7666 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7667 (__MSQ_PAD_BEFORE_TIME): Likewise.
7668 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7669 (__SEM_PAD_BEFORE_TIME): Likewise.
7670 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7671 (__SHM_PAD_BEFORE_TIME): Likewise.
7672 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7673 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7674 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7675
7676 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7677
7678 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7679 USE_RDTSCP is defined.
7680 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7681 USE_RDTSCP is defined.
7682
7683 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7684
7685 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7686 defined.
7687
7688 [BZ #23709]
7689 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7690 independently of other flags.
7691
7692 2018-10-23 Florian Weimer <fweimer@redhat.com>
7693
7694 * time/tst-mktime2.c (N_STRINGS): Remove.
7695 (set_timezone): New function.
7696 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7697 (mktime_test1): Report localtime failure and check errno value.
7698 Use TEST_COMPARE.
7699 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7700 (do_test): Remove alarm call. Use set_timezone and array_length.
7701
7702 2018-10-23 Andreas Schwab <schwab@suse.de>
7703
7704 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7705 (__start_context): Use END instead of PSEUDO_END.
7706
7707 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7708
7709 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7710 version to 4.19.
7711
7712 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7713 version to 4.19.
7714
7715 [BZ #23793]
7716 * wcsmbs/c32rtomb.c: New file.
7717 * wcsmbs/mbrtoc32.c: Likewise.
7718 * wcsmbs/tst-c32-state.c: Likewise.
7719 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7720 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7721 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7722 (tests): Add tst-c32-state.
7723 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7724 $(gen-locales).
7725
7726 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7727
7728 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7729 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7730
7731 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7732
7733 [BZ #23794]
7734 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7735 pair and return 0 in that case, and use saved character to
7736 interpret following character.
7737 * wcsmbs/tst-c16-surrogate.c: New file.
7738 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7739 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7740 Depend on $(gen-locales)
7741
7742 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7743
7744 [BZ #23562]
7745 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7746 (struct siginfo_t): Use correct type for si_band.
7747
7748 2018-10-19 Florian Weimer <fweimer@redhat.com>
7749
7750 [BZ #23689]
7751 * resource/bits/types/struct_rusage.h (struct rusage): Update
7752 comment on struct. Remove extraneous field comment.
7753
7754 2018-10-18 David S. Miller <davem@davemloft.net>
7755
7756 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7757 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7758 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7759 sysdep_routines in subdir elf.
7760 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7761 version for __vdso_clock_gettime.
7762 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7763 Define.
7764 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7765 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7766
7767 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7768
7769 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7770
7771 * sysdeps/i386/init-arch.h: Removed.
7772 * sysdeps/i386/i586/init-arch.h: Likewise.
7773 * sysdeps/i386/i686/init-arch.h: Likewise.
7774 * sysdeps/i386/i686/hp-timing.h: Likewise.
7775 * sysdeps/x86_64/hp-timing.h: Likewise.
7776 * sysdeps/i386/isa.h: New file.
7777 * sysdeps/i386/i586/isa.h: Likewise.
7778 * sysdeps/i386/i686/isa.h: Likewise.
7779 * sysdeps/x86_64/isa.h: Likewise.
7780 * sysdeps/x86/hp-timing.h: New file.
7781 * sysdeps/x86/init-arch.h: Include <isa.h>.
7782
7783 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7784
7785 * math/libm-test-pow.inc (pow_test_data): Do not allow
7786 divide-by-zero exception for pow(+/- 0, -Inf).
7787
7788 2018-10-17 Zack Weinberg <zackw@panix.com>
7789
7790 * manual/job.texi (Job Control is Optional): Remove node, as
7791 job control has not been optional in quite some time.
7792 (Job Control): Mention briefly that systems older than
7793 POSIX.1-2001 might not support job control.
7794 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7795 defined on systems conforming to POSIX.1-2001.
7796
7797 2018-10-17 Arjun Shankar <arjun@redhat.com>
7798
7799 [BZ #22062]
7800 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7801 indentation.
7802 * (__gconv_read_conf): Mark function static.
7803 * (once): New static variable.
7804 * (__gconv_load_conf): New function.
7805 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7806 * iconv/gconv_db.c (once): Remove static variable.
7807 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7808 __gconv_read_conf.
7809 * (__gconv_find_transform): Likewise.
7810 * iconv/tst-iconv-mt.c: New test.
7811 * iconv/Makefile: Add tst-iconv_mt.
7812
7813 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7814
7815 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7816 bits/shm-pad.h.
7817 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7818 (shmatt_t): Define as __syscall_ulong_t.
7819 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7820 and [__SHM_PAD_AFTER_TIME].
7821 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7822 Define shm_segsz and associated padding based on
7823 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7824 Use __syscall_ulong_t instead of unsigned long int.
7825 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7826 unsigned long int.
7827 [__USE_MISC] (struct shm_info): Likewise.
7828 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7829 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7830 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7831 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7832 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7833 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7834 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7835 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7836 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7837 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7838 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7839
7840 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7841 bits/shmlba.h.
7842 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7843 (SHMLBA): Remove macro.
7844 (__getpagesize): Remove function declaration.
7845 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7846 <bits/shmlba.h>.
7847 (SHMLBA): Remove macro.
7848 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7849 <bits/shmlba.h>.
7850 (SHMLBA): Remove macro.
7851 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7852 <bits/shmlba.h>.
7853 (SHMLBA): Remove macro.
7854 (__getpagesize): Remove function declaration.
7855 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7856 <bits/shmlba.h>.
7857 (SHMLBA): Remove macro.
7858 (__getshmlba): Remove function declaration.
7859 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7860 (SHMLBA): Remove macro.
7861 (__getpagesize): Remove function declaration.
7862 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7863 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7864 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7865 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7866 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7867 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7868 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7869 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7870 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7871 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7872
7873 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7874
7875 [BZ #23275]
7876 * nptl/tst-mutex10.c: New File.
7877 * nptl/Makefile (tests): Add tst-mutex10.
7878 (tst-mutex10-ENV): New variable.
7879 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7880 Ensure that elision path is used if elision is available.
7881 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7882 Likewise.
7883 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7884 Likewise.
7885 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7886 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7887 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7888 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7889 Likewise.
7890 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7891 (__pthread_mutex_cond_lock_adjust): Likewise.
7892 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7893 Likewise.
7894 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7895 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7896 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7897 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7898 Add comments.
7899 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7900 Use atomic_load_relaxed and atomic_store_relaxed.
7901 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7902 Use atomic_store_relaxed.
7903
7904 2018-10-17 Andreas Schwab <schwab@suse.de>
7905
7906 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7907 * crypt/badsalttest.c (TIMEOUT): Likewise.
7908 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7909 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7910 * io/test-lfs.c (TIMEOUT): Likewise.
7911 * libio/tst-atime.c (TIMEOUT): Likewise.
7912 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7913 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7914 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7915 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7916 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7917 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7918 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7919 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7920 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7921 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7922 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7923 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7924 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7925 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7926 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7927 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7928 * nptl/tst-once2.c (TIMEOUT): Likewise.
7929 * nptl/tst-once3.c (TIMEOUT): Likewise.
7930 * nptl/tst-once4.c (TIMEOUT): Likewise.
7931 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7932 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7933 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7934 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7935 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7936 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7937 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7938 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7939 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7940 * posix/tst-chmod.c (TIMEOUT): Likewise.
7941 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7942 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7943 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7944 * posix/tst-regex2.c (TIMEOUT): Likewise.
7945 * posix/tst-waitid.c (TIMEOUT): Likewise.
7946 * rt/tst-aio.c (TIMEOUT): Likewise.
7947 * rt/tst-aio10.c (TIMEOUT): Likewise.
7948 * rt/tst-aio4.c (TIMEOUT): Likewise.
7949 * rt/tst-aio5.c (TIMEOUT): Likewise.
7950 * rt/tst-aio6.c (TIMEOUT): Likewise.
7951 * rt/tst-aio64.c (TIMEOUT): Likewise.
7952 * rt/tst-aio7.c (TIMEOUT): Likewise.
7953 * rt/tst-aio9.c (TIMEOUT): Likewise.
7954 * rt/tst-clock.c (TIMEOUT): Likewise.
7955 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7956 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7957 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7958 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7959 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7960 * rt/tst-timer4.c (TIMEOUT): Likewise.
7961 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7962 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7963 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7964 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7965 * time/tst-ftime.c (TIMEOUT): Likewise.
7966 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7967
7968 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7969
7970 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7971 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7972 for thunderX2.
7973
7974 2018-10-15 Joseph Myers <joseph@codesourcery.com>
7975
7976 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7977 bits/sem-pad.h.
7978 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7979 instead of <bits/wordsize.h>.
7980 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7981 and [__SEM_PAD_AFTER_TIME].
7982 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7983 __syscall_ulong_t instead of unsigned long int.
7984 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7985 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7986 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7987 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7988 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7989 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7990 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7991 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7992 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7993 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7994 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7995
7996 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7997
7998 regex: simplify by using intprops.h
7999 [BZ#23744]
8000 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8001 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8002 intprops.h defines them.
8003
8004 regex: __builtin_expect → __glibc_unlikely
8005 [BZ#23744]
8006 This refactoring was prompted by a problem when the regex code is
8007 used as part of Gnulib and when the builder’s compiler does not grok
8008 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8009 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8010 Although this refactoring does not fix the problem directly,
8011 we might as well have Gawk use the now-preferred glibc style for when
8012 __builtin_expect is unavailable.
8013 * posix/regex_internal.h (BE): Remove.
8014 All uses replaced by __glibc_unlikely or __glibc_likely.
8015
8016 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8017
8018 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8019 bits/msq-pad.h.
8020 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8021 instead of <bits/wordsize.h>.
8022 (msgqnum_t): Define as __syscall_ulong_t.
8023 (msglen_t): Likewise.
8024 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8025 and [__MSQ_PAD_AFTER_TIME].
8026 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8027 __syscall_ulong_t instead of unsigned long int.
8028 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8029 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8030 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8031 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8032 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8033 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8034 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8035 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8036 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8037 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8038 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8039
8040 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8041
8042 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8043 (struct shmid_ds): Condition padding after time fields on
8044 [__WORDSIZE == 32].
8045 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8046 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8047 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8048
8049 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8050 (struct semid_ds): Condition padding after time fields on
8051 [__WORDSIZE == 32].
8052 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8053 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8054 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8055 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8056
8057 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8058 (struct msqid_ds): Condition padding after time fields on
8059 [__WORDSIZE == 32].
8060 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8061 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8062 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8063 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8064
8065 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8066
8067 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8068
8069 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8070
8071 * libio/tst-readline.c (TIMEOUT): Define.
8072
8073 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8074
8075 mktime fix for Gnulib + coreutils
8076 [BZ#23745]
8077 This fix affects only Gnulib. Problem discovered when
8078 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8079 * time/mktime.c:
8080 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8081 Do not define since it is not used. Defining an unused static
8082 function prompts a warning from GCC when Coreutils is configured
8083 with --enable-gcc-warnings.
8084
8085 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8086
8087 * benchtests/scripts/compare_bench.py (main): set float type on
8088 threshold argument.
8089
8090 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8091
8092 [BZ #23740]
8093 * localedata/locales/kl_GL (mon): Update, the relative case.
8094 (alt_mon): Add, fill with month names in the nominative case.
8095 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8096 (d_fmt): Set to "%b %d %Y".
8097
8098 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8099
8100 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8101 <bits/mman-linux.h>.
8102 (PROT_READ): Don't define here.
8103 (PROT_WRITE): Likewise.
8104 (PROT_EXEC): Likewise.
8105 (PROT_NONE): Likewise.
8106 (PROT_GROWSDOWN): Likewise.
8107 (PROT_GROWSUP): Likewise.
8108 (MAP_SHARED): Likewise.
8109 (MAP_PRIVATE): Likewise.
8110 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8111 [__USE_MISC] (MAP_FILE): Likewise.
8112 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8113 [__USE_MISC] (MAP_ANON): Likewise.
8114 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8115 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8116 (MCL_CURRENT): Likewise.
8117 (MCL_FUTURE): Likewise.
8118 (MCL_ONFAULT): Likewise.
8119 [__USE_MISC] (MADV_NORMAL): Likewise.
8120 [__USE_MISC] (MADV_RANDOM): Likewise.
8121 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8122 [__USE_MISC] (MADV_WILLNEED): Likewise.
8123 [__USE_MISC] (MADV_DONTNEED): Likewise.
8124 [__USE_MISC] (MADV_FREE): Likewise.
8125 [__USE_MISC] (MADV_REMOVE): Likewise.
8126 [__USE_MISC] (MADV_DONTFORK): Likewise.
8127 [__USE_MISC] (MADV_DOFORK): Likewise.
8128 [__USE_MISC] (MADV_HWPOISON): Likewise.
8129 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8130 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8131 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8132 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8133 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8134 (__MAP_ANONYMOUS): New macro.
8135 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8136 <bits/mman-linux.h> inclusion.
8137 (MAP_FIXED): Likewise.
8138 (MS_SYNC): Likewise.
8139 (MS_ASYNC): Likewise.
8140 (MS_INVALIDATE): Likewise.
8141 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8142 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8143 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8144 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8145 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8146 [__USE_MISC] (MADV_DODUMP): Likewise.
8147 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8148 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8149
8150 [BZ #23735]
8151 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8152 Define.
8153 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8154 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8155 Add test-nldbl-redirect.
8156 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8157 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8158 $(objpfx)libnldbl_nonshared.a.
8159
8160 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8161
8162 * support/support.h (support_objdir_elf_ldso): New variable.
8163 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8164 * support/Makefile (CFLAGS-support_paths.c): Add definition
8165 for OBJDIR_ELF_LDSO_PATH.
8166 * support/test-container.c (main): Search for the ld.so
8167 which is also used by the testsuite.
8168
8169 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8170
8171 [BZ #20209]
8172 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8173 should be "sap" rather than "sab".
8174 (day): Fix spelling of Sunday, should be "sapaat" rather than
8175 "sabaat".
8176
8177 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8178
8179 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8180
8181 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8182
8183 [BZ #19444]
8184 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8185 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8186 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8187
8188 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8189
8190 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8191
8192 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8193
8194 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8195 Add -mrtm.
8196 (CFLAGS-elision-unlock.c): Likewise.
8197 (CFLAGS-elision-timed.c): Likewise.
8198 (CFLAGS-elision-trylock.c): Likewise.
8199 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8200
8201 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8202
8203 [BZ #21037]
8204 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8205 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8206 new fd_to_filename interface.
8207 * libio/freopen64.c (freopen64): Likewise.
8208 * libio/tst-memstream.h: New file.
8209 * libio/tst-memstream4.c: Likewise.
8210 * libio/tst-wmemstream4.c: Likewise.
8211 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8212 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8213 and remove internal dynamic allocation.
8214
8215 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8216
8217 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8218 (MREMAP_MAYMOVE): Do not define here.
8219 [__USE_GNU] (MREMAP_FIXED): Likewise.
8220 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8221 (MREMAP_MAYMOVE): Define here instead.
8222 [__USE_GNU] (MREMAP_FIXED): Likewise.
8223 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8224 (MREMAP_MAYMOVE): Remove.
8225 [__USE_GNU] (MREMAP_FIXED): Likewise.
8226
8227 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8228
8229 * math/fromfp.h: Do not include <math_private.h>.
8230 * math/s_cacosh_template.c: Likewise.
8231 * math/s_casin_template.c: Likewise.
8232 * math/s_casinh_template.c: Likewise.
8233 * math/s_ccos_template.c: Likewise.
8234 * math/s_cproj_template.c: Likewise.
8235 * math/s_fdim_template.c: Likewise.
8236 * math/s_fmaxmag_template.c: Likewise.
8237 * math/s_fminmag_template.c: Likewise.
8238 * math/s_iseqsig_template.c: Likewise.
8239 * math/s_ldexp_template.c: Likewise.
8240 * math/s_nextdown_template.c: Likewise.
8241 * math/w_log1p_template.c: Likewise.
8242 * math/w_scalbln_template.c: Likewise.
8243 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8244 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8245 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8246 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8247 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8248 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8249 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8250 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8251 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8252 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8253 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8254 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8255 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8256 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8257 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8258 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8259 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8260 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8261 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8262 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8263 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8264 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8265 * sysdeps/ieee754/k_standardf.c: Likewise.
8266 * sysdeps/ieee754/k_standardl.c: Likewise.
8267 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8268 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8269 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8270 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8271 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8272 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8273 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8274 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8275 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8276 * sysdeps/ieee754/s_signgam.c: Likewise.
8277 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8278 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8279 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8280 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8281 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8282 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8283 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8284 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8285 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8286 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8287 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8288 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8289 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8290 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8291 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8292 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8293 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8294 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8295 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8296 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8297 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8298 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8299 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8300 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8301 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8302 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8303 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8304 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8305 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8306 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8307 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8308 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8309 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8310 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8311 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8312 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8313 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8314 <math_private.h>.
8315 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8316
8317 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8318
8319 [BZ #23716]
8320 * sysdeps/i386/dl-cet.c: Removed.
8321 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8322 prototype.
8323 (_dl_runtime_profile_shstk): Likewise.
8324 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8325 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8326
8327 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8328
8329 [BZ #23579]
8330 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8331 do_test_with_invalid_iov): New tests.
8332 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8333 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8334 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8335 errno is ENOSYS.
8336 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8337 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8338 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8339
8340 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8341
8342 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8343 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8344 (MATH_REDIRECT_BINARY_ARGS): New macro.
8345 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8346 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8347 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8348 header inclusion.
8349 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8350 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8351 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8352 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8353 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8354 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8355 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8357 Likewise.
8358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8359 Likewise.
8360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8362 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8363 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8365 Likewise.
8366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8367 Likewise.
8368 * sysdeps/generic/math_private_calls.h
8369 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8370 Do not declare and define as an inline function.
8371 * math/divtc3.c (__divtc3): Use copysign functions instead of
8372 __copysign variants.
8373 * math/multc3.c (__multc3): Likewise.
8374 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8375 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8376 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8377 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8378 Likewise.
8379 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8380 (__ieee754_yn): Likewise.
8381 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8382 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8383 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8384 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8385 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8386 (__sin): Likewise.
8387 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8388 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8389 Likewise.
8390 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8391 Likewise.
8392 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8393 Likewise.
8394 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8395 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8396 Likewise.
8397 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8398 (__ieee754_ynf): Likewise.
8399 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8400 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8401 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8402 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8403 Likewise.
8404 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8405 (__ieee754_ynl): Likewise.
8406 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8407 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8408 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8409 Likewise.
8410 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8411 (__ieee754_ynl): Likewise.
8412 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8413 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8414 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8415 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8416 Likewise.
8417 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8418 (__ieee754_ynl)
8419 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8420 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8421 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8422 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8423 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8424
8425 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8426 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8427 using MATH_REDIRECT.
8428 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8429 header inclusion.
8430 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8431 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8432 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8433 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8434 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8435 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8436 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8438 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8441 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8442 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8443 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8444 (round): Redirect to __round.
8445 (__roundl): Call round instead of __round.
8446 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8447 Remove macro.
8448 [_ARCH_PWR5X] (__roundf): Likewise.
8449 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8450 functions instead of __round variants.
8451 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8452 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8453 Likewise.
8454 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8455 Likewise.
8456 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8457 Likewise.
8458 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8459 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8460 __lroundl.
8461 (__ieee754_expl): Call roundl instead of __roundl.
8462
8463 2018-09-27 Andreas Schwab <schwab@suse.de>
8464
8465 [BZ #23717]
8466 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8467 (do_test): Make st1 static.
8468
8469 2018-09-26 Andreas Schwab <schwab@suse.de>
8470
8471 [BZ #23707]
8472 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8473 * elf/Makefile (tests): Add tst-unwind-ctor.
8474 (modules-names): Add tst-unwind-ctor-lib.
8475 ($(objpfx)tst-unwind-ctor): Depend on
8476 $(objpfx)tst-unwind-ctor-lib.so.
8477
8478 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8479
8480 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8481 file. Most contents moved from ....
8482 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8483 and include <bits/mman-map-flags-generic.h>.
8484 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8485 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8486 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8487 <bits/mman-map-flags-generic.h>.
8488 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8489 macros defined in <bits/mman-map-flags-generic.h>.
8490 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8491 <bits/mman-map-flags-generic.h>.
8492 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8493 defined in <bits/mman-map-flags-generic.h>.
8494
8495 2018-09-26 Andreas Schwab <schwab@suse.de>
8496
8497 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8498 output.
8499
8500 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8501 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8502 Fangrui Song <maskray@google.com>
8503
8504 [BZ #20480]
8505 * config.make.in (have-textrel_ifunc): New define.
8506 * configure.ac: Add check if linker supports textrel relocation with
8507 ifunc.
8508 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8509 tst-ifunc-textrel.
8510 (CFLAGS-tst-ifunc-textrel.c): New rule.
8511 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8512 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8513 * elf/tst-ifunc-textrel.c: New file.
8514
8515 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8516
8517 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8518 <bits/procfs-prregset.h>.
8519 (prgregset_t): Define using __prgregset_t.
8520 (prfpregset_t): Define using __prfpregset_t.
8521 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8522 (sysdep_headers): Add bits/procfs-prregset.h.
8523 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8524 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8525 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8526 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8527
8528 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8529 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8530 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8531 pr_uid and pr_gid.
8532 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8533 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8534 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8535 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8536 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8537 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8538 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8539 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8540 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8541 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8542 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8543 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8544 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8545 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8546 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8547 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8548 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8549 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8550 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8551 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8552 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8553 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8554 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8555 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8556
8557 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8558 AArch64 version. Include <bits/procfs.h>.
8559 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8560 (sysdep_headers): Add bits/procfs.h.
8561 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8562 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8563 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8564 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8565 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8566 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8567 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8568 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8569 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8570 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8571 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8572 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8573 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8574 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8575 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8576 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8577 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8578
8579 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8580
8581 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8582 Use libsupport.
8583
8584 2018-09-25 Arjun Shankar <arjun@redhat.com>
8585
8586 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8587 (__gconv_max_path_elem_len): Likewise.
8588 (__gconv_nmodules): Likewise.
8589 (__gconv_get_path): Likewise.
8590 (path_elem): Move to ...
8591 * iconv/gconv_conf.c: ... here.
8592 (__gconv_get_path): Mark function static.
8593 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8594 * iconv/gconv_open.c: ... here.
8595
8596 2018-09-24 Andreas Schwab <schwab@suse.de>
8597
8598 * scripts/haveversions.awk: New file.
8599 * Makerules ($(common-objpfx)Versions.def)
8600 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8601 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8602 Move rules ...
8603 * Makeconfig ($(common-objpfx)Versions.def)
8604 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8605 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8606 ... here.
8607 ($(common-objpfx)Versions.mk): New rule. Include it.
8608 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8609 Emit error if build-obsolete-nsl = yes.
8610 * manual/install.texi (Configuring and compiling): Describe
8611 --enable-obsolete-nsl as unavaiable after version 2.28.
8612 * INSTALL: Regenerate.
8613
8614 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8615
8616 * NEWS: Add note about new TLE support on powerpc64le.
8617 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8618 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8619 __ununsed1.
8620 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8621 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8622 * sysdeps/powerpc/powerpc32/sysdep.h,
8623 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8624 ABORT_TRANSACTION): Remove macros.
8625 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8626 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8627 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8629 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8630 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8631 usage.
8632 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8633
8634 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8635
8636 [BZ #10425]
8637 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8638 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8639 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8640 which is the same as in it_IT.
8641 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8642 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8643
8644 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8645
8646 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8647 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8648 using MATH_REDIRECT.
8649 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8650 header inclusion.
8651 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8652 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8653 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8654 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8655 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8656 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8657 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8658 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8661 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8662 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8663 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8664 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8665 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8666 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8667 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8668 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8669 (ceil): Redirect to __ceil.
8670 (floor): Redirect to __floor.
8671 (trunc): Redirect to __trunc.
8672 (__truncl): Call trunc instead of __trunc.
8673 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8674 Remove macro.
8675 [_ARCH_PWR5X] (__truncf): Likewise.
8676 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8677 trunc functions instead of __trunc variants.
8678 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8679 Likewise.
8680 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8681 Likewise.
8682 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8683 Likewise.
8684 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8685 Likewise.
8686
8687 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8688 [__i586__ || __pentium__].
8689 [__i486__]: Handle explicitly.
8690 (HAS_CPUID): Define to 1 if above macros are undefined.
8691 (HAS_I586): Likewise.
8692 (HAS_I686): Likewise.
8693
8694 2018-09-20 Florian Weimer <fweimer@redhat.com>
8695
8696 * misc/tst-gethostid.c: New file.
8697 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8698 (tst-gethostid): Link with -ldl.
8699
8700 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8701
8702 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8703 value from gethostbyname_r.
8704
8705 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8706
8707 * stdlib/tst-setcontext9.c (f1): Rename to...
8708 (f1a): ... this.
8709 (f1b): New function implementing lower half of f1 in alternate stack.
8710
8711 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8712
8713 Fix mktime localtime offset confusion
8714 [BZ #23603]
8715 * include/time.h (__mktime_internal): The localtime offset is now
8716 of type long int instead of time_t. This is the longstanding type
8717 in glibc, and it is more than enough to represent difference
8718 between localtime and gmtime even if it is 32 bits and time_t is
8719 64. Changing it now will let us avoid an unnecessary change when
8720 time_t is widened to 64 bits on 32-bit platforms.
8721 * time/mktime-internal.h (mktime_offset_t): Now long int.
8722
8723 Merge mktime, timegm from upstream Gnulib
8724 [BZ #23603][BZ #16346]
8725 This fixes some obscure problems with integer overflow.
8726 Although it looks scary, it is almost all a byte-for-byte copy
8727 from Gnulib, and the Gnulib code has been tested reasonably well.
8728 * include/intprops.h: New file, copied from Gnulib.
8729 * include/verify.h, time/mktime-internal.h:
8730 New tiny files, simplified from Gnulib.
8731 * time/mktime.c: Copy from Gnulib. This has the following changes:
8732 Do not include config.h if DEBUG_MKTIME is nonzero.
8733 Include stdbool.h, intprops.h, verify.h.
8734 Include string.h only if needed.
8735 Include stdlib.h on MS-Windows.
8736 Include mktime-internal.h.
8737 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8738 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8739 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8740 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8741 simplify later conditionals; default the others to zero. Use
8742 these conditionals to express only the code needed on the current
8743 platform. In uses of these conditionals, explicitly spell out how
8744 _LIBC affects things, so it’s easier to review from a glibc
8745 viewpoint.
8746 (WRAPV): Remove; no longer needed now that we have
8747 systematic overflow checking.
8748 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8749 compartmentalize tzset issues. Move system-dependent tzsettish
8750 code here from mktime.
8751 (verify): Remove; now done by verify.h. All uses changed.
8752 (long_int): Use a more-conservative definition, to avoid
8753 integer overflow.
8754 (SHR): Remove, replacing with ...
8755 (shr): New function, which means we needn’t worry about side
8756 effects in args, and conversion analysis is simpler.
8757 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8758 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8759 (time_t_avg, time_t_add_ok): Remove.
8760 (mktime_min, mktime_max): New constants.
8761 (leapyear, isdst_differ): Use bool for booleans.
8762 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8763 Use long_int, not time_t, for mktime differences.
8764 (long_int_avg): New function, replacing time_t_avg.
8765 INT_ADD_WRAPV replaces time_t_add_ok.
8766 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8767 All uses changed.
8768 (convert_time): New function.
8769 (ranged_convert): Use it.
8770 (__mktime_internal): Last arg now points to mktime_offset_t, not
8771 time_t. All uses changed. This is a no-op on glibc, where
8772 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8773 offset guess. Directly check for integer overflow instead of
8774 using a heuristic that works only 99.9...% of the time.
8775 Access *OFFSET only once, to avoid an unlikely race if the
8776 compiler delays a load and if this cascades into a signed integer
8777 overflow.
8778 (mktime): Move tzsettish code to my_tzset, and move
8779 localtime_offset to within mktime so that it doesn’t
8780 need a separate ifdef.
8781 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8782 instead of localtime.
8783 * time/timegm.c: Copy from Gnulib. This has the following changes:
8784 Include mktime-internal.h.
8785 [!_LIBC]: Include config.h and time.h. Do not include
8786 timegm.h or time_r.h. Make __mktime_internal a macro,
8787 and include mktime-internal.h to get its declaration.
8788 (timegm): Temporary is now mktime_offset_t, not time_t.
8789 This affects only Gnulib.
8790
8791 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8792
8793 [BZ #23637]
8794 * string/test-strstr.c (pr23637): New function.
8795 (test_main): Add tests with longer needles.
8796 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8797 * string/strstr.c (AVAILABLE): Likewise.
8798
8799 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8800
8801 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8802
8803 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8804
8805 * NEWS: Mention pow improvements.
8806 * math/Makefile (type-double-routines): Add e_pow_log_data.
8807 * sysdeps/generic/math_private.h (__exp1): Remove.
8808 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8809 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8810 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8811 contraction.
8812 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8813 (exp_inline): Remove.
8814 (__ieee754_exp): Only single double input is handled.
8815 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8816 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8817 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8818 (__pow_log_data): Define.
8819 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8820 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8821 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8822 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8823 contraction.
8824 (CFLAGS-e_pow-fma4.c): Likewise.
8825
8826 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8827
8828 Simplify tzfile fstat failure code
8829 [BZ #21716]
8830 * time/tzfile.c (__tzfile_read): Simplify slightly.
8831
8832 Fix tzfile low-memory assertion failure
8833 [BZ #21716]
8834 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8835 when registering time zone abbreviations.
8836
8837 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8838
8839 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8840 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8841 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8842 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8843 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8844 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8845 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8846 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8847 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8848
8849 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8850 __ceil.
8851 (__ceill): Call ceil instead of __ceil.
8852 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8853 __floor.
8854 (__floorl): Call floor instead of __floor.
8855
8856 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8857
8858 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8859 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8860 using MATH_REDIRECT.
8861 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8862 header inclusion.
8863 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8864 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8865 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8866 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8867 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8868 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8869 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8870 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8871 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8872 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8875 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8876 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8877 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8878 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8879 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8880 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8881 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8882 Remove macro.
8883 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8884 functions instead of __ceil variants.
8885 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8886 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8887 Likewise.
8888 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8889 Likewise.
8890 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8891 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8892 Likewise.
8893 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8894 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8895
8896 [BZ #21286]
8897 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8898 constant.
8899 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8900 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8901 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8902 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8903 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8904 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8905 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8906 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8907 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8908 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8909 (ILL_BADIADDR): Remove constant.
8910 (TRAP_BRANCH): Likewise.
8911 (TRAP_HWBKPT): Likewise.
8912
8913 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8914
8915 [BZ #23656]
8916 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8917 Remove [_MIPS_SIM = _ABIN32] conditional case.
8918 (struct elf_prpsinfo): Likewise.
8919
8920 [BZ #23649]
8921 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8922 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8923 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8924 Likewise.
8925 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8926 elf_prpsinfo): Likewise.
8927 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8928 elf_prpsinfo): Likewise.
8929 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8930 Likewise.
8931
8932 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8933 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8934 using MATH_REDIRECT.
8935 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8936 header inclusion.
8937 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8938 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8939 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8940 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8941 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8942 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8943 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8944 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8945 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8946 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8947 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8948 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8949 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8950 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8951 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8952 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8953 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8954 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8955 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8958 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8959 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8960 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8961 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8962 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8963 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8964 __rint variants.
8965 * math/e_scalbf.c (invalid_fn): Likewise.
8966 * math/e_scalbl.c (invalid_fn): Likewise.
8967 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8968 Likewise.
8969 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8970 Likewise.
8971 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8972 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8973 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8974 Likewise.
8975 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8976 Likewise.
8977 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8978 Likewise.
8979 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8980 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8981
8982 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8983 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8984 New macro.
8985 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8986 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8987 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8988 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8989 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8990 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8991 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8992 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8993 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8994 && !NO_MATH_REDIRECT] (floor): Likewise.
8995 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8996 header inclusion.
8997 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8998 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8999 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9000 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9001 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9002 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9003 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9004 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9005 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9006 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9009 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9010 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9011 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9012 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9013 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9014 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9015 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9016 Remove macro.
9017 [_ARCH_PWR5X] (__floorf): Likewise.
9018 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9019 inline function.
9020 [__SSE4_1__] (__floorf): Likewise.
9021 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9022 instead of __floor variants.
9023 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9024 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9025 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9026 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9027 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9028 * math/w_tgamma_compat.c (__tgamma): Likewise.
9029 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9030 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9031 * math/w_tgammal_compat.c (__tgammal): Likewise.
9032 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9033 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9034 Likewise.
9035 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9036 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9037 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9038 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9039 Likewise.
9040 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9041 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9042 Likewise.
9043 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9044 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9045 Likewise.
9046 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9047 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9048 Likewise.
9049 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9050 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9051 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9052 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9053 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9054 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9055
9056 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9057
9058 * elf/Makefile (modules-names-tests): New variable.
9059
9060 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9061
9062 * NEWS: Mention log2 improvements.
9063 * math/Makefile (type-double-routines): Add e_log2_data.
9064 * sysdeps/i386/fpu/e_log2_data.c: New file.
9065 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9066 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9067 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9068 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9069 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9070 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9071
9072 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9073
9074 * NEWS: Mention log improvement.
9075 * math/Makefile (type-double-routines): Add e_log_data.
9076 * sysdeps/i386/fpu/e_log_data.c: New file.
9077 * sysdeps/ia64/fpu/e_log_data.c: New file.
9078 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9079 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9080 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9081 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9082 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9083 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9084
9085 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9086 Xuepeng Guo <xuepeng.guo@intel.com>
9087
9088 [BZ #23606]
9089 * sysdeps/i386/start.S: Include <sysdep.h>
9090 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9091 enabled. Add cfi_undefined (eip).
9092
9093 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9094
9095 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9096 (MOVQ): Likewise.
9097 (EXTRACT_WORDS64): Likewise.
9098 (INSERT_WORDS64): Likewise.
9099 (GET_FLOAT_WORD): Likewise.
9100 (SET_FLOAT_WORD): Likewise.
9101
9102 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9103 argument.
9104 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9105 build, but not for second build if --full-gcc. Use
9106 --enable-languages=all for second build if --full-gcc.
9107 (get_parser): Add --full-gcc option.
9108 (main): Update call to Context.
9109
9110 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9111
9112 [BZ #10797]
9113 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9114 Single Quotation Mark).
9115 (thousands_sep): Likewise.
9116 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9117 * localedata/locales/it_IT (thousands_sep): Use ".".
9118 (grouping): Use "3;3".
9119
9120 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9121
9122 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9123 x86_64 and i686 configs using --enable-obsolete-rpc
9124 --enable-obsolete-nsl.
9125
9126 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9127
9128 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9129
9130 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9131
9132 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9133 Increment size of new_argv by one.
9134
9135 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9136
9137 [BZ #17426]
9138 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9139 * localedata/locales/ar_IN (d_fmt): Likewise.
9140 * localedata/locales/bhb_IN (d_fmt): Likewise.
9141 * localedata/locales/bho_IN (d_fmt): Likewise.
9142 * localedata/locales/bn_BD (d_fmt): Likewise.
9143 * localedata/locales/bn_IN (d_fmt): Likewise.
9144 * localedata/locales/doi_IN (d_fmt): Likewise.
9145 * localedata/locales/gu_IN (d_fmt): Likewise.
9146 * localedata/locales/hi_IN (d_fmt): Likewise.
9147 * localedata/locales/hne_IN (d_fmt): Likewise.
9148 * localedata/locales/kn_IN (d_fmt): Likewise.
9149 * localedata/locales/mag_IN (d_fmt): Likewise.
9150 * localedata/locales/mai_IN (d_fmt): Likewise.
9151 * localedata/locales/mjw_IN (d_fmt): Likewise.
9152 * localedata/locales/ml_IN (d_fmt): Likewise.
9153 * localedata/locales/mni_IN (d_fmt): Likewise.
9154 * localedata/locales/mr_IN (d_fmt): Likewise.
9155 * localedata/locales/pa_IN (d_fmt): Likewise.
9156 * localedata/locales/raj_IN (d_fmt): Likewise.
9157 * localedata/locales/sat_IN (d_fmt): Likewise.
9158 * localedata/locales/sd_IN (d_fmt): Likewise.
9159 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9160 * localedata/locales/ta_IN (d_fmt): Likewise.
9161 * localedata/locales/ta_LK (d_fmt): Likewise.
9162 * localedata/locales/tcy_IN (d_fmt): Likewise.
9163 * localedata/locales/ur_IN (d_fmt): Likewise.
9164
9165 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9166 * localedata/locales/ks_IN (d_fmt): Likewise.
9167 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9168
9169 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9170 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9171 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9172 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9173
9174 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9175
9176 * NEWS: Mention exp and exp2 improvements.
9177 * math/Makefile (libm-support): Remove t_exp.
9178 (type-double-routines): Add math_err and e_exp_data.
9179 * sysdeps/aarch64/libm-test-ulps: Update.
9180 * sysdeps/arm/libm-test-ulps: Update.
9181 * sysdeps/i386/fpu/e_exp_data.c: New file.
9182 * sysdeps/i386/fpu/math_err.c: New file.
9183 * sysdeps/i386/fpu/t_exp.c: Remove.
9184 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9185 * sysdeps/ia64/fpu/math_err.c: New file.
9186 * sysdeps/ia64/fpu/t_exp.c: Remove.
9187 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9188 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9189 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9190 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9191 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9192 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9193 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9194 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9195 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9196 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9197 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9198 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9199 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9200 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9201 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9202 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9203
9204 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9205
9206 * sysdeps/alpha/fpu/math_private.h: Remove.
9207
9208 * sysdeps/generic/math_private.h
9209 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9210 Move this inline function ....
9211 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9212 * include/math.h [!_ISOMAC]: To here....
9213
9214 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9215
9216 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9217 code ....
9218 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9219 * include/fenv.h [!_ISOMAC]: ... to here.
9220 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9221 (feraiseexcept): Likewise.
9222 * math/fromfp.h: Do not include <fenv_private.h>.
9223 * math/s_cexp_template.c: Likewise.
9224 * math/s_csin_template.c: Likewise.
9225 * math/s_csinh_template.c: Likewise.
9226 * math/s_ctan_template.c: Likewise.
9227 * math/s_ctanh_template.c: Likewise.
9228 * math/s_iseqsig_template.c: Likewise.
9229 * math/w_acos_compat.c: Likewise.
9230 * math/w_acosf_compat.c: Likewise.
9231 * math/w_acosl_compat.c: Likewise.
9232 * math/w_asin_compat.c: Likewise.
9233 * math/w_asinf_compat.c: Likewise.
9234 * math/w_asinl_compat.c: Likewise.
9235 * math/w_j0_compat.c: Likewise.
9236 * math/w_j0f_compat.c: Likewise.
9237 * math/w_j0l_compat.c: Likewise.
9238 * math/w_j1_compat.c: Likewise.
9239 * math/w_j1f_compat.c: Likewise.
9240 * math/w_j1l_compat.c: Likewise.
9241 * math/w_jn_compat.c: Likewise.
9242 * math/w_jnf_compat.c: Likewise.
9243 * math/w_log10_compat.c: Likewise.
9244 * math/w_log10f_compat.c: Likewise.
9245 * math/w_log10l_compat.c: Likewise.
9246 * math/w_log2_compat.c: Likewise.
9247 * math/w_log2f_compat.c: Likewise.
9248 * math/w_log2l_compat.c: Likewise.
9249 * math/w_log_compat.c: Likewise.
9250 * math/w_logf_compat.c: Likewise.
9251 * math/w_logl_compat.c: Likewise.
9252 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9253 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9254 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9255 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9256 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9257 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9258 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9259 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9260 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9261 * sysdeps/ieee754/k_standardl.c: Likewise.
9262 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9263 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9264 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9265 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9266 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9267 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9268 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9269 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9270 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9271 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9272 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9273 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9274 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9275 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9276 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9277 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9278 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9279 * math/w_ilogb_template.c: Include <fenv.h> instead of
9280 <fenv_private.h>.
9281 * math/w_llogb_template.c: Likewise.
9282 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9283 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9284
9285 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9286
9287 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9288 * math/fromfp.h: Include <fenv_private.h>.
9289 * math/math-narrow.h: Likewise.
9290 * math/s_cexp_template.c: Likewise.
9291 * math/s_csin_template.c: Likewise.
9292 * math/s_csinh_template.c: Likewise.
9293 * math/s_ctan_template.c: Likewise.
9294 * math/s_ctanh_template.c: Likewise.
9295 * math/s_iseqsig_template.c: Likewise.
9296 * math/w_acos_compat.c: Likewise.
9297 * math/w_acosf_compat.c: Likewise.
9298 * math/w_acosl_compat.c: Likewise.
9299 * math/w_asin_compat.c: Likewise.
9300 * math/w_asinf_compat.c: Likewise.
9301 * math/w_asinl_compat.c: Likewise.
9302 * math/w_ilogb_template.c: Likewise.
9303 * math/w_j0_compat.c: Likewise.
9304 * math/w_j0f_compat.c: Likewise.
9305 * math/w_j0l_compat.c: Likewise.
9306 * math/w_j1_compat.c: Likewise.
9307 * math/w_j1f_compat.c: Likewise.
9308 * math/w_j1l_compat.c: Likewise.
9309 * math/w_jn_compat.c: Likewise.
9310 * math/w_jnf_compat.c: Likewise.
9311 * math/w_llogb_template.c: Likewise.
9312 * math/w_log10_compat.c: Likewise.
9313 * math/w_log10f_compat.c: Likewise.
9314 * math/w_log10l_compat.c: Likewise.
9315 * math/w_log2_compat.c: Likewise.
9316 * math/w_log2f_compat.c: Likewise.
9317 * math/w_log2l_compat.c: Likewise.
9318 * math/w_log_compat.c: Likewise.
9319 * math/w_logf_compat.c: Likewise.
9320 * math/w_logl_compat.c: Likewise.
9321 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9322 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9323 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9324 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9325 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9326 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9327 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9328 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9329 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9330 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9331 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9332 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9333 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9334 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9335 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9336 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9337 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9338 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9339 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9340 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9341 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9342 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9343 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9344 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9345 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9346 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9347 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9348 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9349 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9350 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9351 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9352 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9353 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9354 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9355 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9356 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9357 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9358 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9359 * sysdeps/ieee754/k_standardl.c: Likewise.
9360 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9361 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9362 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9363 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9364 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9365 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9366 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9367 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9368 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9369 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9370 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9371 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9372 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9373 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9374 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9375 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9376 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9377 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9378 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9379 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9380 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9381 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9382 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9383 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9384 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9385 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9386 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9387 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9388 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9389 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9390 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9391 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9392 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9393 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9394 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9395 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9396 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9397 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9398 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9399 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9400 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9401 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9402 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9403 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9404 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9405 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9406 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9407 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9408 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9409 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9410 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9411 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9412 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9413 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9414 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9415 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9416 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9417 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9418 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9419 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9420 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9421 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9422 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9423 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9424 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9425 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9426 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9427 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9428 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9429 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9430 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9431
9432 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9433
9434 [BZ #20271]
9435 * include/stdio.h (__libc_fatal): Mention newline in comment.
9436 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9437 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9438 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9439 * nss/nsswitch.c (__nss_next2): Likewise.
9440 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9441 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9442 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9443 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9444 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9445 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9446 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9447 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9448 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9449 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9450 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9451 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9452 (__netlink_assert_response): Likewise.
9453
9454 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9455
9456 * conform/glibcconform.py: New file.
9457 * conform/list-header-symbols.py: Likewise.
9458 * conform/list-header-symbols.pl: Remove.
9459 * conform/Makefile (tests-special): Only add linknamespace tests
9460 if [PYTHON].
9461 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9462
9463 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9464
9465 [BZ #23597]
9466 * support/Makefile (libsupport-routines): Add
9467 support_copy_file_range and xcopy_file_range.
9468 * support/support.h: Include <sys/types.h>.
9469 (support_copy_file_range): New prototype.
9470 * support/support_copy_file_range.c: New file. Copied and
9471 modified from io/copy_file_range-compat.c.
9472 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9473 instead of copy_file_range.
9474 * support/xcopy_file_range.c: New file.
9475 * support/xunistd.h (xcopy_file_range): New prototype.
9476
9477 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9478
9479 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9480 xpthread_create and xpthread_join.
9481
9482 2018-08-30 Florian Weimer <fweimer@redhat.com>
9483
9484 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9485
9486 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9487
9488 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9489 if malloc fails.
9490
9491 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9492
9493 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9494 and minus_oflow as non-finite.
9495
9496 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9497
9498 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9499 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9500 moved to fenv_private.h except for ...
9501 (TOINT_INTRINSICS): Kept in math_private.h.
9502 (roundtoint): Likewise.
9503 (converttoint): Likewise.
9504 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9505 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9506 * sysdeps/arm/math_private.h: Remove.
9507 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9508 ....
9509 * sysdeps/generic/math_private.h: ... this file. Include
9510 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9511 Include <fenv_private.h>. Remove functions and macros moved to
9512 fenv_private.h.
9513 * sysdeps/i386/fpu/math_private.h: Remove.
9514 * sysdeps/mips/math_private.h: Move to ....
9515 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9516 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9517 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9518 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9519 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9520 * sysdeps/powerpc/fpu/math_private.h: Do not include
9521 <fenv_private.h>.
9522 * sysdeps/riscv/rvf/math_private.h: Move to ....
9523 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9524 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9525 <fenv_private.h>.
9526 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9527 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9528 * sysdeps/sparc/fpu/math_private.h: Remove.
9529 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9530 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9531 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9532 <fenv_private.h>.
9533 * sysdeps/x86_64/fpu/math_private.h: Do not include
9534 <sysdeps/i386/fpu/fenv_private.h>.
9535
9536 2018-08-28 Florian Weimer <fweimer@redhat.com>
9537
9538 [BZ #23578]
9539 * posix/tst-regcomp-truncated.c: New file.
9540 * posix/Makefile (tests): Add it.
9541 (tst-regcomp-truncated.out): Depend on generated locales.
9542
9543 2018-08-28 Florian Weimer <fweimer@redhat.com>
9544
9545 * support/test-container.c (main): Treat unshare failure with
9546 EPERM as an unsupported test.
9547
9548 2018-08-28 Florian Weimer <fweimer@redhat.com>
9549
9550 [BZ #23520]
9551 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9552 * nscd/netgroupcache.c
9553 (addgetnetgrentX): Add tofreep parameter. Do not free
9554 heap-allocated buffer.
9555 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9556 (addgetnetgrentX_ignore): New function.
9557 (addgetnetgrent): Call it.
9558 (readdgetnetgrent): Likewise.
9559
9560 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9561
9562 * string/memmem.c: Use memcmp for first match.
9563
9564 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9565
9566 [BZ #17426]
9567 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9568
9569 2018-08-27 DJ Delorie <dj@redhat.com>
9570
9571 * support/Makefile (others): Don't list programs explicitly as a
9572 dependency of "others".
9573
9574 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9575
9576 * sysdeps/generic/math-tests-trap-force.h: New file.
9577 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9578 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9579 * sysdeps/powerpc/math-tests.h: Remove file.
9580 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9581
9582 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9583 Torvald Riegel <triegel@redhat.com>
9584
9585 [BZ #23538]
9586 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9587 Update r to include the set wake-request flag if waiters are
9588 remaining after spinning.
9589
9590 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9591
9592 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9593
9594 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9595
9596 [BZ #23578]
9597 regex: fix uninitialized memory access
9598 I introduced this bug into gnulib in commit
9599 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9600 eventually it was merged into glibc. The bug was found by
9601 project-repo <bugs@feusi.co> and reported here:
9602 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9603 Diagnosis and draft fix reported by Assaf Gordon here:
9604 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9605 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9606 * posix/regex_internal.c (build_wcs_upper_buffer):
9607 Fix bug when mbrtowc returns 0.
9608
9609 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9610
9611 * po/be.po: Update translation.
9612
9613 2018-08-24 DJ Delorie <dj@delorie.com>
9614
9615 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9616 $(libunwind).
9617
9618 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9619
9620 [BZ #23400]
9621 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9622 create temporary files in source tree.
9623
9624 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9625
9626 * sysdeps/generic/math-tests-trap.h: New file.
9627 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9628 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9629 * sysdeps/aarch64/math-tests.h: Remove file.
9630 * sysdeps/arm/math-tests.h: Likewise.
9631 * sysdeps/riscv/math-tests.h: Likewise.
9632 * sysdeps/aarch64/math-tests-trap.h: New file.
9633 * sysdeps/arm/math-tests-trap.h: Likewise.
9634 * sysdeps/riscv/math-tests-trap.h: Likewise.
9635
9636 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9637
9638 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9639 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9640 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9641 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9642 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9643 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9644 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9645 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9646 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9647 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9648 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9649 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9650 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9651 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9652 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9653 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9654 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9655 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9656
9657 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9658
9659 * sysdeps/generic/math-tests-exceptions.h: New file.
9660 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9661 (EXCEPTION_TESTS_float): Do not define here.
9662 (EXCEPTION_TESTS_double): Likewise.
9663 (EXCEPTION_TESTS_long_double): Likewise.
9664 (EXCEPTION_TESTS_float128): Likewise.
9665 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9666 Likewise.
9667 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9668 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9669 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9670 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9671 * sysdeps/mips/math-tests.h: Likewise.
9672 * sysdeps/nios2/math-tests.h: Likewise.
9673 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9674 (EXCEPTION_TESTS_float): Do not define here.
9675 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9676 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9677 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9678
9679 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9680
9681 * NEWS: Move optimized sinf entry to 2.29.
9682
9683 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9684
9685 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9686
9687 2018-08-22 DJ Delorie <dj@redhat.com>
9688
9689 * Makefile (testroot.pristine): New rules to initialize the
9690 test-in-container "testroot".
9691 * Makerules (all-testsuite): Add tests-container.
9692 * Rules (tests-expected): Add tests-container.
9693 (binaries-all-tests): Likewise.
9694 (tests-container): New, run these tests in the testroot container.
9695 * support/Makefile (others): Add *-container, support_paths.c,
9696 xmkdirp, and links-dso-program.
9697 * support/links-dso-program-c.c: New.
9698 * support/links-dso-program.cc: New.
9699 * support/test-container.c: New.
9700 * support/shell-container.c: New.
9701 * support/echo-container.c: New.
9702 * support/true-container.c: New.
9703 * support/xmkdirp.c: New.
9704 * support/xsymlink.c: New.
9705 * support/support_paths.c: New.
9706 * support/support.h: Add support paths prototypes.
9707 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9708
9709 * nss/tst-nss-test3.c: Convert to test-in-container.
9710 * nss/tst-nss-test3.root/: New.
9711
9712 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9713
9714 regex: port Gnulib code to z/OS POSIX environment
9715 Problem reported by Arnold Robbins in:
9716 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9717 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9718 Undef.
9719
9720 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9721
9722 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9723 (ROUNDING_TESTS_double): Remove.
9724 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9725 (ROUNDING_TESTS_double): Remove.
9726 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9727 (ROUNDING_TESTS_double): Remove.
9728 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9729 (ROUNDING_TESTS_float): Remove.
9730 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9731 (ROUNDING_TESTS_float): Remove.
9732 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9733 (ROUNDING_TESTS_float): Remove.
9734 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9735 !TEST_MATHVEC here.
9736 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9737 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9738
9739 * sysdeps/generic/math-tests-rounding.h: New file.
9740 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9741 (ROUNDING_TESTS_float): Do not define here.
9742 (ROUNDING_TESTS_double): Likewise.
9743 (ROUNDING_TESTS_long_double): Likewise.
9744 (ROUNDING_TESTS_float128): Likewise.
9745 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9746 (ROUNDING_TESTS_double): Undefine before defining.
9747 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9748 (ROUNDING_TESTS_double): Undefine before defining.
9749 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9750 (ROUNDING_TESTS_double): Undefine before defining.
9751 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9752 (ROUNDING_TESTS_float): Undefine before defining.
9753 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9754 (ROUNDING_TESTS_float): Undefine before defining.
9755 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9756 (ROUNDING_TESTS_float): Undefine before defining.
9757 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9758 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9759 not define here.
9760 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9761 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9762 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9763 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9764 (ROUNDING_TESTS_float): Do not define here.
9765 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9766 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9767 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9768 (ROUNDING_TESTS_float): Likewise.
9769 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9770 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9771 * sysdeps/mips/math-tests.h [__mips_soft_float]
9772 (ROUNDING_TESTS_float): Likewise.
9773 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9774 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9775 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9776 (ROUNDING_TESTS_double): Likewise.
9777 (ROUNDING_TESTS_long_double): Likewise.
9778
9779 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9780
9781 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9782 (PF_XDP): New macro.
9783 (AF_XDP): New macro.
9784 (SOL_XDP): New macro.
9785
9786 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9787
9788 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9789 (TCP_INQ): Likewise.
9790 (TCP_CM_INQ): Likewise.
9791 (TCP_REPAIR_ON): Likewise.
9792 (TCP_REPAIR_OFF): Likewise.
9793 (TCP_REPAIR_OFF_NO_WP): Likewise.
9794 (struct tcp_zerocopy_receive): New type.
9795
9796 2018-08-21 Florian Weimer <fweimer@redhat.com>
9797
9798 * support/support.h (support_descriptor_supports_holes): Declare.
9799 * support/Makefile (libsupport-routines): Add
9800 support_descriptor_supports_holes.
9801 * support/support_descriptor_supports_holes.c: New file.
9802 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9803 and stop testing if holes are not supported.
9804 * io/test-lfs.c (do_prepare): Likewise.
9805 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9806 Likewise.
9807 * timezone/tst-tzset.c (create_tz_file): Likewise.
9808 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9809 variable.
9810 (do_prepare): Set it.
9811 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9812
9813 2018-08-21 Florian Weimer <fweimer@redhat.com>
9814
9815 [BZ #17248]
9816 * Makeconfig (+cflags): Do not sort (and deduplicate).
9817
9818 2018-08-21 Florian Weimer <fweimer@redhat.com>
9819
9820 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9821 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9822
9823 2018-08-20 Florian Weimer <fweimer@redhat.com>
9824
9825 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9826 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9827
9828 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9829
9830 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9831 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9832 and ssi_arch members.
9833
9834 * elf/elf.c (NT_VMCOREDD): New macro.
9835 (AT_MINSIGSTKSZ): Likewise.
9836
9837 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9838
9839 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9840 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9841 s_cosf-ppc64 and s_cosf-power8.
9842 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9843 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9844 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9845 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9852 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9853 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9854
9855 2018-08-17 Florian Weimer <fweimer@redhat.com>
9856
9857 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9858
9859 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9860
9861 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9862
9863 2018-08-16 Florian Weimer <fweimer@redhat.com>
9864
9865 * configure.ac: Add --with-nonshared-cflags option.
9866 * config.make.in (extra-nonshared-cflags): Set variable.
9867 * Makeconfig (CFLAGS-.oS): Use it.
9868 * manual/install.texi (Configuring and compiling): Document
9869 --with-nonshared-cflags.
9870 * configure: Regenerate.
9871 * INSTALL: Likewise.
9872
9873 2018-08-16 Florian Weimer <fweimer@redhat.com>
9874
9875 * Makeconfig (ASFLAGS): Always append required assembler flags.
9876
9877 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9878
9879 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9880 (malloc_consolidate): Likewise.
9881
9882 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9883
9884 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9885
9886 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9887
9888 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9889 every strlen call.
9890
9891 * benchtests/bench-strlen.c: Print performance numbers in json.
9892
9893 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9894
9895 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9896 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9897 only for little endian.
9898 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9899 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9900 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9901 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9902 Add check for little endian.
9903 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9904 (__strcmp_power9): Add check for little endian.
9905 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9906 Add check for little endian.
9907 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9908 (__strncmp_power9): Add check for little endian.
9909 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9910 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9911 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9912 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9913 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9914
9915 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9916
9917 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9918 [!STRLEN](STRLEN): Set to __strlen.
9919 * sysdeps/aarch64/multiarch/strlen.c: New file.
9920 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9921 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9922 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9923 (__libc_ifunc_impl_list): Add strlen.
9924 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9925 strlen_generic and strlen_asimd.
9926
9927 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9928
9929 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9930 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9931 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9932
9933 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9934
9935 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9936
9937 2018-08-14 Florian Weimer <fweimer@redhat.com>
9938
9939 [BZ #23519]
9940 * include/stdio.h (__vfxprintf): Declare.
9941 * stdio-common/fxprintf.c (__vfxprintf): New function.
9942 (__fxprintf): Call it.
9943 * misc/err.c (convert_and_print): Remove function.
9944 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9945 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9946 * misc/Makefile (tests): Add tst-warn-wide.
9947 * misc/tst-warn-wide.c: New file.
9948
9949 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9950 Szabolcs Nagy <szabolcs.nagy@arm.com>
9951
9952 * NEWS: Mention sinf, cosf, sincosf.
9953 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9954 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9955 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9956 constants rather than including generic sincosf.h.
9957 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9958 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9959 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9960 (reduced_cos): Remove.
9961 (sinf_poly): New function.
9962 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9963
9964 2018-08-14 Florian Weimer <fweimer@redhat.com>
9965
9966 [BZ #23521]
9967 [BZ #23522]
9968 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9969 processing, bail out if no room, and close the stream before
9970 returning ERANGE.
9971 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9972 (tst-nss-files-alias-leak): Link with libdl.
9973 (tst-nss-files-alias-leak.out): Depend on nss_files.
9974
9975 * nss/tst-nss-files-alias-leak.c: New file.
9976
9977 2018-08-14 Florian Weimer <fweimer@redhat.com>
9978
9979 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9980 server_user, stat_user.
9981
9982 2018-08-13 Joseph Myers <joseph@codesourcery.com>
9983
9984 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9985 version to 4.18.
9986 (io_pgetevents): New syscall.
9987 (rseq): Likewise.
9988
9989 * manual/install.texi (Configuring and compiling): Do not list
9990 tools used for testing pretty printers here.
9991 (Tools for Compilation): List Python, PExpect and GDB here.
9992 Update descriptions of uses of Perl and Python.
9993 * INSTALL: Regenerate.
9994
9995 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9996 version to 4.18.
9997
9998 2018-08-13 Florian Weimer <fweimer@redhat.com>
9999
10000 * misc/error.c (error): Add missing va_end call.
10001 (error_at_line): Likewise.
10002
10003 2018-08-13 Florian Weimer <fweimer@redhat.com>
10004
10005 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10006
10007 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10008
10009 * benchtests/scripts/benchout.schema.json (properties): Add
10010 new properties.
10011
10012 * benchtests/bench-skeleton.c (main): Add duration and
10013 iterations attributes.
10014
10015 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10016
10017 regex: Gnulib unibyte RRI uses bytes not chars
10018 Adjust the non-glibc code to agree with what Gawk needs for
10019 rational range interpretation (RRI) for regular expression ranges.
10020 In unibyte locales, Gawk wants ranges to use the underlying byte
10021 rather than the character code point. This change does not affect
10022 glibc proper.
10023 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10024 In unibyte locales, use the byte value rather than
10025 running it through btowc.
10026
10027 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10028
10029 * sysdeps/generic/math-tests-snan.h: New file.
10030 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10031 (SNAN_TESTS_float): Do not define here.
10032 (SNAN_TESTS_double): Likewise.
10033 (SNAN_TESTS_long_double): Likewise.
10034 (SNAN_TESTS_float128): Likewise.
10035 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10036 * sysdeps/i386/fpu/math-tests.h: Remove file.
10037 * sysdeps/ia64/math-tests-snan.h: New file.
10038 * sysdeps/ia64/math-tests.h: Remove file.
10039 * sysdeps/x86/math-tests.h: Likewise.
10040 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10041
10042 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10043 Szabolcs Nagy <szabolcs.nagy@arm.com>
10044
10045 * math/Makefile: Add s_sincosf_data.c.
10046 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10047 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10048 (sincosf_poly): Likewise.
10049 (reduce_small): Likewise.
10050 (reduce_large): Likewise.
10051 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10052 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10053 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10054 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10055
10056 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10057 Szabolcs Nagy <szabolcs.nagy@arm.com>
10058
10059 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10060 (converttoint): Use lround.
10061 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10062 document the semantics when TOINT_INTRINSICS is set.
10063 (converttoint): Likewise.
10064 (TOINT_RINT): Remove.
10065 (TOINT_SHIFT): Remove.
10066 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10067 path.
10068
10069 2018-08-10 Florian Weimer <fweimer@redhat.com>
10070
10071 [BZ #23497]
10072 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10073 function.
10074 (__old_getdents64): Use getdents64. Convert entries without
10075 moving them.
10076 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10077 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10078 tst-readdir64-compat.
10079
10080 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10081
10082 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10083 Fix unwind.
10084
10085 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10086
10087 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10088 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10089 code to s390x-mcount.h and #include it.
10090 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10091 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10092 (__fentry__): Add.
10093
10094 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10095
10096 * stdlib/Versions: Remove __fentry__.
10097 * sysdeps/i386/Versions: Add __fentry__.
10098 * sysdeps/x86_64/Versions: Add __fentry__.
10099
10100 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10101
10102 * sysdeps/s390/Makefile: Register the new tests.
10103 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10104 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10105 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10106 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10107 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10108 * sysdeps/s390/tst-dl-runtime.c: New file.
10109
10110 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10111
10112 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10113 Do not clobber R0.
10114
10115 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10116
10117 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10118 Do not clobber R0.
10119
10120 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10121
10122 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10123 Do not clobber R0.
10124
10125 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10126
10127 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10128 Do not clobber R0.
10129
10130 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10131
10132 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10133 Use symbolic offsets for stack variables.
10134
10135 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10136
10137 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10138 Use symbolic offsets for stack variables.
10139
10140 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10141
10142 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10143 Use symbolic offsets for stack variables.
10144
10145 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10146
10147 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10148 Use symbolic offsets for stack variables.
10149
10150 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10151
10152 * math/gen-libm-test.py: New file.
10153 * math/gen-libm-test.pl: Remove.
10154 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10155 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10156 gen-libm-test.pl.
10157 ($(libm-test-c-noauto-obj)): Likewise.
10158 ($(libm-test-c-auto-obj)): Likewise.
10159 ($(libm-test-c-narrow-obj)): Likewise.
10160 (regen-ulps): Likewise.
10161 * math/README.libm-test: Update references to gen-libm-test.pl.
10162 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10163 referencing gen-libm-test.pl.
10164 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10165 * math/libm-test-support.c: Likewise.
10166 * math/libm-test-support.h: Likewise.
10167 * sysdeps/generic/libm-test-ulps: Likewise.
10168
10169 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10170
10171 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10172 Fix value.
10173
10174 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10175
10176 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10177 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10178
10179 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10180
10181 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10182 symbols.
10183 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10184 __pthread_setspecific): Add hidden proto.
10185 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10186 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10187
10188 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10189
10190 * benchtests/bench-string.h (buf1_size, buf2_size): New
10191 variables.
10192 (init_sizes): New function.
10193 (test_init): Use it.
10194 (alloc_buf, exit_error): New functions.
10195 (alloc_bufs): Use ALLOC_BUF.
10196 (realloc_bufs): Remove.
10197 * benchtests/bench-memcmp.c (do_test): Adjust.
10198 * benchtests/bench-memset-large.c (do_test): Likewise.
10199 * benchtests/bench-memset-walk.c (do_test): Likewise.
10200 * benchtests/bench-memset.c (do_test): Likewise.
10201 * benchtests/bench-strncmp.c (do_test): Likewise.
10202
10203 2018-08-06 Andreas Schwab <schwab@suse.de>
10204
10205 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10206 of CONST_THREAD_AREA.
10207
10208 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10209
10210 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10211 (STATE_SAVE_MASK): Likewise.
10212 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10213 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10214 (STATE_SAVE_MASK): Likewise.
10215 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10216 instead of <cpu-features.h>.
10217
10218 2018-08-03 DJ Delorie <dj@redhat.com>
10219
10220 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10221 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10222
10223 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10224
10225 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10226
10227 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10228 after TEST_* calls.
10229 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10230 * math/libm-test-logb.inc (logb_test_data): Likewise.
10231
10232 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10233
10234 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10235 * string/strstr.c (AVAILABLE): Likewise.
10236
10237 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10238
10239 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10240 <init-arch.h>.
10241 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10242 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10243 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10244
10245 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10246
10247 * po/be.po: Update translation.
10248
10249 * po/be.po: Update translation.
10250
10251 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10252
10253 * sysdeps/x86/cpu-features-offsets.sym
10254 (rtld_global_ro_offsetof): Removed.
10255 (CPU_FEATURES_SIZE): Likewise.
10256 (CPUID_OFFSET): Likewise.
10257 (CPUID_SIZE): Likewise.
10258 (CPUID_EAX_OFFSET): Likewise.
10259 (CPUID_EBX_OFFSET): Likewise.
10260 (CPUID_ECX_OFFSET): Likewise.
10261 (CPUID_EDX_OFFSET): Likewise.
10262 (FAMILY_OFFSET): Likewise.
10263 (MODEL_OFFSET): Likewise.
10264 (FEATURE_OFFSET): Likewise.
10265 (FEATURE_SIZ): Likewise.
10266 (COMMON_CPUID_INDEX_1): Likewise.
10267 (COMMON_CPUID_INDEX_7): Likewise.
10268 (FEATURE_INDEX_1): Likewise.
10269 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10270
10271 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10272
10273 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10274 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10275 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10276 (install-locales): Depend on install-locale-archive.
10277 (install-locale-archive): Define.
10278 (install-locale-files): Define.
10279 (build-one-locale): Define macro.
10280 * manual/install.texi (Running make install): Document.
10281 * manual/INSTALL: Regenerate.
10282
10283 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10284
10285 * benchtests/scripts/compare_strings.py: Import traceback.
10286 (parse_file): Pretty-print error.
10287
10288 * NEWS: Mention the change.
10289 * elf/dl-tunables.list: Rename tune namespace to cpu.
10290 * sysdeps/powerpc/dl-tunables.list: Likewise.
10291 * sysdeps/x86/dl-tunables.list: Likewise.
10292 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10293 cpu.name.
10294 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10295 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10296 * manual/README.tunables: Likewise.
10297 * manual/tunables.texi: Likewise.
10298 * sysdeps/powerpc/cpu-features.c: Likewise.
10299 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10300 (init_cpu_features): Likewise.
10301 * sysdeps/x86/cpu-features.c: Likewise.
10302 * sysdeps/x86/cpu-features.h: Likewise.
10303 * sysdeps/x86/cpu-tunables.c: Likewise.
10304 * sysdeps/x86_64/Makefile: Likewise.
10305 * sysdeps/x86/dl-cet.c: Likewise.
10306
10307 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10308
10309 [BZ #23479]
10310 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10311 [__mips_hard_float].
10312 (FE_UNDERFLOW): Likewise.
10313 (FE_OVERFLOW): Likewise.
10314 (FE_DIVBYZERO): Likewise.
10315 (FE_INVALID): Likewise.
10316 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10317 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10318 (FE_UPWARD): Likewise.
10319 (FE_DOWNWARD): Likewise.
10320 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10321 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10322 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10323 [__mips_hard_float].
10324 (FP_ROUNDMODE): Likewise.
10325 (FP_RND_NEAREST): Likewise.
10326 (FP_RND_ZERO): Likewise.
10327 (FP_RND_PINF): Likewise.
10328 (FP_RND_MINF): Likewise.
10329 (FP_EX_INVALID): Likewise.
10330 (FP_EX_OVERFLOW): Likewise.
10331 (FP_EX_UNDERFLOW): Likewise.
10332 (FP_EX_DIVZERO): Likewise.
10333 (FP_EX_INEXACT): Likewise.
10334 (FP_INIT_ROUNDMODE): Likewise.
10335 * sysdeps/mips/nofpu/fesetenv.c: New file.
10336 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10337
10338 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10339
10340 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10341 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10342 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10343 conditional on [FE_UPWARD].
10344
10345 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10346
10347 regex: fix memory leak in Gnulib
10348 Problem and fix reported by Assaf Gordon in:
10349 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10350 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10351 range_ends members too, as they are defined in 'struct
10352 re_charset_t' even if not _LIBC. This affects only Gnulib.
10353
10354 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10355
10356 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10357 ...
10358 (get_common_indices): This.
10359 (init_cpu_features): Updated.
10360
10361 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10362
10363 * sysdeps/generic/math-tests-snan-payload.h: New file.
10364 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10365 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10366 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10367 * sysdeps/generic/math-tests.h: Include
10368 <math-tests-snan-payload.h>.
10369 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10370 * sysdeps/hppa/math-tests.h: Remove file.
10371 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10372 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10373 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10374 Likewise.
10375
10376 * sysdeps/generic/math-tests-snan-cast.h: New file.
10377 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10378 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10379 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10380 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10381
10382 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10383
10384 * version.h (RELEASE): Set to "development".
10385 (VERSION): Set to "2.28.9000".
10386 * NEWS (2.29): New section.
10387
10388 * version.h (RELEASE): Set to "stable".
10389 (VERSION): Set to "2.28".
10390 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10391 * NEWS: Add the list of bugs fixed in 2.28.
10392
10393 * po/ca.po: Update to latest version.
10394 * po/cs.po: Likewise
10395 * po/da.po: Likewise
10396 * po/el.po: Likewise
10397 * po/eo.po: Likewise
10398 * po/es.po: Likewise
10399 * po/fi.po: Likewise
10400 * po/fr.po: Likewise
10401 * po/gl.po: Likewise
10402 * po/hu.po: Likewise
10403 * po/ia.po: Likewise
10404 * po/id.po: Likewise
10405 * po/it.po: Likewise
10406 * po/ja.po: Likewise
10407 * po/ko.po: Likewise
10408 * po/lt.po: Likewise
10409 * po/nb.po: Likewise
10410 * po/nl.po: Likewise
10411 * po/pt_BR.po: Likewise
10412 * po/ru.po: Likewise
10413 * po/rw.po: Likewise
10414 * po/sk.po: Likewise
10415 * po/sl.po: Likewise
10416 * po/tr.po: Likewise
10417 * po/zh_CN.po: Likewise
10418 * po/zh_TW.po: Likewise
10419
10420 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10421
10422 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10423 initialization...
10424 (init): ... before initializing libpthread.
10425
10426 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10427 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10428 (__mach_setup_tls): ... new function.
10429 (mach_setup_tls): New alias.
10430 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10431 __mach_setup_thread.
10432 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10433 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10434 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10435 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10436
10437 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10438
10439 * manual/install.texi: Update versions.
10440 * INSTALL: Regenerate.
10441
10442 * manual/contrib.texi (Contributors): Update contributions.
10443
10444 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10445
10446 * po/be.po: Update translations.
10447
10448 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10449
10450 * sysdeps/sh/libm-test-ulps: Update.
10451
10452 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10453
10454 * po/bg.po: Update translations.
10455 * po/de.po: Likewise.
10456 * po/hr.po: Likewise.
10457 * po/pt_BR.po: Likewise.
10458 * po/sv.po: Likewise.
10459 * po/vi.po: Likewise.
10460
10461 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10462
10463 [BZ #23467]
10464 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10465 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10466 (CFLAGS-tst-cet-property-1.o): New.
10467 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10468 ($(objpfx)tst-cet-property-2): Likewise.
10469 ($(objpfx)tst-cet-property-2.out): Likewise.
10470 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10471 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10472 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10473 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10474 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10475
10476 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10477
10478 [BZ #23458]
10479 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10480
10481 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10482
10483 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10484 __sbrk): Do not set attribute_hidden.
10485 * sysdeps/mach/hurd/not-errno.h: New file.
10486 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10487 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10488
10489 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10490
10491 * po/uk.po: Update translations.
10492 * po/cs.po: Likewise.
10493 * po/pl.po: Likewise.
10494
10495 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10496
10497 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10498 parse beyond the note end.
10499
10500 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10501
10502 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10503 kernel does not support OFD locks.
10504 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10505
10506 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10507
10508 * sysdeps/mach/hurd/Versions (libc): Make __access and
10509 __access_noerrno external so they can override the ld symbols.
10510 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10511 __writev, __open64, __access_noerrno extern so they can be overrided.
10512 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10513 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10514
10515 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10516
10517 * po/libc.pot: Regenerate.
10518
10519 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10520
10521 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10522
10523 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10524
10525 [BZ #23459]
10526 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10527 function.
10528 (init_cpu_features): Call get_extended_indices for both Intel
10529 and AMD CPUs.
10530 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10531 Remove "for AMD" comment.
10532
10533 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10534
10535 [BZ # 23456]
10536 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10537 COMMON_CPUID_INDEX_80000001.
10538
10539 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10540
10541 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10542 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10543
10544 2018-07-26 Florian Weimer <fweimer@redhat.com>
10545
10546 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10547 aliases for symbols not in the implementation namespace.
10548
10549 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10550
10551 [BZ #23393]
10552 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10553 lowercase in LATIN script.
10554 * localedata/Makefile (test-input): Add en_US.UTF-8.
10555 * localedata/en_US.UTF-8.in: New file.
10556 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10557 and restore old tests.
10558 * posix/tst-regexloc.c (do_test): Add back range expression test.
10559
10560 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10561
10562 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10563
10564 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10565
10566 * nptl/threads.h: Move to ...
10567 * sysdeps/nptl/threads.h: ... here.
10568 * sysdeps/hurd/stdc-predef.h: New file.
10569
10570 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10571
10572 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10573 tst-cet-setcontext-1 if CET is enabled.
10574 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10575 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10576
10577 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10578
10579 * include/threads.h: Move to ...
10580 * sysdeps/nptl/threads.h: ... here.
10581 * sysdeps/htl/threads.h: New file.
10582 * conform/Makefile (linknamespace-libs-ISO11): Use
10583 static-thread-library instead of linking libpthread.
10584 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10585
10586 2018-07-25 Florian Weimer <fweimer@redhat.com>
10587
10588 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10589 nanoseconds into seconds.
10590 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10591 (do_test): Likewise.
10592 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10593 (do_test): Likewise. Avoid nanosecond overflow and spurious
10594 timeouts due to system load.
10595 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10596 (child_wait): Increment it.
10597 (do_test): Wait as long as necessary until all expected threads
10598 have arrived.
10599
10600 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10601 H.J. Lu <hongjiu.lu@intel.com>
10602
10603 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10604 __ssp.
10605 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10606 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10607 (__push___start_context): New.
10608 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10609 <asm/prctl.h>.
10610 (__getcontext): Record the current shadow stack base. Save the
10611 caller's shadow stack pointer and base.
10612 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10613 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10614 (__push___start_context): New prototype.
10615 (__makecontext): Call __push___start_context to allocate a new
10616 shadow stack, push __start_context onto the new stack as well
10617 as the new shadow stack.
10618 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10619 <asm/prctl.h>.
10620 (__setcontext): Restore the target shadow stack.
10621 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10622 <asm/prctl.h>.
10623 (__swapcontext): Record the current shadow stack base. Save
10624 the caller's shadow stack pointer and base. Restore the target
10625 shadow stack.
10626 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10627 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10628 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10629
10630 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10631
10632 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10633 tst-setcontext8 and tst-setcontext9.
10634 * stdlib/tst-setcontext6.c: New file.
10635 * stdlib/tst-setcontext7.c: Likewise.
10636 * stdlib/tst-setcontext8.c: Likewise.
10637 * stdlib/tst-setcontext9.c: Likewise.
10638
10639 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10640
10641 * stdlib/Makefile ((tests): Add tst-setcontext5.
10642 * stdlib/tst-setcontext5.c: New file.
10643
10644 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10645
10646 * stdlib/Makefile (tests): Add tst-setcontext4.
10647 * stdlib/tst-setcontext4.c: New file.
10648
10649 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10650
10651 * stdlib/Makefile (tests): Add tst-swapcontext1.
10652 * stdlib/tst-swapcontext1.c: New test.
10653
10654 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10655
10656 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10657 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10658 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10659 and tst-cet-legacy-4c.
10660 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10661 and tst-cet-legacy-mod-4.
10662 (CFLAGS-tst-cet-legacy-2.c): New.
10663 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10664 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10665 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10666 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10667 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10668 ($(objpfx)tst-cet-legacy-1): Likewise.
10669 ($(objpfx)tst-cet-legacy-2): Likewise.
10670 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10671 ($(objpfx)tst-cet-legacy-2a): Likewise.
10672 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10673 ($(objpfx)tst-cet-legacy-4): Likewise.
10674 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10675 ($(objpfx)tst-cet-legacy-4a): Likewise.
10676 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10677 (tst-cet-legacy-4a-ENV): Likewise.
10678 ($(objpfx)tst-cet-legacy-4b): Likewise.
10679 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10680 (tst-cet-legacy-4b-ENV): Likewise.
10681 ($(objpfx)tst-cet-legacy-4c): Likewise.
10682 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10683 (tst-cet-legacy-4c-ENV): Likewise.
10684 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10685 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10686 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10687 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10688 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10689 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10690 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10691 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10692 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10693 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10694 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10695
10696 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10697
10698 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10699 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10700 with ssp_base.
10701 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10702 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10703 with ssp_base.
10704
10705 2018-07-25 Andreas Schwab <schwab@suse.de>
10706
10707 [BZ #23442]
10708 * locale/weightwc.h (findidx): Handle the case where usrc is a
10709 prefix of cp but one character too short.
10710
10711 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10712
10713 * NEWS: Add ISO C threads addition.
10714
10715 2018-07-24 Florian Weimer <fweimer@redhat.com>
10716
10717 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10718 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10719 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10720 4.13.
10721
10722 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10723
10724 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10725 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10726 <sys/prctl.h> and <asm/prctl.h>.
10727 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10728 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10729 and <asm/prctl.h>.
10730 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10731 ARCH_CET_LEGACY_BITMAP.
10732 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10733 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10734 * sysdeps/x86/libc-start.c: Include <startup.h>.
10735
10736 2018-07-24 Florian Weimer <fweimer@redhat.com>
10737
10738 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10739 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10740
10741 2018-07-24 Rical Jasan <rj@2c3t.io>
10742 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10743 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10744
10745 [BZ #14092]
10746 * manual/debug.texi: Update adjacent chapter name.
10747 * manual/probes.texi: Likewise.
10748 * manual/threads.texi (ISO C Threads): New section.
10749 (POSIX Threads): Convert to a section.
10750
10751 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10752 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10753
10754 [BZ# 14092]
10755 * nptl/Makefile (tests): Add new test files.
10756 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10757 * nptl/tst-cnd-basic.c: Likewise.
10758 * nptl/tst-cnd-broadcast.c: Likewise.
10759 * nptl/tst-cnd-timedwait.c: Likewise.
10760 * nptl/tst-mtx-basic.c: Likewise.
10761 * nptl/tst-mtx-recursive.c: Likewise.
10762 * nptl/tst-mtx-timedlock.c: Likewise.
10763 * nptl/tst-mtx-trylock.c: Likewise.
10764 * nptl/tst-thrd-basic.c: Likewise.
10765 * nptl/tst-thrd-detach.c: Likewise.
10766 * nptl/tst-thrd-sleep.c: Likewise.
10767 * nptl/tst-tss-basic.c: Likewise.
10768
10769 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10770
10771 [BZ #14092]
10772 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10773 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10774 symbols.
10775 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10776 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10777 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10778 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10779 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10780 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10781 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10782 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10783 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10784 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10785 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10786 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10787 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10788 Likewise.
10789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10790 Likewise.
10791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10792 Likewise.
10793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10794 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10795 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10796 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10797 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10798 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10799 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10800 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10801 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10802 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10803 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10804 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10805 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10806 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10807 Likewise.
10808 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10809 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10810 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10811 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10812 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10813 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10814 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10815 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10816 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10817 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10818 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10819 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10820 ikewise.
10821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10823 Likewise.
10824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10825 Likewise.
10826 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10827 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10828 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10829 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10830 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10831 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10832 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10833 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10834
10835 [BZ #14092]
10836 * conform/data/threads.h-data (thread_local): New macro.
10837 (TSS_DTOR_ITERATIONS): Likewise.
10838 (tss_t): New type.
10839 (tss_dtor_t): Likewise.
10840 (tss_create): New function.
10841 (tss_get): Likewise.
10842 (tss_set): Likewise.
10843 (tss_delete): Likewise.
10844 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10845 tss_get, and tss_set objects.
10846 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10847 * nptl/tss_create.c: New file.
10848 * nptl/tss_delete.c: Likewise.
10849 * nptl/tss_get.c: Likewise.
10850 * nptl/tss_set.c: Likewise.
10851 * sysdeps/nptl/threads.h (thread_local): New define.
10852 (TSS_DTOR_ITERATIONS): Likewise.
10853 (tss_t): New typedef.
10854 (tss_dtor_t): Likewise.
10855 (tss_create): New prototype.
10856 (tss_get): Likewise.
10857 (tss_set): Likewise.
10858 (tss_delete): Likewise.
10859
10860 [BZ #14092]
10861 * conform/data/threads.h-data (cnd_t): New type.
10862 (cnd_init): New function.
10863 (cnd_signal): Likewise.
10864 (cnd_broadcast): Likewise.
10865 (cnd_wait): Likewise.
10866 (cnd_timedwait): Likewise.
10867 (cnd_destroy): Likewise.
10868 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10869 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10870 object.
10871 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10872 * nptl/cnd_broadcast.c: New file.
10873 * nptl/cnd_destroy.c: Likewise.
10874 * nptl/cnd_init.c: Likewise.
10875 * nptl/cnd_signal.c: Likewise.
10876 * nptl/cnd_timedwait.c: Likewise.
10877 * nptl/cnd_wait.c: Likewise.
10878 * sysdeps/nptl/threads.h (cnd_t): New type.
10879 (cnd_init): New prototype.
10880 (cnd_signa): Likewise.
10881 (cnd_broadcast): Likewise.
10882 (cnd_wait): Likewise.
10883 (cnd_timedwait): Likewise.
10884 (cnd_destroy): Likewise.
10885
10886 [BZ #14092]
10887 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10888 (once_flag): New type.
10889 (call_once): New function.
10890 * nptl/Makefile (libpthread-routines): Add call_once object.
10891 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10892 * nptl/call_once.c: New file.
10893 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10894 (once_flag): New type.
10895 (call_once): New prototype.
10896
10897 [BZ #14092]
10898 * conform/data/threads.h-data (mtx_plain): New constant.
10899 (mtx_recursive): Likewise.
10900 (mtx_timed): Likewise.
10901 (mtx_t): New type.
10902 (mtx_init): New function.
10903 (mtx_lock): Likewise.
10904 (mtx_timedlock): Likewise.
10905 (mtx_trylock): Likewise.
10906 (mtx_unlock): Likewise.
10907 (mtx_destroy): Likewise.
10908 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10909 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10910 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10911 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10912 * nptl/mtx_destroy.c: New file.
10913 * nptl/mtx_init.c: Likewise.
10914 * nptl/mtx_lock.c: Likewise.
10915 * nptl/mtx_timedlock.c: Likewise.
10916 * nptl/mtx_trylock.c: Likewise.
10917 * nptl/mtx_unlock.c: Likewise.
10918 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10919 (mtx_recursive): Likewise.
10920 (mtx_timed): Likewise.
10921 (mtx_t): New type.
10922 (mtx_init): New prototype.
10923 (mtx_lock): Likewise.
10924 (mtx_timedlock): Likewise.
10925 (mtx_trylock): Likewise.
10926 (mtx_unlock): Likewise.
10927 (mtx_destroy): Likewise.
10928
10929 [BZ #14092]
10930 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10931 (linknamespace-libs-ISO11): Add libpthread.a.
10932 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10933 functions.
10934 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10935 * nptl/Makefile (headers): Add threads.h.
10936 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10937 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10938 thrd_yield.
10939 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10940 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10941 thrd_join, thrd_sleep, and thrd_yield symbols.
10942 * nptl/descr.h (struct pthread): Add c11 field.
10943 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10944 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10945 routine with expected function prototype.
10946 (__pthread_create_2_1): Add C11 threads check based on attribute
10947 value.
10948 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10949 * nptl/thrd_create.c: New file.
10950 * nptl/thrd_current.c: Likewise.
10951 * nptl/thrd_detach.c: Likewise.
10952 * nptl/thrd_equal.c: Likewise.
10953 * nptl/thrd_exit.c: Likewise.
10954 * nptl/thrd_join.c: Likewise.
10955 * nptl/thrd_priv.h: Likewise.
10956 * nptl/thrd_sleep.c: Likewise.
10957 * nptl/thrd_yield.c: Likewise.
10958 * include/threads.h: Likewise.
10959
10960 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10961
10962 * bits/indirect-return.h: New file.
10963 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10964 * sysdeps/x86/bits/indirect-return.h: Likewise.
10965 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10966 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10967 (swapcontext): Add __INDIRECT_RETURN.
10968 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10969 (prepare_test_buffer): Use it.
10970
10971 2018-07-24 Andreas Schwab <schwab@suse.de>
10972
10973 [BZ #23448]
10974 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10975 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10976
10977 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10978
10979 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10980 Redefine if shadow stack is enabled.
10981 (SYSCALL_ERROR_LABEL): Likewise.
10982 (__vfork): Pop shadow stack and jump back to to caller directly
10983 when shadow stack is in use.
10984 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10985 Redefine if shadow stack is enabled.
10986 (SYSCALL_ERROR_LABEL): Likewise.
10987 (__vfork): Pop shadow stack and jump back to to caller directly
10988 when shadow stack is in use.
10989
10990 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10991
10992 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10993 enabled.
10994 (foo): Likewise.
10995 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10996 (foo): Likewise.
10997
10998 2018-07-20 Joseph Myers <joseph@codesourcery.com>
10999
11000 * scripts/build-many-glibcs.py (Context.checkout): Default
11001 binutils version to 2.31 branch.
11002
11003 2018-07-20 Zong Li <zong@andestech.com>
11004
11005 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11006 URL of gcc's tarball.
11007
11008 2018-07-20 Florian Weimer <fweimer@redhat.com>
11009
11010 [BZ #23396]
11011 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11012 not compare an extra byte after the end of the weights.
11013
11014 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11015
11016 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11017 to 1.
11018 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11019 hidden prototypes.
11020 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11021 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11022 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11023 list of libraries whose stack executability is expected.
11024 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11025 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11026 variable.
11027 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11028 libc.so libpthread.so.
11029
11030 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11031
11032 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11033 SOCK_NONBLOCK.
11034 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11035 and SOCK_NONBLOCK.
11036 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11037 implement __pipe2.
11038 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11039
11040 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11041
11042 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11043 library to improve command line parsing.
11044 (__main__): make schema file as optional parameter (--schema),
11045 defaulting to benchtests/scripts/benchout.schema.json.
11046 (main): move out of the parsing stuff to __main_  and leave it
11047 only as caller of main comparison functions.
11048
11049 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11050
11051 * NEWS: Add a note for Intel CET status.
11052 * manual/install.texi: Likewise.
11053 * INSTALL: Regenerated.
11054
11055 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11056
11057 [BZ #23140]
11058 * localedata/locales/oc_FR (mon): Rename to...
11059 (alt_mon): This, then update October (typo fix).
11060 (mon): New content (genitive case, month names preceded by
11061 "de" or "d’").
11062
11063 [BZ #23422]
11064 * localedata/locales/oc_FR (abday): Update all items.
11065 (day): Update Wednesday and Saturday (typo fixes).
11066 (abmon): Update all items, except May.
11067 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11068 (LC_IDENTIFICATION): Bump the revision number and date.
11069 Keep the "category" entries in alphabetic order.
11070 (LC_ADDRESS): Remove no longer needed comment.
11071 (LC_COLLATE): Use “copy "ca_ES"”.
11072 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11073 "name_mrs".
11074
11075 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11076
11077 * grp/tst_fgetgrent.c: Include <unistd.h>.
11078 (main): Use mkstemp instead of tmpnam.
11079 * io/test-utime.c (main): Likewise.
11080 * posix/annexc.c (macrofile): Change to modifiable array.
11081 (main): Remove macrofile here.
11082 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11083 macrofile here.
11084 (check_header): Do not remove macrofile here.
11085 * posix/bug-getopt1.c: Include <stdlib.h>.
11086 (do_test): Use mkstemp instead of tmpnam.
11087 * posix/bug-getopt2.c: Include <stdlib.h>.
11088 (do_test): Use mkstemp instead of tmpnam.
11089 * posix/bug-getopt3.c: Include <stdlib.h>.
11090 (do_test): Use mkstemp instead of tmpnam.
11091 * posix/bug-getopt4.c: Include <stdlib.h>.
11092 (do_test): Use mkstemp instead of tmpnam.
11093 * posix/bug-getopt5.c: Include <stdlib.h>.
11094 (do_test): Use mkstemp instead of tmpnam.
11095 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11096 (main): Use mkstemp instead of tmpnam.
11097 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11098 (main): Use mkstemp instead of tmpnam.
11099 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11100 (main): use mkstemp instead of tmpnam.
11101 * stdlib/isomac.c (macrofile): Change to modifiable array.
11102 (main): Remove macrofile here.
11103 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11104 macrofile here.
11105 (check_header): Do not remove macrofile here.
11106
11107 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11108
11109 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11110 glibc.tune.x86_shstk.
11111
11112 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11113
11114 * NEWS: Mention --enable-cet.
11115 * manual/install.texi: Document --enable-cet.
11116 * INSTALL: Regenerated.
11117
11118 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11119
11120 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11121 Add _CET_NOTRACK before indirect jump to jump table.
11122
11123 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11124
11125 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11126 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11127 to jump table.
11128
11129 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11130
11131 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11132 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11133 to jump table.
11134
11135 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11136
11137 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11138 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11139 to jump table.
11140
11141 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11142
11143 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11144 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11145 to jump table.
11146
11147 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11148
11149 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11150 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11151 to jump table.
11152 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11153
11154 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11155
11156 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11157 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11158 to jump table.
11159
11160 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11161
11162 * sysdeps/i386/i686/multiarch/memset-sse2.S
11163 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11164 to jump table.
11165
11166 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11167
11168 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11169 indirect jump to jump table.
11170
11171 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11172
11173 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11174 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11175 to jump table.
11176 (MEMCPY): Likewise.
11177
11178 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11179
11180 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11181 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11182 to jump table.
11183 (MEMCPY): Likewise.
11184
11185 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11186
11187 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11188 _CET_NOTRACK before indirect jump to jump table.
11189
11190 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11191
11192 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11193 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11194 to jump table.
11195
11196 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11197
11198 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11199 indirect jump to jump table.
11200
11201 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11202
11203 [BZ #22241]
11204 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11205 (LOCALES): Likewise.
11206 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11207 * localedata/locales/sah_RU: New file.
11208 * localedata/sah_RU.UTF-8.in: New file.
11209
11210 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11211
11212 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11213 "sysdep.h".
11214 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11215 _CET_ENDBR to indirect jump targets and adjust jump destination
11216 for _CET_ENDBR.
11217 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11218 "sysdep.h".
11219 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11220 _CET_ENDBR to indirect jump targets and adjust jump destination
11221 for _CET_ENDBR.
11222 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11223 "sysdep.h".
11224 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11225 _CET_ENDBR to indirect jump targets and adjust jump destination
11226 for _CET_ENDBR.
11227
11228 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11229
11230 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11231 _CET_ENDBR.
11232
11233 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11234
11235 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11236 _CET_ENDBR.
11237 (_dl_tlsdesc_undefweak): Likewise.
11238 (_dl_tlsdesc_dynamic): Likewise.
11239 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11240 (_dl_tlsdesc_resolve_rel): Likewise.
11241 (_dl_tlsdesc_resolve_rela): Likewise.
11242 (_dl_tlsdesc_resolve_hold): Likewise.
11243 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11244 (_dl_tlsdesc_undefweak): Likewise.
11245 (_dl_tlsdesc_dynamic): Likewise.
11246 (_dl_tlsdesc_resolve_rela): Likewise.
11247 (_dl_tlsdesc_resolve_hold): Likewise.
11248
11249 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11250
11251 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11252 (_fini): Likewise.
11253 * sysdeps/x86_64/crti.S (_init): Likewise.
11254 (_fini): Likewise.
11255
11256 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11257
11258 [BZ #23140]
11259 * localedata/locales/os_RU (mon): Rename to...
11260 (alt_mon): This.
11261 (mon): Import from CLDR (genitive case).
11262
11263 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11264
11265 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11266 cet-tunables.h> when CET is enabled.
11267
11268 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11269
11270 [BZ #21598]
11271 * configure.ac: Add --enable-cet.
11272 * configure: Regenerated.
11273 * elf/Makefille (all-built-dso): Add a comment.
11274 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11275 Include <dl-prop.h>.
11276 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11277 segment.
11278 * elf/dl-open.c: Include <dl-prop.h>.
11279 (dl_open_worker): Call _dl_open_check.
11280 * elf/rtld.c: Include <dl-prop.h>.
11281 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11282 _rtld_main_check.
11283 * sysdeps/generic/dl-prop.h: New file.
11284 * sysdeps/i386/dl-cet.c: Likewise.
11285 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11286 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11287 * sysdeps/x86/cet-tunables.h: Likewise.
11288 * sysdeps/x86/check-cet.awk: Likewise.
11289 * sysdeps/x86/configure: Likewise.
11290 * sysdeps/x86/configure.ac: Likewise.
11291 * sysdeps/x86/dl-cet.c: Likewise.
11292 * sysdeps/x86/dl-procruntime.c: Likewise.
11293 * sysdeps/x86/dl-prop.h: Likewise.
11294 * sysdeps/x86/libc-start.h: Likewise.
11295 * sysdeps/x86/link_map.h: Likewise.
11296 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11297 _CET_ENDBR.
11298 (_dl_runtime_profile): Likewise.
11299 (_dl_runtime_resolve_shstk): New.
11300 (_dl_runtime_profile_shstk): Likewise.
11301 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11302 if CET is enabled.
11303 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11304 (CFLAGS-.os): Likewise.
11305 (CFLAGS-.op): Likewise.
11306 (CFLAGS-.oS): Likewise.
11307 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11308 is enabled.
11309 (tests-special): Add $(objpfx)check-cet.out.
11310 (cet-built-dso): New.
11311 (+$(cet-built-dso:=.note)): Likewise.
11312 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11313 ($(objpfx)check-cet.out): New.
11314 (generated): Add check-cet.out.
11315 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11316 <cet-tunables.h>.
11317 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11318 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11319 (init_cpu_features): Call get_cet_status to check CET status
11320 and update dl_x86_feature_1 with CET status. Call
11321 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11322 (set_x86_shstk). Disable and lock CET in libc.a.
11323 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11324 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11325 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11326 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11327 (_CET_ENDBR): Define if not defined.
11328 (ENTRY): Add _CET_ENDBR.
11329 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11330 x86_shstk.
11331 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11332 _CET_ENDBR.
11333 (_dl_runtime_profile): Likewise.
11334
11335 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11336
11337 [BZ #21895]
11338 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11339 restore r2 on longjmp.
11340 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11341 test list.
11342 Added rules to build test tst-setjmp-bug21895-static.
11343 Added module setjmp-bug21895 and rules to build a shared object from it.
11344 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11345 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11346
11347 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11348
11349 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11350 * benchtests/bench-strstr.c: Likewise.
11351 * string/memmem.c (FASTSEARCH): Define.
11352 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11353 Add support for FASTSEARCH.
11354 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11355 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11356 (FASTSEARCH): Define.
11357 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11358 * string/test-strstr.c: Likewise.
11359
11360 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11361
11362 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11363 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11364
11365 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11366 H.J. Lu <hongjiu.lu@intel.com>
11367
11368 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11369 (__longjmp): Restore shadow stack pointer if shadow stack is
11370 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11371 isn't defined for __longjmp_cancel.
11372 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11373 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11374 and SHADOW_STACK_POINTER_OFFSET is defined.
11375 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11376 (setjmp): Save shadow stack pointer if shadow stack is enabled
11377 and SHADOW_STACK_POINTER_OFFSET is defined.
11378 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11379 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11380 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11381 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11382 <jmp_buf-ssp.h>.
11383 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11384 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11385 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11386 Remove jmp_buf-ssp.sym.
11387 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11388 <jmp_buf-ssp.h>.
11389 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11390 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11391 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11392 jmp_buf-ssp.sym.
11393 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11394 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11395 (__longjmp): Restore shadow stack pointer if shadow stack is
11396 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11397 isn't defined for __longjmp_cancel.
11398 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11399 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11400 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11401
11402 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11403
11404 [BZ #22563]
11405 * nptl/pthread_create.c: Include <tls-setup.h>.
11406 (__pthread_create_2_1): Call tls_setup_tcbhead.
11407 * sysdeps/generic/tls-setup.h: New file.
11408 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11409 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11410 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11411 Likewise.
11412 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11413 to feature_1.
11414 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11415 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11416 (X86_FEATURE_1_SHSTK): Likewise.
11417 (CET_ENABLED): Likewise.
11418 (IBT_ENABLED): Likewise.
11419 (SHSTK_ENABLED): Likewise.
11420
11421 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11422
11423 [BZ #23208]
11424 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11425 (LOCALES): Likewise.
11426 * localedata/dsb_DE.UTF-8.in: New file.
11427 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11428
11429 2018-07-12 Florian Weimer <fweimer@redhat.com>
11430
11431 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11432 __mprotect, not mprotect.
11433
11434 2018-07-11 Florian Weimer <fweimer@redhat.com>
11435
11436 * io/Makefile (headers): Add bits/statx.h.
11437
11438 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11439
11440 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11441 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11442 and headers.
11443 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11444 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11445 for utf8_gen.py
11446
11447 2018-07-10 Florian Weimer <fweimer@redhat.com>
11448
11449 * io/Makefile (routines): Add statx.
11450 (tests-internal): Add tst-statx.
11451 * io/Versions (GLIBC_2.28): Export statx.
11452 * io/bits/statx.h: New file.
11453 * io/sys/stat.h [__USE_GNU]: Include it.
11454 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11455 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11456 Define.
11457 * io/statx.c: New file.
11458 * io/statx_generic.: Likewise.
11459 * io/tst-statx.: Likewise.
11460 * include/bits/statx.h: Likewise.
11461 * sysdeps/unix/sysv/linux/kernel-features.h
11462 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11463 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11464 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11465 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11466 Undefine.
11467 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11468 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11469 * sysdeps/unix/sysv/linux/statx.c: New file.
11470 * manual/filesys.texi: Note that statx is undocumented.
11471 * sysdeps/**/libc*.abilist: Update.
11472
11473 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11474
11475 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11476 a kernel issue which lead to test failure in some cases.
11477
11478 2018-07-10 Florian Weimer <fweimer@redhat.com>
11479
11480 [BZ #23036]
11481 * posix/regexec.c (check_node_accept_bytes): When comparing
11482 weights, do not compare an extra byte after the end of the
11483 weights.
11484
11485 2018-07-10 Florian Weimer <fweimer@redhat.com>
11486
11487 * libio/readline.c: Fix copyright year.
11488 * libio/tst-readline.c Likewise.
11489 * nss/tst-nss-files-hosts-getent.c: Likewise.
11490
11491 2018-07-06 Florian Weimer <fweimer@redhat.com>
11492
11493 [BZ #18991]
11494 * nss/nss_files/files-XXX.c (internal_getent): Use
11495 __libc_readline_unlocked. Seek back to the start of the line if
11496 parsing failes with ERANGE.
11497 (get_contents_ret, get_contents): Remove.
11498 * nss/tst-nss-files-hosts-getent.c: New file.
11499 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11500 (tst-nss-files-hosts-getent): Link with -ldl.
11501
11502 2018-07-06 Florian Weimer <fweimer@redhat.com>
11503
11504 * include/stdio.h (__libc_readline_unlocked): Declare.
11505 (__ftello64, __fseeko64): Declare aliases.
11506 * libio/readline.c: New file.
11507 * libio/tst-readline.c: Likewise.
11508 (routines): Add readline.
11509 (tests-internal): Add tst-readlime.
11510 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11511 __libc_readline_unlocked.
11512 * libio/fseeko.c (__fseeko): Rename from fseeko.
11513 (fseeko): Add alias.
11514 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11515 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11516 (fseeko64): Add alias.
11517 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11518 * libio/ftello64.c (__ftello64): Rename from ftello64.
11519 (ftello64): Add alias.
11520
11521 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11522
11523 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11524 HWCAP_ATOMICS.
11525
11526 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11527
11528 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11529 Use dl_hwcap without masking.
11530 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11531 Remove HWCAP_CPUID.
11532
11533 2018-07-06 Florian Weimer <fweimer@redhat.com>
11534
11535 * conform/conformtest.pl (checknamespace): Escape literal braces
11536 in regular expressions.
11537
11538 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11539
11540 * sysdeps/x86/cpu-features.c (get_common_indeces):
11541 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11542 * sysdeps/x86/cpu-features.c (init_cpu_features):
11543 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11544
11545 2018-07-05 Florian Weimer <fweimer@redhat.com>
11546
11547 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11548 protector.
11549 (CFLAGS-elf-init.oS): Likewise.
11550
11551 2018-07-05 Florian Weimer <fweimer@redhat.com>
11552 Carlos O'Donell <carlos@redhat.com>
11553
11554 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11555 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11556 with stack protector enabled because there is no risk of infinite
11557 recursion.
11558
11559 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11560
11561 [BZ #19818]
11562 [BZ #23307]
11563 * libc-abis (ABSOLUTE): New ABI.
11564 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11565 * NEWS: Mention the new ABI.
11566
11567 2018-07-05 Florian Weimer <fweimer@redhat.com>
11568
11569 [BZ # 17662]
11570 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11571 (RENAME_WHITEOUT): Define.
11572 [__USE_GNU] (renameat2): Declare.
11573 * stdio-common/Makefile (routines): Add renameat2.
11574 (tests): Add tst-renameat2.
11575 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11576 * stdio-common/renameat2.c: New file.
11577 * stdio-common/tst-renameat2.c: Likewise.
11578 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11579 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11580 undocumented.
11581 * sysdeps/unix/sysv/linux/kernel-features.h
11582 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11583 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11584 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11585 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11586 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11587 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11588 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11589 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11590 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11591 * include/stdio.h (__renameat): Add alias for renameat.
11592 * stdio-common/renameat.c (__renameat): Rename from renameat.
11593 Add hidden definition and alias.
11594 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11595 * sysdeps/mach/hurd/renameat.c: Likewise.
11596 * sysdeps/**/libc*.abilist: Add renameat2.
11597
11598 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11599
11600 * posix/bug-regex33.c: Fix build after regex sync.
11601
11602 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11603
11604 [BZ #23164]
11605 * localedata/tst-langinfo-setlocale.c: New file.
11606 * localedata/tst-langinfo-setlocale-static.c: New file.
11607 * localedata/tst-langinfo-newlocale.c: New file.
11608 * localedata/tst-langinfo-newlocale-static.c: New file.
11609 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11610 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11611 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11612 (tests-static): Remove tst-langinfo-static. Add
11613 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11614 (tests-special): Remove $(objpfx)tst-langinfo.out,
11615 $(objpfx)tst-langinfo-static.out. Add
11616 $(objpfx)tst-langinfo-setlocale.out,
11617 $(objpfx)tst-langinfo-newlocale.out,
11618 $(objpfx)tst-langinfo-setlocale-static.out,
11619 $(objpfx)tst-langinfo-newlocale-static.out.
11620 ($(objpfx)tst-langinfo.out): Remove.
11621 ($(objpfx)tst-langinfo-static.out): Remove.
11622 ($(objpfx)tst-langinfo-newlocale.out): New target.
11623 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11624 (test-xfail-tst-langinfo-newlocale-static): Add.
11625 ($(objpfx)tst-langinfo-setlocale.out): New target.
11626 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11627 * localedata/tst-langinfo.c: Call test_locale.
11628 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11629 data.
11630
11631 2018-07-04 Florian Weimer <fweimer@redhat.com>
11632
11633 testrun.sh: Implement --tool=strace, --tool=valgrind
11634 * Makefile (testrun-script): Define variable.
11635 (testrun.sh): Use variable.
11636 * manual/install.texi (Tools for Compilation): make 4.0 or later
11637 is required.
11638 * configure.ac: Check for make 4.0 or later.
11639 * INSTALL: Regenerate.
11640 * configure: Likewise.
11641
11642 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11643
11644 [BZ #23233]
11645 [BZ #21163]
11646 [BZ #18986]
11647 [BZ #13762]
11648 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11649 * posix/PCRE.tests: Remove invalid test.
11650 * posix/bug-regex28.c: Fix expected values for used syntax.
11651 * posix/bug-regex37.c: New file.
11652 * posix/bug-regex38.c: Likewise.
11653 * posix/regcomp.c: Sync with gnulib.
11654 * posix/regex.c: Likewise.
11655 * posix/regex.h: Likewise.
11656 * posix/regex_internal.c: Likewise.
11657 * posix/regex_internal.h: Likewise.
11658 * posix/regexec.c: Likewise.
11659
11660 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11661
11662 [BZ #23308]
11663 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11664 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11665 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11666 * localedata/unicode-gen/PropList.txt: likewise.
11667 * localedata/unicode-gen/UnicodeData.txt: likewise.
11668 * localedata/charmaps/UTF-8: Regenerate.
11669 * localedata/locales/i18n_ctype: likewise.
11670 * localedata/locales/tr_TR: likewise.
11671 * localedata/locales/translit_circle: likewise.
11672 * localedata/locales/translit_cjk_compat: likewise.
11673 * localedata/locales/translit_combining: likewise.
11674 * localedata/locales/translit_compat: likewise.
11675 * localedata/locales/translit_font: likewise.
11676 * localedata/locales/translit_fraction: likewise.
11677
11678 2018-07-03 Florian Weimer <fweimer@redhat.com>
11679
11680 [BZ #23363]
11681 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11682 * stdio-common/tst-printf.sh: Adjust expected output.
11683 * LICENSES: Update.
11684
11685 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11686
11687 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11688 symbol.
11689
11690 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11691
11692 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11693 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11694 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11695 * stdio-common/tst-printfsz-islongdouble.c: New file.
11696 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11697 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11698 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11699 [subdir == stdio-common] (tests-internal): Add
11700 test-printf-size-ieee128, and test-printf-size-ibm128.
11701 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11702 (CFLAGS-test-printf-size-ibm128.c): New variables.
11703 [subdir == stdio-common] (tests-special): Add
11704 $(objpfx)test-printf-size-ieee128.out and
11705 $(objpfx)test-printf-size-ibm128.out.
11706 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11707 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11708 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11709 __printf_sizeieee128.
11710 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11711 New file.
11712 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11713 Likewise.
11714 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11715 Likewise.
11716
11717 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11718
11719 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11720 (exp2f_inline): Likewise.
11721 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11722 (__math_uflowf): Likewise.
11723 (__math_may_uflowf): Likewise.
11724 (__math_divzerof): Likewise.
11725 (__math_invalidf): Likewise.
11726 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11727 (__math_oflowf): Likewise.
11728 (__math_uflowf): Likewise.
11729 (__math_may_uflowf): Likewise.
11730 (__math_divzerof): Likewise.
11731 (__math_invalidf): Likewise.
11732
11733 2018-06-29 DJ Delorie <dj@redhat.com>
11734 Carlos O'Donell <carlos@redhat.com>
11735
11736 [BZ #23329]
11737 * include/libc-symbols.h: Comment the freeres framework.
11738 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11739 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11740 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11741 * dlfcn/dlerror.c: Include libc-symbols.h
11742 (__dlerror_main_freeres): New function.
11743 * dlfcn/dlfreeres.c: New file.
11744 * dlfcn/sdlfreeres.c: New file.
11745 * include/dlfcn.h: Declare __dlerror_main_freeres.
11746 * malloc/set-freeres.c: Declare __libdl_freeres, and
11747 __libpthread_freeres.
11748 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11749 the releavant libraries are loaded.
11750 * malloc/thread-freeres.c: Add comments.
11751 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11752 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11753 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11754 (__free_stacks): Rename to...
11755 (free_stacks): ...this. Mark static.
11756 (queue_stack): Call free_stacks.
11757 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11758 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11759 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11760 ptr_freeres element from struct.
11761 (pthread_functions): Remove .ptr_freeres from struct initializer.
11762 [SHARED] (nptl_freeres): Remove.
11763 * nptl/nptlfreeres.c: New file.
11764 * nptl/pthreadP.h
11765 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11766 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11767 attribute_hidden.
11768 (__free_stacks): Rename to...
11769 (__nptl_stacks_freeres): ...this.
11770 (__shm_directory_freeres): Declare.
11771 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11772 (__nptl_unwind_freeres): ...this.
11773 * resolv/res-close.c: Add comment.
11774 * resolv/resolv_conf.c: Include libc-symbols.h.
11775 * string/strerror_l.c: Include libc-symbols.h.
11776 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11777 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11778 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11779 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11780
11781 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11782
11783 * stdlib/tst-strfmon_l.c: Add tests for long double.
11784
11785 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11786
11787 [BZ #23208]
11788 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11789 * localedata/locales/dsb_DE: New file.
11790
11791 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11792
11793 [BZ #23140]
11794 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11795 genitive case).
11796 (alt_mon): New entry, import from CLDR (nominative case).
11797
11798 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11799
11800 [BZ #22996]
11801 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11802
11803 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11804
11805 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11806 Use vector registers.
11807
11808 * sysdeps/aarch64/multiarch/memmove_falkor.S
11809 (__memcpy_falkor): Use vector registers.
11810
11811 2018-06-29 Martin Sebor <msebor@redhat.com>
11812
11813 * manual/stdio.texi (Customizing Printf): Mention interaction
11814 with GCC built-ins.
11815
11816 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11817
11818 [BZ #23307]
11819 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11820 `st_value' is 0 if `st_shndx' is SHN_ABS.
11821 * elf/tst-absolute-zero.c: New file.
11822 * elf/tst-absolute-zero-lib.c: New file.
11823 * elf/tst-absolute-zero-lib.lds: New file.
11824 * elf/Makefile (tests): Add `tst-absolute-zero'.
11825 (modules-names): Add `tst-absolute-zero-lib'.
11826 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11827 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11828 ($(objpfx)tst-absolute-zero: New dependency.
11829
11830 2018-06-29 Zack Weinberg <zackw@panix.com>
11831
11832 * configure.ac: New command-line option --disable-crypt.
11833 Force --disable-nss-crypt when --disable-crypt is given, with a
11834 warning if it was explicitly enabled.
11835 * configure: Regenerate.
11836 * config.make.in: New boolean substitution variable $(build-crypt).
11837 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11838 when $(build-crypt).
11839 * manual/install.texi: Document --disable-crypt.
11840 * INSTALL: Regenerate.
11841
11842 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11843 which is never set.
11844 * conform/Makefile: Only include libcrypt.a in
11845 linknamespace-libs-xsi and linknamespace-libs-XPG4
11846 when $(build-crypt).
11847 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11848 USE_CRYPT to 1 when $(build-crypt).
11849 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11850 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11851 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11852
11853 2018-06-29 Zack Weinberg <zackw@panix.com>
11854
11855 * crypt/crypt.h, posix/unistd.h: Update comments and
11856 prototypes for crypt and crypt_r.
11857
11858 * manual/crypt.texi (Cryptographic Functions): New initial
11859 exposition.
11860 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11861 (Unpredictable Bytes): Improve initial exposition. Clarify error
11862 behavior of getentropy and getrandom.
11863 * manual/examples/genpass.c: Generate a salt using getentropy
11864 instead of the current time. Use hash $5$ (SHA-2-256).
11865 * manual/examples/testpass.c: Demonstrate validation against
11866 hashes generated with three different one-way functions.
11867
11868 * manual/intro.texi: crypt.texi does not need an overview
11869 anymore.
11870
11871 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11872 * manual/terminal.texi: Consistently refer to "passphrases"
11873 * instead of "passwords", and to the "user database" instead
11874 * of the "password database".
11875 * manual/users.texi: Similarly. Add notes about how actual
11876 passphrase hashes are now stored in the shadow database.
11877 Remove 20-year-old junk todo note.
11878
11879 2018-06-29 Zack Weinberg <zackw@panix.com>
11880
11881 * manual/crypt.texi: Use a normal top-level @node declaration.
11882 Move most of the introductory text to the 'crypt' section.
11883 Move the example programs below the @deftypefun for 'crypt_r'.
11884 Move the 'getpass' section...
11885 * manual/terminal.texi: ...here.
11886
11887 2018-06-29 Zack Weinberg <zackw@panix.com>
11888 Florian Weimer <fweimer@redhat.com>
11889
11890 * posix/unistd.h: Do not declare encrypt.
11891 (_XOPEN_CRYPT): Remove macro definition.
11892 (crypt): Declare only for _USE_MISC.
11893 * stdlib/stdlib.h: Do not declare setkey.
11894 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11895 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11896
11897 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11898 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11899 into compat symbols. Don't define initial_perm if it's not
11900 going to be used.
11901 * crypt/cert.c: Link explicitly with the expected versions for
11902 setkey and encrypt. If they are not available at all, mark
11903 the test as unsupported.
11904
11905 * sunrpc/des_crypt.c: Unconditionally block linkage with
11906 cbc_crypt and ecb_crypt for new binaries.
11907 * sunrpc/des_soft.c: Unconditionally block linkage with
11908 des_setparity for new binaries.
11909
11910 * manual/crypt.texi: Remove the entire "DES Encryption"
11911 section. Also remove the paragraph talking about FIPS 140-2
11912 from the introduction.
11913 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11914 of libgcrypt for "real" encryption, not DES.
11915 * manual/conf.texi (Constants for Sysconf): Mention that
11916 _XOPEN_CRYPT is no longer impelemented.
11917
11918 * conform/data/unistd.h-data: Remove crypt function declaration.
11919
11920 2018-06-29 Florian Weimer <fweimer@redhat.com>
11921
11922 [BZ #23351]
11923 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11924 (disallow_malloc_check): Remove variable.
11925 (__malloc_check_init): Adjust.
11926 (malloc_set_state): Update comment.
11927 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11928 declarations.
11929
11930 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11931
11932 [BZ #23140]
11933 * localedata/locales/ast_ES (mon): Rename to...
11934 (alt_mon): This.
11935 (mon): Import from CLDR (genitive case).
11936
11937 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11938 Jakub Sitnicki <jkbs@redhat.com>
11939
11940 [BZ #21812]
11941 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11942 on NLM_F_DUMP_INTR.
11943
11944 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11945
11946 * manual/llio.texi: Remove spurious space.
11947
11948 2018-06-28 Florian Weimer <fweimer@redhat.com>
11949
11950 [BZ #23349]
11951 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11952 _STRUCT_TIMESPEC.
11953
11954 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11955
11956 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
11957 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
11958 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11959 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11960 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11961 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11962 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11963
11964 2018-06-27 Maciej W. Rozycki <macro@mips.com>
11965
11966 [BZ #23266]
11967 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11968 Copy and null-terminate entries that are not terminated, in
11969 addition to empty ones.
11970
11971 2018-06-27 Florian Weimer <fweimer@redhat.com>
11972
11973 [BZ #18023]
11974 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11975 (extend_alloca_account): Remove.
11976 * manual/stdio.texi (Variable Arguments Output): Update comment.
11977
11978 2018-06-27 Joseph Myers <joseph@codesourcery.com>
11979
11980 * nptl/sockperf.c: Remove file.
11981
11982 2018-06-27 Florian Weimer <fweimer@redhat.com>
11983
11984 [BZ #18023]
11985 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11986 scratch_buffer instead of extend_alloca.
11987
11988 2018-06-27 Florian Weimer <fweimer@redhat.com>
11989
11990 [BZ #18023]
11991 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11992 scratch_buffer instead of extend_alloca. Update comments.
11993
11994 2018-06-27 Florian Weimer <fweimer@redhat.com>
11995
11996 [BZ #18023]
11997 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11998 instead of extend_alloca.
11999
12000 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12001
12002 [BZ #13888]
12003 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12004 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12005 /tmp.
12006 * scripts/test-installation.pl: Put temporary files in build
12007 directory, not /tmp.
12008 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12009 (CFLAGS-bug4.c): Likewise.
12010 (CFLAGS-bug5.c): Likewise.
12011 (CFLAGS-test-fseek.c): Likewise.
12012 (CFLAGS-test-popen.c): Likewise.
12013 (CFLAGS-test_rdwr.c): Likewise.
12014 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12015 /tmp.
12016 * stdio-common/bug4.c (main): Likewise.
12017 * stdio-common/bug5.c (main): Likewise.
12018 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12019 * stdio-common/test-popen.c (do_test): Likewise.
12020 * stdio-common/test_rdwr.c (main): Likewise.
12021
12022 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12023
12024 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12025 (sem_open): Set sem.newsem.pad to zero for valgrind.
12026
12027 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12028
12029 [BZ #20251]
12030 * NEWS: Mention fcntl64 addition.
12031 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12032 * login/utmp_file.c: Likewise.
12033 * sysdeps/posix/fdopendir.c: Likewise.
12034 * sysdeps/posix/opendir.c: Likewise.
12035 * sysdeps/unix/pt-fcntl.c: Likewise.
12036 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12037 __fcntl64_nocancel_adjusted): New prototype.
12038 (__fcntl_nocancel_adjusted): Remove prototype.
12039 * io/Makefile (routines): Add fcntl64.
12040 (CFLAGS-fcntl64.c): New rule.
12041 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12042 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12043 * io/fcntl.h (fcntl64): Add prototype and redirect if
12044 __USE_FILE_OFFSET64 is defined.
12045 * io/fcntl64.c: New file.
12046 * manual/llio.text: Add a note for which commands fcntl acts a
12047 cancellation point.
12048 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12049 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12050 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12051 New symbols.
12052 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12053 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12054 non-LFS case.
12055 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12056 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12057 to __fcntl64_nocancel.
12058 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12059 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12060 to __fcntl64_nocancel.
12061 * sysdeps/generic/not-cancel.h: Likewise.
12062 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12063 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12064 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12065 (fcntl64): New symbol.
12066 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12073 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12074 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12077 fcntl64): Likewise.
12078 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12080 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12088 Likewise.
12089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12090 Likewise.
12091 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12094
12095 2018-06-26 Florian Weimer <fweimer@redhat.com>
12096
12097 Run thread shutdown functions in an explicit order.
12098 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12099 definition.
12100 (__libc_thread_freeres): Call thread shutdown functions
12101 explicitly.
12102 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12103 * include/string.h (__strerror_thread_freeres): Declare.
12104 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12105 arena_thread_freeres. No longer static. Remove thread shutdown
12106 hook registration.
12107 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12108 Declare.
12109 * resolv/res-close.c (__res_thread_freeres): Renamed from
12110 res_thread_freeres. No longer static. Remove thread shutdown
12111 hook registration.
12112 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12113 * resolv/resolv_conf.c (freeres): Remove incorrect section
12114 attribute and use libc_freeres_fn.
12115 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12116 strerror_thread_freeres. No longer static. Remove thread
12117 shutdown hook registration.
12118 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12119 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12120 shutdown hook registration.
12121 * Makerules (shlib.lds): Do not provide section boundary symbols
12122 for __libc_thread_subfreeres.
12123 * manual/memory.texi (Basic Allocation): Update comment.
12124
12125 2018-06-26 Florian Weimer <fweimer@redhat.com>
12126
12127 Remove always-defined _RPC_THREAD_SAFE_ macro.
12128 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12129 Do not define _RPC_THREAD_SAFE_.
12130 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12131 conditional.
12132 * sunrpc/clnt_perr.c: Likewise.
12133 * sunrpc/clnt_raw.c: Likewise.
12134 * sunrpc/clnt_simp.c: Likewise.
12135 * sunrpc/key_call.c: Likewise.
12136 * sunrpc/rpc_common.c: Likewise.
12137 * sunrpc/rpc_main.c: Likewise.
12138 * sunrpc/rpc_thread.c: Likewise.
12139 * sunrpc/svc.c: Likewise.
12140 * sunrpc/svc_raw.c: Likewise.
12141 * sunrpc/svc_simple.c: Likewise.
12142 * sumrpc/svcauth_des.c: Likewise.
12143
12144 2018-06-26 Florian Weimer <fweimer@redhat.com>
12145
12146 * libio/Makefile (tests-internal): Add tst-vtables,
12147 tst-vtables-interposed.
12148 * libio/tst-vtables.c: New file.
12149 * libio/tst-vtables-common.c: Likewise.
12150 * libio/tst-vtables-interposed.c: Likewise.
12151
12152 2018-06-26 Florian Weimer <fweimer@redhat.com>
12153
12154 * support/support_test_main.c (support_test_main): Only call
12155 setvbuf if not disables.
12156 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12157 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12158
12159 2018-06-26 Florian Weimer <fweimer@redhat.com>
12160
12161 [BZ #23313]
12162 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12163
12164 2018-06-25 Florian Weimer <fweimer@redhat.com>
12165
12166 [BZ #18023]
12167 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12168 Use struct scratch_buffer instead of extend_alloca.
12169
12170 2018-06-25 Florian Weimer <fweimer@redhat.com>
12171
12172 [BZ #18023]
12173 * nss/getent.c (initgroups_keys): Use dynarray instead of
12174 extend_alloca.
12175
12176 2018-06-25 Florian Weimer <fweimer@redhat.com>
12177
12178 [BZ #18023]
12179 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12180 Use struct scratch_buffer instead of extend_alloca.
12181
12182 2018-06-25 Florian Weimer <fweimer@redhat.com>
12183
12184 [BZ #18023]
12185 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12186 back to malloc directly, without stack allocations.
12187
12188 2018-06-25 Florian Weimer <fweimer@redhat.com>
12189
12190 [BZ #18023]
12191 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12192 of extend_alloca.
12193
12194 2018-06-25 Florian Weimer <fweimer@redhat.com>
12195
12196 [BZ #18023]
12197 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12198 of extend_alloca.
12199 * nscd/hstcache.c (addhstbyX): Likewise.
12200 * nscd/pwdcache.c (addpwbyX): Likewise.
12201 * nscd/servicescache.c (addservbyX): Likewise.
12202
12203 2018-06-25 Florian Weimer <fweimer@redhat.com>
12204
12205 [BZ #18023]
12206 * nscd/connections.c (read_cmdline): New function.
12207 (restart): Use it. Update comment.
12208
12209 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12210
12211 [BZ #23140]
12212 * localedata/locales/csb_PL (mon): Rename to...
12213 (alt_mon): This.
12214 (abmon): Rename to...
12215 (ab_alt_mon): This.
12216 (mon): Add with proper genitive forms, copy from Wikipedia.
12217 (abmon): Likewise.
12218
12219 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12220
12221 [BZ #19485]
12222 * localedata/locales/csb_PL (mon): Fix typos:
12223 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12224 (yesstr): Add, value is "jo".
12225 (nostr): Add, value is "nié".
12226
12227 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12228
12229 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12230 all log1p and significand functions on m680x0.
12231 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12232 of s_significand.c..
12233 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12234 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12235 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12236 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12237 s_log1p.c and include it..
12238
12239 2018-06-21 Vincent Chen <vincentc@andestech.com>
12240
12241 * elf/elf.h (R_NDS32_NONE): New define.
12242 (R_NDS32_32_RELA): Likewise.
12243 (R_NDS32_COPY): Likewise.
12244 (R_NDS32_GLOB_DAT): Likewise.
12245 (R_NDS32_JUMP_SLOT): Likewise.
12246 (R_NDS32_RELATIVE): Likewise.
12247 (R_NDS32_TLS_TPOFF): Likewise.
12248 (R_NDS32_TLS_DESC): Likewise.
12249
12250 2018-06-21 Mark Wielaard <mark@klomp.org>
12251
12252 * elf/elf.h (R_BPF_MAP_FD): Removed.
12253 (R_BPF_64_64, R_BPF_64_32): New.
12254
12255 2018-06-21 Florian Weimer <fweimer@redhat.com>
12256
12257 [BZ #23253]
12258 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12259 Renamed from libc_feholdsetround_ctx.
12260 (default_libc_feresetround_ctx): Renamed from
12261 libc_feresetround_ctx.
12262 (default_libc_feholdsetround_noex_ctx): Renamed from
12263 libc_feholdsetround_noex_ctx.
12264 (default_libc_feresetround_noex_ctx): Renamed from
12265 libc_feresetround_noex_ctx.
12266 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12267 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12268 forwardning to the old implementations under the new names.
12269 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12270 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12271 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12272 (libc_feresetround_ctx): Forward to default implements for i386
12273 and MATH_SET_BOTH_ROUNDING_MODES.
12274 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12275 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12276
12277 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12278
12279 * string/tst-cmp.c: Include <libc-diag.h>.
12280 (strncmp_max): Disable -Wstringop-overflow= around call to
12281 strncmp.
12282 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12283 strncasecmp.
12284
12285 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12286 (main): Disable -Wunused-value around call to strpbrk.
12287 * string/bug-strspn1.c: Include <libc-diag.h>.
12288 (main): Disable -Wunused-value around call to strspn.
12289
12290 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12291 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12292
12293 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12294 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12295
12296 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12297
12298 * math/Makefile (libm-calls): Move s_significandF to...
12299 (gen-libm-calls): ... here.
12300 * math/s_significand_template.c: New file.
12301 * math/s_significand.c: Removed.
12302 * math/s_significandf.c: Removed.
12303 * math/s_significandl.c: Removed.
12304 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12305 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12306
12307 * math/e_exp2_template.c (declare_mgen_finite_alias,
12308 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12309 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12310 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12311
12312 2018-06-20 Florian Weimer <fweimer@redhat.com>
12313
12314 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12315
12316 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12317
12318 [BZ #23280]
12319 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12320 floating-point number to strtod functions rather than possibly
12321 negating result of those functions.
12322 * stdio-common/tst-scanf-round.c: New file.
12323 * stdio-common/Makefile (tests): Add tst-scanf-round.
12324 ($(objpfx)tst-scanf-round): Depend on $(libm).
12325
12326 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12327
12328 * sysdeps/mach/hurd/localplt.data: Move to...
12329 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12330 R_386_GLOB_DAT like on Linux i386.
12331
12332 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12333
12334 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12335 (SHM_STAT_ANY): New macro.
12336 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12337 (SHM_STAT_ANY): Likewise.
12338 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12339 (SHM_STAT_ANY): Likewise.
12340 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12341 (SHM_STAT_ANY): Likewise.
12342 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12343 (SHM_STAT_ANY): Likewise.
12344 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12345 (SHM_STAT_ANY): Likewise.
12346 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12347 (SHM_STAT_ANY): Likewise.
12348 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12349 (SHM_STAT_ANY): Likewise.
12350 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12351 (SHM_STAT_ANY): Likewise.
12352 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12353 (SHM_STAT_ANY): Likewise.
12354 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12355 (SHM_STAT_ANY): Likewise.
12356 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12357 (SHM_STAT_ANY): Likewise.
12358
12359 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12360 (SEM_STAT_ANY): New macro.
12361 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12362 (SEM_STAT_ANY): Likewise.
12363 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12364 (SEM_STAT_ANY): Likewise.
12365 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12366 (SEM_STAT_ANY): Likewise.
12367 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12368 (SEM_STAT_ANY): Likewise.
12369 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12370 (SEM_STAT_ANY): Likewise.
12371 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12372 (SEM_STAT_ANY): Likewise.
12373 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12374 (SEM_STAT_ANY): Likewise.
12375 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12376 (SEM_STAT_ANY): Likewise.
12377 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12378 (SEM_STAT_ANY): Likewise.
12379
12380 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12381 (MSG_STAT_ANY): New macro.
12382 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12383 (MSG_STAT_ANY): Likewise.
12384 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12385 (MSG_STAT_ANY): Likewise.
12386 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12387 (MSG_STAT_ANY): Likewise.
12388 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12389 (MSG_STAT_ANY): Likewise.
12390 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12391 (MSG_STAT_ANY): Likewise.
12392 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12393 (MSG_STAT_ANY): Likewise.
12394 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12395 (MSG_STAT_ANY): Likewise.
12396 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12397 (MSG_STAT_ANY): Likewise.
12398 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12399 (MSG_STAT_ANY): Likewise.
12400
12401 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12402 (MAP_TYPE): Change value to 0x2b.
12403
12404 2018-06-18 Florian Weimer <fweimer@redhat.com>
12405
12406 [BZ #15722]
12407 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12408 socket with SOCK_CLOEXEC.
12409
12410 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12411
12412 [BZ #23303]
12413 * sysdeps/powerpc/powerpc64/le/Makefile
12414 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12415 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12416 (gnulib-tests): Also add $(f128-loader-link) for
12417 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12418
12419 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12420
12421 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12422 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12423 of sendfile.
12424 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12425 (sendfile64): New strong alias.
12426 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12427 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12428 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12429 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12430 attribute.
12431 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12432 ___pthread_get_cleanup_stack.
12433 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12434 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12435 * mach/shortcut.awk: Make syscall stubs include
12436 <mach-shortcuts-hidden.h> and add hidden definition.
12437 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12438 (__mach_msg): Add hidden prototype.
12439 * mach/msg.c: Include <mach.h>.
12440 (__mach_msg): Add hidden definition.
12441 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12442 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12443 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12444 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12445 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12446 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12447 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12448 prototype and definition.
12449 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12450 hidden target for _hurd_self_sigstate.
12451
12452 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12453
12454 [BZ #23007]
12455 * stdlib/tst-strtod-nan-sign-main.c: New file.
12456 * stdlib/tst-strtod-nan-sign.c: Likewise.
12457 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12458 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12459 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12460 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12461 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12462
12463 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12464
12465 [BZ #23007]
12466 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12467 appropriate sign.
12468
12469 2018-06-14 Florian Weimer <fweimer@redhat.com>
12470
12471 [BZ #23290]
12472 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12473 that the result stays within the ISO-8859-1 range.
12474 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12475 characters are defined in IBM273.
12476
12477 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12478
12479 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12480 __mach_task_self): Remove attribute_hidden.
12481
12482 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12483
12484 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12485 ignore -Wrestrict for one test.
12486
12487 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12488 Szabolcs Nagy <szabolcs.nagy@arm.com>
12489
12490 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12491
12492 2018-06-14 Florian Weimer <fweimer@redhat.com>
12493
12494 * scripts/update-abilist.sh: Accept empty list of files to patch.
12495
12496 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12497
12498 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12499 test-xfail-check-abi-libmachuser): Add.
12500 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12501 __libc_read and __libc_write to __read and __write.
12502 * sysdeps/hurd/include/hurd/port.h: New file.
12503 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12504 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12505 __thread_switch, __evc_wait): Move declarations to...
12506 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12507 attribute_hidden.
12508 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12509 use PLT to call _hurd_self_sigstate.
12510
12511 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12512
12513 [BZ #23279]
12514 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12515 MAX_EXP as overflowing.
12516 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12517 overflow flag.
12518 (round_str): Output also whether result overflows in each rounding
12519 mode.
12520 * stdlib/tst-strtod-round-data: Add more tests.
12521 * stdlib/tst-strtod-round-data.h: Regenerated.
12522 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12523 (TEST): Handle extra arguments for overflow flags.
12524 (struct test_overflow): New type.
12525 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12526 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12527 (test_in_one_mode): Take argument with overflow information.
12528 (do_test): Update calls to test_in_one_mode.
12529
12530 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12531
12532 * elf/dl-load (_dl_dst_substitute): Correct comment.
12533 (_dl_dst_count): Likewise.
12534
12535 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12536 lll_futex_timed_wait.
12537
12538 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12539
12540 [BZ #23277]
12541 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12542 attribute.
12543 * math/test-nan-const.c: New file.
12544 * math/Makefile (tests): Add test-nan-const.
12545 (CFLAGS-test-nan-const.c): New variable.
12546
12547 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12548
12549 * benchtests/scripts/compare_strings.py (process_results): Add
12550 funcs argument. Compare only functions which are selected.
12551 (main): Check if base function is among selected functions.
12552 Pass selected functions to process_results.
12553 (__main__): Add -f/--functions argument.
12554
12555 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12556 Hongbo Zhang <hongbo.zhang@linaro.org>
12557
12558 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12559 __memcpy_falkor for phecda core.
12560 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12561 __memmove_falkor for phecda core.
12562 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12563 __memset_falkor for phecda core.
12564 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12565 for phecda core.
12566 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12567 macro to identify phecda core.
12568
12569 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12570 Andreas Schwab <schwab@suse.de>
12571 Dmitry V. Levin <ldv@altlinux.org>
12572 Florian Weimer <fweimer@redhat.com>
12573
12574 [BZ #23102]
12575 [BZ #21942]
12576 [BZ #18018]
12577 [BZ #23259]
12578 CVE-2011-0536
12579 * elf/dl-dst.h: Remove DL_DST_COUNT.
12580 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12581 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12582 (is_dst): Comment. Support ELF gABI.
12583 (_dl_dst_count): Comment. Simplify and count DSTs.
12584 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12585 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12586 locals.
12587
12588 2018-06-12 Zack Weinberg <zackw@panix.com>
12589
12590 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12591 * sysdeps/unix/sysv/linux/dl-sysdep.c
12592 Include not-cancel.h. Use __close_nocancel instead of __close,
12593 __open64_nocancel instead of __open, __read_nocancel instead of
12594 __libc_read, and __write_nocancel instead of __libc_write.
12595
12596 * csu/check_fds.c (check_one_fd)
12597 * sysdeps/posix/fdopendir.c (__fdopendir)
12598 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12599 instead of __fcntl and/or __libc_fcntl.
12600
12601 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12602 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12603 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12604 Use __open64_nocancel instead of __open_nocancel.
12605
12606 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12607 hidden_proto declarations to the end and issue them if either
12608 IS_IN(libc) or IS_IN(rtld).
12609 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12610 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12611 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12612 read_nocancel, waitpid_nocancel, write_nocancel.
12613
12614 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12615 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12616 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12617
12618 * nptl/pt-fcntl.c: New file.
12619 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12620 (libpthread-routines): Add pt-fcntl.
12621 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12622 (__libc_fcntl): Remove attribute_hidden.
12623 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12624 __fcntl_nocancel_adjusted, not fcntl_common.
12625 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12626 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12627 to fcntl_nocancel.c.
12628 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12631 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12632
12633 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12634 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12635 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12636 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12637 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12638 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12639 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12640 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12641 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12642 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12643 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12644 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12645 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12646 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12647 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12648 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12649 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12650 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12651 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12652 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12653
12654 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12655 libpthread-routines.
12656 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12657 defines nothing.
12658
12659 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12660 __libc_read, and __write instead of __libc_write. Define
12661 __open64 in addition to __open.
12662
12663 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12664
12665 [BZ #23250]
12666 [BZ #10686]
12667 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12668 to _private_tm[3] and add __glibc_reserved2.
12669 Add _Static_assert of offset of __private_ss == 0x30.
12670 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12671 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12672
12673 2018-06-12 Florian Weimer <fweimer@redhat.com>
12674
12675 x86: Make strncmp usable from rtld.
12676 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12677 __strncmp_ia32 if in libc (and not in rtld).
12678 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12679 strncmp if not in libc (and not to __strncmp_sse2).
12680
12681 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12682
12683 [BZ #23140]
12684 * localedata/locales/gd_GB (mon): Rename to...
12685 (alt_mon): This.
12686 (mon): Import from CLDR (genitive case).
12687 * localedata/locales/hsb_DE (mon): Rename to...
12688 (alt_mon): This.
12689 (mon): Import from CLDR (genitive case).
12690 * localedata/locales/wa_BE (mon): Rename to...
12691 (alt_mon): This.
12692 (mon): Add, fill with the proper genitive forms, but CLDR data
12693 is incomplete; completed according to the comments in this file.
12694 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12695
12696 * localedata/locales/wa_BE (country_name): Reword
12697 "Beljike" -> "Beldjike".
12698
12699 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12700
12701 [BZ #23272]
12702 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12703 cases of non-finite arguments.
12704 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12705
12706 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12707
12708 [BZ #23174]
12709 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12710
12711 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12712
12713 [BZ #23264]
12714 * include/unistd.h (__execvpex): New prototype.
12715 * posix/Makefile (tests): Add tst-spawn4.
12716 (tests-internal): Add tst-spawn4-compat.
12717 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12718 * posix/tst-spawn4-compat.c: New file.
12719 * posix/tst-spawn4.c: Likewise.
12720 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12721 binaries as shell scripts.
12722 * sysdeps/posix/spawni.c (__spawni): Likewise.
12723
12724 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12725
12726 [BZ #23145]
12727 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12728 ($(all-built-dso:=.dynsym): New target.
12729 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12730 ($(objpfx)check-initfini.out): New target.
12731 (generated): Add check-initfini.out.
12732 * scripts/check-initfini.awk: New file.
12733 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12734 (_fini): Likewise.
12735 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12736 (_fini): Likewise.
12737 * sysdeps/arm/crti.S (_init): Mark as hidden.
12738 (_fini): Likewise.
12739 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12740 (_fini): Likewise.
12741 * sysdeps/i386/crti.S (_init): Mark as hidden.
12742 (_fini): Likewise.
12743 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12744 (_fini): Likewise.
12745 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12746 (_fini): Likewise.
12747 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12748 (_fini): Likewise.
12749 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12750 (_fini): Likewise.
12751 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12752 (_fini): Likewise.
12753 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12754 (_fini): Likewise.
12755 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12756 (_fini): Likewise.
12757 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12758 (_fini): Likewise.
12759 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12760 (_fini): Likewise.
12761 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12762 (_fini): Likewise.
12763 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12764 (_fini): Likewise.
12765 * sysdeps/sh/crti.S (_init): Mark as hidden.
12766 (_fini): Likewise.
12767 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12768 (_fini): Likewise.
12769 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12770 (_fini): Likewise.
12771
12772 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12773
12774 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12775 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12776 and TF redirection to KFtype and KF only when the default
12777 long double type is not the IEEE 128-bit floating point type.
12778
12779 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12780
12781 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12782 macro.
12783 (HWCAP_USCAT): Likewise.
12784 (HWCAP_ILRCPC): Likewise.
12785 (HWCAP_FLAGM): Likewise.
12786 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12787 Increase to 28.
12788 (_dl_aarch64_cap_flags): Add new flag names.
12789
12790 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12791 (MAP_FIXED_NOREPLACE): New macro.
12792 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12793 (MAP_FIXED_NOREPLACE): Likewise.
12794 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12795 (MAP_FIXED_NOREPLACE): Likewise.
12796 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12797 (MAP_FIXED_NOREPLACE): Likewise.
12798 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12799 (MAP_FIXED_NOREPLACE): Likewise.
12800 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12801 (MAP_FIXED_NOREPLACE): Likewise.
12802 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12803 (MAP_FIXED_NOREPLACE): Likewise.
12804 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12805 (MAP_FIXED_NOREPLACE): Likewise.
12806 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12807 (MAP_FIXED_NOREPLACE): Likewise.
12808 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12809 (MAP_FIXED_NOREPLACE): Likewise.
12810 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12811 (MAP_FIXED_NOREPLACE): Likewise.
12812 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12813 (MAP_FIXED_NOREPLACE): Likewise.
12814 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12815 (MAP_FIXED_NOREPLACE): Likewise.
12816 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12817 (MAP_FIXED_NOREPLACE): Likewise.
12818 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12819 (MAP_FIXED_NOREPLACE): Likewise.
12820
12821 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12822 version to 4.17.
12823
12824 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12825
12826 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12827 version to 4.17
12828
12829 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12830
12831 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12832 int.
12833 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12834
12835 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12836
12837 * benchtests/scripts/compare_string.py: (process_results) Catch
12838 exception in non-existent base_func and catch exception in
12839 non-existent attribute.
12840 (parse_file) Catch exception if input file does not exist.
12841
12842 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12843
12844 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12845 options to avoid diff calculation and omit header, respectively.
12846 (main): process --no-diff and --no-header
12847
12848 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12849 H.J. Lu <hongjiu.lu@intel.com>
12850
12851 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12852 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12853 wcsncmp-sse2.
12854 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12855 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12856 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12857 and __wcsncmp_sse2.
12858 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12859 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12860 AVX unaligned load is fast and vzeroupper is preferred.
12861 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12862 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12863 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12864 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12865 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12866 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12867 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12868 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12869 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12870 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12871 is undefined.
12872
12873 2018-06-01 Florian Weimer <fweimer@redhat.com>
12874
12875 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12876 configuring with --disable-multi-arch, building with
12877 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12878 Haswell-era CPU.
12879
12880 2018-06-01 Florian Weimer <fweimer@redhat.com>
12881
12882 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12883 results from building with “-march=x86-64 -mtune=generic
12884 -mfpmath=sse” and running on a Haswell-era CPU.
12885
12886 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12887
12888 [BZ #18473]
12889 * soft-fp/sqrttf2.c: Remove file.
12890 * soft-fp/sqrtdf2.c: Move to ....
12891 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12892 <shlib-compat.h>.
12893 (__sqrtdf2): Make conditional on
12894 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12895 symbol.
12896 * soft-fp/sqrtsf2.c: Move to ....
12897 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12898 <shlib-compat.h>.
12899 (__sqrtsf2): Make conditional on
12900 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12901 symbol.
12902 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12903 (gcc-double-routines): Remove sqrtdf2.
12904 (gcc-quad-routines): Remove sqrttf2.
12905 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12906 Do not filter out sqrtsf2 and sqrtdf2.
12907 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12908 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12909
12910 2018-06-01 Florian Weimer <fweimer@redhat.com>
12911
12912 * sysdeps/generic/libcidn.abilist: Remove file.
12913
12914 2018-06-01 Florian Weimer <fweimer@redhat.com>
12915
12916 [BZ #23236]
12917 * libio/strfile.h (struct _IO_str_fields): Rename members to
12918 discourage their use and add comment.
12919 (_IO_STR_DYNAMIC): Remove unused macro.
12920 * libio/strops.c (_IO_str_init_static_internal): Do not use
12921 callback pointers. Call malloc and free.
12922 (_IO_str_overflow): Do not use callback pointers. Call malloc
12923 and free.
12924 (enlarge_userbuf): Likewise.
12925 (_IO_str_finish): Call free.
12926 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12927 _allocate_buffer_unused.
12928 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12929 and free.
12930 (enlarge_userbuf): Likewise.
12931 (_IO_wstr_finish): Call free.
12932 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12933 _allocate_buffer_unused, _free_buffer_unused.
12934 * libio/memstream.c (__open_memstream): Likewise.
12935 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12936 * libio/wmemstream.c (open_wmemstream): Likewise.
12937
12938 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12939
12940 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12941 AMD Ryzen 7 1800X.
12942
12943 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12944
12945 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12946 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12947 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12948 New file.
12949 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12950 Likewise.
12951 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12952
12953 2018-05-29 Florian Weimer <fweimer@redhat.com>
12954
12955 * support/Makefile (libsupport-routines): Add
12956 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12957 xpthread_barrierattr_setpshared.
12958 * support/xpthread_barrierattr_destroy.c: New file.
12959 * support/xpthread_barrierattr_init.c: Likewise.
12960 * support/xpthread_barrierattr_setpshared.c: Likewise.
12961
12962 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12963
12964 [BZ #23206]
12965 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12966 _r_debug and update DT_DEBUG for debugger.
12967
12968 2018-05-29 Florian Weimer <fweimer@redhat.com>
12969
12970 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12971 (tst-strtod5i.out): Likewise.
12972
12973 2018-05-25 Joseph Myers <joseph@codesourcery.com>
12974
12975 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12976 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12977 (sparc64-quad-routines): New variable. Moved from ....
12978 [$(subdir) = soft-fp] (sysdep_routines): Add
12979 $(sparc64-quad-routines). Moved from ....
12980 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12981 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12982 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12983 moved from ....
12984 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12985 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12986 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12987 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12988 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12989 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12990 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12991 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12992 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12993 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12994 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12995 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12996 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12997 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12998 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12999 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13000 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13001 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13002 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13003 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13004 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13005 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13006 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13007 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13008 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13009 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13010 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13011 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13012 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13013 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13014 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13015 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13016 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13017 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13018 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13019 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13020 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13021 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13022 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13023 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13024 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13025 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13026 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13027 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13028 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13029 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13030 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13031 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13032 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13033 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13034 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13035 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13036 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13037 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13038 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13039 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13040 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13041 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13042
13043 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13044 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13045 (sparc32-quad-routines): New variable. Moved from ....
13046 [$(subdir) = soft-fp] (sysdep_routines): Add
13047 $(sparc32-quad-routines). Moved from ....
13048 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13049 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13050 moved from ....
13051 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13052 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13053 * sysdeps/sparc/sparc32/q_add.c: ... here.
13054 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13055 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13056 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13057 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13058 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13059 * sysdeps/sparc/sparc32/q_div.c: ... here.
13060 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13061 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13062 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13063 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13064 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13065 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13066 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13067 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13068 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13069 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13070 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13071 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13072 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13073 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13074 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13075 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13076 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13077 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13078 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13079 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13080 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13081 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13082 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13083 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13084 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13085 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13086 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13087 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13088 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13089 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13090 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13091 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13092 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13093 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13094 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13095 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13096 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13097 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13098 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13099 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13100 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13101 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13102 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13103 * sysdeps/sparc/sparc32/q_util.c: ... here.
13104 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13105 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13106 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13107 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13108
13109 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13110 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13111
13112 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13113 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13114 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13115 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13116
13117 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13118
13119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13120 powerpc/soft-fp.
13121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13122 Likewise.
13123 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13124 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13125
13126 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13127
13128 [BZ #23171]
13129 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13130 double version.
13131
13132 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13133
13134 * sysdeps/sh/Implies: Remove sh/soft-fp.
13135 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13136 * sysdeps/sh/sfp-machine.h: ... here.
13137
13138 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13139
13140 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13141 (__mempcpy_erms): Skip zero length.
13142 (__memmove_erms): Likewise.
13143 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13144 (__memset_erms): Likewise.
13145
13146 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13147
13148 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13149 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13150 Add functions moved from ....
13151 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13152 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13153 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13154 from ....
13155 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13156 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13157 * sysdeps/alpha/e_sqrtl.c: ... here.
13158 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13159 * sysdeps/alpha/local-soft-fp.h: ... here.
13160 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13161 * sysdeps/alpha/ots_add.c: ... here.
13162 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13163 * sysdeps/alpha/ots_cmp.c: ... here.
13164 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13165 * sysdeps/alpha/ots_cmpe.c: ... here.
13166 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13167 * sysdeps/alpha/ots_cvtqux.c: ... here.
13168 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13169 * sysdeps/alpha/ots_cvtqx.c: ... here.
13170 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13171 * sysdeps/alpha/ots_cvttx.c: ... here.
13172 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13173 * sysdeps/alpha/ots_cvtxq.c: ... here.
13174 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13175 * sysdeps/alpha/ots_cvtxt.c: ... here.
13176 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13177 * sysdeps/alpha/ots_div.c: ... here.
13178 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13179 * sysdeps/alpha/ots_mul.c: ... here.
13180 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13181 * sysdeps/alpha/ots_nintxq.c: ... here.
13182 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13183 * sysdeps/alpha/ots_sub.c: ... here.
13184 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13185 * sysdeps/alpha/sfp-machine.h: ... here.
13186
13187 2018-05-23 Florian Weimer <fweimer@redhat.com>
13188
13189 [BZ #19728]
13190 [BZ #19729]
13191 [BZ #22247]
13192 CVE-2016-6261
13193 CVE-2016-6263
13194 CVE-2017-14062
13195 Switch to extern IDNA implementation (libidn2).
13196 * libidn: Remove subdirectory.
13197 * LICENSES: Do not mention licensing conditions for the removed
13198 libidn code.
13199 * config.h.in (HAVE_LIBIDN): Remove.
13200 * include/dlfcn.h (__libc_dlopen): Update comment.
13201 * include/idna.h: Remove file.
13202 * inet/Makefile (routines): Add idna.
13203 (tests-static, tests-internal): Add tst-idna_name_classify.
13204 (LOCALES): Generate locales for tests.
13205 (tst-idna_name_classify.out): Depend on generated locales.
13206 * inet/idna_name_classify.c: New file.
13207 * inet/tst-idna_name_classify.c: Likewise.
13208 * inet/net-internal.h (__idna_to_dns_encoding)
13209 (__idna_from_dns_encoding): Declare.
13210 * inet/net-internal.h (enum idna_name_classification): Define.
13211 (__idna_name_classify): Declare.
13212 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13213 __idna_from_dns_encoding.
13214 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13215 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13216 name as a fallback in case of encoding errors.
13217 (getnameinfo): Use DEPRECATED_NI_IDN.
13218 * inet/idna.c: New file.
13219 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13220 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13221 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13222 (modules-names): Add tst-no-libidn2.
13223 (extra-test-objs): Add tst-no-libidn2.os.
13224 (LDFLAGS-tst-no-libidn2.so): Set soname.
13225 (LOCALES): Set, and generate locales.
13226 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13227 (tst-resolv-ai_idn-latin1): Likewise.
13228 (tst-resolv-ai_idn-nolibidn2): Likewise.
13229 (tst-resolv-ai_idn.out): Depend on locales.
13230 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13231 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13232 tst-no-libidn2.so.
13233 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13234 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13235 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13236 * resolv/tst-resolv-ai_idn.c: New file.
13237 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13238 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13239 * resolv/tst-no-libidn2.c: Likewise.
13240 * support/support_format_addrinfo.c (format_ai_flags): Do not
13241 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13242 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13243 (gaih_inet): Call __idna_to_dns_encoding and
13244 __idna_from_dns_encoding, and use the original (punycode) name if
13245 __idna_from_dns_encoding fails due to an encoding error.
13246 (getaddrinfo): Use DEPRECATED_AI_IDN.
13247 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13248 * sysdeps/unix/inet/configure: Remove file.
13249 * sysdeps/unix/inet/configure.ac: Likewise.
13250
13251 2018-05-23 Florian Weimer <fweimer@redhat.com>
13252
13253 Implement allocate_once.
13254 * include/allocate_once.h: New file.
13255 * misc/allocate_once.c: Likewise.
13256 * misc/tst-allocate_once.c: Likewise.
13257 * misc/Makefile (routines): Add allocate_once.
13258 (tests-internal): Add tst-allocate_once.
13259 (generated): Add tst-allocate_once.mtrace,
13260 tst-allocate_once-mem.out.
13261 (tests-special): Add tst-allocate_once-mem.out.
13262 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13263 (tst-allocate_once-mem.out): Call mtrace.
13264 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13265
13266 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13267
13268 [BZ #23196]
13269 * string/test-memcpy.c (do_test1): New function.
13270 (test_main): Call it.
13271
13272 2018-05-23 Andreas Schwab <schwab@suse.de>
13273
13274 [BZ #23196]
13275 CVE-2018-11237
13276 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13277 (L(preloop_large)): Save initial destination pointer in %r11 and
13278 use it instead of %rax after the loop.
13279 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13280
13281 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13282
13283 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13284 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13285 -I../soft-fp. Moved from ....
13286 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13287 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13288 * sysdeps/aarch64/e_sqrtl.c: ... here.
13289 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13290 * sysdeps/aarch64/sfp-machine.h: ... here.
13291
13292 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13293 -Wmaybe-uninitialized around access to fq[0].
13294 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13295 Likewise.
13296
13297 [BZ #18471]
13298 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13299 aliases for non-libc case of versioned symbols.
13300 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13301 (llseek): Define as compat symbol if
13302 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13303 with link warning.
13304 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13305 Make into a compat symbol, disabled for minimum symbol version
13306 GLIBC_2.28 and later.
13307 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13308
13309 2018-05-22 Florian Weimer <fweimer@redhat.com>
13310
13311 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13312 not add -mpreferred-stack-boundary=4.
13313 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13314 (stack-align-test-flags): Likewise.
13315 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13316 Likewise.
13317 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13318 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13319 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13320 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13321 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13322 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13323 (CFLAGS-tst-align2.c): Likewise.
13324
13325 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13326
13327 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13328 (index_arch_Prefer_FSRM): Likewise.
13329 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13330 Also check Prefer_FSRM.
13331 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13332 Also return OPTIMIZE (erms) for Prefer_FSRM.
13333
13334 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13335
13336 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13337 (index_cpu_FSRM): Likewise.
13338 (reg_FSRM): Likewise.
13339
13340 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13341
13342 * math/gen-tgmath-tests.py: Import sys.
13343 (Tests.__init__): Initialize macros_seen.
13344 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13345 if requested to do so for this macro.
13346 (Tests.add_all_tests): Take argument for macro for which to
13347 generate tests.
13348 (Tests.check_macro_list): New function.
13349 (main): Handle check-list argument and argument specifying macro
13350 for which to generate tests.
13351 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13352 [PYTHON] (tgmath3-macro-tests): Likewise.
13353 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13354 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13355 not test-tgmath3.c.
13356 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13357 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13358 to CFLAGS.
13359 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13360 [PYTHON] ($(foreach
13361 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13362 rule.
13363 [PYTHON] (tests-special): Add
13364 $(objpfx)test-tgmath3-macro-list.out.
13365 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13366
13367 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13368 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13369 later.
13370
13371 [BZ #22639]
13372 * time/tzset.c (SECSPERDAY): Cast to time_t.
13373 * time/tst-y2039.c: New file.
13374 * time/Makefile (tests): Add tst-y2039.
13375
13376 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13377
13378 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13379 (PREFETCH_ONE_SET): Remove duplicate line.
13380
13381 2018-05-17 Florian Weimer <fweimer@redhat.com>
13382
13383 * sysdeps/generic/math-type-macros-double.h: Include
13384 <math-nan-payload-double.h> after <libm-alias-double.h>.
13385 * sysdeps/generic/math-type-macros-float.h: Include
13386 <math-nan-payload-float.h> after <libm-alias-float.h>.
13387 * sysdeps/generic/math-type-macros-float128.h: Include
13388 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13389 * sysdeps/generic/math-type-macros-ldouble.h: Include
13390 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13391
13392 2018-05-17 Andreas Schwab <schwab@suse.de>
13393
13394 * resolv/res_send.c (__res_context_send): Don't set errno when
13395 returing error after malloc failure.
13396
13397 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13398
13399 * nptl/allocatestack.c (allocate_stack): Remove the
13400 !__ASSUME_PRIVATE_FUTEX paths.
13401 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13402 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13403 Likewise.
13404 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13405 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13406 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13407 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13408 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13409 !__ASSUME_PRIVATE_FUTEX path.
13410 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13411 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13412 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13413 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13414 !__ASSUME_PRIVATE_FUTEX macros.
13415 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13416 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13417 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13418 * sysdeps/unix/sysv/linux/kernel-features.h
13419 (__ASSUME_PRIVATE_FUTEX): Removed.
13420
13421 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13422
13423 * math/Makefile (libm-narrow-fns): Add div.
13424 (libm-test-funcs-narrow): Likewise.
13425 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13426 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13427 * math/gen-auto-libm-tests.c (test_functions): Add div.
13428 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13429 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13430 (NARROW_DIV_TRIVIAL): Likewise.
13431 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13432 macro.
13433 (__ddivl): Likewise.
13434 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13435 ddiv.
13436 (CFLAGS-nldbl-ddiv.c): New variable.
13437 (CFLAGS-nldbl-fdiv.c): Likewise.
13438 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13439 __nldbl_ddivl.
13440 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13441 prototype.
13442 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13443 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13444 * math/auto-libm-test-in: Add tests of div.
13445 * math/auto-libm-test-out-narrow-div: New generated file.
13446 * math/libm-test-narrow-div.inc: New file.
13447 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13448 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13449 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13450 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13451 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13452 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13453 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13454 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13455 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13456 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13457 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13458 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13459 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13460 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13461 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13462 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13463 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13464 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13465 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13466 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13467 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13468 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13469 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13470 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13471 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13472 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13473 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13474 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13475 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13476 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13477 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13478 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13483 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13484 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13485 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13486 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13487 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13488 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13489 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13490 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13491
13492 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13493
13494 [BZ #23178]
13495 * nscd/nscd-client.h (sendfileall): Remove prototype.
13496 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13497 (handle_request): Use writeall instead of sendfileall.
13498 * nscd/aicache.c (addhstaiX): Likewise.
13499 * nscd/grpcache.c (cache_addgr): Likewise.
13500 * nscd/hstcache.c (cache_addhst): Likewise.
13501 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13502 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13503 * nscd/pwdcache.c (cache_addpw): Likewise.
13504 * nscd/servicescache.c (cache_addserv): Likewise.
13505 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13506 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13507 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13508 Remove define.
13509
13510 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13511
13512 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13513 Include <string/strncat.c>.
13514 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13515 alias.
13516 (__GI___strncat): New hidden alias.
13517
13518 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13519
13520 * sysdeps/mips/mips32/libm-test-ulps: Update.
13521 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13522
13523 2018-05-16 Florian Weimer <fweimer@redhat.com>
13524
13525 * support/Makefile (libsupport-routines): Add support_quote_blob,
13526 support_test_compare_blob.
13527 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13528 * support/check.h (TEST_COMPARE_BLOB): Define.
13529 (support_test_compare_blob): Declare.
13530 * support/support.h (support_quote_blob): Declare.
13531 * support/support_quote_blob.c: New file.
13532 * support/support_test_compare_blob.c: Likewise.
13533 * support/tst-support_quote_blob.c: Likewise.
13534 * support/tst-test_compare_blob.c: Likewise.
13535
13536 2018-05-16 Florian Weimer <fweimer@redhat.com>
13537
13538 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13539 of <strtod_nan_double.h>.
13540 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13541 instead of SET_MANTISSA.
13542 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13543 of include <strtod_nan_float.h>.
13544 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13545 instead of <strtod_nan_ldouble.h>.
13546 * stdlib/strtod_nan_double.h: Move to ...
13547 * sysdeps/generic/math-nan-payload-double.h: ... here.
13548 (FLOAT): Remove definition.
13549 (SET_MANTISSA): Rename to ...
13550 (SET_NAN_PAYLOAD): ... this.
13551 * stdlib/strtod_nan_float.h: Move to ...
13552 * sysdeps/generic/math-nan-payload-float.h: ... here.
13553 (FLOAT): Remove definition.
13554 (SET_MANTISSA): Rename to ...
13555 (SET_NAN_PAYLOAD): ... this.
13556 * sysdeps/generic/math-type-macros-double.h: Include
13557 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13558 instead of <math-svid-compat.h>.
13559 * sysdeps/generic/math-type-macros-float.h: Include
13560 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13561 instead of <math-svid-compat.h>.
13562 * sysdeps/generic/math-type-macros-float128.h: Include
13563 <math-nan-payload-float128.h>.
13564 * sysdeps/generic/math-type-macros-ldouble.h: Include
13565 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13566 instead of <math-svid-compat.h>.
13567 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13568 check for definition.
13569 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13570 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13571 Include <ieee754_float128.h>.
13572 (FLOAT): Remove definition.
13573 (SET_MANTISSA): Rename to ...
13574 (SET_NAN_PAYLOAD): ... this.
13575 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13576 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13577 Do not include <float128_private.h>.
13578 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13579 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13580 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13581 (FLOAT): Remove definition.
13582 (SET_MANTISSA): Rename to ...
13583 (SET_NAN_PAYLOAD): ... this.
13584 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13585 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13586 (FLOAT): Remove definition.
13587 (SET_MANTISSA): Rename to ...
13588 (SET_NAN_PAYLOAD): ... this.
13589 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13590 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13591 (FLOAT): Remove definition.
13592 (SET_MANTISSA): Rename to ...
13593 (SET_NAN_PAYLOAD): ... this.
13594 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13595 of "../stdlib/strtod_nan_double.h".
13596 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13597 of "../stdlib/strtod_nan_float.h".
13598 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13599 instead of "../stdlib/strtod_nan_ldouble.h".
13600 * manual/arith.texi (Parsing of Floats): Adjust comment.
13601
13602 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13603
13604 * math/Makefile (libm-narrow-fns): Add mul.
13605 (libm-test-funcs-narrow): Likewise.
13606 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13607 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13608 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13609 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13610 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13611 (NARROW_MUL_TRIVIAL): Likewise.
13612 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13613 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13614 macro.
13615 (__dmull): Likewise.
13616 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13617 dmul.
13618 (CFLAGS-nldbl-dmul.c): New variable.
13619 (CFLAGS-nldbl-fmul.c): Likewise.
13620 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13621 __nldbl_dmull.
13622 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13623 prototype.
13624 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13625 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13626 * math/auto-libm-test-in: Add tests of mul.
13627 * math/auto-libm-test-out-narrow-mul: New generated file.
13628 * math/libm-test-narrow-mul.inc: New file.
13629 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13630 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13631 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13632 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13633 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13634 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13635 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13636 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13637 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13638 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13639 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13640 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13641 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13642 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13643 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13644 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13645 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13646 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13647 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13648 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13649 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13650 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13651 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13652 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13653 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13654 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13655 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13656 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13657 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13658 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13659 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13660 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13665 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13666 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13667 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13668 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13669 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13670 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13671 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13672 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13673
13674 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13675
13676 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13677 with *%eax in call.
13678
13679 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13680
13681 * sysdeps/i386/ldsodefs.h: Removed.
13682 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13683 * sysdeps/x86/ldsodefs.h: This.
13684 (La_i86_regs): New.
13685 (La_i86_retval): Likewise.
13686 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13687 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13688
13689 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13690
13691 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13692 unnecessary testl.
13693
13694 2018-05-13 Alan Modra <amodra@gmail.com>
13695
13696 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13697 R_PARISC_TLS_DTPOFF32 reloc addend.
13698
13699 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13700
13701 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13702 * math/math.h: Restrict the prototype definition for the functions
13703 issignaling(_Float128) and iszero(_Float128); and template
13704 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13705 __HAVE_FLOAT128_UNLIKE_LDBL.
13706 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13707 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13708 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13709 __f128() constants; define the type _Float128 as long double;
13710 and reuse long double in __CFLOAT128.
13711
13712 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13713
13714 * sysdeps/generic/math_private.h: Do not include
13715 <math-barriers.h>.
13716 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13717 <math_private.h>.
13718 * math/fromfp.h: Include <math-barriers.h>.
13719 * math/math-narrow.h: Likewise.
13720 * math/s_nextafter.c: Likewise.
13721 * math/s_nexttowardf.c: Likewise.
13722 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13723 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13724 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13725 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13726 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13727 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13728 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13729 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13730 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13731 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13732 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13733 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13734 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13735 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13736 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13737 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13738 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13739 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13740 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13741 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13742 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13743 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13744 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13745 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13746 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13747 * sysdeps/ieee754/k_standardl.c: Likewise.
13748 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13749 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13750 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13751 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13752 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13753 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13754 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13755 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13756 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13757 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13758 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13759 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13760 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13761 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13762 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13763 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13764 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13765 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13766 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13767 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13768 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13769 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13770
13771 2018-05-11 Florian Weimer <fweimer@redhat.com>
13772
13773 Use 64-bit epoch values in the time zone file parser.
13774 * include/time.h (internal_time_t): Define.
13775 (__tzfile_compute): Use it.
13776 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13777 member.
13778 (transitions): Switch to internal_time_t.
13779 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13780 types.
13781 (__tzfile_compute): Use internal_time_t for timer argument. Check
13782 for truncation before calling __offtime.
13783
13784 2018-05-11 Florian Weimer <fweimer@redhat.com>
13785
13786 [BZ #23166]
13787 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13788 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13789 Likewise.
13790 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13791 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13792 export without --enable-obsolete-rpc.
13793 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13794 symbol. This should not have been exported, ever.
13795
13796 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13797
13798 [BZ #23152]
13799 * localedata/locales/gd_GB (abmon): Fix typo in May:
13800 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13801
13802 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13803
13804 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13805 Use multiple registers to copy data in loop tail.
13806
13807 * sysdeps/aarch64/multiarch/memmove_falkor.S
13808 (__memmove_falkor): Use multiple registers to move data in
13809 loop tail.
13810
13811 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13812
13813 * math/math-underflow.h: New file.
13814 * sysdeps/generic/math_private.h: Do not include <float.h>.
13815 (fabs_tg): Remove macro. Moved to math-underflow.h.
13816 (min_of_type_f): Likewise.
13817 (min_of_type_): Likewise.
13818 (min_of_type_l): Likewise.
13819 (min_of_type_f128): Likewise.
13820 (min_of_type): Likewise.
13821 (math_check_force_underflow): Likewise.
13822 (math_check_force_underflow_nonneg): Likewise.
13823 (math_check_force_underflow_complex): Likewise.
13824 * math/e_exp2_template.c: Include <math-underflow.h>.
13825 * math/k_casinh_template.c: Likewise.
13826 * math/s_catan_template.c: Likewise.
13827 * math/s_catanh_template.c: Likewise.
13828 * math/s_ccosh_template.c: Likewise.
13829 * math/s_cexp_template.c: Likewise.
13830 * math/s_clog10_template.c: Likewise.
13831 * math/s_clog_template.c: Likewise.
13832 * math/s_csin_template.c: Likewise.
13833 * math/s_csinh_template.c: Likewise.
13834 * math/s_csqrt_template.c: Likewise.
13835 * math/s_ctan_template.c: Likewise.
13836 * math/s_ctanh_template.c: Likewise.
13837 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13838 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13839 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13840 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13841 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13842 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13843 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13844 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13845 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13846 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13847 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13848 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13849 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13850 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13851 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13852 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13853 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13854 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13855 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13856 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13857 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13858 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13859 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13860 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13861 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13862 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13863 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13864 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13865 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13866 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13867 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13868 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13869 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13870 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13871 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13872 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13873 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13874 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13875 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13876 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13877 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13878 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13879 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13880 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13881 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13882 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13883 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13884 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13885 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13886 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13887 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13888 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13889 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13890 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13891 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13892 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13893 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13894 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13895 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13896 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13897 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13898 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13899 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13900 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13901 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13902 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13903 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13904 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13905 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13906 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13907 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13908 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13909 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13910 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13911 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13912 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13913 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13914 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13915 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13916 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13917 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13918 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13919 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13920 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13921
13922 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13923
13924 * sysdeps/generic/math-barriers.h: New file.
13925 * sysdeps/generic/math_private.h [!math_opt_barrier]
13926 (math_opt_barrier): Move to math-barriers.h.
13927 [!math_opt_barrier] (math_force_eval): Likewise.
13928 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13929 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13930 math-barriers.h.
13931 (math_force_eval): Likewise.
13932 * sysdeps/alpha/fpu/math-barriers.h: New file.
13933 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13934 math-barriers.h.
13935 (math_force_eval): Likewise.
13936 * sysdeps/x86/fpu/math-barriers.h: New file.
13937 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13938 math-barriers.h.
13939 (math_force_eval): Likewise.
13940 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13941 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13942 multiple-include guard for rename.
13943 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13944 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13945 math-barriers.h.
13946 (math_force_eval): Likewise.
13947
13948 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13949
13950 [BZ #22786]
13951 CVE-2018-11236
13952 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13953 computation.
13954 * stdlib/Makefile (test-bz22786): New test.
13955 * stdlib/test-bz22786.c: New test.
13956
13957 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13958
13959 * include/math-narrow-eval.h: New file. Contents moved from ....
13960 * sysdeps/generic/math_private.h: ... here.
13961 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13962 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13963 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13964 * stdlib/strtod_l.c: Likewise.
13965 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13966 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13967 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13968 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13969 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13970 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13971 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13972 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13973 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13974 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13975 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13976 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13977 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13978 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13979 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13980 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13981 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13982 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13983 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13984 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13985 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13986 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13987 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13988 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13989 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13990 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13991 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13992 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13993 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13994
13995 2018-05-08 Andreas Schwab <schwab@suse.de>
13996
13997 * sysdeps/nptl/internaltypes.h: Fix comment.
13998
13999 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14000
14001 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14002 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14003 hidden.
14004
14005 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14006
14007 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14008 of I into loop header.
14009 * benchtests/bench-memmove-walk.c
14010 (test_main): Likewise.
14011
14012 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14013
14014 Revert:
14015 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14016 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14017
14018 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14019
14020 [BZ #20419]
14021 * elf/dl-load.c (open_verify): Fix stack overflow.
14022 * elf/Makefile (tst-big-note): New test.
14023 * elf/tst-big-note-lib.S: New.
14024 * elf/tst-big-note.c: New.
14025
14026 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14027
14028 * scripts/abilist.awk: Ignore absolute symbols.
14029 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14030 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14031 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14032 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14033 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14034 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14035 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14036 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14037 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14038 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14039 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14040 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14058 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14062 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14063 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14064 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14065 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14066 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14067 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14068 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14069 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14070 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14071 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14072 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14073 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14074 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14075 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14076 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14077 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14078 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14079 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14080 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14081 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14082 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14083 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14084 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14085 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14086 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14113 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14114 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14115 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14116 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14121 Likewise.
14122 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14129 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14130 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14131 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14135 Likewise.
14136 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14145 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14146 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14147 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14148 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14149 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14153 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14154 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14158 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14159 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14163 Likewise.
14164 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14184 Likewise.
14185 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14217 Likewise.
14218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14220 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14223 Likewise.
14224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14225 Likewise.
14226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14228 Likewise.
14229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14231 Likewise.
14232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14233 Likewise.
14234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14237 Likewise.
14238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14239 Likewise.
14240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14241 Likewise.
14242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14246 Likewise.
14247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14253 Likewise.
14254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14256 Likewise.
14257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14258 Likewise.
14259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14260 Likewise.
14261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14262 Likewise.
14263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14266 Likewise.
14267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14268 Likewise.
14269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14270 Likewise.
14271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14272 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14273 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14274 Likewise.
14275 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14277 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14278 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14279 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14280 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14283 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14284 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14285 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14286 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14287 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14288 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14289 Likewise.
14290 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14292 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14293 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14299 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14300 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14301 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14302 Likewise.
14303 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14304 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14305 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14306 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14307 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14308 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14309 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14310 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14311 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14312 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14313 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14314 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14315 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14316 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14317 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14318 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14319 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14320 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14321 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14323 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14324 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14328 Likewise.
14329 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14342 Likewise.
14343 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14381
14382 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14383
14384 [BZ #23137]
14385 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14386 Use atomic_load_acquire to load __tid.
14387
14388 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14389
14390 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14391 Restore the pointer into %rdx, after syscall and use %rdx,
14392 instead of %rsi, to restore context.
14393
14394 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14395
14396 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14397 Pop the pointer into %rdx after syscall and use %rdx, instead
14398 of %rsi, to restore context.
14399
14400 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14401
14402 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14403 handlers after setjmp.
14404 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14405 defined.
14406 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14407 <libc-pointer-arith.h>.
14408 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14409 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14410 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14411 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14412 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14413 * sysdeps/x86/__longjmp_cancel.S: New file.
14414 * sysdeps/x86/longjmp.c: Likewise.
14415 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14416
14417 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14418
14419 * NEWS: Add ustat.h deprecation entry.
14420 * bits/ustat.h: Remove file.
14421 * misc/sys/ustat.h: Likewise.
14422 * misc/ustat.h: Likewise.
14423 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14424 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14425 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14426 compatibility mode.
14427 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14428 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14429 generic Linux implementation.
14430
14431 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14432
14433 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14434 * math/w_expl_compat.c: Likewise.
14435 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14436
14437 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14438
14439 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14440
14441 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14442
14443 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14444 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14445 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14446 Remove.
14447 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14449 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14450 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14451 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14452 and SYSCALL_LL64.
14453
14454 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14455
14456 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14457
14458 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14459 * math/w_asin_template.c: Likewise.
14460 * math/w_atanh_template.c: Likewise.
14461
14462 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14463
14464 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14465 to powerpc/powerpc64/be for big-endian.
14466 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14467 little-endian.
14468
14469 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14470 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14471 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14472 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14473 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14474 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14475 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14476 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14477 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14478 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14479 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14480 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14481 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14482 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14483 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14484 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14485 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14486 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14487 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14488 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14489 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14490 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14491 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14492 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14493 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14494 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14495 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14496 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14497 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14498 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14499 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14500 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14501
14502 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14503 adjusted to imply powerpc64 and older processors on powerpc64/be.
14504 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14505 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14506 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14507 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14508 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14509 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14510 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14511 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14512 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14513 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14514 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14515 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14516 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14517 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14518 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14519 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14520 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14521 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14522 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14523 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14524 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14525 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14526 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14527 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14528 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14529 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14530 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14531 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14532 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14533 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14534 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14535
14536 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14537 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14538 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14539 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14540
14541 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14542 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14543 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14544 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14545
14546 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14547 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14548 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14549 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14550 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14551 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14552 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14553 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14554 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14555 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14556 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14557
14558 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14559 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14560 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14561 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14562 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14563 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14564 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14565 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14566 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14567 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14568 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14569
14570 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14571 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14572 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14573 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14574 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14575 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14576 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14577 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14578 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14579 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14580 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14581 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14582
14583 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14584 and adjusted to imply olders processors.
14585 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14586 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14587 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14588 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14589 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14590 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14591 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14592 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14593 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14594 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14595 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14596
14597 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14598 powerpc64/le.
14599 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14600 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14601
14602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14603 powerpc64le.
14604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14606
14607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14608 powerpc64/be.
14609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14612
14613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14614 powerpc64 and adjusted.
14615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14618 Likewise.
14619
14620 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14621
14622 * sysdeps/tile: Remove.
14623 * sysdeps/unix/sysv/linux/tile: Likewise.
14624 * README (tilegx-*-linux-gnu): Remove from list of supported
14625 configurations.
14626 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14627 contribution of support for generic Linux kernel syscall
14628 interface.
14629 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14630 tilegx configurations.
14631 (Config.install_linux_headers): Do not handle tile.
14632 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14633 in comment.
14634 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14635 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14636 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14637 conditional undefine and redefine.
14638 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14639 in comment.
14640 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14641 conditional undefine and redefine.
14642
14643 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14644
14645 * signal/tst-sigaction.c: New file to test BZ #23069.
14646 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14647
14648 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14649
14650 [BZ #22766]
14651 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14652 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14653 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14654 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14655
14656 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14657
14658 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14659 _DIRENT_MATCHES_DIRENT64 is not defined.
14660 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14661 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14662 is defined.
14663 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14664 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14665
14666 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14667
14668 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14669 version to GCC 8 branch.
14670
14671 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14672
14673 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14674 (check_no_hidden): Use type of original function when declaring
14675 alias.
14676
14677 * sysdeps/unix/sysv/linux/sys/ptrace.h
14678 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14679 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14680 (struct __ptrace_seccomp_metadata): New type.
14681 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14682 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14683 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14684 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14685 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14686 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14687 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14688 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14689 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14690 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14691 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14692 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14693 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14694 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14695 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14696 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14697
14698 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14699
14700 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14701 defined.
14702 * dirent/versionsort.c (versionsort): Likewise.
14703 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14704 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14705 * dirent/versionsort64.c (versionsort64): Likewise.
14706 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14707 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14708 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14709 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14710 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14711 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14712 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14713 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14714 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14715 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14718 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14719 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14720
14721 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14722
14723 * elf/elf.h (NT_PPC_PKEY): New macro.
14724
14725 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14726
14727 [BZ #23094]
14728 * localedata/locales/hr_HR: fix thousands_sep and
14729 mon_thousands_sep
14730
14731 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14732
14733 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14734 (XTABS): Define to TAB3.
14735
14736 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14737
14738 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14739
14740 * dirent/scandir-tail-common.c: New file.
14741 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14742 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14743 * dirent/scandir.c: Use scandir-tail-common.c.
14744 * dirent/scandirat.c: Likewise.
14745 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14746 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14747 if _DIRENT_MATCHES_DIRENT64 is defined.
14748 * dirent/scandirat64.c (scandirat64): Likewise.
14749 * include/dirent.h (__scandir_tail): Only define iff
14750 _DIRENT_MATCHES_DIRENT64 is not defined.
14751 (__scandir64_tail): Define regardless.
14752 (__scandirat, scandirat64): Remove libc_hidden_proto.
14753 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14754 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14756 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14757 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14758 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14759 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14760
14761 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14762
14763 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14764 New macro.
14765 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14766 Increase to 24.
14767 (_dl_aarch64_cap_flags): Add asimdfhm.
14768
14769 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14770
14771 * sysdeps/nios2/libm-test-ulps: Update.
14772
14773 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14774
14775 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14776 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14777
14778 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14779 requirements.
14780 (_DIRENT_MATCHES_DIRENT64): Undef
14781 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14782 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14783 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14784 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14785 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14786 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14787 use getdents64 syscalls as base.
14788 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14789 symbol if required.
14790 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14791 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14792 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14793 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14794 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14795 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14796 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14797 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14798 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14799 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14800 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14801
14802 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14803
14804 * scripts/test_printers_common.py (init_test): Disable lock elision.
14805
14806 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14807
14808 * math/test-tgmath.c (count_double, count_float,
14809 count_ldouble, count_cdouble, count_cfloat,
14810 count_cldouble): Use volatile int.
14811
14812 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14813
14814 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14815 (conformtest-xfail-conds): Add i386-gnu.
14816 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14817 i386-gnu.
14818 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14819 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14820 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14821 msqid_ds.msg_lrpid): Likewise.
14822 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14823 Likewise.
14824 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14825 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14826 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14827 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14828 unsigned int.
14829 (struct statvfs64): Likewise.
14830 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14831 Likewise.
14832 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14833 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14834 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14835 instead of wait_queue.
14836 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14837 instead of vm_area_struct.
14838 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14839 struct sched_param definition to it.
14840 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14841 * bits/types/struct_sched_param.h: New file.
14842 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14843 <bits/types/struct_sched_param.h> instead of <sched.h>.
14844 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14845 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14846 generic version but include <bits/pthreadtypes.h> to make struct
14847 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14848 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14849 non-compliant.
14850 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14851 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14852 [__USE_XOPEN] (OFDEL): New macro.
14853 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14854 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14855 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14856 prototypes.
14857 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14858 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14859 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14860 non-compliant.
14861 * sysdeps/i386/sys/ucontext.h: Likewise.
14862 * sysdeps/m68k/sys/ucontext.h: Likewise.
14863 * sysdeps/mips/sys/ucontext.h: Likewise.
14864 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14865 * sysdeps/mach/hurd/i386/Makefile
14866 (test-xfail-POSIX/fcntl.h/conform): Add.
14867 (test-xfail-POSIX/signal.h/conform): Add.
14868 (test-xfail-POSIX/semaphore.h/conform): Add.
14869 (test-xfail-POSIX/regex.h/conform): Add.
14870 (test-xfail-POSIX/aio.h/conform): Add.
14871 (test-xfail-POSIX/mqueue.h/conform): Add.
14872 (test-xfail-POSIX/sys/types.h/conform): Add.
14873 (test-xfail-UNIX98/fcntl.h/conform): Add.
14874 (test-xfail-UNIX98/netdb.h/conform): Add.
14875 (test-xfail-UNIX98/signal.h/conform): Add.
14876 (test-xfail-UNIX98/semaphore.h/conform): Add.
14877 (test-xfail-UNIX98/regex.h/conform): Add.
14878 (test-xfail-UNIX98/aio.h/conform): Add.
14879 (test-xfail-UNIX98/ftw.h/conform): Add.
14880 (test-xfail-UNIX98/mqueue.h/conform): Add.
14881 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14882 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14883 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14884 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14885 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14886 (test-xfail-UNIX98/sys/types.h/conform): Add.
14887 (test-xfail-UNIX98/stdlib.h/conform): Add.
14888 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14889 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14890 (test-xfail-POSIX2008/netdb.h/conform): Add.
14891 (test-xfail-POSIX2008/signal.h/conform): Add.
14892 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14893 (test-xfail-POSIX2008/regex.h/conform): Add.
14894 (test-xfail-POSIX2008/aio.h/conform): Add.
14895 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14896 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14897 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14898 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14899 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14900 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14901 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14902 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14903 (test-xfail-XOPEN2K/signal.h/conform): Add.
14904 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14905 (test-xfail-XOPEN2K/regex.h/conform): Add.
14906 (test-xfail-XOPEN2K/aio.h/conform): Add.
14907 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14908 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14909 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14910 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14911 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14912 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14913 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14914 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14915 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14916 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14917 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14918 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14919 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14920 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14921 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14922 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14923 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14924 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14925 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14926 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14927 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14928 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14929 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14930 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14931 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14932 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14933 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14934 i386-gnu.
14935 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14936 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14937
14938 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14939
14940 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14941 --enable-obsolete for powerpc-linux-gnuspe.
14942
14943 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14944
14945 * conform/data/sys/un.h-data: Allow sun_ prefix.
14946 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14947 prototypes.
14948 * sysdeps/mach/include/mach.h: Likewise.
14949 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14950 * sysdeps/mach/include/mach_error.h: Likewise.
14951
14952 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14953
14954 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14955 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14956 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14957 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14958
14959 2018-04-16 Andreas Schwab <schwab@suse.de>
14960
14961 [BZ #19527]
14962 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14963
14964 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14965
14966 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14967 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14968
14969 2018-04-12 DJ Delorie <dj@redhat.com>
14970
14971 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14972 version to 4.16.
14973
14974 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14975
14976 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14977 (struct kernel_sigaction): Use the same definition on 31bit as is used
14978 on 64bit.
14979
14980 2018-04-09 Florian Weimer <fweimer@redhat.com>
14981
14982 [BZ #23037]
14983 * resolv/res_send.c (send_dg): Use designated initializers instead
14984 of assignment to zero-initialize other fields of struct mmsghdr.
14985
14986 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14987
14988 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14989 __READDIR_ALIAS): Undefine after usage.
14990 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14991 __READDIR_R_ALIAS): Likewise.
14992 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14993 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14994 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14995 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14996 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14997 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14998 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14999 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15000 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15001 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15002 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15003 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15004 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15005 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15006 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15007 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15008 * sysdeps/unix/sysv/linux/readdir.c: New file.
15009 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15010 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15011 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15012
15013 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15014
15015 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15016
15017 * manual/charset.texi (Converting a Character): Fix typo.
15018
15019 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15020
15021 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15022
15023 * sysdeps/arm/libm-test-ulps: Update.
15024
15025 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15026 as base implementation.
15027 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15028 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15029 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15030 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15031 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15032 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15033 remove unrequired definitions and update comments.
15034 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15035 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15036 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15037 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15038 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15039 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15040 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15041 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15042 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15043 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15044 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15045 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15046 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15047 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15048 and RESET_SA_RESTORER hooks.
15049
15050 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15051
15052 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15053
15054 2018-04-05 Florian Weimer <fweimer@redhat.com>
15055
15056 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15057 integer overflow, memory leak on error, and indeterminate errno
15058 value. Add a null wide character to terminate the result string.
15059 * manual/charset.texi (Converting a Character): Mention embedded
15060 null bytes in the mbrtowc input string. Explain what happens in
15061 the -2 result case. Do not claim that mbrtowc is simple or
15062 obvious to use. Adjust the description of the code example. Use
15063 @code, not @var, for concrete variables.
15064
15065 2018-04-05 Florian Weimer <fweimer@redhat.com>
15066
15067 * manual/examples/mbstouwcs.c: New file.
15068 * manual/charset.texi (Converting a Character): Include it.
15069
15070 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15071
15072 * include/dirent.h (dirfd): Add hidden proto.
15073 * dirent/dirfd.c (dirfd): Add hidden def.
15074 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15075 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15076
15077 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15078
15079 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15080 sin, cos and sincos to 1 ULP.
15081
15082 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15083
15084 [BZ #19818]
15085 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15086 symbols.
15087 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15088 * elf/tst-absolute-sym.c: New file.
15089 * elf/tst-absolute-sym-lib.c: New file.
15090 * elf/tst-absolute-sym-lib.lds: New file.
15091 * elf/Makefile (tests): Add `tst-absolute-sym'.
15092 (modules-names): Add `tst-absolute-sym-lib'.
15093 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15094 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15095 ($(objpfx)tst-absolute-sym): New dependency.
15096
15097 [BZ #19818]
15098 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15099 parameter.
15100 (SYMBOL_ADDRESS): New macro.
15101 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15102 SYMBOL_ADDRESS for symbol address calculation.
15103 * elf/dl-runtime.c (_dl_fixup): Likewise.
15104 (_dl_profile_fixup): Likewise.
15105 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15106 * elf/rtld.c (dl_main): Likewise.
15107 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15108 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15109 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15110 (elf_machine_rela): Likewise.
15111 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15112 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15113 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15114 (elf_machine_rela): Likewise.
15115 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15116 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15117 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15118 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15119 Likewise.
15120 (elf_machine_reloc): Likewise.
15121 (elf_machine_got_rel): Likewise.
15122 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15123 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15124 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15125 Likewise.
15126 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15127 Likewise.
15128 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15129 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15130 Likewise.
15131 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15132 Likewise.
15133 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15134 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15135 Likewise.
15136 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15137 Likewise.
15138 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15139 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15140
15141 2018-04-04 Zack Weinberg <zackw@panix.com>
15142
15143 * sysdeps/generic/internal-signals.h: Include signal.h,
15144 sigsetops.h, and stdbool.h.
15145 (__libc_signal_block_all): Actually block all signals.
15146 (__libc_signal_block_app): Likewise.
15147 (__libc_signal_restore_set): Actually restore the signal mask.
15148
15149 2018-04-04 Florian Weimer <fweimer@redhat.com>
15150
15151 inet: Actually build and run tst-deadline.
15152 * inet/Makefile (tests-internal): Add tst-deadline and do not
15153 overwrite the variable.
15154 (tests-static-internal): Remove variable.
15155
15156 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15157
15158 [BZ #22947]
15159 * bits/uio-ext.h (RWF_APPEND): New.
15160 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15161 * manual/llio.texi: Document RWF_APPEND.
15162 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15163 (RWF_SUPPORTED): Add RWF_APPEND.
15164
15165 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15166
15167 [BZ #22391]
15168 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15169 check for internal nptl signals.
15170 * nptl/sigaction.c (__sigaction): Likewise.
15171 * signal/sigaddset.c (sigaddset): Likewise.
15172 * signal/sigdelset.c (sigdelset): Likewise.
15173 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15174 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15175 value.
15176 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15177 to filter out internal nptl signals.
15178 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15179 also check realtime signals using standard macros.
15180 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15181 __is_internal_signal, __libc_signal_block_all,
15182 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15183 * sysdeps/nptl/sigfillset.c: Remove file.
15184 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15185 Change return to bool.
15186 (__clear_internal_signals): Remove SIGTIMER clean since it is
15187 equal to SIGCANEL on Linux.
15188 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15189 signal set was constructed using standard functions.
15190
15191 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15192
15193 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15194 ifname is too long.
15195 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15196 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15197 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15198 hidden def.
15199 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15200 * signal/sigaddset.c: Include <sigsetopts.h>.
15201 * signal/sigdelset.c: Likewise.
15202
15203 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15204
15205 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15206 (__cos): Likewise.
15207 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15208 logic as sin and cos.
15209
15210 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15211
15212 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15213 inputs. Return correct sign.
15214 (do_sincos): Remove small input check before do_sin, let do_sin set
15215 the sign.
15216 (__sin): Likewise.
15217 (__cos): Likewise.
15218
15219 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15220
15221 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15222 (do_cos_slow): Likewise.
15223 (do_sin_slow): Likewise.
15224 (reduce_and_compute): Likewise.
15225 (slow): Likewise.
15226 (slow1): Likewise.
15227 (slow2): Likewise.
15228 (sloww): Likewise.
15229 (sloww1): Likewise.
15230 (sloww2): Likewise.
15231 (bslow): Likewise.
15232 (bslow1): Likewise.
15233 (bslow2): Likewise.
15234 (cslow2): Likewise.
15235
15236 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15237
15238 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15239 (do_cos): Remove corp parameter and calculations.
15240 (do_sin): Likewise.
15241 (do_sincos): Remove cor variable.
15242 (__sin): Use do_sincos for huge inputs.
15243 (__cos): Likewise.
15244 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15245 (reduce_and_compute_sincos): Remove unused function.
15246
15247 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15248
15249 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15250 reduce_sincos, improve accuracy to 136 bits.
15251 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15252 (__sin): Use improved reduction and simplified do_sincos calculation.
15253 (__cos): Likewise.
15254 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15255
15256 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15257
15258 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15259 (do_sincos_2): Likewise.
15260 (__sin): Remove middle range reduction case.
15261 (__cos): Likewise.
15262 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15263 reduction case.
15264
15265 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15266
15267 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15268 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15269 inputs.
15270 (__cos): Likewise.
15271 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15272
15273 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15274
15275 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15276 version to 4.16
15277
15278 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15279
15280 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15281 Remove definitions.
15282 (opendir_oflags): Use O_DIRECTORY regardless.
15283 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15284 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15285
15286 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15287
15288 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15289 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15290 macros.
15291 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15292 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15293 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15294 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15295 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15296 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15297
15298 * htl/Makefile: Bump licence to LGPL 2.1+.
15299 * htl/alloca_cutoff.c: Likewise.
15300 * htl/cthreads-compat.c: Likewise.
15301 * htl/lockfile.c: Likewise.
15302 * htl/pt-alloc.c: Likewise.
15303 * htl/pt-cancel.c: Likewise.
15304 * htl/pt-cleanup.c: Likewise.
15305 * htl/pt-create.c: Likewise.
15306 * htl/pt-dealloc.c: Likewise.
15307 * htl/pt-detach.c: Likewise.
15308 * htl/pt-exit.c: Likewise.
15309 * htl/pt-getattr.c: Likewise.
15310 * htl/pt-initialize.c: Likewise.
15311 * htl/pt-internal.h: Likewise.
15312 * htl/pt-join.c: Likewise.
15313 * htl/pt-self.c: Likewise.
15314 * htl/pt-setcancelstate.c: Likewise.
15315 * htl/pt-setcanceltype.c: Likewise.
15316 * htl/pt-sigmask.c: Likewise.
15317 * htl/pt-spin-inlines.c: Likewise.
15318 * htl/pt-testcancel.c: Likewise.
15319 * htl/pt-yield.c: Likewise.
15320 * htl/tests/test-1.c: Likewise.
15321 * htl/tests/test-10.c: Likewise.
15322 * htl/tests/test-11.c: Likewise.
15323 * htl/tests/test-12.c: Likewise.
15324 * htl/tests/test-13.c: Likewise.
15325 * htl/tests/test-14.c: Likewise.
15326 * htl/tests/test-15.c: Likewise.
15327 * htl/tests/test-16.c: Likewise.
15328 * htl/tests/test-17.c: Likewise.
15329 * htl/tests/test-2.c: Likewise.
15330 * htl/tests/test-3.c: Likewise.
15331 * htl/tests/test-4.c: Likewise.
15332 * htl/tests/test-5.c: Likewise.
15333 * htl/tests/test-6.c: Likewise.
15334 * htl/tests/test-7.c: Likewise.
15335 * htl/tests/test-8.c: Likewise.
15336 * htl/tests/test-9.c: Likewise.
15337 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15338 * sysdeps/htl/bits/cancelation.h: Likewise.
15339 * sysdeps/htl/bits/pthread-np.h: Likewise.
15340 * sysdeps/htl/bits/pthread.h: Likewise.
15341 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15342 * sysdeps/htl/bits/semaphore.h: Likewise.
15343 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15344 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15345 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15346 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15347 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15348 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15349 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15350 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15351 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15352 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15353 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15354 * sysdeps/htl/old_pt-atfork.c: Likewise.
15355 * sysdeps/htl/pt-atfork.c: Likewise.
15356 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15357 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15358 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15359 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15360 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15361 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15362 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15363 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15364 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15365 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15366 * sysdeps/htl/pt-attr-init.c: Likewise.
15367 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15368 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15369 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15370 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15371 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15372 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15373 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15374 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15375 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15376 * sysdeps/htl/pt-attr.c: Likewise.
15377 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15378 * sysdeps/htl/pt-barrier-init.c: Likewise.
15379 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15380 * sysdeps/htl/pt-barrier.c: Likewise.
15381 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15382 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15383 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15384 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15385 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15386 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15387 * sysdeps/htl/pt-cond-init.c: Likewise.
15388 * sysdeps/htl/pt-cond-signal.c: Likewise.
15389 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15390 * sysdeps/htl/pt-cond-wait.c: Likewise.
15391 * sysdeps/htl/pt-cond.c: Likewise.
15392 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15393 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15394 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15395 * sysdeps/htl/pt-condattr-init.c: Likewise.
15396 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15397 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15398 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15399 * sysdeps/htl/pt-equal.c: Likewise.
15400 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15401 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15402 * sysdeps/htl/pt-getschedparam.c: Likewise.
15403 * sysdeps/htl/pt-getspecific.c: Likewise.
15404 * sysdeps/htl/pt-init-specific.c: Likewise.
15405 * sysdeps/htl/pt-key-create.c: Likewise.
15406 * sysdeps/htl/pt-key-delete.c: Likewise.
15407 * sysdeps/htl/pt-key.h: Likewise.
15408 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15409 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15410 * sysdeps/htl/pt-mutex-init.c: Likewise.
15411 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15412 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15413 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15414 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15415 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15416 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15417 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15418 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15419 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15420 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15421 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15422 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15423 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15424 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15425 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15426 * sysdeps/htl/pt-mutexattr.c: Likewise.
15427 * sysdeps/htl/pt-once.c: Likewise.
15428 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15429 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15430 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15431 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15432 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15433 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15434 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15435 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15436 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15437 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15438 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15439 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15440 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15441 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15442 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15443 * sysdeps/htl/pt-setschedparam.c: Likewise.
15444 * sysdeps/htl/pt-setschedprio.c: Likewise.
15445 * sysdeps/htl/pt-setspecific.c: Likewise.
15446 * sysdeps/htl/pt-spin.c: Likewise.
15447 * sysdeps/htl/pt-startup.c: Likewise.
15448 * sysdeps/htl/pthread.h: Likewise.
15449 * sysdeps/htl/sem-close.c: Likewise.
15450 * sysdeps/htl/sem-destroy.c: Likewise.
15451 * sysdeps/htl/sem-getvalue.c: Likewise.
15452 * sysdeps/htl/sem-init.c: Likewise.
15453 * sysdeps/htl/sem-open.c: Likewise.
15454 * sysdeps/htl/sem-post.c: Likewise.
15455 * sysdeps/htl/sem-timedwait.c: Likewise.
15456 * sysdeps/htl/sem-trywait.c: Likewise.
15457 * sysdeps/htl/sem-unlink.c: Likewise.
15458 * sysdeps/htl/sem-wait.c: Likewise.
15459 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15460 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15461 * sysdeps/mach/htl/pt-block.c: Likewise.
15462 * sysdeps/mach/htl/pt-spin.c: Likewise.
15463 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15464 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15465 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15466 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15467 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15468 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15469 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15470 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15471 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15472 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15473 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15474 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15475 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15476 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15477 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15478 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15479 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15480 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15481 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15482 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15483 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15484 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15485 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15486 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15487 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15488 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15489 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15490 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15491 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15492 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15493 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15494 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15495 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15496 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15497 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15498 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15499 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15500 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15501 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15502 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15503 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15504 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15505 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15506
15507 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15508 * README: Remove the mention of out-of-tree patches needed for
15509 GNU/Hurd.
15510
15511 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15512 (UTIME_NOW, UTIME_OMIT): Define macros.
15513
15514 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15515 instead of pthread_detach.
15516 (__cthread_fork): Call __pthread_create instead of pthread_create.
15517 (__cthread_keycreate): Call __pthread_key_create instead of
15518 pthread_key_create.
15519 (__cthread_getspecific): Call __pthread_getspecific instead of
15520 pthread_getspecific.
15521 (__cthread_setspecific): Call __pthread_setspecific instead of
15522 pthread_setspecific.
15523 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15524 __pthread_mutex_unlock instead of pthread_mutex_lock and
15525 pthread_mutex_unlock.
15526 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15527 ___pthread_get_cleanup_stack.
15528 (__pthread_get_cleanup_stack): New strong alias.
15529 * htl/pt-create.c: Include <pthreadP.h>.
15530 (entry_point): Call __pthread_exit instead of pthread_exit.
15531 (pthread_create): Rename to __pthread_create.
15532 (pthread_create): New strong alias.
15533 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15534 (pthread_detach): New strong alias.
15535 (__pthread_detach): Call __pthread_cond_broadcast instead of
15536 pthread_cond_broadcast.
15537 * htl/pt-exit.c: Include <pthreadP.h>.
15538 (__pthread_exit): Call __pthread_setcancelstate and
15539 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15540 __pthread_get_cleanup_stack.
15541 * htl/pt-testcancel.c: Include <pthreadP.h>.
15542 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15543 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15544 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15545 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15546 pthread_attr_getstacksize.
15547 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15548 Rename to __pthread_attr_getstackaddr.
15549 (pthread_attr_getstackaddr): New strong alias.
15550 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15551 Rename to __pthread_attr_getstacksize.
15552 (pthread_attr_getstacksize): New strong alias.
15553 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15554 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15555 (pthread_attr_setstack): New strong alias.
15556 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15557 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15558 pthread_attr_getstacksize, pthread_attr_setstacksize and
15559 pthread_attr_setstackaddr.
15560 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15561 Rename to __pthread_attr_setstackaddr.
15562 (pthread_attr_setstackaddr): New strong alias.
15563 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15564 Rename to __pthread_attr_setstacksize.
15565 (pthread_attr_setstacksize): New strong alias.
15566 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15567 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15568 pthread_exit.
15569 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15570 (__pthread_key_create): New hidden def.
15571 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15572 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15573 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15574 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15575 __pthread_setspecific, __pthread_setcancelstate,
15576 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15577 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15578 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15579 declarations.
15580 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15581 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15582 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15583 (pthread_attr_setstackaddr): New strong alias.
15584 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15585 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15586 (pthread_attr_setstacksize): New strong alias.
15587 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15588 (call_exit): Call __pthread_exit instead of pthread_exit.
15589 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15590 (_pthread_mutex_init): New hidden definition.
15591 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15592 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15593 instead of pthread_attr_init and pthread_attr_setstack.
15594
15595 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15596 __vm_deallocate instead of vm_allocate and vm_deallocate.
15597 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15598 setenv.
15599 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15600 of geteuid.
15601 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15602 strdup.
15603 * hurd/siginfo.c: Include <libioP.h>.
15604 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15605 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15606 munmap.
15607 * mach/devstream.c: Include <libioP.h>.
15608 (dealloc_ref): Call __mach_port_deallocate instead of
15609 mach_port_deallocate.
15610 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15611 Call __mach_port_deallocate instead of mach_port_deallocate.
15612 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15613 pathconf.
15614 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15615 munmap.
15616 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15617 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15618 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15619 of munmap.
15620 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15621 of close.
15622 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15623 instead of sysconf.
15624 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15625 __clock_gettime instead of clock_gettime.
15626 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15627 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15628 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15629 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15630 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15631 tcgetattr.
15632 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15633 __clock_gettime and __nanosleep instead of clock_gettime and
15634 nanosleep.
15635 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15636 __hurd_catch_signal.
15637 (hurd_catch_signal): New strong alias.
15638 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15639 __hurd_catch_signal instead of hurd_catch_signal.
15640 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15641 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15642 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15643 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15644 (_hurd_thread_sigstate): Add hidden def.
15645 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15646 mutex_unlock.
15647 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15648 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15649 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15650 __hurd_file_name_path_lookup.
15651 (hurd_file_name_path_lookup): New strong alias.
15652 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15653 hurd_file_name_path_lookup.
15654 * mach/errstring.c (mach_error_type): Add hidden def.
15655 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15656 * mach/mutex-init.c (__mutex_init): Add hidden def.
15657 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15658 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15659 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15660 * sysdeps/mach/hurd/getcwd.c
15661 (_hurd_canonicalize_directory_name_internal): Rename to
15662 __hurd_canonicalize_directory_name_internal.
15663 (_hurd_canonicalize_directory_name_internal): New strong alias.
15664 (__canonicalize_directory_name_internal, __getcwd): Call
15665 __hurd_canonicalize_directory_name_internal instead of
15666 _hurd_canonicalize_directory_name_internal.
15667 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15668 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15669 hidden defs.
15670 * sysdeps/hurd/include/hurd.h: New file.
15671 * sysdeps/hurd/include/hurd/fd.h: New file.
15672 * sysdeps/hurd/include/hurd/signal.h: New file.
15673 * sysdeps/mach/include/lock-intern.h: New file.
15674 * sysdeps/mach/include/mach.h: New file.
15675 * sysdeps/mach/include/mach/mig_support.h: New file.
15676 * sysdeps/mach/include/mach_error.h: New file.
15677 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15678 prototype.
15679 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15680 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15681 _HEADER_H_HIDDEN_DEF macro.
15682 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15683 _hurd_fd_error_signal): Add hidden prototype.
15684 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15685 hidden def.
15686 * libio/iolibio.h (_IO_puts): New hidden prototype.
15687 * libio/ioputs.c (_IO_puts): New hidden def.
15688 * sysdeps/mach/hurd/localplt.data: New file.
15689
15690 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15691 Amos Jeffries <squid3@treenet.co.nz>
15692 David Michael <fedora.dm0@gmail.com>
15693 Marco Gerards <marco@gnu.org>
15694 Marcus Brinkmann <marcus@gnu.org>
15695 Neal H. Walfield <neal@gnu.org>
15696 Pino Toscano <toscano.pino@tiscali.it>
15697 Richard Braun <rbraun@sceen.net>
15698 Roland McGrath <roland@gnu.org>
15699 Samuel Thibault <samuel.thibault@ens-lyon.org>
15700 Thomas DiModica <ricinwich@yahoo.com>
15701 Thomas Schwinge <tschwinge@gnu.org>
15702
15703 * htl: New directory.
15704 * sysdeps/htl: New directory.
15705 * sysdeps/hurd/htl: New directory.
15706 * sysdeps/i386/htl: New directory.
15707 * sysdeps/mach/htl: New directory.
15708 * sysdeps/mach/hurd/htl: New directory.
15709 * sysdeps/mach/hurd/i386/htl: New directory.
15710 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15711 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15712 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15713
15714 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15715
15716 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15717 signals in thread created for runing timers.
15718
15719 2018-04-01 Florian Weimer <fweimer@redhat.com>
15720
15721 * support/support_format_addrinfo.c (support_format_addrinfo):
15722 Include unknown error number in formatted result.
15723
15724 2018-03-29 Florian Weimer <fweimer@redhat.com>
15725
15726 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15727 capture SIGBUS.
15728
15729 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15730
15731 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15732 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15733 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15734 (__ASSUME_CLONE_BACKWARDS): Define.
15735
15736 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15737
15738 [BZ #23024]
15739 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15740 early when linux sentinel value is set.
15741
15742 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15743
15744 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15745
15746 2018-03-27 Andreas Schwab <schwab@suse.de>
15747
15748 [BZ #23005]
15749 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15750 allocation of private copy of nsaddr_list fails.
15751
15752 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15753
15754 [BZ #16552]
15755 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15756 * sysdeps/unix/sysv/linux/umount.c: ... here.
15757 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15758 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15759 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15760 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15762 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15763 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15764
15765 2018-03-26 Andreas Schwab <schwab@suse.de>
15766
15767 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15768 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15769 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15770 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15771 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15772 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15773 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15774 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15775 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15776 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15777 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15778 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15779 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15780 (R_RISCV_NUM): Define.
15781
15782 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15783
15784 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15785 TLS declaration of errno.
15786 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15787 __libc_setup_tls.
15788 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15789 (ARCH_SETUP_TLS): Likewise.
15790 * sysdeps/mach/hurd/libc-start.h: New file copied from
15791 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15792 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15793 instead of __libc_setup_tls.
15794 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15795 __libc_setup_tls before initializing libpthread and running _hurd_init
15796 which starts the signal thread.
15797 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15798 Declare function.
15799 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15800
15801 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15802
15803 [BZ #22998]
15804 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15805 after it is defined.
15806
15807 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15808 Max Horn <max@quendi.de>
15809
15810 [BZ #22644]
15811 CVE-2017-18269
15812 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15813 branch conditions.
15814 * string/test-memmove.c (do_test2): New testcase.
15815
15816 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15817
15818 * sysdeps/generic/frame.h: Remove file.
15819 * sysdeps/arm/frame.h: Likewise.
15820 * sysdeps/hppa/frame.h: Likewise.
15821 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15822 macro.
15823 (GET_FRAME): Likewise.
15824 (GET_STACK): Likewise.
15825 (CALL_SIGHANDLER): Likewise.
15826 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15827 Likewise.
15828 (GET_FRAME): Likewise.
15829 (GET_STACK): Likewise.
15830 (CALL_SIGHANDLER): Likewise.
15831 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15832 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15833 (GET_FRAME): Likewise.
15834 (GET_STACK): Likewise.
15835 (CALL_SIGHANDLER): Likewise.
15836 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15837 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15838 (GET_FRAME): Likewise.
15839 (GET_STACK): Likewise.
15840 (ADVANCE_STACK_FRAME): Likewise.
15841 (CALL_SIGHANDLER): Likewise.
15842 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15843 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15844 (GET_FRAME): Likewise.
15845 (GET_STACK): Likewise.
15846 (CALL_SIGHANDLER): Likewise.
15847 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15848 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15849 (GET_FRAME): Likewise.
15850 (GET_STACK): Likewise.
15851 (CALL_SIGHANDLER): Likewise.
15852 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15853 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15854 (GET_FRAME): Likewise.
15855 (GET_STACK): Likewise.
15856 (CALL_SIGHANDLER): Likewise.
15857 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15858 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15859 (GET_FRAME): Likewise.
15860 (GET_STACK): Likewise.
15861 (CALL_SIGHANDLER): Likewise.
15862 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15863 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15864 (GET_FRAME): Likewise.
15865 (GET_STACK): Likewise.
15866 (CALL_SIGHANDLER): Likewise.
15867 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15868 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15869 (GET_FRAME): Likewise.
15870 (GET_STACK): Likewise.
15871 (CALL_SIGHANDLER): Likewise.
15872 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15873 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15874 (GET_FRAME): Likewise.
15875 (GET_STACK): Likewise.
15876 (CALL_SIGHANDLER): Likewise.
15877 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15878 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15879 (GET_FRAME): Likewise.
15880 (GET_STACK): Likewise.
15881 (CALL_SIGHANDLER): Likewise.
15882 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15883 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15884 (GET_FRAME): Likewise.
15885 (GET_STACK): Likewise.
15886 (CALL_SIGHANDLER): Likewise.
15887 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15888 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15889 (FIRST_FRAME_POINTER): Likewise.
15890 (ADVANCE_STACK_FRAME): Likewise.
15891 (GET_STACK): Likewise.
15892 (GET_FRAME): Likewise.
15893 (CALL_SIGHANDLER): Likewise.
15894 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15895 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15896 (ADVANCE_STACK_FRAME): Likewise.
15897 (GET_STACK): Likewise.
15898 (GET_FRAME): Likewise.
15899 (CALL_SIGHANDLER): Likewise.
15900 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15901 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15902 (GET_FRAME): Likewise.
15903 (GET_STACK): Likewise.
15904 (CALL_SIGHANDLER): Likewise.
15905 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15906 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15907 (GET_FRAME): Likewise.
15908 (GET_STACK): Likewise.
15909 (CALL_SIGHANDLER): Likewise.
15910
15911 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15912
15913 * sysdeps/x86_64/backtrace.c: Move to ....
15914 * debug/backtrace.c: ... here.
15915 * sysdeps/aarch64/backtrace.c: Remove file.
15916 * sysdeps/alpha/backtrace.c: Likewise.
15917 * sysdeps/hppa/backtrace.c: Likewise.
15918 * sysdeps/ia64/backtrace.c: Likewise.
15919 * sysdeps/mips/backtrace.c: Likewise.
15920 * sysdeps/nios2/backtrace.c: Likewise.
15921 * sysdeps/riscv/backtrace.c: Likewise.
15922 * sysdeps/sh/backtrace.c: Likewise.
15923 * sysdeps/tile/backtrace.c: Likewise.
15924
15925 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15926
15927 [BZ #22987]
15928 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15929 function.
15930 (fdimf): Likewise.
15931 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15932
15933 [BZ #17343]
15934 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15935 possibly overflowing computations.
15936
15937 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15938
15939 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15940 values from Linux-specific section now that it is in the GNU section.
15941 * sysdeps/gnu/errlist.c: Regenerate.
15942
15943 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15944
15945 * math/Makefile (libm-narrow-fns): Add sub.
15946 (libm-test-funcs-narrow): Likewise.
15947 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15948 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15949 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15950 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15951 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15952 (NARROW_SUB_TRIVIAL): Likewise.
15953 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15954 macro.
15955 (__dsubl): Likewise.
15956 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15957 dsub.
15958 (CFLAGS-nldbl-dsub.c): New variable.
15959 (CFLAGS-nldbl-fsub.c): Likewise.
15960 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15961 __nldbl_dsubl.
15962 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15963 prototype.
15964 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15965 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15966 * math/auto-libm-test-in: Add tests of sub.
15967 * math/auto-libm-test-out-narrow-sub: New generated file.
15968 * math/libm-test-narrow-sub.inc: New file.
15969 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15970 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15971 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15972 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15973 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15974 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15975 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15976 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15977 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15978 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15979 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15980 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15981 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15982 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15983 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15984 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15985 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15986 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15987 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15988 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15989 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15990 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15991 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15992 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15993 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15994 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15995 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15996 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15997 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15998 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15999 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16000 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16005 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16006 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16007 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16008 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16009 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16010 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16011 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16012 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16013 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16014 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16015
16016 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16017
16018 [BZ #20079]
16019 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16020
16021 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16022
16023 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16024
16025 2018-03-18 Richard Braun <rbraun@sceen.net>
16026
16027 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16028 thread reference.
16029
16030 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16031
16032 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16033 (__libc_cleanup_fct): Define function.
16034 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16035 __libc_cleanup_end): Rewrite implementation using
16036 __attribute__ ((__cleanup__)).
16037 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16038 * hurd/Makefile (routines): Add hurdlock.
16039 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16040 interface.
16041 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16042 * hurd/hurdpid.c: Include <lowlevellock.h>
16043 (_S_msg_proc_newids): Use lll_wait to synchronize.
16044 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16045 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16046 * mach/Makefile (lock-headers): Remove machine-lock.h.
16047 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16048 <machine-lock.h>.
16049 (__spin_lock_t): New type.
16050 (__SPIN_LOCK_INITIALIZER): New macro.
16051 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16052 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16053 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16054 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16055 (__mutex_init): Initialize with lll.
16056 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16057 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16058 needing lll.
16059 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16060 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16061 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16062 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16063 (__setpgid): Use lll for synchronization.
16064 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16065 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16066 instead of <cthreads.h>.
16067 (_IO_lock_inexpensive): New macro
16068 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16069 (__libc_lock_self0): New declaration.
16070 (__libc_lock_owner_self): New macro.
16071 (__libc_key_t): Remove type.
16072 (_LIBC_LOCK_INITIALIZER): New macro.
16073 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16074 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16075 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16076 __libc_lock_define_initialized_recursive,
16077 __rtld_lock_define_initialized_recursive,
16078 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16079 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16080 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16081 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16082 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16083 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16084 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16085 New macros.
16086 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16087 * hurd/hurdlock.c: New file.
16088 * hurd/hurdlock.h: New file.
16089 * mach/lowlevellock.h: New file
16090
16091 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16092
16093 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16094 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16095 when opening a symlink with O_NOFOLLOW.
16096 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16097 path when flags contains O_NOFOLLOW.
16098 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16099 if flags contains O_DIRECTORY and the result is a directory.
16100 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16101 oneself when the pointer given in D is nul (as set by ext2fs).
16102 * sysdeps/mach/hurd/mlockall.c: New file.
16103 * sysdeps/mach/hurd/munlockall.c: New file.
16104
16105 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16106
16107 * hurd/hurdsig.c: Include <pthread.h>.
16108 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16109 get the signal thread stack layout.
16110 * hurd/Makefile (headers): Remove threadvar.h.
16111 (inline-headers): Remove threadvar.h.
16112 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16113 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16114 __hurd_threadvar_max, __hurd_errno_location.
16115 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16116 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16117 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16118 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16119 unless TLS is not initialized yet, in which case we do not need a
16120 critical section yet anyway.
16121 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16122 <machine-sp.h>.
16123 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16124 declarations.
16125 (__hurd_threadvar_index): Remove enum.
16126 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16127 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16128 inlines.
16129 (__hurd_reply_port0): New variable declaration.
16130 (__hurd_local_reply_port): New macro.
16131 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16132 (interrupted_reply_port_location): Add thread_t parameter. Use it
16133 with THREAD_TCB to access thread-local variables.
16134 (_hurdsig_abort_rpcs): Pass ss->thread to
16135 interrupted_reply_port_location.
16136 (_hurd_internal_post_signal): Likewise.
16137 (_hurdsig_init): Use presence of cthread_fork instead of
16138 __hurd_threadvar_stack_mask to start signal thread by hand.
16139 Remove signal thread threadvar initialization.
16140 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16141 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16142 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16143 of threadvar.
16144 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16145 __libc_lock_self0.
16146 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16147 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16148 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16149 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16150 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16151 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16152 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16153 define variables.
16154 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16155 <hurd/threadvar.h>.
16156 [IS_IN(rtld)] (rtld_errno): New variable.
16157 [IS_IN(rtld)] (__errno_location): New weak function.
16158 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16159 * sysdeps/mach/hurd/errno.c: Remove file.
16160 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16161 (__fork): Remove THREADVAR_SPACE macro and its use.
16162 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16163 variable.
16164 (init): Do not initialize threadvar.
16165 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16166 symbol.
16167 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16168 __hurd_local_reply_port instead of threadvar.
16169 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16170 _hurd_sigstate fields.
16171 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16172 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16173 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16174 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16175 instead of threadvar.
16176 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16177 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16178 (use_threadvar, global_reply_port): Remove variables.
16179 (__hurd_reply_port0): New variable.
16180 (__mig_get_reply_port): Use __hurd_local_reply_port and
16181 __hurd_reply_port0 instead of threadvar.
16182 (__mig_dealloc_reply_port): Likewise.
16183 (__mig_init): Do not initialize threadvar.
16184 * sysdeps/mach/hurd/profil.c: Fix comment.
16185 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16186 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16187 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16188 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16189 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16190 __cthread_setspecific.
16191 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16192 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16193 __cthread_t instead of cthread_fork, cthread_detach,
16194 pthread_getattr_np, pthread_attr_getstack.
16195 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16196 __cthread_keycreate.
16197 (cthread_getspecific): Rename to __cthread_getspecific.
16198 (cthread_setspecific): Rename to __cthread_setspecific.
16199 (__libc_getspecific): Use __cthread_getspecific instead of
16200 cthread_getspecific.
16201 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16202 __cthread_keycreate instead of cthread_keycreate.
16203 (__libc_setspecific): Use __cthread_setspecific instead of
16204 cthread_setspecific.
16205 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16206 Likewise.
16207 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16208 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16209 testing whether it is defined.
16210
16211 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16212
16213 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16214 Define macro.
16215 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16216 * sysdeps/mach/i386/thread_state.h
16217 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16218 i386_THREAD_STATE.
16219 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16220 i386_THREAD_STATE.
16221 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16222
16223 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16224 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16225
16226 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16227 macros.
16228 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16229 descriptor instead of creating a new one.
16230 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16231
16232 * mach/setup-thread.c: Include <ldsodefs.h>.
16233 (__mach_setup_thread): Call _dl_allocate_tls, pass
16234 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16235 MACHINE_THREAD_STATE_FLAVOR, before getting
16236 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16237 MACHINE_THREAD_STATE_FLAVOR with the result.
16238 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16239 MACHINE_THREAD_STATE_FIX_NEW.
16240 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16241 too. Add original thread parameter.
16242
16243 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16244
16245 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16246 Remove inline function.
16247
16248 * sysdeps/i386/fpu/libm-test-ulps: Update.
16249 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16250
16251 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16252
16253 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16254 commit.
16255
16256 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16257
16258 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16259 (__sincos_code): Remove define and undefine.
16260 [__FAST_MATH__] (__sincos): Remove inline function.
16261 [__FAST_MATH__] (__sincosf): Remove inline function.
16262 [__FAST_MATH__] (__sincosl): Remove inline function.
16263 (__atan2l): Remove inline functions.
16264 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16265 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16266 function.
16267 (floor): Remove inline function.
16268 (ceil): Likewise.
16269 [__FAST_MATH__] (__ldexp_code): Remove macro.
16270 [__FAST_MATH__] (ldexp): Remove inline function.
16271 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16272 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16273 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16274 [__USE_ISOC99] (__lrint_code): Remove macro.
16275 [__USE_ISOC99] (__llrint_code): Likewise.
16276 [__USE_ISOC99] (lrintf): Remove inline function.
16277 [__USE_ISOC99] (lrint): Likewise.
16278 [__USE_ISOC99] (lrintl): Likewise.
16279 [__USE_ISOC99] (llrint): Likewise.
16280 [__USE_ISOC99] (llrintf): Likewise.
16281 [__USE_ISOC99] (llrintl): Likewise.
16282
16283 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16284
16285 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16286 (__ieee754_sqrtf): Remove.
16287 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16288 (__ieee754_sqrtf): Remove.
16289 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16290 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16291 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16292 (__ieee754_sqrtf): Remove.
16293 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16294 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16295 (sqrtf): Remove.
16296 (sqrtl): Remove.
16297 (__ieee754_sqrt): Remove.
16298 (__ieee754_sqrtf): Remove.
16299 (__ieee754_sqrtl): Remove.
16300 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16301 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16302 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16303 (__ieee754_sqrtf): Remove.
16304 (__ieee754_sqrtl): Remove.
16305
16306 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16307
16308 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16309 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16310 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16311 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16312 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16313 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16314 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16315 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16316 Likewise.
16317 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16318 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16319 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16320 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16321 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16322 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16323 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16324 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16325 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16326 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16327 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16328 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16329 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16330 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16331 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16332 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16333 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16334 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16335 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16336 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16337 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16338 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16339 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16340 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16341 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16342 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16343 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16344 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16345 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16346 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16347 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16348 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16349 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16350 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16351 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16352 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16353 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16354 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16355 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16356 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16357
16358 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16359
16360 * include/math.h (sqrt): Declare with asm redirect.
16361 (sqrtf): Likewise.
16362 (sqrtl): Likewise.
16363 (sqrtf128): Likewise.
16364 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16365 nonlib and libnldbl with -fmath-errno.
16366 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16367 * math/w_sqrt_template.c: Likewise.
16368 * math/w_sqrtf_compat.c: Likewise.
16369 * math/w_sqrtl_compat.c: Likewise.
16370 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16371 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16372 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16373 complex.h.
16374
16375 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16376
16377 * benchtests/Makefile: Define _ISOMAC.
16378 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16379 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16380 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16381 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16382 * benchtests/bench-timing.h: Define attribute_hidden.
16383
16384 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16385
16386 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16387 mov + lsr.
16388
16389 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16390
16391 [BZ #22963]
16392 * localedata/locales/cs_CZ (mon): Rename to...
16393 (alt_mon): This.
16394 (mon): Import from CLDR (genitive case).
16395
16396 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16397
16398 [BZ #22937]
16399 * localedata/locales/el_CY (abmon): Rename to...
16400 (ab_alt_mon): This.
16401 (abmon): Import from CLDR (abbreviated genitive case).
16402 * localedata/locales/el_GR (abmon): Rename to...
16403 (ab_alt_mon): This.
16404 (abmon): Import from CLDR (abbreviated genitive case).
16405
16406 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16407
16408 [BZ #22932]
16409 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16410
16411 2018-03-15 Robert Buj <robert.buj@gmail.com>
16412
16413 [BZ #22848]
16414 * localedata/locales/ca_ES (abmon): Rename to...
16415 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16416 (mon): Rename to...
16417 (alt_mon): This.
16418 (abmon): Import from CLDR (genitive case, month names preceded by
16419 "de" or "d’").
16420 (mon): Likewise.
16421 (abday): Synchronize with CLDR.
16422 (d_t_fmt): Likewise.
16423 (d_fmt): Likewise.
16424 (am_pm): Likewise.
16425
16426 (LC_TIME): Improve indentation.
16427 (LC_TELEPHONE): Likewise.
16428 (LC_NAME): Likewise.
16429 (LC_ADDRESS): Likewise.
16430
16431 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16432
16433 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16434 (lrintf): Remove definitions used only with old GCC.
16435 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16436 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16437 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16438 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16439 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16440 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16441 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16442 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16443 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16444 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16445 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16446 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16447 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16448 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16449 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16450 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16451 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16452 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16453 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16454 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16455 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16456 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16457 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16458 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16459 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16460 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16461 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16462 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16463
16464 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16465
16466 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16467 instruction to unbreak builds with binutils 2.26 and older.
16468
16469 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16470
16471 * sysdeps/aarch64/strncmp.S (count): New macro.
16472 (strncmp): Store misaligned length in SRC1 in COUNT.
16473 (mutual_align): Adjust.
16474 (misaligned8): Load dword at a time when it is safe.
16475
16476 2018-03-12 Zack Weinberg <zackw@panix.com>
16477
16478 [BZ #1190]
16479 [BZ #19476]
16480 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16481 if the _IO_EOF_SEEN bit is already set; update commentary.
16482 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16483 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16484
16485 * support/support_openpty.c, support/tty.h: New files.
16486 * support/Makefile (libsupport-routines): Add support_openpty.
16487
16488 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16489 New test cases.
16490 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16491 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16492
16493 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16494
16495 * po/pt_BR.po: Update translations.
16496
16497 2018-03-12 David Michael <fedora.dm0@gmail.com>
16498
16499 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16500 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16501 get a port to the startup server.
16502
16503 2018-03-11 Zack Weinberg <zackw@panix.com>
16504
16505 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16506 before nldbl-compat.h.
16507
16508 2018-03-10 Zack Weinberg <zackw@panix.com>
16509
16510 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16511 math.h or math_private.h.
16512
16513 * sysdeps/alpha/fpu/s_isnan.c
16514 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16515 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16516 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16517 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16518 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16519 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16520 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16521 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16522 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16525 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16526 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16527 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16528 Include math_private.h.
16529
16530 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16531 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16532 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16533 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16534 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16535 * sysdeps/powerpc/power7/fpu/s_logb.c:
16536 Include math.h and math_private.h.
16537
16538 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16539 uses of $at in .set noat / .set at.
16540
16541 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16542
16543 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16544 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16545 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16546 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16547 Likewise.
16548
16549 2018-03-09 Florian Weimer <fweimer@redhat.com>
16550
16551 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16552 in comment.
16553
16554 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16555
16556 [BZ #22919]
16557 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16558 Add nop before __startcontext, add explaining comments.
16559
16560 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16561
16562 [BZ #22926]
16563 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16564 empty for __SPE__.
16565 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16566 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16567 Do not build hardware transactional code for __SPE__.
16568 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16569 (__lll_trylock_elision): Likewise.
16570 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16571 (__lll_unlock_elision): Likewise.
16572
16573 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16574 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16575 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16576 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16577 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16578 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16579 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16580 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16581 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16582 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16583 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16584 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16585 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16586 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16587 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16588 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16589 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16590 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16591 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16592 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16593 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16594 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16595 (__ASSUME_CLONE_BACKWARDS): Define.
16596 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16597 __clone2 if __NR_clone2 is defined.
16598 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16599 (__ASSUME_CLONE_BACKWARDS): Likewise.
16600 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16601 (__ASSUME_CLONE_BACKWARDS): Likewise.
16602 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16603 (__ASSUME_CLONE2): Likewise.
16604 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16605 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16606 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16607 variants and the define architecture can use.
16608 (__ASSUME_CLONE_DEFAULT): Define as default.
16609 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16610 (__ASSUME_CLONE_BACKWARDS): Likewise.
16611 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16612 (__ASSUME_CLONE_BACKWARDS): Likewise.
16613 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16614 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16615
16616 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16617
16618 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16619
16620 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16621 time.
16622
16623 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16624 (do_test_limit): Likewise.
16625
16626 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16627 for every implementation.
16628 (do_test): Likewise.
16629
16630 * benchtests/bench-strncmp.c: Convert output to json.
16631
16632 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16633
16634 * io/futimens.c: Add missing start-of-file descriptive comment.
16635 * io/utime.c: Likewise.
16636 * misc/futimesat.c: Likewise.
16637 * misc/utimes.c: Likewise.
16638 * sysdeps/mach/hurd/futimesat.c: Likewise.
16639 * sysdeps/mach/hurd/utimes.c: Likewise.
16640 * sysdeps/posix/utime.c: Likewise.
16641 * sysdeps/posix/utimes.c: Likewise.
16642 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16643 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16644 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16645 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16646
16647 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16648
16649 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16650 hurd_futimes.
16651 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16652 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16653 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16654 (__futimens): Move implementation to...
16655 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16656 utime_tvalue_from_tspec): ... new helper functions.
16657 (hurd_futimens): New function.
16658 * sysdeps/mach/hurd/futimesat.c: New file.
16659 * sysdeps/mach/hurd/utimensat.c: New file.
16660
16661 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16662
16663 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16664 UTIME_OMIT): New macros.
16665 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16666 before reverting to converting time spec to time value and calling
16667 __file_utimes.
16668 * sysdeps/mach/hurd/utime-helper.c: New file.
16669 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16670 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16671 reverting to utime_tvalue_from_tval and __file_utimes.
16672 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16673 (__lutimes): Just call hurd_futimens after lookup.
16674 * sysdeps/mach/hurd/utimes.c: Likewise.
16675
16676 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16677
16678 * bits/sigaction.h: Add include guard.
16679 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16680 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16681 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16682 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16683 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16684 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16685 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16686 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16687 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16688
16689 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16690
16691 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16692 -Wmaybe-uninitialized for -Os.
16693 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16694 this disabling.
16695
16696 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16697
16698 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16699 __INO_T_MATCHES_INO64_T is defined.
16700 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16701 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16702 of definition.
16703 * dirent/alphasort64.c: Likewise.
16704 * dirent/scandir.c: Likewise.
16705 * dirent/scandir64-tail.c: Likewise.
16706 * dirent/scandir64.c: Likewise.
16707 * dirent/scandirat.c: Likewise.
16708 * dirent/scandirat64.c: Likewise.
16709 * dirent/versionsort.c: Likewise.
16710 * dirent/versionsort64.c: Likewise.
16711 * include/dirent.h: Likewise.
16712
16713 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16714 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16715 for socketpair endpoint.
16716 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16717 WRITE_BUFFER_SIZE as buffer size for sending socket.
16718 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16719 issue on system where send is implemented with sendto syscall.
16720 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16721 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16722 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16723 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16724
16725 [BZ #21269]
16726 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16727 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16728 sa_restorer for vDSO case.
16729 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16730
16731 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16732
16733 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16734 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16735 * hurd/hurd/ioctl.h: Include <mach/port.h>
16736 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16737 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16738 <mach/mach_types.h> and <mach/message.h>.
16739 (headers): Move mach/param.h to bits/mach/param.h.
16740 * sysdeps/mach/i386/mach/param.h: Move file to ...
16741 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16742 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16743 of <mach/param.h>.
16744 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16745 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16746 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16747 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16748 trivial, for C++ conformity.
16749 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16750 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16751 Process mig output through $(migheadersed).
16752 * hurd/Makefile (migheadersed): Define variable.
16753 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16754 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16755 headers.
16756 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16757 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16758 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16759 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16760 <bits/types/sigset_t.h>.
16761 [!defined __USE_GNU]: Do not #error out.
16762 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16763 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16764 Include <stddef.h> and <bits/types/sigset_t.h>
16765 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16766 instead of sighandler_t.
16767 * stdlib/errno.h (error_t): Move definition to...
16768 * bits/types/error_t.h: ... new header.
16769 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16770 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16771 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16772 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16773 * hurd/hurd.h: Include <bits/types/error_t.h>
16774 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16775 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16776 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16777 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16778 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16779 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16780 * sysdeps/mach/hurd/futimens.c: New file.
16781
16782 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16783
16784 [BZ #22918]
16785 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16786 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16787 * nscd/gai.c (__nss_hosts_database): Readd definition.
16788 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16789 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16790 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16791
16792 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16793
16794 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16795 (ifunc_one): Likewise.
16796
16797 2018-03-01 DJ Delorie <dj@delorie.com>
16798
16799 [BZ #22342]
16800 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16801 key value.
16802
16803 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16804
16805 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16806 `match_pid' parameter.
16807 (td_ta_thr_iter): Update accordingly.
16808
16809 2018-03-01 Florian Weimer <fweimer@redhat.com>
16810
16811 * nptl/Makefile (install-lib-ldscripts): Remove.
16812 (install): Remove rule.
16813 ($(inst_libdir)/libpthread.so): Likewise.
16814
16815 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16816
16817 [BZ #22896]
16818 * localedata/locales/an_ES: update month and day names,
16819 improve d_fmt, improve postal_fmt, add country_post,
16820 add country_isbn
16821
16822 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16823
16824 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16825 Ukrainian instead of Bulgarian.
16826
16827 2018-03-01 Florian Weimer <fweimer@redhat.com>
16828
16829 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16830 reference.
16831
16832 2018-03-01 Florian Weimer <fweimer@redhat.com>
16833
16834 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16835 * nptl/Makefile (routines): Add pthread_atfork.
16836 (static-only-routines): Set to pthread_atfork.
16837 (libpthread-routines): Remove pthread_atfork.
16838 (libpthread-static-only-routines): Remove.
16839 (install): Update comment.
16840 (libpthread.so): Do not install libpthread_nonshared.a.
16841 (tests): Do not link with libpthread_nonshared.a.
16842 (generated): Remove libpthread_nonshared.a.
16843 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16844 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16845 with libpthread_nonshared.a.
16846
16847 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16848
16849 [BZ #22902]
16850 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16851 (libc_feholdexcept_setroundf128): New macro.
16852 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16853
16854 [BZ #15105]
16855 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16856 libc_hidden_def.
16857 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16858 * include/inttypes.h: New file.
16859
16860 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16861
16862 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16863 -Os in two more places.
16864
16865 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16866
16867 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16868 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16869 be sorted correctly at the moment because of a bug.
16870
16871 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16872
16873 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16874 treat ñ as a primary different character, sync the collation
16875 for Spanish with CLDR.
16876 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16877 * localedata/Makefile: Add new test files.
16878 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16879 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16880 collation order.
16881 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16882 * localedata/am_ET.UTF-8.in: New test file.
16883 * localedata/az_AZ.UTF-8.in: Likewise.
16884 * localedata/be_BY.UTF-8.in: Likewise.
16885 * localedata/ber_DZ.UTF-8.in: Likewise.
16886 * localedata/ber_MA.UTF-8.in: Likewise.
16887 * localedata/bg_BG.UTF-8.in: Likewise.
16888 * localedata/br_FR.UTF-8.in: Likewise.
16889 * localedata/cmn_TW.UTF-8.in: Likewise.
16890 * localedata/crh_UA.UTF-8.in: Likewise.
16891 * localedata/csb_PL.UTF-8.in: Likewise.
16892 * localedata/cv_RU.UTF-8.in: Likewise.
16893 * localedata/cy_GB.UTF-8.in: Likewise.
16894 * localedata/dz_BT.UTF-8.in: Likewise.
16895 * localedata/eo.UTF-8.in: Likewise.
16896 * localedata/es_ES.UTF-8.in: Likewise.
16897 * localedata/fa_IR.UTF-8.in: Likewise.
16898 * localedata/fi_FI.UTF-8.in: Likewise.
16899 * localedata/fil_PH.UTF-8.in: Likewise.
16900 * localedata/fur_IT.UTF-8.in: Likewise.
16901 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16902 * localedata/ha_NG.UTF-8.in: Likewise.
16903 * localedata/ig_NG.UTF-8.in: Likewise.
16904 * localedata/ik_CA.UTF-8.in: Likewise.
16905 * localedata/kk_KZ.UTF-8.in: Likewise.
16906 * localedata/ku_TR.UTF-8.in: Likewise.
16907 * localedata/ky_KG.UTF-8.in: Likewise.
16908 * localedata/ln_CD.UTF-8.in: Likewise.
16909 * localedata/mi_NZ.UTF-8.in: Likewise.
16910 * localedata/ml_IN.UTF-8.in: Likewise.
16911 * localedata/mn_MN.UTF-8.in: Likewise.
16912 * localedata/mr_IN.UTF-8.in: Likewise.
16913 * localedata/mt_MT.UTF-8.in: Likewise.
16914 * localedata/nb_NO.UTF-8.in: Likewise.
16915 * localedata/om_KE.UTF-8.in: Likewise.
16916 * localedata/os_RU.UTF-8.in: Likewise.
16917 * localedata/ps_AF.UTF-8.in: Likewise.
16918 * localedata/ro_RO.UTF-8.in: Likewise.
16919 * localedata/ru_RU.UTF-8.in: Likewise.
16920 * localedata/sc_IT.UTF-8.in: Likewise.
16921 * localedata/se_NO.UTF-8.in: Likewise.
16922 * localedata/sq_AL.UTF-8.in: Likewise.
16923 * localedata/sv_SE.UTF-8.in: Likewise.
16924 * localedata/szl_PL.UTF-8.in: Likewise.
16925 * localedata/tg_TJ.UTF-8.in: Likewise.
16926 * localedata/tk_TM.UTF-8.in: Likewise.
16927 * localedata/tt_RU.UTF-8.in: Likewise.
16928 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16929 * localedata/ug_CN.UTF-8.in: Likewise.
16930 * localedata/uz_UZ.UTF-8.in: Likewise.
16931 * localedata/vi_VN.UTF-8.in: Likewise.
16932 * localedata/yi_US.UTF-8.in: Likewise.
16933 * localedata/yo_NG.UTF-8.in: Likewise.
16934 * localedata/zh_CN.UTF-8.in: Likewise.
16935 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16936 file and fix bugs in the collation.
16937 * localedata/locales/az_AZ: Likewise.
16938 * localedata/locales/be_BY: Likewise.
16939 * localedata/locales/ber_DZ: Likewise.
16940 * localedata/locales/ber_MA: Likewise.
16941 * localedata/locales/bg_BG: Likewise.
16942 * localedata/locales/br_FR: Likewise.
16943 * localedata/locales/br_FR@euro: Likewise.
16944 * localedata/locales/ca_ES: Likewise.
16945 * localedata/locales/cns11643_stroke: Likewise.
16946 * localedata/locales/crh_UA: Likewise.
16947 * localedata/locales/cs_CZ: Likewise.
16948 * localedata/locales/csb_PL: Likewise.
16949 * localedata/locales/cv_RU: Likewise.
16950 * localedata/locales/cy_GB: Likewise.
16951 * localedata/locales/da_DK: Likewise.
16952 * localedata/locales/dz_BT: Likewise.
16953 * localedata/locales/en_CA: Likewise.
16954 * localedata/locales/eo: Likewise.
16955 * localedata/locales/es_CU: Likewise.
16956 * localedata/locales/es_EC: Likewise.
16957 * localedata/locales/es_ES: Likewise.
16958 * localedata/locales/es_US: Likewise.
16959 * localedata/locales/et_EE: Likewise.
16960 * localedata/locales/fa_IR: Likewise.
16961 * localedata/locales/fi_FI: Likewise.
16962 * localedata/locales/fil_PH: Likewise.
16963 * localedata/locales/fur_IT: Likewise.
16964 * localedata/locales/gez_ER@abegede: Likewise.
16965 * localedata/locales/ha_NG: Likewise.
16966 * localedata/locales/hr_HR: Likewise.
16967 * localedata/locales/hsb_DE: Likewise.
16968 * localedata/locales/hu_HU: Likewise.
16969 * localedata/locales/ig_NG: Likewise.
16970 * localedata/locales/ik_CA: Likewise.
16971 * localedata/locales/is_IS: Likewise.
16972 * localedata/locales/iso14651_t1_pinyin: Likewise.
16973 * localedata/locales/kk_KZ: Likewise.
16974 * localedata/locales/ku_TR: Likewise.
16975 * localedata/locales/ky_KG: Likewise.
16976 * localedata/locales/ln_CD: Likewise.
16977 * localedata/locales/lt_LT: Likewise.
16978 * localedata/locales/lv_LV: Likewise.
16979 * localedata/locales/mi_NZ: Likewise.
16980 * localedata/locales/ml_IN: Likewise.
16981 * localedata/locales/mn_MN: Likewise.
16982 * localedata/locales/mr_IN: Likewise.
16983 * localedata/locales/mt_MT: Likewise.
16984 * localedata/locales/nb_NO: Likewise.
16985 * localedata/locales/om_KE: Likewise.
16986 * localedata/locales/os_RU: Likewise.
16987 * localedata/locales/pl_PL: Likewise.
16988 * localedata/locales/ps_AF: Likewise.
16989 * localedata/locales/ro_RO: Likewise.
16990 * localedata/locales/ru_RU: Likewise.
16991 * localedata/locales/ru_UA: Likewise.
16992 * localedata/locales/sc_IT: Likewise.
16993 * localedata/locales/se_NO: Likewise.
16994 * localedata/locales/si_LK: Likewise.
16995 * localedata/locales/sq_AL: Likewise.
16996 * localedata/locales/sv_FI: Likewise.
16997 * localedata/locales/sv_FI@euro: Likewise.
16998 * localedata/locales/sv_SE: Likewise.
16999 * localedata/locales/szl_PL: Likewise.
17000 * localedata/locales/tg_TJ: Likewise.
17001 * localedata/locales/ti_ER: Likewise.
17002 * localedata/locales/tk_TM: Likewise.
17003 * localedata/locales/tl_PH: Likewise.
17004 * localedata/locales/tr_TR: Likewise.
17005 * localedata/locales/tt_RU: Likewise.
17006 * localedata/locales/tt_RU@iqtelif: Likewise.
17007 * localedata/locales/ug_CN: Likewise.
17008 * localedata/locales/uk_UA: Likewise.
17009 * localedata/locales/uz_UZ: Likewise.
17010 * localedata/locales/uz_UZ@cyrillic: Likewise.
17011 * localedata/locales/vi_VN: Likewise.
17012 * localedata/locales/yi_US: Likewise.
17013 * localedata/locales/yo_NG: Likewise.
17014
17015 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17016
17017 * gen-locales.mk: Make test files which contain @ modifiers in their
17018 name work.
17019 * localedata/gen-locale.sh: Likewise.
17020
17021 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17022
17023 * posix/tst-fnmatch.input: Fix results for range expressions
17024 for non C locales.
17025 * posix/tst-regexloc.c: Do not use a range expression for
17026 de_DE.ISO-8859-1 locale.
17027
17028 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17029
17030 * posix/bug-regex5.c: Fix test case because with the new
17031 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17032 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17033 file.
17034
17035 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17036
17037 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17038 downloaded from ISO, the collation order of @-. and space has changed.
17039 Therefore, this test file needed to be adapted.
17040 * localedata/fr_CA.UTF-8.in: Likewise.
17041 * localedata/fr_FR.UTF-8.in: Likewise.
17042 * localedata/uk_UA.UTF-8.in: Likewise.
17043
17044 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17045
17046 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17047 order of ȥ in the new iso14651_t1_common file.
17048 * localedata/pl_PL.UTF-8.in: Likewise.
17049
17050 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17051
17052 * localedata/locales/iso14651_t1_common: Add sections for various
17053 scripts to the iso14651_t1_common file.
17054
17055 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17056
17057 * localedata/locales/iso14651_t1_common: Use the code point of a
17058 character in the fourth collation level instead of IGNORE for all
17059 entries which have IGNORE on all 4 levels.
17060
17061 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17062
17063 * localedata/locales/iso14651_t1_common: Add some convenient collation
17064 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17065 rules similar to those in CLDR.
17066
17067 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17068
17069 * localedata/locales/iso14651_t1_common: The new version of this
17070 file downloaded from ISO contained several syntax errors which
17071 are fixed by this patch.
17072
17073 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17074
17075 * localedata/locales/iso14651_t1_common: replace all <U.....>
17076 with <U000.....> because glibc understands only 4 digit or 8 digit
17077
17078 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17079
17080 * localedata/locales/iso14651_t1_common: Necessary changes
17081 to make the file downloaded from ISO usable by glibc.
17082
17083 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17084
17085 [BZ #14095]
17086 * localedata/locales/iso14651_t1_common: Update file to
17087 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17088
17089 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17090
17091 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17092 of <nptl/pthreadP.h>
17093 (thread_attr_compare): Move function to...
17094 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17095 * sysdeps/nptl/timer_routines.h: ... new header.
17096 * sysdeps/mach/hurd/gai_misc.h: New file.
17097
17098 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17099
17100 * string/strcoll_l.c: Include <libc-diag.h>.
17101 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17102 declarations of seq1 and seq2.
17103
17104 [BZ #15105]
17105 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17106 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17107
17108 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17109
17110 [BZ #22433]
17111 [BZ #22807]
17112 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17113 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17114 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17115 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17116 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17117 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17118
17119 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17120
17121 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17122 macros used in __ptrace_request.
17123
17124 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17125
17126 [BZ #22792]
17127 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17128 to $(CC).
17129 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17130 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17131 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17132 <tcb-offsets.h>.
17133
17134 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17135
17136 [BZ #15105]
17137 * ctype/ctype.c (tolower): Use libc_hidden_def.
17138 (toupper): Likewise.
17139 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17140 [!_ISOMAC] (toupper): Likewise.
17141
17142 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17143
17144 * localedata/Makefile: Remove --quiet argument when
17145 installing locales
17146
17147 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17148
17149 [BZ #17438]
17150 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17151 in d_fmt.
17152 * localedata/locales/pt_PT (LC_TIME): likewise
17153
17154 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17155
17156 [BZ #22646]
17157 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17158 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17159 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17160
17161 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17162
17163 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17164
17165 * nptl/Makefile (routines): Remove unregister-atfork.
17166 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17167 (fork_handler_alloc): Remove function.
17168 (fork_handlers, fork_handler_init): New variables.
17169 (__fork_lock): Rename to atfork_lock.
17170 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17171 to use a dynamic array to add/remove atfork handlers.
17172 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17173 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17174 Remove declaration.
17175 (fork_handler): Remove next, refcntr, and need_signal member.
17176 (__run_fork_handler_type): New enum.
17177 (__run_fork_handlers): New prototype.
17178 * nptl/register-atfork.c: Remove file.
17179 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17180
17181 * sysdeps/nptl/nptl-signals.h: Move to ...
17182 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17183 comments.
17184 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17185 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17186 unnecessary check for SIGTIMER.
17187 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17188 remove unnecessary removal of SIGTIMER.
17189 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17190 include-signals.h rename.
17191 * nptl/pthreadP.h: Likewise.
17192 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17193 __is_internal_signal instead of __nptl_is_internal_signal.
17194
17195 2018-02-22 Andrew Waterman <andrew@sifive.com>
17196
17197 [BZ # 22884]
17198 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17199 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17200 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17201 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17202
17203 2018-02-22 DJ Delorie <dj@delorie.com>
17204
17205 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17206
17207 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17208
17209 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17210 do_misaligned, not misaligned8.
17211
17212 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17213
17214 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17215 Add memcpy_thunderx2.
17216 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17217 Increment to 4.
17218 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17219 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17220 and IS_THUNDERX2PA checks.
17221 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17222 Use macro to set name appropriately.
17223 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17224 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17225 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17226 New macro.
17227 (IS_THUNDERX2): New macro.
17228
17229 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17230
17231 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17232
17233 2018-02-21 Zack Weinberg <zackw@panix.com>
17234
17235 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17236 Define here, unconditionally.
17237 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17238 * libio/libioP.h: Remove #if 0 blocks.
17239 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17240 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17241 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17242
17243 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17244 Assume weak_alias is always defined.
17245
17246 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17247 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17248 Remove #if 0 and #ifdef TODO blocks.
17249 Assume text_set_element is always defined.
17250
17251 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17252 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17253 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17254
17255 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17256 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17257 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17258 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17259 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17260 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17261 Reformat bit flags for _flags field to make occupancy clearer.
17262 Update commentary.
17263 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17264 Keep definitions consistent with those in libio/libio.h.
17265
17266 * libio/libio.h (_IO_file_flags): Remove macro.
17267 All uses changed to _flags.
17268
17269 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17270 (__HAVE_COLUMN, _IO_BE): Don't define.
17271 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17272 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17273 * libio/libioP.h (EOF): Don't define.
17274 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17275 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17276 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17277 testing _IO_UNIFIED_JUMPTABLES.
17278
17279 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17280 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17281 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17282 (_IO_size_t): Delete; all uses changed to size_t.
17283 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17284 (_IO_off_t): Delete; all uses changed to off_t.
17285 (_IO_off64_t): Delete; all uses changed to off64_t.
17286 (_IO_pid_t): Delete; all uses changed to pid_t.
17287 (_IO_uid_t): Delete; all uses changed to uid_t.
17288 (_IO_wint_t): Delete; all uses changed to wint_t.
17289 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17290 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17291 (_IO_cookie_io_functions_t): Delete; all uses changed to
17292 cookie_io_functions_t.
17293 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17294 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17295 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17296 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17297
17298 * libio/iofopncook.c: Remove unnecessary forward declarations.
17299 * libio/iolibio.h: Correct outdated commentary.
17300 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17301 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17302 Remove unnecessary casts.
17303 * stdio-common/getline.c: Use _IO_getdelim directly.
17304 Don't redefine ssize_t.
17305 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17306 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17307 Remove outdated comments.
17308 * stdio-common/vfscanf.c: Don't redefine va_list.
17309
17310 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17311 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17312 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17313 which are always true, and __cplusplus, which is always false.
17314
17315 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17316
17317 [BZ #15105]
17318 [BZ #19463]
17319 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17320 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17321 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17322 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17323 libc_hidden_proto.
17324 [!_ISOMAC] (putc_unlocked): Likewise.
17325 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17326 define inline if [__USE_EXTERN_INLINES].
17327 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17328 putc_unlocked.
17329
17330 [BZ #15105]
17331 [BZ #19463]
17332 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17333 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17334 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17335 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17336 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17337 getc_unlocked.
17338 * time/tzfile.c (__tzfile_read): Likewise.
17339
17340 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17341
17342 [BZ #22517]
17343 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17344
17345 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17346
17347 * io/fcntl.h: Fix a typo in a comment.
17348
17349 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17350
17351 [BZ #22862]
17352 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17353 define _DEFAULT_SOURCE.
17354 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17355
17356 2018-02-21 Florian Weimer <fweimer@redhat.com>
17357
17358 [BZ #20890]
17359 * elf/cache.c (save_cache): Call fsync on temporary file before
17360 renaming it.
17361 (save_aux_cache): Call fdatasync on temporary file before renaming
17362 it.
17363
17364 2018-02-21 Florian Weimer <fweimer@redhat.com>
17365
17366 [BZ #22787]
17367 * include/caller.h: Remove file.
17368 * elf/dl-caller.c: Likewise.
17369 * elf/Makefile (dl-routines): Remove dl-caller.
17370 (shared-only-routines): Do not add dl-caller.
17371 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17372 __check_caller.
17373 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17374 member.
17375 (dl_open_worker): Do not call __check_caller.
17376 (_dl_open): Do not set caller_dl_open member.
17377 * elf/rtld.c (_rtld_global_ro): Do not initialize
17378 _dl_check_caller member.
17379 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17380 _dl_check_caller member.
17381 (_dl_check_caller): Remove declaration.
17382 * sysdeps/unix/sysv/linux/dl-execstack.c
17383 (_dl_make_stack_executable): Do not call __check_caller.
17384
17385 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17386
17387 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17388 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17389
17390 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17391
17392 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17393 description.
17394
17395 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17396
17397 [BZ #16335]
17398 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17399 of 199606L, 200112L, and 200809L.
17400 (_XOPEN_SOURCE): Document special values of 600 and 700.
17401 (_ISOC11_SOURCE): Document macro.
17402 (_ATFILE_SOURCE): Likewise.
17403 (_FORTIFY_SOURCE): Likewise.
17404
17405 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17406
17407 [BZ #15105]
17408 [BZ #19463]
17409 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17410 and define as weak alias of __ferror_unlocked. Use
17411 libc_hidden_weak.
17412 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17413 libc_hidden_proto.
17414 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17415 function if [__USE_EXTERN_INLINES].
17416 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17417 ferror_unlocked.
17418
17419 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17420
17421 [BZ #6889]
17422 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17423
17424 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17425
17426 [BZ #22818]
17427 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17428 the GLIBC_2.1 version.
17429
17430 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17431
17432 [BZ #21508]
17433 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17434 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17435 intl/tst-gettext-de.po from po/de.po by removing the
17436 POT-Creation-Date line.
17437 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17438 ../po/de.po.
17439 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17440 ../po/de.po.
17441
17442 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17443
17444 * mach/Makefile (headers): Add mach/param.h.
17445 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17446 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17447 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17448 (__ptsname_r): Move implementation to...
17449 (__ptsname_internal): ... new function. Add filling the STP
17450 structure.
17451
17452 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17453
17454 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17455 idouble to 1 ULP.
17456
17457 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17458
17459 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17460 syntax.
17461
17462 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17463
17464 * nptl/Makefile (tst-mutex8-ENV): Delete.
17465 * nptl/tst-mutex8.c (check_type):
17466 Add runtime check if mutex will be elided.
17467
17468 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17469
17470 [BZ #20980]
17471 [BZ #21234]
17472 * manual/install.texi (Configuring and compiling): Describe
17473 passing CC and CFLAGS on configure command line, not as
17474 environment variables. Use @code markup on those variables.
17475 Specify what options go in CC and what go in CFLAGS. Note the
17476 requirement to compile with optimization.
17477 * INSTALL: Regenerated.
17478
17479 [BZ #18124]
17480 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17481 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17482 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17483 __sigprocmask instead of sigprocmask.
17484 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17485 Likewise.
17486 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17487 __sigsetjmp and sigprocmask.
17488
17489 [BZ #15105]
17490 * include/argz.h (argz_next): Use libc_hidden_proto.
17491 (__argz_next): Likewise.
17492 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17493 (argz_next): Use libc_hidden_weak.
17494
17495 [BZ #15105]
17496 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17497 libc_hidden_proto.
17498 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17499 libc_hidden_def.
17500
17501 [BZ #15105]
17502 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17503 libc_hidden_proto.
17504 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17505
17506 [BZ #15105]
17507 [BZ #19463]
17508 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17509 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17510 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17511 (__feof_unlocked): New declaration, and inline function if
17512 [__USE_EXTERN_INLINES].
17513 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17514 instead of feof_unlocked.
17515 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17516 * nss/nsswitch.c (nss_parse_file): Likewise.
17517 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17518 Likewise.
17519 * time/getdate.c (__getdate_r): Likewise.
17520 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17521 Define as macro to call __feof_unlocked.
17522
17523 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17524
17525 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17526
17527 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17528
17529 * math/Makefile: Remove mpexp.c and mplog.c
17530 * sysdeps/i386/fpu/mpexp.c: Delete file.
17531 * sysdeps/i386/fpu/mplog.c: Likewise.
17532 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17533 * sysdeps/ia64/fpu/mplog.c: Likewise.
17534 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17535 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17536 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17537 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17538 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17539 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17540 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17541 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17542 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17543 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17544 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17545 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17546 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17547 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17548 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17549 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17550
17551 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17552
17553 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17554
17555 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17556
17557 * sysdeps/sh/libm-test-ulps: Update.
17558
17559 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17560
17561 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17562 idouble to 1 ULP.
17563
17564 2018-02-12 Zack Weinberg <zackw@panix.com>
17565
17566 [BZ #19239]
17567 * posix/sys/types.h: Don't include sys/sysmacros.h.
17568 * misc/sys/sysmacros.h: Remove the conditional deprecation
17569 warnings for the macros defined by this header.
17570
17571 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17572
17573 * manual/probes.texi: Remove slowexp probes.
17574 * math/Makefile: Remove slowexp.
17575 * sysdeps/generic/math_private.h (__slowexp): Remove.
17576 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17577 document error bounds.
17578 * sysdeps/i386/fpu/slowexp.c: Remove.
17579 * sysdeps/ia64/fpu/slowexp.c: Remove.
17580 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17581 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17582 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17583 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17584 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17585 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17586 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17587 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17588 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17589 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17590 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17591
17592 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17593
17594 [BZ #13932]
17595 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17596 * benchtests/pow-inputs: Update comment for slow path cases.
17597 * manual/probes.texi (slowpow_p10): Delete removed probe.
17598 (slowpow_p10): Likewise.
17599 * math/Makefile: Remove halfulp.c and slowpow.c.
17600 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17601 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17602 (__halfulp): Remove.
17603 (__slowpow): Remove.
17604 * sysdeps/i386/fpu/halfulp.c: Delete file.
17605 * sysdeps/i386/fpu/slowpow.c: Likewise.
17606 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17607 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17608 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17609 improve comments and add error analysis.
17610 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17611 (power1): Remove function:
17612 (log1): Remove error argument, add error analysis.
17613 (my_log2): Remove function.
17614 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17615 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17616 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17617 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17618 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17619 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17620 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17621 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17622 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17623 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17624 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17625 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17626 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17627 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17628
17629 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17630
17631 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17632 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17633
17634 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17635
17636 [BZ #22433]
17637 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17638 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17639 and PTRACE_SETHBPREGS.
17640
17641 2018-02-10 Zack Weinberg <zackw@panix.com>
17642
17643 [BZ #22830]
17644 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17645 correctly.
17646 * malloc/tst-malloc-stats-cancellation.c: New test case.
17647 * malloc/Makefile: Add new test case.
17648
17649 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17650
17651 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17652
17653 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17654
17655 * math/Makefile (libm-narrow-fns): Add add.
17656 (libm-test-funcs-narrow): Likewise.
17657 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17658 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17659 * math/gen-auto-libm-tests.c (test_functions): Add add.
17660 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17661 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17662 (NARROW_ADD_TRIVIAL): Likewise.
17663 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17664 macro.
17665 (__daddl): Likewise.
17666 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17667 dadd.
17668 (CFLAGS-nldbl-dadd.c): New variable.
17669 (CFLAGS-nldbl-fadd.c): Likewise.
17670 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17671 __nldbl_daddl.
17672 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17673 prototype.
17674 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17675 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17676 * math/auto-libm-test-in: Add tests of add.
17677 * math/auto-libm-test-out-narrow-add: New generated file.
17678 * math/libm-test-narrow-add.inc: New file.
17679 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17680 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17681 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17682 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17683 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17684 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17685 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17686 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17687 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17688 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17689 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17690 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17691 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17692 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17693 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17694 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17695 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17696 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17697 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17698 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17704 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17705 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17709 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17710 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17715 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17716 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17717 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17718 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17719 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17720 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17721 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17722 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17723 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17724 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17725
17726 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17727 (f128-pairs): New variable.
17728 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17729 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17730 to CFLAGS.
17731 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17732 Also make tests add $(f128-loader-link) to gnulib-tests.
17733
17734 2018-02-09 DJ Delorie <dj@redhat.com>
17735
17736 [BZ #22827]
17737 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17738 64-bit ELF type for 64-bit ELF objects.
17739
17740 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17741
17742 * math/libm-test-driver.c (snan_tests_arg): New variable.
17743 * math/libm-test-support.h (snan_tests_arg): New declaration.
17744 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17745
17746 * math/Makefile (test-type-pairs): New variable.
17747 (test-type-pairs-f64xf128-yes): Likewise.
17748 (tests): Add test-narrow-macros.
17749 (libm-test-funcs-narrow): New variable.
17750 (libm-test-c-narrow): Likewise.
17751 (generated): Add $(libm-test-c-narrow).
17752 (libm-tests-base-narrow): New variable.
17753 (libm-tests-narrow): Likewise.
17754 (libm-tests): Add $(libm-tests-narrow).
17755 (libm-tests-for-type): Handle $(libm-tests-narrow).
17756 (libm-test-c-narrow-obj): New variable.
17757 ($(libm-test-c-narrow-obj)): New rule.
17758 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17759 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17760 $(o-iterator) to set dependencies and CFLAGS.
17761 * math/gen-auto-libm-tests.c: Document use for narrowing
17762 functions.
17763 (output_for_one_input_case): Take argument NARROW.
17764 (generate_output): Likewise. Update call to
17765 output_for_one_input_case.
17766 (main): Take --narrow option. Update call to generate_output.
17767 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17768 (apply_lit): Update call to _apply_lit.
17769 (apply_arglit): New function.
17770 (parse_args): Handle "a" arguments.
17771 (parse_auto_input): Handle format names using ":".
17772 * math/README.libm-test: Document "a" parameter type.
17773 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17774 (ARG_TYPE_TRUE_MIN): Likewise.
17775 (ARG_TYPE_MAX): Likwise.
17776 (ARG_MIN_EXP): Likewise.
17777 (ARG_MAX_EXP): Likewise.
17778 (ARG_MANT_DIG): Likewise.
17779 (TEST_COND_arg_ibm128): Likewise.
17780 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17781 (TEST_COND_arg_fmt): New macro.
17782 (init_max_error): Update prototype.
17783 * math/libm-test-support.c (test_ibm128): New variable.
17784 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17785 instead of using [TEST_COND_ibm128] conditional.
17786 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17787 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17788 [TEST_NARROW] (TEST_MSG): New definition.
17789 (arg_plus_zero): New macro.
17790 (arg_minus_zero): Likewise.
17791 (arg_plus_infty): Likewise.
17792 (arg_minus_infty): Likewise.
17793 (arg_qnan_value_pl): Likewise.
17794 (arg_qnan_value): Likewise.
17795 (arg_snan_value_pl): Likewise.
17796 (arg_snan_value): Likewise.
17797 (arg_max_value): Likewise.
17798 (arg_min_value): Likewise.
17799 (arg_min_subnorm_value): Likewise.
17800 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17801 (RUN_TEST_LOOP_aa_f): New macro.
17802 (TEST_SUFF): New macro.
17803 (TEST_SUFF_STR): Likewise.
17804 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17805 (TEST_COND_any_ibm128): New macro.
17806 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17807 this_func. Update call to init_max_error.
17808 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17809 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17810 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17811 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17812 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17813 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17814 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17815 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17816 * math/test-math-vector.h (TEST_NARROW): Likewise.
17817 * math/test-arg-double.h: New file.
17818 * math/test-arg-float128.h: Likewise.
17819 * math/test-arg-float32x.h: Likewise.
17820 * math/test-arg-float64.h: Likewise.
17821 * math/test-arg-float64x.h: Likewise.
17822 * math/test-arg-ldouble.h: Likewise.
17823 * math/test-math-narrow.h: Likewise.
17824 * math/test-narrow-macros.c: Likewise.
17825 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17826 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17827 test-narrow-macros-ldbl-64.
17828 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17829
17830 * math/bits/mathcalls-narrow.h: New file.
17831 * include/bits/mathcalls-narrow.h: Likewise.
17832 * math/math-narrow.h: Likewise.
17833 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17834 (__MATHCALL_NARROW_ARGS_2): Likewise.
17835 (__MATHCALL_NARROW_ARGS_3): Likewise.
17836 (__MATHCALL_NARROW_NORMAL): Likewise.
17837 (__MATHCALL_NARROW_REDIR): Likewise.
17838 (__MATHCALL_NARROW): Likewise.
17839 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17840 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17841 defined.
17842 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17843 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17844 (libm-narrow-fns): New variable.
17845 (libm-narrow-types-basic): Likewise.
17846 (libm-narrow-types-ldouble-yes): Likewise.
17847 (libm-narrow-types-float128-yes): Likewise.
17848 (libm-narrow-types-float128-alias-yes): Likewise.
17849 (libm-narrow-types): Likewise.
17850 (libm-routines): Add narrowing functions.
17851 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17852 (libc_feholdexcept_setroundf128): New macro.
17853 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17854 * sysdeps/ieee754/float128/float128_private.h: Include
17855 <math/math-narrow.h>.
17856 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17857 Undefine and redefine.
17858 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17859 (libm_alias_float_ldouble): Undefine and redefine.
17860 (libm_alias_double_ldouble): Likewise.
17861
17862 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17863
17864 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17865
17866 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17867 FPCR/FPSR.
17868
17869 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17870
17871 * manual/creature.texi: Convert references to gcc.info to gcc.
17872 * manual/stdio.texi: Likewise.
17873 * manual/string.texi: Likewise.
17874
17875 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17876
17877 [BZ #17979]
17878 * posix/bits/types.h (__int_least8_t): New typedef.
17879 (__uint_least8_t): Likewise.
17880 (__int_least16_t): Likewise.
17881 (__uint_least16_t): Likewise.
17882 (__int_least32_t): Likewise.
17883 (__uint_least32_t): Likewise.
17884 (__int_least64_t): Likewise.
17885 (__uint_least64_t): Likewise.
17886 * sysdeps/generic/stdint.h (int_least8_t): Define using
17887 __int_least8_t.
17888 (int_least16_t): Define using __int_least16_t.
17889 (int_least32_t): Define using __int_least32_t.
17890 (int_least64_t): Define using __int_least64_t.
17891 (uint_least8_t): Define using __uint_least8_t.
17892 (uint_least16_t): Define using __uint_least16_t.
17893 (uint_least32_t): Define using __uint_least32_t.
17894 (uint_least64_t): Define using __uint_least64_t.
17895 * wcsmbs/uchar.h: Include <bits/types.h>.
17896 (char16_t): Define using __uint_least16_t conditional only on
17897 [!__USE_ISOCXX11].
17898 (char32_t): Define using __uint_least32_t conditional only on
17899 [!__USE_ISOCXX11].
17900 * wcsmbs/test-char-types.c: New file.
17901 * wcsmbs/Makefile (tests): Add test-char-types.
17902
17903 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17904 version to 4.0.1.
17905
17906 2018-02-07 Zack Weinberg <zackw@panix.com>
17907
17908 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17909 Delete all contents except for definitions of _G_HAVE_MMAP and
17910 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17911 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17912 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17913 change as above.
17914
17915 * libio/libio.h: Don't include bits/_G_config.h here.
17916 Include stddef.h with __need_wchar_t defined. Include
17917 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17918 Define _IO_iconv_t here, directly.
17919 Don't define _IO_HAVE_ST_BLKSIZE.
17920 * libio/libioP.h: Include _G_config.h here. Move include of
17921 shlib-compat.h up with rest of includes. Simplify conditionals
17922 controlling definition of _IO_JUMPS_OFFSET.
17923
17924 * csu/init.c: Remove always-true #if around entire file.
17925 Don't include stdio.h. Set _IO_stdin_used to hardwired
17926 constant 0x20001, and update commentary.
17927 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17928 Replace all uses of _G_va_list with __gnuc_va_list.
17929 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17930 instead of #if _IO_HAVE_ST_BLKSIZE.
17931 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17932 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17933 not #ifdef.
17934
17935 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17936 multiple-include guard to match.
17937 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17938 into this file.
17939 Remove preprocessor conditionals that are always true and/or
17940 redundant to other preprocessor conditionals in the same nest.
17941 Include shlib-compat.h unconditionally.
17942 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17943 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17944 defined after including stdio.h.
17945 Use __BEGIN_DECLS/__END_DECLS.
17946
17947 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17948 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17949 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17950
17951 2018-02-07 Zack Weinberg <zackw@panix.com>
17952
17953 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17954 New single-type headers split from _G_config.h.
17955 * libio/bits/types/cookie_io_functions_t.h
17956 * libio/bits/types/struct_FILE.h
17957 New single-type headers split from libio.h.
17958
17959 * libio/Makefile: Install the above new headers. Don't install
17960 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17961 bits/libio-ldbl.h.
17962 * libio/_G_config.h, libio/libio.h: Delete file.
17963
17964 * libio/bits/libio.h: Remove improper-inclusion guard.
17965 Include stdio.h and don't repeat anything that it does.
17966 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17967 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17968 __io_read_fn as cookie_read_function_t,
17969 __io_write_fn as cookie_write_function_t,
17970 __io_seek_fn as cookie_seek_function_t,
17971 __io_close_fn as cookie_close_function_t,
17972 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17973 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17974 here, in the "compatibility defines" section. Remove an #if 0
17975 block. Use the "body" macros from bits/types/struct_FILE.h to
17976 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17977 and _IO_ferror_unlocked.
17978 Move prototypes of __uflow and __overflow...
17979
17980 * libio/stdio.h: ...here. Don't include bits/libio.h.
17981 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
17982 directly from stdarg.h. Include bits/types/__fpos_t.h,
17983 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17984 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17985 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17986 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17987 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17988 __ssize_t, not _IO_ssize_t. Unconditionally define
17989 BUFSIZ as 8192 and EOF as (-1).
17990
17991 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17992 macros from bits/types/struct_FILE.h instead of _IO_* macros
17993 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17994 instead of _IO_ssize_t.
17995 * libio/bits/stdio2.h: Similarly.
17996
17997 * libio/iolibio.h: Add multiple-include guard.
17998 Include bits/libio.h after stdio.h.
17999 * libio/libioP.h: Add multiple-include guard.
18000 Include stdio.h and bits/libio.h before iolibio.h.
18001
18002 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18003 * include/bits/types/cookie_io_functions_t.h
18004 * include/bits/types/struct_FILE.h: New wrappers.
18005
18006 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18007 Get definitions of _G_fpos_t and _G_fpos64_t from
18008 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18009 respectively. Remove improper-inclusion guards.
18010
18011 * conform/data/stdio.h-data: Update expectations of va_list.
18012 * scripts/check-installed-headers.sh: Remove special case for
18013 libio.h and _G_config.h.
18014
18015 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18016
18017 [BZ #15105]
18018 [BZ #19463]
18019 * include/sys/sysmacros.h [!_ISOMAC]
18020 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18021 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18022 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18023 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18024 libc_hidden_proto.
18025 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18026 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18027 Likewise.
18028 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18029 Undefine and redefine to add use __gnu_dev_ prefix.
18030 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18031 Likewise.
18032 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18033 and define as hidden inline function.
18034 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18035 Likewise.
18036 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18037 Likewise.
18038 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18039 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18040 (gnu_dev_minor): Likewise.
18041 (gnu_dev_makedev): Likewise.
18042 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18043 makedev.
18044 * posix/wordexp.c (exec_comm_child): Likewise.
18045 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18046 instead of minor and __gnu_dev_major instead of major.
18047 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18048 __gnu_dev_major instead of major.
18049 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18050 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18051 instead of gnu_dev_minor.
18052 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18053 (SLAVE_P): Likewise.
18054 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18055 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18056 instead of major.
18057
18058 [BZ #21313]
18059 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18060 in another place.
18061 * locale/weightwc.h (findidx): Likewise.
18062
18063 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18064
18065 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18066 (slowlog_inexact): Likewise
18067 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18068 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18069
18070 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18071
18072 [BZ #22797]
18073 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18074 missing second underscore to parameter name.
18075
18076 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18077
18078 [BZ #14508]
18079 [BZ #15512]
18080 [BZ #17082]
18081 [BZ #20530]
18082 * bits/byteswap.h: Update file comment. Do not include
18083 <bits/byteswap-16.h>.
18084 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18085 constant.
18086 (__bswap_16): Define as inline function.
18087 (__bswap_constant_32): Reformat definition.
18088 (__bswap_32): Always define as inline function, not macro, using
18089 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18090 otherwise __bswap_constant_32.
18091 (__bswap_constant_64): Reformat definition. Do not use
18092 __extension__ here.
18093 (__bswap_64): Always define as inline function, not macro. Use
18094 __extension__ on function definition. Use __builtin_bswap64 if
18095 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18096 * string/test-endian-file-scope.c: New file.
18097 * string/test-endian-sign-conversion.c: Likewise.
18098 * string/Makefile (headers): Remove bits/byteswap-16.h.
18099 (tests): Add test-endian-file-scope and
18100 test-endian-sign-conversion.
18101 (CFLAGS-test-endian-sign-conversion.c): New variable.
18102 * bits/byteswap-16.h: Remove file.
18103 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18104 * sysdeps/ia64/bits/byteswap.h: Likewise.
18105 * sysdeps/m68k/bits/byteswap.h: Likewise.
18106 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18107 * sysdeps/s390/bits/byteswap.h: Likewise.
18108 * sysdeps/tile/bits/byteswap.h: Likewise.
18109 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18110 * sysdeps/x86/bits/byteswap.h: Likewise.
18111
18112 [BZ #17721]
18113 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18114 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18115 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18116 199901L] (__restrict): Define to restrict.
18117
18118 [BZ #19667]
18119 * string/testcopy.c: Include <support/support.h>. Do not include
18120 <malloc.h>. Use <support/test-driver.c>.
18121 (main): Rename to do_test. Make static. Use xmalloc instead of
18122 malloc.
18123
18124 [BZ #13575]
18125 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18126 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18127 (SSIZE_MAX): Define to INT_MAX.
18128 * posix/test-ssize-max.c: New file.
18129 * posix/Makefile (tests): Add test-ssize-max.
18130
18131 [BZ #19668]
18132 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18133 <support/support.h>. Do not include <malloc.h>.
18134 (query_auxv): Use xmalloc instead of malloc.
18135
18136 [BZ #14553]
18137 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18138 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18139 instead of loff_t.
18140
18141 2018-02-06 Florian Weimer <fweimer@redhat.com>
18142
18143 [BZ #18023]
18144 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18145 Use scratch_buffer instead of extend_alloca.
18146
18147 2018-02-06 Zack Weinberg <zackw@panix.com>
18148
18149 * libio/stdio.h: Don't define getc or putc as macros.
18150 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18151 not _IO_getc and _IO_putc.
18152
18153 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18154 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18155
18156 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18157
18158 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18159 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18160
18161 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18162
18163 [BZ #14890]
18164 * elf/elf.h (NT_PRFPREG): New macro.
18165 (NT_S390_VXRS_LOW): Likewise.
18166 (NT_S390_VXRS_HIGH): Likewise.
18167 (NT_S390_GS_CB): Likewise.
18168 (NT_S390_GS_BC): Likewise.
18169 (NT_S390_RI_CB): Likewise.
18170
18171 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18172 (MAP_SYNC): New macro.
18173 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18174 Likewise.
18175 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18176 (MAP_SYNC): Likewise.
18177 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18178 (MAP_SYNC): Likewise.
18179 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18180 (MAP_SYNC): Likewise.
18181 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18182 (MAP_SYNC): Likewise.
18183 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18184 (MAP_SYNC): Likewise.
18185 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18186 (MAP_SYNC): Likewise.
18187 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18188 Likewise.
18189 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18190 Likewise.
18191
18192 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18193 (MAP_SHARED_VALIDATE): New macro.
18194 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18195 (MAP_SHARED_VALIDATE): Likewise.
18196
18197 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18198
18199 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18200 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18201 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18202
18203 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18204
18205 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18206 (DT_NUM): Updated to 35.
18207
18208 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18209
18210 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18211 __builtin_expect with __glibc_likely and __glibc_unlikely.
18212 (elf_machine_rela): Likewise.
18213 (elf_machine_lazy_rel): Likewise.
18214
18215 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18216
18217 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18218 __builtin_expect with __glibc_likely and __glibc_unlikely.
18219 (elf_machine_lazy_rel): Likewise.
18220
18221 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18222
18223 [BZ #22638]
18224 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18225 SHARED.
18226 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18227
18228 2018-02-05 Andreas Schwab <schwab@suse.de>
18229
18230 [BZ #22761]
18231 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18232 string.
18233
18234 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18235
18236 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18237 not check against PTHREAD_STACK_MIN.
18238
18239 2018-02-02 Sean McKean <smckean83@gmail.com>
18240
18241 [BZ #22735]
18242 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18243
18244 2018-02-02 Florian Weimer <fweimer@redhat.com>
18245
18246 [BZ #22753]
18247 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18248 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18249 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18250 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18251 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18252 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18253 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18254 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18255 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18256 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18257 * misc/tst-preadvwritev2.c (do_test): Call it.
18258 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18259
18260 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18261
18262 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18263
18264 * benchtests/bench-memcmp.c: Print json instead of plain text.
18265
18266 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18267 every test run.
18268
18269 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18270
18271 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18272 version to 4.15.
18273 (s390_sthyi): New syscall.
18274
18275 * sysdeps/generic/ldbl-classify-compat.h: New file.
18276 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18277 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18278 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18279 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18280 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18281 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18282 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18283 <ldbl-classify-compat.h>.
18284 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18285 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18286 <ldbl-classify-compat.h>.
18287 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18288 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18289 <ldbl-classify-compat.h>.
18290 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18291 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18292 <ldbl-classify-compat.h>.
18293 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18294 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18295 <ldbl-classify-compat.h>.
18296 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18297 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18298 <ldbl-classify-compat.h>.
18299 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18300 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18301 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18302 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18303 * sysdeps/microblaze/math_private.h: Likewise.
18304 * sysdeps/nios2/math_private.h: Likewise.
18305 * sysdeps/sh/math_private.h: Likewise.
18306
18307 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18308 * sysdeps/m68k/coldfire/math_private.h: ... here.
18309 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18310 * sysdeps/tile/math_private.h: Likewise.
18311 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18312 Remove macro.
18313 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18314 Likewise.
18315
18316 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18317 Remove macro.
18318 (libc_fetestexcept): Likewise.
18319 (libc_feupdateenv_test): Likewise.
18320 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18321 (libc_fetestexcept): Likewise.
18322 (libc_feupdateenv_test): Likewise.
18323 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18324 (libc_fetestexcept): Likewise.
18325 (libc_feupdateenv_test): Likewise.
18326 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18327 (libc_fetestexcept): Likewise.
18328 (libc_feupdateenv_test): Likewise.
18329
18330 * sysdeps/generic/math_private.h
18331 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18332 New inline function.
18333 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18334 Likewise.
18335
18336 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18337 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18338 * sysdeps/generic/math_private.h
18339 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18340 inline function.
18341 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18342 Likewise.
18343 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18344 Likewise.
18345 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18346 Likewise.
18347 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18348 Likewise.
18349 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18350 Likewise.
18351 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18352 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18353 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18354 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18355 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18356 (__fegetenv): Likewise.
18357 (fesetenv): Likewise.
18358 (__fesetenv): Likewise.
18359 (feupdateenv): Likewise.
18360 (__feupdateenv): Likewise.
18361 (fegetround): Likewise.
18362 (__fegetround): Likewise.
18363 (fesetround): Likewise.
18364 (__fesetround): Likewise.
18365
18366 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18367 (feraiseexcept): New macro.
18368 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18369 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18370 Remove macro.
18371 (__feraiseexcept): Likewise.
18372 (feclearexcept): Likewise.
18373 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18374 (__feraiseexcept): Likewise.
18375 (feclearexcept): Likewise.
18376 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18377 (__feraiseexcept): Likewise.
18378 (feclearexcept): Likewise.
18379 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18380 (__feraiseexcept): Likewise.
18381 (feclearexcept): Likewise.
18382 (fetestexcept): Likewise.
18383
18384 * sysdeps/m68k/coldfire/math-tests.h: New file.
18385
18386 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18387 * sysdeps/m68k/bits/fenv.h: ... here.
18388 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18389 not define.
18390 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18391 Likewise.
18392 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18393 Likewise.
18394 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18395 Likewise.
18396 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18397 Likewise.
18398 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18399 Define to 0.
18400 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18401 (__FE_UNDEFINED): New enum constant.
18402 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18403 Do not define.
18404 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18405 Likewise.
18406 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18407 Likewise.
18408 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18409 to match generic bits/fenv.h.
18410 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18411 Do not define.
18412
18413 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18414 packed on bits.
18415 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18416 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18417 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18418 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18419
18420 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18421 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18422 Joseph Myers <joseph@codesourcery.com>
18423
18424 [BZ #21314]
18425 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18426 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18427 computation using c.
18428 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18429 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18430 computation using c.
18431
18432 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18433
18434 * version.h (RELEASE): Set to "development".
18435 (VERSION): Set to "2.27.9000".
18436 * NEWS (2.28): New section.
18437
18438 * version.h (RELEASE): Set to "stable".
18439 (VERSION): Set to "2.27".
18440 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18441
18442 * NEWS: Add the list of bugs fixed in 2.27.
18443
18444 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18445
18446 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18447 against PTHREAD_STACK_MIN.
18448
18449 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18450
18451 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18452 New entries.
18453 (Rafal Luzynski, Andreas Schwab): Update.
18454
18455 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18456
18457 [BZ #10871]
18458 * NEWS: List the languages which actually use the alternative
18459 months feature in this release. Also explain that "alt_mon" and
18460 "ab_alt_mon" are optional.
18461
18462 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18463
18464 [BZ #22765]
18465 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18466
18467 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18468
18469 * manual/install.texi (Tools for Compilation): Update the newest
18470 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18471 * INSTALL: Regenerated.
18472
18473 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18474
18475 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18476 instead of __builtin_expect.
18477
18478 2018-01-30 Florian Weimer <fweimer@redhat.com>
18479
18480 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18481 data.
18482 * nss/tst-nss-getpwent.c (do_test): Likewise.
18483
18484 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18485
18486 [BZ #10871]
18487 * localedata/locales/hr_HR (mon): Rename to...
18488 (alt_mon): This.
18489 (mon): Import from CLDR (genitive case).
18490 (d_t_fmt): Update the comment.
18491
18492 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18493
18494 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18495 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18496 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18497
18498 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18499
18500 * mach/Versions: Fix version when __mach_host_self_ was added.
18501 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18502 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18503 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18504 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18505 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18506 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18507 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18508 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18509 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18510 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18511 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18512 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18513 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18514 || to respect codestyle.
18515 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18516 (do_test_bz20181): Rename accordingly.
18517 * malloc/malloc.c: Include <assert.h>.
18518 (assert): Do not define.
18519 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18520 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18521 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18522 * sysdeps/mach/hurd/hp-timing.h: New file.
18523 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18524
18525 2018-01-29 Darius Rad <darius@bluespec.com>
18526
18527 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18528
18529 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18530
18531 * sysdeps/init_array/crti.S (.section .init_array): Add
18532 PREINIT_FUNCTION when defined.
18533 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18534 * config.h.in: Regenerate.
18535 * manual/platform.texi: Add RISC-V documenation for
18536 __riscv_flush_icache.
18537 * sysdeps/riscv/__longjmp.S: New file.
18538 * sysdeps/riscv/backtrace.c: Likewise.
18539 * sysdeps/riscv/bits/endian.h: Likewise.
18540 * sysdeps/riscv/bits/setjmp.h: Likewise.
18541 * sysdeps/riscv/bits/wordsize.h: Likewise.
18542 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18543 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18544 * sysdeps/riscv/dl-trampoline.S: Likewise.
18545 * sysdeps/riscv/gccframe.h: Likewise.
18546 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18547 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18548 * sysdeps/riscv/machine-gmon.h: Likewise.
18549 * sysdeps/riscv/memusage.h: Likewise.
18550 * sysdeps/riscv/setjmp.S: Likewise.
18551 * sysdeps/riscv/sys/asm.h: Likewise.
18552 * sysdeps/riscv/tls-macros.h: Likewise.
18553 * sysdeps/riscv/dl-tls.h: New file.
18554 * sysdeps/riscv/libc-tls.c: Likewise.
18555 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18556 * sysdeps/riscv/nptl/tls.h: Likewise.
18557 * sysdeps/riscv/stackinfo.h: Likewise.
18558 * sysdeps/riscv/bits/fenv.h: New file.
18559 * sysdeps/riscv/e_sqrtl.c: Likewise.
18560 * sysdeps/riscv/fpu_control.h: Likewise.
18561 * sysdeps/riscv/math-tests.h: Likewise.
18562 * sysdeps/riscv/nofpu/Implies: Likewise.
18563 * sysdeps/riscv/sfp-machine.h: Likewise.
18564 * sysdeps/riscv/tininess.h: Likewise.
18565 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18566 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18567 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18568 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18569 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18570 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18571 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18572 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18573 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18574 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18575 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18576 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18577 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18578 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18579 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18580 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18581 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18582 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18583 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18584 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18585 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18586 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18587 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18588 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18589 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18590 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18591 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18592 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18593 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18594 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18595 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18596 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18597 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18598 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18599 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18600 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18601 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18602 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18603 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18604 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18605 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18606 * sysdeps/riscv/rvf/math_private.h: Likewise.
18607 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18608 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18609 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18610 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18611 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18612 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18613 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18614 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18615 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18616 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18617 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18618 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18619 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18620 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18621 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18622 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18623 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18624 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18625 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18626 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18627 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18628 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18629 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18630 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18631 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18632 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18633 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18634 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18635 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18636 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18637 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18638 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18639 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18640 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18641 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18642 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18643 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18644 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18645 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18646 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18647 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18648 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18649 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18650 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18651 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18652 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18653 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18654 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18655 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18656 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18657 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18658 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18659 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18660 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18661 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18662 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18663 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18664 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18665 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18666 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18667 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18669 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18670 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18671 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18672 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18673 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18674 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18675 * sysdeps/riscv/Implies: New file.
18676 * sysdeps/riscv/Makefile: Likewise.
18677 * sysdeps/riscv/configure: Likewise.
18678 * sysdeps/riscv/configure.ac: Likewise.
18679 * sysdeps/riscv/nptl/Makefile: Likewise.
18680 * sysdeps/riscv/preconfigure: Likewise.
18681 * sysdeps/riscv/rv64/Implies-after: Likewise.
18682 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18683 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18684 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18685 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18686 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18687 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18688 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18689 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18690 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18691 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18692 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18693 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18694 (Config): Likewise.
18695
18696 2018-01-29 Florian Weimer <fweimer@redhat.com>
18697
18698 [BZ #22701]
18699 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18700 libnsl_hidden_proto.
18701 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18702 libnsl_hidden_proto.
18703 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18704 * nis/Makefile (libnsl-routines): Add nss-default only for
18705 build-obsolete-nsl.
18706 * nis/nis_defaults.c (__nis_default_ttl): Add
18707 libnsl_hidden_nolink_def.
18708 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18709 declaration.
18710 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18711 * nis/ypclnt.c (yp_maplist): Likewise.
18712
18713 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18714
18715 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18716 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18717
18718 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18719
18720 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18721 clean -dxfq for git updates when replacing sources.
18722
18723 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18724 --disable-libcilkrts unconditionally, not just for the final GCC
18725 build for Hurd.
18726
18727 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18728 version to 4.15.
18729
18730 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18731
18732 [BZ #10871]
18733 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18734 case).
18735
18736 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18737
18738 [BZ #10871]
18739 * localedata/locales/be_BY (mon): Rename to...
18740 (alt_mon): This, then synchronize with CLDR (nominative case).
18741 (abmon): Rename to...
18742 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18743 (mon): Import from CLDR (genitive case).
18744 (abmon): Likewise.
18745 * localedata/locales/be_BY@latin (mon): Rename to...
18746 (alt_mon): This.
18747 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18748
18749 * localedata/locales/be_BY@latin (lang_name): Reworded to
18750 "biełaruskaja mova".
18751
18752 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18753
18754 [BZ #10871]
18755 * localedata/locales/el_CY (mon): Renamed to...
18756 (alt_mon): This.
18757 (mon): Import from CLDR (genitive case).
18758 * localedata/locales/el_GR: Likewise.
18759
18760 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18761
18762 [BZ #10871]
18763 * localedata/locales/ru_RU (mon): Rename to...
18764 (alt_mon): This.
18765 (abmon): Rename to...
18766 (ab_alt_mon): This.
18767 (mon): Import from CLDR (genitive case).
18768 (abmon): Copy from the old content except the 5th month which is
18769 now in the genitive case, even when abbreviated.
18770 * localedata/locales/ru_UA: Likewise.
18771 * time/tst-strptime.c (day_tests): Add an actual example of
18772 a difference between %b and %Ob in Russian.
18773
18774 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18775
18776 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18777 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18778 a `c' variable.
18779 * resolv/res-close.c: Include <stdlib.h>.
18780 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18781 <sys/wait.h>, <time.h>, <sys/uio.h>.
18782 (NOT_CANCEL_H): Add inclusion guard.
18783 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18784 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18785 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18786 return 0.
18787 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18788 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18789 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18790 instead of void *.
18791 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18792 timer_ptr2id to cast struct timer_node * to void *.
18793 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18794 --disable-libcilkrts to gcc configure.
18795 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18796 and make them the default for now.
18797 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18798 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18799 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18800 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18801 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18802 MACH_IPC_COMPAT.
18803 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18804 __task_terminate would ever return successfully.
18805 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18806 to global scope.
18807 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18808 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18809 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18810 critical section to make code simpler and avoid warning.
18811 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18812 critical section to make code simpler and avoid warning.
18813 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18814 const char * instead of char *.
18815 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18816 __hurd_file_name_split, hurd_file_name_split,
18817 __hurd_directory_name_split, hurd_directory_name_split,
18818 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18819 hurd_file_name_path_lookup): Make lookup function parameter take a
18820 const char *name instead of char *name.
18821 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18822 __hurd_directory_name_split): Likewise.
18823 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18824 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18825 * sysdeps/mach/hurd/check_native.c: New file.
18826 * sysdeps/mach/hurd/check_pf.c: New file.
18827 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18828 (__freeifaddrs): Define macro to freeifaddrs.
18829 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18830 * sysdeps/mach/libmachuser.abilist: New file.
18831 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18832 (do_test_bz20181): Rename accordingly.
18833 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18834 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18835 <sys/mount.h>.
18836 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18837 version only if __USE_EXTERN_INLINES is defined.
18838 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18839 __hurd_sockfail): Likewise.
18840 (_hurd_fd_get): Always declare functions, and provide inline versions
18841 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18842 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18843 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18844 _hurd_port_set): Always declare functions, and provide inline versions
18845 only if __USE_EXTERN_INLINES and _LIBC are defined and
18846 IS_IN(libc).
18847 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18848 _hurd_critical_section_unlock): Likewise.
18849 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18850 * __hurd_threadvar_location): Likewise.
18851 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18852 _hurd_userlink_clear): Likewise.
18853 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18854 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18855 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18856 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18857 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18858 __spin_lock_locked): Likewise.
18859 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18860 __spin_lock_locked): Likewise.
18861 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18862 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18863 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18864 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18865 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18866 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18867 _POSIX_NO_TRUNC): Define to 0.
18868 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18869 check size against PTHREAD_STACK_MIN.
18870 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18871 IS_IN(libpthread)]: Include <sigsetops.h>.
18872 * mach/Makefile (user-interfaces): Add mach/gnumach.
18873 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18874 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18875 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18876 instead of invalid -1.
18877 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18878 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18879 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18880 <net/ppp_defs.h>.
18881
18882 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18883
18884 * hurd/fcntl-internal.h: New file.
18885
18886 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18887
18888 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18889
18890 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18891
18892 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18893
18894 [BZ #22701]
18895 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18896 Build only shared objects.
18897
18898 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18899
18900 * README: Update for hppa.
18901
18902 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18903
18904 * sysdeps/sparc/fpu/libm-test-ulps: Update
18905 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18906
18907 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18908
18909 Revert:
18910
18911 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18912
18913 [BZ #22563]
18914 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18915 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18916 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18917 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18918 to feature_1.
18919
18920 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18921
18922 [BZ #22563]
18923 * bits/types/__cancel_jmp_buf_tag.h: New file.
18924 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18925 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18926 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18927 * nptl/Makefile (headers): Add
18928 bits/types/__cancel_jmp_buf_tag.h.
18929 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18930 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18931 * sysdeps/nptl/pthread.h: Include
18932 <bits/types/__cancel_jmp_buf_tag.h>.
18933 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18934 __cancel_jmp_buf.
18935 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18936
18937 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18938
18939 [BZ #10871]
18940 * localedata/locales/uk_UA (mon): Renamed to...
18941 (alt_mon): This.
18942 (alt_digits): "0" removed and then renamed to...
18943 (mon): This.
18944 (date_fmt): Definition changed not to use the alternative
18945 digits hack.
18946
18947 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18948
18949 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18950 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18951 * elf/elf.h (EF_RISCV_RVC): New define.
18952 (EF_RISCV_FLOAT_ABI): Likewise.
18953 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18954 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18955 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18956 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18957 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18958 define.
18959 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18960
18961 2018-01-25 Andreas Schwab <schwab@suse.de>
18962
18963 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18964 single quotes.
18965 * sysdeps/gnu/configure: Regenerate.
18966 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18967 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18969 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18970 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18971 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18972 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18973 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18974
18975 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18976
18977 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
18978 URL, and run autoconf, make it the default for now.
18979
18980 2018-01-24 Joseph Myers <joseph@codesourcery.com>
18981
18982 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18983 soft-float ColdFire configuration.
18984
18985 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18986 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18987 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18988
18989 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18990 MicroBlaze file.
18991
18992 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18993 ....
18994 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18995 ... here.
18996 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18997 New file.
18998
18999 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19000 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19001 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19002 file.
19003
19004 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19005
19006 [BZ #22742]
19007 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19008 Rename to __reserved and add comment.
19009 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19010 Rename to __reserved.
19011
19012 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19013
19014 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19015 i686-gnu configurations.
19016 (Context.run_builds): Include mig, gnumach and hurd in components
19017 considered.
19018 (Context.checkout): Add mig, gnumach and hurd to components.
19019 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19020 hurd.
19021 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19022 (Config.build): Install gnumach headers, build mig and install
19023 hurd headers for 'gnu' OS.
19024 (Config.install_gnumach_headers): New function.
19025 (Config.install_hurd_headers): Likewise.
19026 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19027 when building for 'gnu' OS.
19028
19029 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19030
19031 * manual/tunables.texi (Hardware Capability Tunables): Fix
19032 spelling.
19033
19034 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19035
19036 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19037 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19038 (ALTMON_11, ALTMON_12): Improve documentation.
19039 * manual/time.texi (strftime): Likewise.
19040
19041 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19042
19043 [BZ #10871]
19044 * localedata/locales/pl_PL: Alternative month names added,
19045 primary month names are genitive now.
19046 * time/tst-strptime.c (day_tests): Actually use a genitive case
19047 of a month name in Polish language.
19048
19049 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19050
19051 [BZ #10871]
19052 * manual/locale.texi: Document ALTMON_1..12 constants for
19053 nl_langinfo. Specify when to use ALTMON instead of MON.
19054 * manual/time.texi (strftime, strptime): Document GNU extension
19055 permitting O modifier with %B and %b. Specify when to use
19056 %OB instead of %B.
19057
19058 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19059
19060 [BZ #10871]
19061 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19062 names, define them as the same as abbreviated month names explicitly.
19063 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19064 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19065 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19066 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19067 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19068 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19069 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19070 _NL_WABALTMON_12): New enum constants.
19071 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19072 wab_alt_mon, and ab_alt_mon_defined members.
19073 (time_output): Output ab_alt_mon and wab_alt_mon members.
19074 (time_read): Read them, initialize them as copies of abmon and wabmon
19075 respectively if they are missing, initialize ab_alt_mon_defined.
19076 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19077 * locale/programs/locfile-kw.h: Regenerate.
19078 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19079 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19080 and ru_RU.UTF-8.
19081 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19082 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19083 (__strftime_internal): Handle %Ob and %Oh formats.
19084 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19085 (__strptime_internal): Handle %Ob and %Oh formats.
19086 * time/tst-strptime.c (day_tests): Add more tests to parse different
19087 forms of month names including the new %Ob format specifier.
19088
19089 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19090
19091 [BZ #10871]
19092 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19093 define them as the same as primary full month names explicitly.
19094 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19095 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19096 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19097 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19098 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19099 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19100 _NL_WALTMON_12): New enum constants.
19101 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19102 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19103 macros.
19104 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19105 walt_mon, and alt_mon_defined members.
19106 (time_output): Output alt_mon and walt_mon members.
19107 (time_read): Read them, initialize them as copies of mon and wmon
19108 respectively if they are missing, initialize alt_mon_defined.
19109 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19110 * locale/programs/locfile-kw.h: Regenerate.
19111 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19112 * localedata/tst-langinfo.c (map): Add tests for the new constants
19113 ALTMON_1 .. ALTMON_12.
19114 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19115 and pl_PL.UTF-8.
19116 * time/strftime_l.c (f_altmonth): New macro.
19117 (__strftime_internal): Handle %OB format.
19118 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19119 (__strptime_internal): Handle %OB format.
19120 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19121 of month names including the new %OB format specifier.
19122
19123 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19124
19125 [BZ #22685]
19126 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19127 from ABORT_TRANSACTION.
19128 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19129 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19130 ABORT_TRANSACTION_IMPL): Likewise.
19131 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19132 Linux code, but remove the code that aborts transactions.
19133
19134 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19135
19136 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19137
19138 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19139
19140 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19141 in date: "2004-14-09" should be "2004-09-14".
19142 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19143 "2003-15-09" should be "2003-09-15".
19144
19145 2018-01-18 Arjun Shankar <arjun@redhat.com>
19146
19147 [BZ #22343]
19148 [BZ #22774]
19149 CVE-2018-6485
19150 CVE-2018-6551
19151 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19152 after padding.
19153 (_int_memalign): check for integer overflow before calling
19154 _int_malloc.
19155 * malloc/tst-malloc-too-large.c: New test.
19156 * malloc/Makefile: Add tst-malloc-too-large.
19157
19158 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19159
19160 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19161 in date: "2017-24-07" should be "2017-07-24".
19162 * localedata/locales/mai_IN: Likewise.
19163 * localedata/locales/mai_NP: Likewise.
19164
19165 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19166
19167 * po/ru.po: Update translations.
19168
19169 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19170
19171 [BZ #22719]
19172 * sysdeps/hppa/backtrace.c: New file.
19173
19174 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19175
19176 [BZ #22715]
19177 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19178 align La_x86_64_retval to VEC_SIZE.
19179
19180 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19181
19182 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19183 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19184
19185 2018-01-16 Florian Weimer <fweimer@redhat.com>
19186
19187 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19188 Move tst-thread-exit-clobber ...
19189 [$(CXX)] (tests-unsupported): ... to here.
19190
19191 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19192
19193 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19194 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19195 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19196 (_dl_aarch64_cap_flags): Update.
19197 (_DL_HWCAP_COUNT): Update.
19198
19199 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19200
19201 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19202 (_DL_HWCAP_LAST): Remove.
19203 (_DL_HWCAP_COUNT): Move to ...
19204 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19205 (_DL_HWCAP_COUNT): ... here.
19206
19207 2018-01-16 Florian Weimer <fweimer@redhat.com>
19208
19209 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19210 mode with GNU extensions.
19211
19212 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19213
19214 * elf/elf.h (NT_ARM_SVE): Define.
19215
19216 2018-01-15 Florian Weimer <fweimer@redhat.com>
19217
19218 [BZ #22636]
19219 * nptl/tst-minstack-throw.cc: New file.
19220 * nptl/Makefile (tests): Add tst-minstack-throw.
19221 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19222 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19223
19224 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19225
19226 * scripts/build-many-glibcs.py (Context.checkout): Default
19227 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19228 version to 1.1.0.
19229
19230 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19231
19232 [BZ #22707]
19233 * elf/elf.h (DF_1_STUB): Define.
19234 (DF_1_PIE): Define.
19235
19236 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19237
19238 [BZ #22697]
19239 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19240 Do not add 0.5 to integer or out-of-range arguments.
19241
19242 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19243
19244 * po/bg.po: Update translations.
19245 * po/cs.po: Likewise.
19246 * po/de.po: Likewise.
19247 * po/ko.po: Likewise.
19248 * po/pl.po: Likewise.
19249 * po/sv.po: Likewise.
19250 * po/uk.po: Likewise.
19251 * po/vi.po: Likewise.
19252
19253 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19254
19255 * aarch64/start.S (_start): Use __wrap_main.
19256 (__wrap_main): New local symbol.
19257
19258 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19259
19260 [BZ #22679]
19261 CVE-2018-1000001
19262 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19263 generic_getcwd if the path returned by getcwd syscall is not absolute.
19264 * io/tst-getcwd-abspath.c: New test.
19265 * io/Makefile (tests): Add tst-getcwd-abspath.
19266
19267 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19268
19269 * malloc/malloc.c (malloc_consolidate): Add size check.
19270
19271 2018-01-12 Florian Weimer <fweimer@redhat.com>
19272
19273 * support/write_message.c (write_message): Preserve errno.
19274 * support/check.c (print_failure): Likewise.
19275 * support/support_test_verify_impl.c (support_test_verify_impl):
19276 Likewise.
19277 * support/support_test_compare_failure.c
19278 (support_test_compare_failure): Likewise.
19279
19280 2018-01-12 Florian Weimer <fweimer@redhat.com>
19281
19282 [BZ #22701]
19283 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19284 Prevent installation of libnsl.so.
19285 (libnsl-inhibit-o): Do not build (or install) static libraries.
19286
19287 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19288
19289 [BZ #22657]
19290 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19291 before the day number which may produce a double space.
19292 (date_fmt): Likewise.
19293
19294 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19295
19296 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19297 instead of fegetenv.
19298
19299 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19300
19301 [BZ #22702]
19302 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19303 comment to say exceptions are discarded.
19304 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19305 __fegetenv.
19306 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19307 be enabled.
19308
19309 2018-01-11 Florian Weimer <fweimer@redhat.com>
19310
19311 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19312 and error message.
19313
19314 2018-01-11 Florian Weimer <fweimer@redhat.com>
19315
19316 [BZ #22636]
19317 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19318 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19319
19320 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19321
19322 [BZ #22693]
19323 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19324 negative arguments in test for NaN or infinity argument.
19325
19326 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19327
19328 * po/libc.pot: Regenerate.
19329
19330 2018-01-10 Florian Weimer <fweimer@redhat.com>
19331
19332 [BZ #22636]
19333 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19334 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19335
19336 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19337
19338 * hurd/hurd/fd.h: Include <fcntl.h>
19339 (__hurd_at_flags): New function.
19340 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19341 with call to __hurd_at_flags.
19342 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19343 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19344 __faccessat
19345 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19346 (__access_noerrno): Use __faccessat_common instead of access_common.
19347 (__access): Likewise.
19348 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19349 with a call to __faccessat.
19350 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19351 (__faccessat_common): ... this. Move implementation of __access into it when
19352 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19353 reauthenticate_cwdir_at helper to implement AT mechanism.
19354 (__faccessat_noerrno): New function, just calls __faccessat_common.
19355 (__faccessat): New function, just calls __faccessat_common.
19356 (faccessat): Define weak alias.
19357
19358 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19359
19360 [BZ #22691]
19361 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19362 (CFLAGS-s_fmaxmagl.c): New variable.
19363 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19364
19365 [BZ #22690]
19366 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19367 long int for arguments of possibly overflowing addition or
19368 subtraction.
19369 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19370
19371 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19372
19373 [BZ #22688]
19374 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19375 (CFLAGS-e_remainderl.c): New variable.
19376
19377 [BZ #22687]
19378 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19379 variable.
19380 (CFLAGS-s_cacoshl.c): Likewise.
19381 (CFLAGS-s_casinhl.c): Likewise.
19382 (CFLAGS-s_catanl.c): Likewise.
19383 (CFLAGS-s_catanhl.c): Likewise.
19384 (CFLAGS-s_cexpl.c): Likewise.
19385 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19386 (CFLAGS-s_csinhl.c): Likewise.
19387 (CFLAGS-s_clogl.c): Likewise.
19388 (CFLAGS-s_clog10l.c): Likewise.
19389 (CFLAGS-s_csinl.c): Likewise.
19390 (CFLAGS-s_csqrtl.c): Likewise.
19391
19392 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19393 2017-01-09 Svante Signell <svante.signell@gmail.com>
19394
19395 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19396 (_hurd_exec_paths): New function.
19397 * hurd/hurd.h (_hurd_exec): Deprecate function.
19398 (_hurd_exec_paths): Declare function.
19399 * hurd/Versions: Export _hurd_exec_paths.
19400 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19401 (__execve): Use __getcwd to build absolute path, and use
19402 _hurd_exec_paths instead of _hurd_exec.
19403 * sysdeps/mach/hurd/spawni.c: Likewise.
19404 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19405 _hurd_exec.
19406
19407 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19408
19409 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19410 test instead of failing in case of ENOENT returned by posix_openpt.
19411
19412 2018-01-08 Florian Weimer <fweimer@redhat.com>
19413
19414 resolv: Support binary labels in test framework.
19415 * support/resolv_test.c (struct to_be_freed): Remove.
19416 (struct compressed_name): New.
19417 (allocate_compressed_name, ascii_tolower)
19418 (compare_compressed_name): New functions.
19419 (struct resolv_response_builder): Update type of
19420 compression_offsets for use with tsearch. Rempve to_be_freed.
19421 (response_push_pointer_to_free): Remove function.
19422 (resolv_response_add_name): Rewrite using struct compressed_name
19423 and tsearch instead of hsearch_r.
19424 (response_builder_allocate): Remove initialization of
19425 compression_offsets.
19426 (response_builder_free): Update for removal of to_be_freed. Use
19427 tdestroy instead of hdestroy_r.
19428 * resolv/Makefile (tests): Add tst-resolv-binary.
19429 (tst-resolv-binary): Link with -lresolv -lpthread.
19430
19431 2018-01-08 Florian Weimer <fweimer@redhat.com>
19432
19433 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19434 time. Pass positive flag instead of negative flag to
19435 support_test_compare_failure.
19436 (support_test_compare_failure): Change negative parameter to
19437 positive.
19438 * support/support_test_compare_failure.c (report)
19439 (support_test_compare_failure): Likewise.
19440 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19441 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19442
19443 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19444
19445 [BZ #22637]
19446 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19447 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19448 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19449 stacksize.
19450 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19451
19452 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19453
19454 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19455 Add s_sincosf-sse2 and s_sincosf-fma.
19456 (CFLAGS-s_sincosf-fma.c): New.
19457 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19458 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19459 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19460 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19461 __sincosf is defined.
19462
19463 2018-01-08 Florian Weimer <fweimer@redhat.com>
19464
19465 * nptl/tst-thread-exit-clobber.cc: New file.
19466 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19467 C++11 mode.
19468 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19469 (tests): Add tst-thread-exit-clobber.
19470 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19471
19472 2018-01-08 Florian Weimer <fweimer@redhat.com>
19473
19474 * support/check.h (support_static_assert): Define.
19475 (TEST_COMPARE): Use it.
19476
19477 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19478
19479 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19480 [!__RLIM_T_MATCHES_RLIM64_T]
19481 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19482 __getrlimit64. Add libc_hidden_weak.
19483
19484 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19485
19486 * elf/elf.h (R_RISCV_NONE): New define.
19487 (R_RISCV_32): Likewise.
19488 (R_RISCV_64): Likewise.
19489 (R_RISCV_RELATIVE): Likewise.
19490 (R_RISCV_COPY): Likewise.
19491 (R_RISCV_JUMP_SLOT): Likewise.
19492 (R_RISCV_TLS_DTPMOD32): Likewise.
19493 (R_RISCV_TLS_DTPMOD64): Likewise.
19494 (R_RISCV_TLS_DTPREL32): Likewise.
19495 (R_RISCV_TLS_DTPREL64): Likewise.
19496 (R_RISCV_TLS_TPREL32): Likewise.
19497 (R_RISCV_TLS_TPREL64): Likewise.
19498 * Makerules (make-link-multidir): Make directories before linking into
19499 them.
19500 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19501 define.
19502 (VDSO_HASH_LINUX_4_15): Likewise.
19503 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19504 in subdirectories of lib.
19505 * nptl/Makefile (/librt.so): Always depend on
19506 "$(shared-thread-library)".
19507
19508 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19509
19510 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19511 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19512 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19513 (___tls_get_addr).
19514 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19515 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19516 "-O2 -march=i686".
19517 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19518 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19519 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19520 * sysdeps/gnu/glob-lstat-compat.c: New file.
19521 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19522 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19523
19524 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19525
19526 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19527 Reserve 16 chars to reloc_addr before calling _itoa_word.
19528
19529 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19530
19531 [BZ #22678]
19532 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19533 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19534
19535 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19536 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19537
19538 * resource/tst-getrlimit.c: Add copyright header.
19539
19540 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19541 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19542
19543 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19544 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19545 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19546 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19547 instead.
19548 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19549 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19550 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19551 RLIM64_INFINITY): Fix values to match the kernel ones.
19552 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19553 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19554 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19555 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19556 getrlimit64@@GLIBC_2_27.
19557 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19558 and setrlimit64.
19559 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19560 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19561 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19562 setrlimit, getrlimit64 and setrlimit64.
19563
19564 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19565
19566 [BZ #22648]
19567 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19568 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19569
19570 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19571
19572 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19573 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19574 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19575
19576 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19577
19578 [BZ #15479]
19579 [BZ #22666]
19580 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19581 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19582
19583 [BZ #15479]
19584 [BZ #22665]
19585 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19586 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19587 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19588 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19589
19590 2018-01-04 Florian Weimer <fweimer@redhat.com>
19591
19592 [BZ #22667]
19593 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19594 Align the stack before calling exit.
19595 * stdlib/tst-makecontext-align.c: New file.
19596 * stdlib/Makefile (tests): Add tst-makecontext-align.
19597
19598 2018-01-04 Florian Weimer <fweimer@redhat.com>
19599
19600 Add support for calling dlvsym from libc.so.
19601 * include/dlfcn.h (__libc_dlvsym): Declare.
19602 * elf/Makefile (tests-static-internal): Add
19603 tst-libc_dlvsym-static.
19604 (tests-internal): Add tst-libc_dlvsym.
19605 (modules-names): Add tst-libc_dlvsym-dso.
19606 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19607 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19608 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19609 object tst-libc_dlvsym-dso.so needs to be built before running
19610 these tests.
19611 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19612 * elf/Versions: Export __libc_dlvsym.
19613 * elf/dl-libc.c (struct do_dlvsym_args): New.
19614 (do_dlvsym, __libc_dlvsym): New functions.
19615 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19616 (_dl_open_hook2): New variable.
19617 (__libc_register_dl_open_hook): Set it.
19618 * elf/tst-libc_dlvsym-dso.c: New file.
19619 * elf/tst-libc_dlvsym-static.c: Likewise.
19620 * elf/tst-libc_dlvsym.c: Likewise.
19621 * elf/tst-libc_dlvsym.h: Likewise.
19622
19623 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19624
19625 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19626 include <sys/mount.h>.
19627
19628 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19629
19630 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19631 Add __NO_MATH_ERRNO__ check.
19632
19633 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19634
19635 * sysdeps/mips/mips32/libm-test-ulps: Update.
19636 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19637
19638 2018-01-02 Florian Weimer <fweimer@redhat.com>
19639
19640 * misc/tst-pselect.c: Add copyright header.
19641
19642 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19643
19644 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19645 comment.
19646 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19647 comment.
19648 (settrlimit): Rename into setrlimit.
19649 (__sttrlimit): Rename into __setrlimit.
19650
19651 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19652 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19653 never defined in that case.
19654
19655 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19656
19657 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19658
19659 * sysdeps/arm/libm-test-ulps: Update.
19660
19661 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19662 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19663
19664 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19665
19666 * NEWS: Add cosf and sincosf to list of optimized functions.
19667
19668 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19669
19670 [BZ #22660]
19671 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19672 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19673 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19674 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19675
19676 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19677
19678 [BZ #22433]
19679 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19680
19681 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19682 making a copy of it.
19683
19684 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19685
19686 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19687 trailing whitespace removed.
19688 * scripts/config.guess: Update to version 2018-01-01.
19689 * scripts/config.sub: Update to version 2018-01-01.
19690 * scripts/move-if-change: Update from gnulib.
19691
19692 * NEWS: Update copyright dates.
19693 * catgets/gencat.c (print_version): Likewise.
19694 * csu/version.c (banner): Likewise.
19695 * debug/catchsegv.sh: Likewise.
19696 * debug/pcprofiledump.c (print_version): Likewise.
19697 * debug/xtrace.sh (do_version): Likewise.
19698 * elf/ldconfig.c (print_version): Likewise.
19699 * elf/ldd.bash.in: Likewise.
19700 * elf/pldd.c (print_version): Likewise.
19701 * elf/sotruss.sh: Likewise.
19702 * elf/sprof.c (print_version): Likewise.
19703 * iconv/iconv_prog.c (print_version): Likewise.
19704 * iconv/iconvconfig.c (print_version): Likewise.
19705 * locale/programs/locale.c (print_version): Likewise.
19706 * locale/programs/localedef.c (print_version): Likewise.
19707 * login/programs/pt_chown.c (print_version): Likewise.
19708 * malloc/memusage.sh (do_version): Likewise.
19709 * malloc/memusagestat.c (print_version): Likewise.
19710 * malloc/mtrace.pl: Likewise.
19711 * manual/libc.texinfo: Likewise.
19712 * nptl/version.c (banner): Likewise.
19713 * nscd/nscd.c (print_version): Likewise.
19714 * nss/getent.c (print_version): Likewise.
19715 * nss/makedb.c (print_version): Likewise.
19716 * posix/getconf.c (main): Likewise.
19717 * scripts/test-installation.pl: Likewise.
19718 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19719
19720 * All files with FSF copyright notices: Update copyright dates
19721 using scripts/update-copyrights.
19722 * locale/programs/charmap-kw.h: Regenerated.
19723 * locale/programs/locfile-kw.h: Likewise.
19724
19725 2017-12-31 Zack Weinberg <zackw@panix.com>
19726
19727 * libio/bits/libio-ldbl.h: Correct check for improper
19728 inclusion. Add own multiple include guard.
19729
19730 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19731 Dmitry V. Levin <ldv@altlinux.org>
19732
19733 [BZ #22625]
19734 CVE-2017-16997
19735 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19736 string token expansion. Check for NULL pointer or empty string possibly
19737 returned by expand_dynamic_string_token.
19738 (decompose_rpath): Check for empty path after dynamic string
19739 token expansion.
19740
19741 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19742
19743 [BZ #22433]
19744 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19745
19746 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19747 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19748 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19749 and PTRACE_SYSCALL.
19750 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19751 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19752 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19753 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19754 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19755 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19756
19757 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19758 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19759 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19760 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19761 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19762 bits/ptrace-shared.h.
19763 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19764 <bits/ptrace-shared.h>.
19765 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19766 __ptrace_peeksiginfo_flags, ptrace): Remove.
19767 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19768 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19769 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19770 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19771 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19772
19773 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19774
19775 [BZ #17804]
19776 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19777 end of the loop. Improve comments.
19778
19779 2017-12-29 Zack Weinberg <zackw@panix.com>
19780
19781 [BZ #22615]
19782 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19783 might be set on success.
19784
19785 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19786
19787 [BZ #22611]
19788 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19789 is unchanged on success.
19790
19791 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19792
19793 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19794 updated.
19795 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19796 expand_dynamic_string_token): Likewise.
19797 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19798 is_path argument.
19799
19800 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19801 contains ':'.
19802
19803 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19804 is set and name contains ':', and all code depending on these checks.
19805
19806 2017-12-24 Zack Weinberg <zackw@panix.com>
19807
19808 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19809 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19810 respectively.
19811 * libio/libio.h: Rename the original version of this file to
19812 libio/bits/libio.h. Error out if not included by stdio.h or the
19813 stub libio.h.
19814 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19815 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19816 if not included by bits/libio.h or the stub _G_config.h.
19817 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19818 sysdeps/unix/sysv/linux/bits. Error out if not included by
19819 bits/libio.h or the stub _G_config.h.
19820 * libio/stdio.h: Include bits/libio.h, not libio.h.
19821 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19822 well as libio.h and _G_config.h.
19823
19824 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19825 * libio/strfile.h, stdio-common/vfscanf.c
19826 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19827 Include stdio.h, not _G_config.h nor libio.h.
19828 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19829 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19830
19831 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19832
19833 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19834
19835 [BZ #22347]
19836 * stdlib/getrandom.c (getrandom): Fix comment.
19837 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19838
19839 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19840
19841 [BZ #21161]
19842 * manual/arith.texi (strtoul): Fix a typo.
19843
19844 [BZ #22596]
19845 * manual/arith.texi (finite): Fix the description of the return
19846 value.
19847
19848 2017-12-22 Eric Blake <ebb9@byu.net>
19849
19850 Avoid gcc warnings on cygwin
19851 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19852 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19853 Avoid unused variable.
19854
19855 2017-12-22 Florian Weimer <fweimer@redhat.com>
19856
19857 * io/Makefile (routines): Add copy_file_range.
19858 (tests): Add tst-copy_file_range.
19859 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19860 * io/Versions (GLIBC_2.27): Export copy_file_range.
19861 * io/copy_file_range-compat.c: New file.
19862 * io/copy_file_range.c: Likewise.
19863 * io/tst-copy_file_range-compat.c: Likewise.
19864 * io/tst-copy_file_range.c: Likewise.
19865 * manual/llio.texi (Copying File Data): New section.
19866 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19867 * support/Makefile (libsupport-routines): Add support-xfstat,
19868 xftruncate, xlseek.
19869 * support/support-xfstat.c: New file.
19870 * support/xftruncate.c: Likewise.
19871 * support/xlseek.c: Likewise.
19872 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19873 * sysdeps/unix/sysv/linux/**.abilist: Update.
19874 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19875
19876 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19877
19878 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19879 disable-multi-arch variant to aarch64-linux-gnu.
19880
19881 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19882
19883 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19884 trailing whitespace removed.
19885 * scripts/config.guess: Update to version 2017-12-17.
19886 * scripts/config.sub: Update to version 2017-11-23.
19887 * scripts/install-sh: Update to version 2017-09-23.17.
19888 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19889
19890 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19891
19892 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19893 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19894 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19895 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19896 * sysdeps/tile/crtn.S: Likewise.
19897 * sysdeps/tile/dl-start.S (_start): Likewise.
19898 * sysdeps/tile/dl-trampoline.S: Likewise.
19899 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19900 * sysdeps/tile/start.S (_start): Likewise.
19901 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19902 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19903 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19904 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19905 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19906 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19907 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19908
19909 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19910 comment.
19911 * sysdeps/tile/preconfigure: Remove tilegx folder.
19912 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19913 * sysdeps/tile/Implies: ... here.
19914 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19915 * sysdeps/tile/Makefile: ... here.
19916 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19917 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19918 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19919 * sysdeps/tile/bits/wordsize.h: ... here.
19920 * sysdeps/tile/tilegx/*: Move to ...
19921 * sysdeps/tile/*: ... here.
19922 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19923 * sysdeps/tile/tilegx32/Implies: ... here.
19924 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19925 * sysdeps/tile/tilegx64/Implies: ... here.
19926 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19927 to ...
19928 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19929 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19930 * sysdeps/unix/sysv/linux/tile/*: ... here.
19931 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19932 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19933 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19934 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19935
19936 * README: Remove tilepro-*-linux-gnu from supported architecture.
19937 * scripts/build-many-glibcs.py: Likewise.
19938 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19939 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19940 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19941 elf_machine_matches_host, elf_machine_dynamic,
19942 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19943 howto, elf_machine_rela): Likewise.
19944 * sysdeps/tile/dl-start.S (_start): Likewise.
19945 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19946 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19947 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19948 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19949 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19950 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19951 Likewise.
19952 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19953 * sysdeps/tile/preconfigure: Likewise.
19954 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19955 POINTER_CHK_GUARD): Likewise.
19956 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19957 * sysdeps/tile/start.S (_start): Likewise.
19958 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19959 Likewise.
19960 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19961 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19962 CMOVNEZ): Remove.
19963 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19964 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19965 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19966 Likewise.
19967 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19968 * sysdeps/tile/tilepro/Implies: Remove file.
19969 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19970 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19971 * sysdeps/tile/tilepro/memchr.c: Likewise.
19972 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19973 * sysdeps/tile/tilepro/memset.c: Likewise.
19974 * sysdeps/tile/tilepro/memusage.h: Likewise.
19975 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19976 * sysdeps/tile/tilepro/strchr.c: Likewise.
19977 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19978 * sysdeps/tile/tilepro/strlen.c: Likewise.
19979 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19980 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19981 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19982 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19983 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19984 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19985 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19986 Likewise.
19987 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19988 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19989 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19990 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19991 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19992 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19993 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19994 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19995 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19996 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19997 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19998 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19999 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20000 tilepro mention in comment.
20001
20002 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20003 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20004 * nptl/pthread_join_common.c: New file: common function used on
20005 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20006 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20007 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20008 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20009 (cleanup): Move definition to pthread_join_common.c.
20010 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20011 Remove superflous checks.
20012 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20013 Likewise.
20014
20015 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20016
20017 * sysdeps/aarch64/libm-test-ulps: Update.
20018
20019 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20020
20021 * sysdeps/aarch64/memset.S (MEMSET): Define.
20022
20023 2017-12-20 Florian Weimer <fweimer@redhat.com>
20024
20025 [BZ #22635]
20026 nptl: Provide full implementation of pthread_self in libc.so.
20027 * nptl/Makefile (routines): Add pthread_self.
20028 (libpthread-routines): Replace pthread_self with
20029 compat-pthread_self.
20030 * nptl/forward.c (pthread_self): Remove.
20031 * nptl/nptl-init.c (pthread_functions): Do not initialize
20032 ptr_pthread_self.
20033 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20034 * nptl/compat-pthread_self.c: New file.
20035 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20036 Remove ptr_pthread_self.
20037
20038 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20039
20040 * posix/regcomp.c: Fix spelling in comments.
20041 * posix/regex.h: Likewise.
20042 * posix/regex_internal.c: Likewise.
20043 * posix/regexec.c: Likewise.
20044
20045 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20046
20047 [BZ #22377]
20048 * math/Makefile [C++] (tests): Add test for iseqsig.
20049 * math/math.h [C++] (iseqsig): New implementation, which does
20050 not rely on __MATH_TG/__builtin_types_compatible_p.
20051 * math/test-math-iseqsig.cc: New file.
20052 * sysdeps/powerpc/powerpc64le/Makefile
20053 (CFLAGS-test-math-iseqsig.cc): New variable.
20054
20055 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20056
20057 * elf/dl-load.c (is_trusted_path): Remove.
20058 (fillin_rpath): Remove check_trusted argument and its use,
20059 all callers changed.
20060
20061 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20062
20063 [BZ #22630]
20064 * Makeconfig (link-pie-before-libc): Replace -pie with
20065 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20066 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20067 (tst-dlopen-aout-no-pie): New.
20068 (LDFLAGS-tst-prelink): Removed.
20069 (tst-prelink-no-pie): New.
20070 (LDFLAGS-tst-main1): Removed.
20071 (tst-main1-no-pie): New.
20072 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20073 (tst-gmon-no-pie): New.
20074
20075 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20076
20077 * manual/install.texi: Document that --enable-static-pie
20078 implies PIE.
20079 * INSTALL: Regenerated.
20080
20081 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20082
20083 [BZ #21309]
20084 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20085 unsigned.
20086
20087 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20088
20089 Revert:
20090
20091 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20092
20093 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20094
20095 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20096
20097 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20098 <errno.h>. Include "eexp.tbl".
20099 (half): New constant.
20100 (one): Likewise.
20101 (__ieee754_exp): Rewrite.
20102 (__slowexp): Remove prototype.
20103 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20104 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20105 * sysdeps/i386/fpu/slowexp.c: Likewise.
20106 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20107 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20108 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20109 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20110 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20111 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20112 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20113 comment.
20114 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20115 (CPPFLAGS-slowexp.c): Remove variable.
20116 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20117 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20118 (CFLAGS-slowexp-fma.c): Remove variable.
20119 (CFLAGS-slowexp-fma4.c): Likewise.
20120 (CFLAGS-slowexp-avx.c): Likewise.
20121 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20122 define as macro.
20123 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20124 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20125 * math/Makefile (type-double-routines): Remove slowexp.
20126 * manual/probes.texi (slowexp_p6): Remove.
20127 (slowexp_p32): Likewise.
20128
20129 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20130
20131 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20132 arithmetic.
20133
20134 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20135
20136 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20137
20138 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20139
20140 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20141
20142 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20143 <errno.h>. Include "eexp.tbl".
20144 (half): New constant.
20145 (one): Likewise.
20146 (__ieee754_exp): Rewrite.
20147 (__slowexp): Remove prototype.
20148 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20149 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20150 * sysdeps/i386/fpu/slowexp.c: Likewise.
20151 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20152 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20153 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20154 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20155 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20156 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20157 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20158 comment.
20159 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20160 (CPPFLAGS-slowexp.c): Remove variable.
20161 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20162 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20163 (CFLAGS-slowexp-fma.c): Remove variable.
20164 (CFLAGS-slowexp-fma4.c): Likewise.
20165 (CFLAGS-slowexp-avx.c): Likewise.
20166 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20167 define as macro.
20168 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20170 * math/Makefile (type-double-routines): Remove slowexp.
20171 * manual/probes.texi (slowexp_p6): Remove.
20172 (slowexp_p32): Likewise.
20173
20174 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20175 James Clarke <jrtc27@jrtc27.com>
20176
20177 [BZ #22603]
20178 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20179 addition.
20180
20181 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20182
20183 [BZ #22605]
20184 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20185 code.
20186
20187 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20188
20189 [BZ #22563]
20190 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20191 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20192 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20193 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20194 to feature_1.
20195
20196 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20197
20198 [BZ #22563]
20199 * bits/types/__cancel_jmp_buf_tag.h: New file.
20200 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20201 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20202 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20203 * nptl/Makefile (headers): Add
20204 bits/types/__cancel_jmp_buf_tag.h.
20205 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20206 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20207 * sysdeps/nptl/pthread.h: Include
20208 <bits/types/__cancel_jmp_buf_tag.h>.
20209 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20210 __cancel_jmp_buf.
20211 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20212
20213 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20214
20215 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20216 --enable-static-pie variants to x86_64, x32 and i686.
20217
20218 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20219
20220 [BZ #22631]
20221 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20222 argument for attrubutes. All callers changed.
20223 (__inline_mathop1): Likewise. All callers changed.
20224 (__inline_mathop): Likewise. All callers changed.
20225 [__USE_MISC] (scalbn): Use __inline_forward instead of
20226 __inline_forward_c.
20227 [__USE_ISOC99] (scalbln): Likewise.
20228 [__USE_ISOC99] (nearbyint): Likewise.
20229 [__USE_ISOC99] (lrint): Likewise.
20230 [__USE_MISC] (scalbnf): Likewise.
20231 [__USE_ISOC99] (scalblnf): Likewise.
20232 [__USE_ISOC99] (nearbyintf): Likewise.
20233 [__USE_ISOC99] (lrintf): Likewise.
20234 [__USE_MISC] (scalbnl): Likewise.
20235 [__USE_ISOC99] (scalblnl): Likewise.
20236 [__USE_ISOC99] (nearbyintl): Likewise.
20237 [__USE_ISOC99] (lrintl): Likewise.
20238 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20239 __inline_mathop and __m81_defun changed.
20240
20241 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20242 CPU or FPU for ARM hard-float configurations.
20243
20244 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20245
20246 * nptl/tst-attr3.c: Include <libc-diag.h>.
20247 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20248
20249 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20250
20251 * string/tester.c (test_strncat): Also disable -Warray-bounds
20252 warnings for two tests.
20253
20254 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20255
20256 [BZ #22614]
20257 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20258 $(cc-pie-default) == yes.
20259 * config.make.in (cc-pie-default): New.
20260 * configure.ac (libc_cv_pie_default): Renamed to ...
20261 (libc_cv_cc_pie_default): This.
20262 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20263 * configure: Regenerated.
20264
20265 2017-12-18 Florian Weimer <fweimer@redhat.com>
20266
20267 [BZ #20204]
20268 ld.so: Harden dl-libc/libdl hooks.
20269 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20270 (rtld_active): New function.
20271 * dlfcn/dladdr.c (__dladdr): Call it.
20272 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20273 * dlfcn/dlclose.c (__dlcose): Likewise.
20274 * dlfcn/dlerror.c (__dlerror): Likewise.
20275 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20276 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20277 * dlfcn/dlopen.c (__dlopen): Likewise.
20278 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20279 * dlfcn/dlsym.c (__dlsym): Likewise.
20280 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20281 * libio/vtables.c (_IO_vtable_check): Likewise.
20282 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20283 (__libc_dlclose): Likewise.
20284 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20285 assignment.
20286
20287 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20288
20289 [BZ #22446]
20290 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20291 buffers for readlink input and output.
20292
20293 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20294
20295 [BZ #22624]
20296 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20297 inhibit_stack_protector.
20298
20299 [BZ #22624]
20300 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20301 inhibit_stack_protector.
20302
20303 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20304
20305 [BZ #22627]
20306 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20307 code and invocation.
20308
20309 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20310
20311 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20312
20313 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20314
20315 [BZ #22505]
20316 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20317
20318 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20319
20320 * sysdeps/s390/fpu/libm-test-ulps: Update.
20321
20322 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20323
20324 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20325
20326 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20327
20328 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20329 constants to s_sincosf.h file.
20330 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20331 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20332 implementation.
20333 * sysdeps/ieee754/flt-32/s_sincosf.h:
20334 New file.
20335
20336 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20337
20338 [BZ #14681]
20339 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20340 before mtrace.
20341
20342 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20343
20344 [BZ #19574]
20345 * INSTALL: Regenerated.
20346 * Makeconfig (real-static-start-installed-name): New.
20347 (pic-default): Updated for --enable-static-pie.
20348 (pie-default): New for --enable-static-pie.
20349 (default-pie-ldflag): Likewise.
20350 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20351 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20352 Replace $(static-start-installed-name) with
20353 $(real-static-start-installed-name).
20354 (+prectorT): Updated for --enable-static-pie.
20355 (+postctorT): Likewise.
20356 (CFLAGS-.o): Add $(pie-default).
20357 (CFLAGS-.op): Likewise.
20358 * NEWS: Mention --enable-static-pie.
20359 * config.h.in (ENABLE_STATIC_PIE): New.
20360 * configure.ac (--enable-static-pie): New configure option.
20361 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20362 (have-static-pie): Likewise.
20363 Enable static PIE if linker supports --no-dynamic-linker.
20364 (ENABLE_STATIC_PIE): New AC_DEFINE.
20365 (enable-static-pie): New LIBC_CONFIG_VAR.
20366 * configure: Regenerated.
20367 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20368 gr$(start-installed-name) for --enable-static-pie.
20369 (extra-objs): Likewise.
20370 (install-lib): Likewise.
20371 (extra-objs): Add static-reloc.o and static-reloc.os
20372 ($(objpfx)$(start-installed-name)): Also depend on
20373 $(objpfx)static-reloc.o.
20374 ($(objpfx)r$(start-installed-name)): New.
20375 ($(objpfx)g$(start-installed-name)): Also depend on
20376 $(objpfx)static-reloc.os.
20377 ($(objpfx)gr$(start-installed-name)): New.
20378 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20379 in libc.a.
20380 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20381 initimage.
20382 * csu/static-reloc.c: New file.
20383 * elf/Makefile (routines): Add dl-reloc-static-pie.
20384 (elide-routines.os): Likewise.
20385 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20386 (tst-tls1-static-non-pie-no-pie): New.
20387 * elf/dl-reloc-static-pie.c: New file.
20388 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20389 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20390 STATIC_PIE_BOOTSTRAP.
20391 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20392 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20393 (tests-static): Likewise.
20394 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20395 (tst-gmon-static-no-pie): New.
20396 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20397 (CRT-tst-gmon-static-pie): Likewise.
20398 (tst-gmon-static-pie-ENV): Likewise.
20399 (tests-special): Likewise.
20400 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20401 (clean-tst-gmon-static-pie-data): Likewise.
20402 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20403 * gmon/tst-gmon-static-pie.c: New file.
20404 * manual/install.texi: Document --enable-static-pie.
20405 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20406 (_dl_get_dl_main_map): Likewise.
20407 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20408 * sysdeps/x86_64/configure.ac: Likewise.
20409 * sysdeps/i386/configure: Regenerated.
20410 * sysdeps/x86_64/configure: Likewise.
20411 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20412 (ASFLAGS-.op): Likewise.
20413
20414 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20415
20416 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20417 * posix/tst-mmap-offset.c (fname): Use /tmp.
20418 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20419
20420 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20421
20422 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20423
20424 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20425
20426 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20427 errno.
20428
20429 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20430
20431 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20432 --with-float=hard for arm-linux-gnueabihf configurations.
20433
20434 [BZ #14121]
20435 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20436 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20437 ($(mo-installed)): Use $(objpfx)%.mo.
20438 (realclean): Remove rule.
20439
20440 * po/Makefile (linguas): Remove rule and dependencies.
20441 (linguas.mo): Likewise.
20442 (.PHONY): Do not depend on linguas and linguas.mo.
20443 (podir): Remove variable.
20444 (pofiles): Likewise.
20445 [$(pofiles)] (%.po): Remove rule.
20446
20447 * sysdeps/sparc/sparc32/Makefile
20448 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20449 start-of-line whitespace in argument of echo.
20450 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20451 with whitespace. Generate __wrap_.udiv alias.
20452 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20453 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20454 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20455 * sysdeps/sparc/sparc32/urem.S: Likewise.
20456
20457 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20458
20459 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20460 for aligned inputs.
20461
20462 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20463
20464 * benchtests/bench-strcmp.c: Print output in JSON format.
20465
20466 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20467
20468 2017-12-14 Florian Weimer <fweimer@redhat.com>
20469
20470 [BZ #22607]
20471 CVE-2017-1000409
20472 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20473 the expanded path string.
20474
20475 2017-12-14 Florian Weimer <fweimer@redhat.com>
20476
20477 [BZ #22606]
20478 CVE-2017-1000408
20479 * elf/dl-load.c (system_dirs): Update comment.
20480 (nsystem_dirs_len): Use array_length.
20481 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20482
20483 2017-12-14 Florian Weimer <fweimer@redhat.com>
20484
20485 Simplify compiling most of support/ outside of glibc.
20486 * support/check_addrinfo.c: Include <string.h>.
20487 * support/check_dns_packet.c: Likewise.
20488 * support/check_hostent.c: Likewise.
20489 * support/support_can_chroot.c: Include <support/xunistd.h>.
20490 * support/support_format_addrinfo.c: Include <stdlib.h>
20491 * support/support_format_dns_packet.c: Include <stdbool.h>.
20492 * support/support_format_hostent.c: Include <stdlib.h>.
20493 * support/support_format_netent.c: Likewise.
20494 * support/support_write_string.c: Include <support/xunistd.h>.
20495 * support/xdlfcn.c: Include <stddef.h>.
20496
20497 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20498
20499 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20500
20501 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20502 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20503
20504 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20505 (sysdeps_routines): Add memset-niagara7.
20506 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20507 Likewise.
20508 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20509 file.
20510 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20511 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20512 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20513 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20514 Add niagara7 option.
20515 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20516 memset.
20517
20518 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20519 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20520 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20521 Likewise.
20522 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20523 New file.
20524 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20525 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20526 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20527 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20528 and __memmove_niagara7.
20529 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20530 Add niagara7 option.
20531 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20532 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20533 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20534 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20535 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20536
20537 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20538
20539 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20540 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20541 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20542 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20543
20544 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20545 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20546 _dl_sparc_cap_flags array.
20547 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20548
20549 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20550
20551 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20552 time whenever possible.
20553
20554 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20555
20556 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20557 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20558
20559 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20560
20561 * soft-fp/fmadf4.c: Move to ....
20562 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20563 * soft-fp/fmasf4.c: Move to ....
20564 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20565 * soft-fp/fmatf4.c: Move to ....
20566 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20567 * sysdeps/ieee754/soft-fp/Makefile: New file.
20568 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20569 * sysdeps/arm/preconfigure: Regenerated.
20570 * sysdeps/arm/nofpu/Implies: New file.
20571 * sysdeps/arm/s_fma.c: Remove file.
20572 * sysdeps/arm/s_fmaf.c: Likewise.
20573 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20574 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20575 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20576 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20577 * sysdeps/microblaze/s_fma.c: Remove file.
20578 * sysdeps/microblaze/s_fmaf.c: Likewise.
20579 * sysdeps/mips/mips32/nofpu/Implies: New file.
20580 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20581 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20582 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20583 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20584 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20585 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20586 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20587 implementation.
20588 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20589 * sysdeps/nios2/s_fma.c: Remove file.
20590 * sysdeps/nios2/s_fmaf.c: Likewise.
20591 * sysdeps/sh/nofpu/Implies: New file.
20592 * sysdeps/sh/s_fma.c: Remove file.
20593 * sysdeps/sh/s_fmaf.c: Likewise.
20594 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20595 * sysdeps/tile/s_fma.c: Remove file.
20596 * sysdeps/tile/s_fmaf.c: Likewise.
20597
20598 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20599
20600 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20601 Add s_cosf-sse2 and s_cosf-fma.
20602 (CFLAGS-s_cosf-fma.c): New.
20603 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20604 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20605 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20606
20607 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20608
20609 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20610
20611 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20612
20613 * libio/Makefile (tests): Add tst-bz22415.
20614 (tst-bz22415-ENV): New rule.
20615 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20616 (tests-special): Add tst-bz22415-mem.out.
20617 ($(objpfx)tst-bz22415-mem.out): New rule.
20618 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20619 in case of a successful seek operation.
20620 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20621 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20622 buffer is required.
20623 * libio/tst-bz22415.c: New test.
20624
20625 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20626
20627 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20628
20629 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20630 __IPC_64 to 0 to avoid IPC_64 being set.
20631
20632 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20633
20634 [BZ #22593]
20635 * math/bits/mathcalls.h (nextafter): Remove const.
20636 (nexttoward): Likewise.
20637
20638 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20639
20640 * configure.ac (--with-fp): Remove configure option.
20641 (with_fp_cond): New variable.
20642 (libc_cv_with_fp): New configure test. Use this variable instead
20643 of with_fp.
20644 * configure: Regenerated.
20645 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20646 * manual/install.texi (Configuring and compiling): Remove
20647 --without-fp.
20648 * INSTALL: Regenerated.
20649 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20650 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20651 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20652 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20653 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20654 use --without-fp to configure glibc.
20655
20656 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20657
20658 * manual/locale.texi (nl_langinfo): Fix a typo.
20659
20660 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20661
20662 [BZ #22588]
20663 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20664
20665 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20666
20667 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20668 (CFLAGS-argp-parse.c): Likewise.
20669 (CFLAGS-argp-fmtstream.c): Likewise.
20670 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20671 (CPPFLAGS-sha512-crypt.c): Likewise.
20672 (CPPFLAGS-md5-crypt.c): Likewise.
20673 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20674 (CFLAGS-stack_chk_fail_local.c): Likewise.
20675 (CFLAGS-backtrace.c): Likewise.
20676 (CFLAGS-sprintf_chk.c): Likewise.
20677 (CFLAGS-snprintf_chk.c): Likewise.
20678 (CFLAGS-vsprintf_chk.c): Likewise.
20679 (CFLAGS-vsnprintf_chk.c): Likewise.
20680 (CFLAGS-asprintf_chk.c): Likewise.
20681 (CFLAGS-vasprintf_chk.c): Likewise.
20682 (CFLAGS-obprintf_chk.c): Likewise.
20683 (CFLAGS-dprintf_chk.c): Likewise.
20684 (CFLAGS-vdprintf_chk.c): Likewise.
20685 (CFLAGS-printf_chk.c): Likewise.
20686 (CFLAGS-fprintf_chk.c): Likewise.
20687 (CFLAGS-vprintf_chk.c): Likewise.
20688 (CFLAGS-vfprintf_chk.c): Likewise.
20689 (CFLAGS-gets_chk.c): Likewise.
20690 (CFLAGS-fgets_chk.c): Likewise.
20691 (CFLAGS-fgets_u_chk.c): Likewise.
20692 (CFLAGS-fread_chk.c): Likewise.
20693 (CFLAGS-fread_u_chk.c): Likewise.
20694 (CFLAGS-swprintf_chk.c): Likewise.
20695 (CFLAGS-vswprintf_chk.c): Likewise.
20696 (CFLAGS-wprintf_chk.c): Likewise.
20697 (CFLAGS-fwprintf_chk.c): Likewise.
20698 (CFLAGS-vwprintf_chk.c): Likewise.
20699 (CFLAGS-vfwprintf_chk.c): Likewise.
20700 (CFLAGS-fgetws_chk.c): Likewise.
20701 (CFLAGS-fgetws_u_chk.c): Likewise.
20702 (CFLAGS-read_chk.c): Likewise.
20703 (CFLAGS-pread_chk.c): Likewise.
20704 (CFLAGS-pread64_chk.c): Likewise.
20705 (CFLAGS-recv_chk.c): Likewise.
20706 (CFLAGS-recvfrom_chk.c): Likewise.
20707 (CFLAGS-tst-longjmp_chk.c): Likewise.
20708 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20709 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20710 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20711 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20712 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20713 (CFLAGS-tst-chk1.c): Likewise.
20714 (CFLAGS-tst-chk2.c): Likewise.
20715 (CFLAGS-tst-chk3.c): Likewise.
20716 (CFLAGS-tst-chk4.cc): Likewise.
20717 (CFLAGS-tst-chk5.cc): Likewise.
20718 (CFLAGS-tst-chk6.cc): Likewise.
20719 (CFLAGS-tst-lfschk1.c): Likewise.
20720 (CFLAGS-tst-lfschk2.c): Likewise.
20721 (CFLAGS-tst-lfschk3.c): Likewise.
20722 (CFLAGS-tst-lfschk4.cc): Likewise.
20723 (CFLAGS-tst-lfschk5.cc): Likewise.
20724 (CFLAGS-tst-lfschk6.cc): Likewise.
20725 (CFLAGS-tst-ssp-1.c): Likewise.
20726 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20727 (CFLAGS-scandir64.c): Likewise.
20728 (CFLAGS-scandir-tail.c): Likewise.
20729 (CFLAGS-scandir64-tail.c): Likewise.
20730 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20731 (CFLAGS-dl-tunables.c): Likewise.
20732 (CFLAGS-dl-runtime.c): Likewise.
20733 (CFLAGS-dl-lookup.c): Likewise.
20734 (CFLAGS-dl-iterate-phdr.c): Likewise.
20735 (CFLAGS-vismain.c): Likewise.
20736 (CFLAGS-tst-linkall-static.c): Likewise.
20737 (CFLAGS-tst-linkall-static.c): Likewise.
20738 (CPPFLAGS-dl-load.c): Likewise.
20739 (CFLAGS-ldconfig.c): Likewise.
20740 (CFLAGS-dl-cache.c): Likewise.
20741 (CFLAGS-cache.c): Likewise.
20742 (CFLAGS-rtld.c): Likewise.
20743 (CFLAGS-multiload.c): Likewise.
20744 (CFLAGS-filtmod1.c): Likewise.
20745 (CFLAGS-tst-align.c): Likewise.
20746 (CFLAGS-tst-align2.c): Likewise.
20747 (CFLAGS-tst-alignmod.c): Likewise.
20748 (CFLAGS-tst-alignmod2.c): Likewise.
20749 (CPPFLAGS-tst-execstack.c): Likewise.
20750 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20751 (CFLAGS-tst-latepthreadmod.c): Likewise.
20752 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20753 (CFLAGS-getgrnam_r.c): Likewise.
20754 (CFLAGS-getgrent_r.c): Likewise.
20755 (CFLAGS-getgrent.c): Likewise.
20756 (CFLAGS-fgetgrent.c): Likewise.
20757 (CFLAGS-fgetgrent_r.c): Likewise.
20758 (CFLAGS-putgrent.c): Likewise.
20759 (CFLAGS-initgroups.c): Likewise.
20760 (CFLAGS-getgrgid.c): Likewise.
20761 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20762 (CFLAGS-getsgent.c): Likewise.
20763 (CFLAGS-fgetsgent.c): Likewise.
20764 (CFLAGS-fgetsgent_r.c): Likewise.
20765 (CFLAGS-putsgent.c): Likewise.
20766 (CFLAGS-getsgnam.c): Likewise.
20767 (CFLAGS-getsgnam_r.c): Likewise.
20768 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20769 (CFLAGS-iconv_charmap.c): Likewise.
20770 (CFLAGS-dummy-repertoire.c): Likewise.
20771 (CFLAGS-charmap.c): Likewise.
20772 (CFLAGS-linereader.c): Likewise.
20773 (CFLAGS-simple-hash.c): Likewise.
20774 (CFLAGS-gconv_conf.c): Likewise.
20775 (CFLAGS-iconvconfig.c): Likewise.
20776 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20777 (CFLAGS-gethstbyad.c): Likewise.
20778 (CFLAGS-gethstbynm_r.c): Likewise.
20779 (CFLAGS-gethstbynm.c): Likewise.
20780 (CFLAGS-gethstbynm2_r.c): Likewise.
20781 (CFLAGS-gethstbynm2.c): Likewise.
20782 (CFLAGS-gethstent_r.c): Likewise.
20783 (CFLAGS-gethstent.c): Likewise.
20784 (CFLAGS-rcmd.c): Likewise.
20785 (CFLAGS-getnetbynm_r.c): Likewise.
20786 (CFLAGS-getnetbynm.c): Likewise.
20787 (CFLAGS-getnetbyad_r.c): Likewise.
20788 (CFLAGS-getnetbyad.c): Likewise.
20789 (CFLAGS-getnetent_r.c): Likewise.
20790 (CFLAGS-getnetent.c): Likewise.
20791 (CFLAGS-getaliasent_r.c): Likewise.
20792 (CFLAGS-getaliasent.c): Likewise.
20793 (CFLAGS-getrpcent_r.c): Likewise.
20794 (CFLAGS-getrpcent.c): Likewise.
20795 (CFLAGS-getservent_r.c): Likewise.
20796 (CFLAGS-getservent.c): Likewise.
20797 (CFLAGS-getprtent_r.c): Likewise.
20798 (CFLAGS-getprtent.c): Likewise.
20799 (CFLAGS-either_ntoh.c): Likewise.
20800 (CFLAGS-either_hton.c): Likewise.
20801 (CFLAGS-getnetgrent.c): Likewise.
20802 (CFLAGS-getnetgrent_r.c): Likewise.
20803 (CFLAGS-tst-checks-posix.c): Likewise.
20804 (CFLAGS-tst-sockaddr.c): Likewise.
20805 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20806 (CFLAGS-tst-translit.c): Likewise.
20807 (CFLAGS-tst-gettext2.c): Likewise.
20808 (CFLAGS-tst-codeset.c): Likewise.
20809 (CFLAGS-tst-gettext3.c): Likewise.
20810 (CFLAGS-tst-gettext4.c): Likewise.
20811 (CFLAGS-tst-gettext5.c): Likewise.
20812 (CFLAGS-tst-gettext6.c): Likewise.
20813 * io/Makefile (CFLAGS-open.c): Likewise.
20814 (CFLAGS-open64.c): Likewise.
20815 (CFLAGS-creat.c): Likewise.
20816 (CFLAGS-creat64.c): Likewise.
20817 (CFLAGS-fcntl.c): Likewise.
20818 (CFLAGS-poll.c): Likewise.
20819 (CFLAGS-ppoll.c): Likewise.
20820 (CFLAGS-lockf.c): Likewise.
20821 (CFLAGS-statfs.c): Likewise.
20822 (CFLAGS-fstatfs.c): Likewise.
20823 (CFLAGS-statvfs.c): Likewise.
20824 (CFLAGS-fstatvfs.c): Likewise.
20825 (CFLAGS-fts.c): Likewise.
20826 (CFLAGS-fts64.c): Likewise.
20827 (CFLAGS-ftw.c): Likewise.
20828 (CFLAGS-ftw64.c): Likewise.
20829 (CFLAGS-lockf.c): Likewise.
20830 (CFLAGS-posix_fallocate.c): Likewise.
20831 (CFLAGS-posix_fallocate64.c): Likewise.
20832 (CFLAGS-fallocate.c): Likewise.
20833 (CFLAGS-fallocate64.c): Likewise.
20834 (CFLAGS-read.c): Likewise.
20835 (CFLAGS-write.c): Likewise.
20836 (CFLAGS-test-stat.c): Likewise.
20837 (CFLAGS-test-lfs.c): Likewise.
20838 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20839 (CFLAGS-fputc.c): Likewise.
20840 (CFLAGS-fputwc.c): Likewise.
20841 (CFLAGS-freopen64.c): Likewise.
20842 (CFLAGS-freopen.c): Likewise.
20843 (CFLAGS-fseek.c): Likewise.
20844 (CFLAGS-fseeko64.c): Likewise.
20845 (CFLAGS-fseeko.c): Likewise.
20846 (CFLAGS-ftello64.c): Likewise.
20847 (CFLAGS-ftello.c): Likewise.
20848 (CFLAGS-fwide.c): Likewise.
20849 (CFLAGS-genops.c): Likewise.
20850 (CFLAGS-getc.c): Likewise.
20851 (CFLAGS-getchar.c): Likewise.
20852 (CFLAGS-getwc.c): Likewise.
20853 (CFLAGS-getwchar.c): Likewise.
20854 (CFLAGS-iofclose.c): Likewise.
20855 (CFLAGS-iofflush.c): Likewise.
20856 (CFLAGS-iofgetpos64.c): Likewise.
20857 (CFLAGS-iofgetpos.c): Likewise.
20858 (CFLAGS-iofgets.c): Likewise.
20859 (CFLAGS-iofgetws.c): Likewise.
20860 (CFLAGS-iofputs.c): Likewise.
20861 (CFLAGS-iofputws.c): Likewise.
20862 (CFLAGS-iofread.c): Likewise.
20863 (CFLAGS-iofsetpos64.c): Likewise.
20864 (CFLAGS-iofsetpos.c): Likewise.
20865 (CFLAGS-ioftell.c): Likewise.
20866 (CFLAGS-iofwrite.c): Likewise.
20867 (CFLAGS-iogetdelim.c): Likewise.
20868 (CFLAGS-iogetline.c): Likewise.
20869 (CFLAGS-iogets.c): Likewise.
20870 (CFLAGS-iogetwline.c): Likewise.
20871 (CFLAGS-ioputs.c): Likewise.
20872 (CFLAGS-ioseekoff.c): Likewise.
20873 (CFLAGS-ioseekpos.c): Likewise.
20874 (CFLAGS-iosetbuffer.c): Likewise.
20875 (CFLAGS-iosetvbuf.c): Likewise.
20876 (CFLAGS-ioungetc.c): Likewise.
20877 (CFLAGS-ioungetwc.c): Likewise.
20878 (CFLAGS-oldfileops.c): Likewise.
20879 (CFLAGS-oldiofclose.c): Likewise.
20880 (CFLAGS-oldiofgetpos64.c): Likewise.
20881 (CFLAGS-oldiofgetpos.c): Likewise.
20882 (CFLAGS-oldiofsetpos64.c): Likewise.
20883 (CFLAGS-oldiofsetpos.c): Likewise.
20884 (CFLAGS-peekc.c): Likewise.
20885 (CFLAGS-putc.c): Likewise.
20886 (CFLAGS-putchar.c): Likewise.
20887 (CFLAGS-putwc.c): Likewise.
20888 (CFLAGS-putwchar.c): Likewise.
20889 (CFLAGS-rewind.c): Likewise.
20890 (CFLAGS-wfileops.c): Likewise.
20891 (CFLAGS-wgenops.c): Likewise.
20892 (CFLAGS-oldiofopen.c): Likewise.
20893 (CFLAGS-iofopen.c): Likewise.
20894 (CFLAGS-iofopen64.c): Likewise.
20895 (CFLAGS-oldtmpfile.c): Likewise.
20896 (CFLAGS-tst_putwc.c): Likewise.
20897 * locale/Makefile (CFLAGS-md5.c): Likewise.
20898 (CFLAGS-charmap.c): Likewise.
20899 (CFLAGS-locfile.c): Likewise.
20900 (CFLAGS-charmap-dir.c): Likewise.
20901 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20902 (CFLAGS-getpt.c): Likewise.
20903 (CFLAGS-pt_chown.c): Likewise.
20904 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20905 (CFLAGS-obstack.c): Likewise.
20906 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20907 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20908 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20909 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20910 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20911 (CFLAGS-test-tgmath.c): Likewise.
20912 (CFLAGS-test-tgmath2.c): Likewise.
20913 (CFLAGS-test-tgmath-ret.c): Likewise.
20914 (CFLAGS-test-powl.c): Likewise.
20915 (CFLAGS-test-snan.c): Likewise.
20916 (CFLAGS-test-signgam-finite.c): Likewise.
20917 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20918 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20919 (CFLAGS-test-signgam-uchar.c): Likewise.
20920 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20921 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20922 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20923 (CFLAGS-test-signgam-uint.c): Likewise.
20924 (CFLAGS-test-signgam-uint-init.c): Likewise.
20925 (CFLAGS-test-signgam-uint-static.c): Likewise.
20926 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20927 (CFLAGS-test-signgam-ullong.c): Likewise.
20928 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20929 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20930 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20931 (CFLAGS-test-math-cxx11.cc): Likewise.
20932 (CFLAGS-test-math-isinff.cc): Likewise.
20933 (CFLAGS-test-math-iszero.cc): Likewise.
20934 (CFLAGS-test-math-issignaling.cc): Likewise.
20935 (CFLAGS-test-math-iscanonical.cc): Likewise.
20936 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20937 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20938 (CFLAGS-test-flt-eval-method.c): Likewise.
20939 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20940 (CFLAGS-test-finite-macros.c): Likewise.
20941 * misc/Makefile (CFLAGS-select.c): Likewise.
20942 (CFLAGS-tsearch.c): Likewise.
20943 (CFLAGS-lsearch.c): Likewise.
20944 (CFLAGS-pselect.c): Likewise.
20945 (CFLAGS-readv.c): Likewise.
20946 (CFLAGS-writev.c): Likewise.
20947 (CFLAGS-preadv.c): Likewise.
20948 (CFLAGS-preadv64.c): Likewise.
20949 (CFLAGS-pwritev.c): Likewise.
20950 (CFLAGS-pwritev64.c): Likewise.
20951 (CFLAGS-preadv2.c): Likewise.
20952 (CFLAGS-preadv64v2.c): Likewise.
20953 (CFLAGS-pwritev2.c): Likewise.
20954 (CFLAGS-pwritev64v2.c): Likewise.
20955 (CFLAGS-usleep.c): Likewise.
20956 (CFLAGS-syslog.c): Likewise.
20957 (CFLAGS-error.c): Likewise.
20958 (CFLAGS-getpass.c): Likewise.
20959 (CFLAGS-mkstemp.c): Likewise.
20960 (CFLAGS-mkstemp64.c): Likewise.
20961 (CFLAGS-getsysstats.c): Likewise.
20962 (CFLAGS-getusershell.c): Likewise.
20963 (CFLAGS-err.c): Likewise.
20964 (CFLAGS-tst-tsearch.c): Likewise.
20965 (CFLAGS-msync.c): Likewise.
20966 (CFLAGS-fdatasync.c): Likewise.
20967 (CFLAGS-fsync.c): Likewise.
20968 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20969 (CFLAGS-unwind.c): Likewise.
20970 (CFLAGS-unwind-forcedunwind.c): Likewise.
20971 (CFLAGS-pthread_cancel.c): Likewise.
20972 (CFLAGS-pthread_setcancelstate.c): Likewise.
20973 (CFLAGS-pthread_setcanceltype.c): Likewise.
20974 (CFLAGS-cancellation.c): Likewise.
20975 (CFLAGS-libc-cancellation.c): Likewise.
20976 (CFLAGS-pthread_exit.c): Likewise.
20977 (CFLAGS-forward.c): Likewise.
20978 (CFLAGS-pthread_testcancel.c): Likewise.
20979 (CFLAGS-pthread_join.c): Likewise.
20980 (CFLAGS-pthread_timedjoin.c): Likewise.
20981 (CFLAGS-pthread_once.c): Likewise.
20982 (CFLAGS-pthread_cond_wait.c): Likewise.
20983 (CFLAGS-sem_wait.c): Likewise.
20984 (CFLAGS-sem_timedwait.c): Likewise.
20985 (CFLAGS-fcntl.c): Likewise.
20986 (CFLAGS-lockf.c): Likewise.
20987 (CFLAGS-pread.c): Likewise.
20988 (CFLAGS-pread64.c): Likewise.
20989 (CFLAGS-pwrite.c): Likewise.
20990 (CFLAGS-pwrite64.c): Likewise.
20991 (CFLAGS-wait.c): Likewise.
20992 (CFLAGS-waitpid.c): Likewise.
20993 (CFLAGS-sigwait.c): Likewise.
20994 (CFLAGS-msgrcv.c): Likewise.
20995 (CFLAGS-msgsnd.c): Likewise.
20996 (CFLAGS-tcdrain.c): Likewise.
20997 (CFLAGS-open.c): Likewise.
20998 (CFLAGS-open64.c): Likewise.
20999 (CFLAGS-pause.c): Likewise.
21000 (CFLAGS-recv.c): Likewise.
21001 (CFLAGS-send.c): Likewise.
21002 (CFLAGS-accept.c): Likewise.
21003 (CFLAGS-sendto.c): Likewise.
21004 (CFLAGS-connect.c): Likewise.
21005 (CFLAGS-recvfrom.c): Likewise.
21006 (CFLAGS-recvmsg.c): Likewise.
21007 (CFLAGS-sendmsg.c): Likewise.
21008 (CFLAGS-close.c): Likewise.
21009 (CFLAGS-read.c): Likewise.
21010 (CFLAGS-write.c): Likewise.
21011 (CFLAGS-nanosleep.c): Likewise.
21012 (CFLAGS-sigsuspend.c): Likewise.
21013 (CFLAGS-msync.c): Likewise.
21014 (CFLAGS-fdatasync.c): Likewise.
21015 (CFLAGS-fsync.c): Likewise.
21016 (CFLAGS-pt-system.c): Likewise.
21017 (CFLAGS-tst-cleanup2.c): Likewise.
21018 (CFLAGS-tst-cleanupx2.c): Likewise.
21019 (CFLAGS-flockfile.c): Likewise.
21020 (CFLAGS-ftrylockfile.c): Likewise.
21021 (CFLAGS-funlockfile.c): Likewise.
21022 (CFLAGS-tst-initializers1.c): Likewise.
21023 (CFLAGS-tst-initializers1-c89.c): Likewise.
21024 (CFLAGS-tst-initializers1-c99.c): Likewise.
21025 (CFLAGS-tst-initializers1-c11.c): Likewise.
21026 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21027 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21028 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21029 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21030 (CFLAGS-nscd_getgr_r.c): Likewise.
21031 (CFLAGS-nscd_gethst_r.c): Likewise.
21032 (CFLAGS-nscd_getai.c): Likewise.
21033 (CFLAGS-nscd_initgroups.c): Likewise.
21034 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21035 (CFLAGS-pause.c): Likewise.
21036 (CFLAGS-pread.c): Likewise.
21037 (CFLAGS-pread64.c): Likewise.
21038 (CFLAGS-pwrite.c): Likewise.
21039 (CFLAGS-pwrite64.c): Likewise.
21040 (CFLAGS-sleep.c): Likewise.
21041 (CFLAGS-wait.c): Likewise.
21042 (CFLAGS-waitid.c): Likewise.
21043 (CFLAGS-waitpid.c): Likewise.
21044 (CFLAGS-getopt.c): Likewise.
21045 (CFLAGS-wordexp.c): Likewise.
21046 (CFLAGS-sysconf.c): Likewise.
21047 (CFLAGS-pathconf.c): Likewise.
21048 (CFLAGS-fpathconf.c): Likewise.
21049 (CFLAGS-spawn.c): Likewise.
21050 (CFLAGS-spawnp.c): Likewise.
21051 (CFLAGS-spawni.c): Likewise.
21052 (CFLAGS-glob.c): Likewise.
21053 (CFLAGS-glob64.c): Likewise.
21054 (CFLAGS-getconf.c): Likewise.
21055 (CFLAGS-nanosleep.c): Likewise.
21056 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21057 (CFLAGS-getpwent.c): Likewise.
21058 (CFLAGS-getpw.c): Likewise.
21059 (CFLAGS-fgetpwent_r.c): Likewise.
21060 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21061 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21062 (CFLAGS-mq_timedreceive.c): Likewise.
21063 (CFLAGS-mq_timedsend.c): Likewise.
21064 (CFLAGS-clock_nanosleep.c): Likewise.
21065 (CFLAGS-librt-cancellation.c): Likewise.
21066 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21067 (CFLAGS-getspent.c): Likewise.
21068 (CFLAGS-fgetspent.c): Likewise.
21069 (CFLAGS-fgetspent_r.c): Likewise.
21070 (CFLAGS-putspent.c): Likewise.
21071 (CFLAGS-getspnam.c): Likewise.
21072 (CFLAGS-getspnam_r.c): Likewise.
21073 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21074 (CFLAGS-sigsuspend.c): Likewise.
21075 (CFLAGS-sigtimedwait.c): Likewise.
21076 (CFLAGS-sigwait.c): Likewise.
21077 (CFLAGS-sigwaitinfo.c): Likewise.
21078 (CFLAGS-sigreturn.c): Likewise.
21079 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21080 (CFLAGS-vfwprintf.c): Likewise.
21081 (CFLAGS-tmpfile.c): Likewise.
21082 (CFLAGS-tmpfile64.c): Likewise.
21083 (CFLAGS-tempname.c): Likewise.
21084 (CFLAGS-psignal.c): Likewise.
21085 (CFLAGS-vprintf.c): Likewise.
21086 (CFLAGS-cuserid.c): Likewise.
21087 (CFLAGS-errlist.c): Likewise.
21088 (CFLAGS-siglist.c): Likewise.
21089 (CFLAGS-scanf15.c): Likewise.
21090 (CFLAGS-scanf17.c): Likewise.
21091 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21092 (CFLAGS-msort.c): Likewise.
21093 (CFLAGS-qsort.c): Likewise.
21094 (CFLAGS-system.c): Likewise.
21095 (CFLAGS-fmtmsg.c): Likewise.
21096 (CFLAGS-strfmon.c): Likewise.
21097 (CFLAGS-strfmon_l.c): Likewise.
21098 (CFLAGS-strfromd.c): Likewise.
21099 (CFLAGS-strfromf.c): Likewise.
21100 (CFLAGS-strfroml.c): Likewise.
21101 (CFLAGS-tst-bsearch.c): Likewise.
21102 (CFLAGS-tst-qsort.c): Likewise.
21103 (CFLAGS-tst-makecontext2.c): Likewise.
21104 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21105 (CFLAGS-xnlm_prot.c): Likewise.
21106 (CFLAGS-xrstat.c): Likewise.
21107 (CFLAGS-xyppasswd.c): Likewise.
21108 (CFLAGS-xklm_prot.c): Likewise.
21109 (CFLAGS-xrex.c): Likewise.
21110 (CFLAGS-xsm_inter.c): Likewise.
21111 (CFLAGS-xmount.c): Likewise.
21112 (CFLAGS-xrusers.c): Likewise.
21113 (CFLAGS-xspray.c): Likewise.
21114 (CFLAGS-xnfs_prot.c): Likewise.
21115 (CFLAGS-xrquota.c): Likewise.
21116 (CFLAGS-xkey_prot.c): Likewise.
21117 (CFLAGS-auth_unix.c): Likewise.
21118 (CFLAGS-key_call.c): Likewise.
21119 (CFLAGS-pmap_rmt.c): Likewise.
21120 (CFLAGS-clnt_perr.c): Likewise.
21121 (CFLAGS-openchild.c): Likewise.
21122 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21123 (CFLAGS-msgsnd.c): Likewise.
21124 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21125 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21126 (CFLAGS-tzset.c): Likewise.
21127 (CFLAGS-getdate.c): Likewise.
21128 (CFLAGS-test_time.c): Likewise.
21129 (CPPFLAGS-tst-tzname.c): Likewise.
21130 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21131 (CFLAGS-zic.c): Likewise.
21132 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21133 (CFLAGS-wcswidth.c): Likewise.
21134 (CFLAGS-wcstol.c): Likewise.
21135 (CFLAGS-wcstoul.c): Likewise.
21136 (CFLAGS-wcstoll.c): Likewise.
21137 (CFLAGS-wcstoull.c): Likewise.
21138 (CFLAGS-wcstod.c): Likewise.
21139 (CFLAGS-wcstold.c): Likewise.
21140 (CFLAGS-wcstof128.c): Likewise.
21141 (CFLAGS-wcstof.c): Likewise.
21142 (CFLAGS-wcstol_l.c): Likewise.
21143 (CFLAGS-wcstoul_l.c): Likewise.
21144 (CFLAGS-wcstoll_l.c): Likewise.
21145 (CFLAGS-wcstoull_l.c): Likewise.
21146 (CFLAGS-wcstod_l.c): Likewise.
21147 (CFLAGS-wcstold_l.c): Likewise.
21148 (CFLAGS-wcstof128_l.c): Likewise.
21149 (CFLAGS-wcstof_l.c): Likewise.
21150 (CPPFLAGS-tst-wchar-h.c): Likewise.
21151 (CPPFLAGS-wcstold_l.c): Likewise.
21152
21153 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21154
21155 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21156
21157 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21158 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21159
21160 * manual/tunables.texi (Hardware Capability Tunables): Document
21161 glibc.tune.cached_memopt.
21162 * sysdeps/powerpc/cpu-features.c: New file.
21163 * sysdeps/powerpc/cpu-features.h: New file.
21164 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21165 _dl_powerpc_cpu_features.
21166 * sysdeps/powerpc/dl-tunables.list: New file.
21167 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21168 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21169 (INIT_ARCH): Initialize use_aligned_memopt.
21170 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21171 IS_IN(rtld))]: Restrict dl_platform_init availability and
21172 initialize CPU features used by tunables.
21173 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21174 Add memcpy-power8-cached.
21175 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21176 __memcpy_power8_cached.
21177 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21178 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21179 New file.
21180
21181 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21182
21183 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21184 (CFLAGS-noinl-tester.c): Likewise.
21185 (CFLAGS-tst-strlen.c): Likewise.
21186 (CFLAGS-stratcliff.c): Likewise.
21187 (CFLAGS-test-ffs.c): Likewise.
21188 (CFLAGS-tst-inlcall.c): Likewise.
21189 (CFLAGS-tst-xbzero-opt.c): Likewise.
21190 (CFLAGS-memcpy.c): Likewise.
21191 (CFLAGS-wordcopy.c): Likewise.
21192
21193 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21194
21195 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21196 Store r15 on stack and add cfi rule.
21197 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21198 Likewise.
21199
21200 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21201
21202 [BZ #22577]
21203 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21204 call.
21205
21206 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21207
21208 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21209 Add s_sinf-sse2 and s_sinf-fma.
21210 (CFLAGS-s_sinf-fma.c): New.
21211 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21212 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21213 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21214
21215 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21216
21217 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21218
21219 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21220
21221 [BZ #22568]
21222 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21223 part of result to imaginary part of argument if it is zero and the
21224 real part of the argument is not finite.
21225 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21226 of result to real part of argument if it is zero and the imaginary
21227 part of the argument is not finite.
21228
21229 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21230
21231 [BZ #22524]
21232 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21233 and to the list of locales to be built for testing.
21234 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21235 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21236 and build the collation rules upon that.
21237
21238 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21239
21240 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21241 * manual/math.texi (Mathematics): Document support for _Float32.
21242 * math/Makefile (test-types): Add float32.
21243 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21244 * stdlib/Versions (GLIBC_2.27): Likewise.
21245 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21246 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21247 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21248 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21249 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21250 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21251 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21252 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21253 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21254 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21255 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21256 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21257 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21258 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21259 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21260 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21261 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21262 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21263 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21264 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21265 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21266 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21267 Likewise.
21268 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21269 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21270 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21271 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21272 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21274 Likewise.
21275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21276 Likewise.
21277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21278 Likewise.
21279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21280 Likewise.
21281
21282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21283 Likewise.
21284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21285 Likewise.
21286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21287 Likewise.
21288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21289 Likewise.
21290 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21291 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21292 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21293 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21294 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21295 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21296 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21297 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21298 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21299 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21300 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21301 Likewise.
21302 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21303 Likewise.
21304 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21305 Likewise.
21306 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21307 Likewise.
21308 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21309 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21310 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21311 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21312 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21313 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21314 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21315 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21316
21317 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21318
21319 * stdlib/strtof.c: Include <bits/floatn.h>
21320 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21321 and later undefine as macro. Define as weak alias if
21322 [!USE_WIDE_CHAR].
21323 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21324 and later undefine as macro. Define as weak alias if
21325 [USE_WIDE_CHAR].
21326 * stdlib/strtof_l.c: Include <bits/floatn.h>
21327 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21328 and later undefine as macro. Define as weak alias if
21329 [!USE_WIDE_CHAR].
21330 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21331 and later undefine as macro. Define as weak alias if
21332 [USE_WIDE_CHAR].
21333
21334 * stdlib/strfromf.c: Include <bits/floatn.h>.
21335 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21336 and later undefine as macro and define as weak alias.
21337
21338 * math/test-float32.h: New file.
21339
21340 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21341 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21342 (libm_alias_float_other_r): Create f32 alias.
21343 (libm_alias_float_r): Use semicolon before call to
21344 libm_alias_float_other_r.
21345
21346 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21347 second argument to libm_alias_float_other.
21348 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21349 second argument to libm_alias_float_other.
21350 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21351 argument to libm_alias_float_other.
21352
21353 [BZ #22561]
21354 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21355 real part of result for argument 0 + i * NaN.
21356 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21357 results for tests of 0 + i * NaN.
21358
21359 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21360
21361 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21362
21363 2017-12-06 David S. Miller <davem@davemloft.net>
21364
21365 * sysdeps/sparc/fpu/libm-test-ulps: Update
21366 exp_{downward,towardzero,upward} ulps.
21367
21368 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21369
21370 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21371 variables static.
21372
21373 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21374 (Y0_2D): Likewise.
21375 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21376 (Y0_2D): Likewise.
21377 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21378 (Y0_2D): Likewise.
21379 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21380 (Y0_2D): Likewise.
21381
21382 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21383
21384 [BZ #22515]
21385 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21386 and to the list of locales to be built for testing.
21387 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21388 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21389 and build the collation rules upon that.
21390
21391 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21392
21393 * NEWS: Add sinf to list of optimized functions.
21394
21395 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21396
21397 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21398 (__HAVE_FLOAT32X): Likewise.
21399 * manual/math.texi (Mathematics): Document support for _Float64
21400 and _Float32x.
21401 * math/Makefile (test-types): Add float64 and float32x.
21402 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21403 functions.
21404 * stdlib/Versions (GLIBC_2.27): Likewise.
21405 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21406 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21407 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21408 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21409 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21410 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21411 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21412 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21413 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21414 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21415 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21416 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21417 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21418 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21419 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21420 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21421 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21422 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21423 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21424 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21425 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21426 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21427 Likewise.
21428 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21429 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21430 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21431 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21432 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21434 Likewise.
21435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21436 Likewise.
21437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21438 Likewise.
21439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21440 Likewise.
21441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21442 Likewise.
21443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21444 Likewise.
21445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21446 Likewise.
21447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21448 Likewise.
21449 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21450 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21451 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21452 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21453 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21454 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21455 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21456 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21457 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21458 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21459 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21460 Likewise.
21461 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21462 Likewise.
21463 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21464 Likewise.
21465 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21466 Likewise.
21467 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21468 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21469 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21470 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21471 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21472 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21473 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21474 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21475
21476 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21477
21478 * bits/floatn-common.h: Include <bits/long-double.h>.
21479 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21480 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21481 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21482 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21483 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21484 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21485 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21486 (__builtin_huge_valf64): Use __builtin_huge_vall.
21487 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21488 (__builtin_inff64): Use __builtin_infl.
21489 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21490 (__builtin_nanf64): Use __builtin_nanl.
21491 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21492 (__builtin_nansf64): Use __builtin_nansl.
21493
21494 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21495 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21496 Carlos O'Donnell <carlos@redhat.com>
21497
21498 * elf/dl-tunables.list: Add elision parameters.
21499 * manual/tunables.texi: Add entries about elision tunable.
21500 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21501 Add callback functions to dynamically enable/disable elision.
21502 Add multiple callbacks functions to set elision parameters.
21503 Deleted __libc_enable_secure check.
21504 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21505 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21506 * configure: Regenerated.
21507 * configure.ac: Option enable_lock_elision was deleted.
21508 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21509 * config.make.in: Remove references to enable_lock_elision.
21510 * manual/install.texi: Elision configure option was removed.
21511 * INSTALL: Regenerated to remove enable_lock_elision.
21512 * nptl/Makefile:
21513 Disable elision so it can verify error case for destroying a mutex.
21514 * sysdeps/powerpc/nptl/elide.h:
21515 Cleanup ENABLE_LOCK_ELISION check.
21516 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21517 * sysdeps/s390/configure: Regenerated.
21518 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21519 * nptl/tst-mutex8.c:
21520 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21521 * sysdeps/powerpc/powerpc32/sysdep.h:
21522 Deleted all ENABLE_LOCK_ELISION checks.
21523 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21524 * sysdeps/powerpc/sysdep.h: Likewise.
21525 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21526 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21527 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21528 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21529 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21530 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21531 enable-lock-elision.
21532
21533 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21534
21535 * stdlib/strtod.c: Include <bits/floatn.h>.
21536 (BUILD_DOUBLE): New macro.
21537 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21538 (strtof64): Define and later undefine as macro. Define as weak
21539 alias if [!USE_WIDE_CHAR].
21540 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21541 (wcstof64): Define and later undefine as macro. Define as weak
21542 alias if [USE_WIDE_CHAR].
21543 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21544 (strtof32x): Define and later undefine as macro. Define as weak
21545 alias if [!USE_WIDE_CHAR].
21546 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21547 (wcstof32x): Define and later undefine as macro. Define as weak
21548 alias if [USE_WIDE_CHAR].
21549 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21550 (BUILD_DOUBLE): New macro.
21551 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21552 (strtof64_l): Define and later undefine as macro. Define as weak
21553 alias if [!USE_WIDE_CHAR].
21554 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21555 (wcstof64_l): Define and later undefine as macro. Define as weak
21556 alias if [USE_WIDE_CHAR].
21557 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21558 (strtof32x_l): Define and later undefine as macro. Define as weak
21559 alias if [!USE_WIDE_CHAR].
21560 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21561 (wcstof32x_l): Define and later undefine as macro. Define as weak
21562 alias if [USE_WIDE_CHAR].
21563
21564 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21565
21566 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21567 (reduced): Use ones as double instead of integer.
21568
21569 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21570
21571 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21572
21573 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21574
21575 * stdlib/strfromd.c: Include <bits/floatn.h>.
21576 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21577 and later undefine as macro and define as weak alias.
21578 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21579 Likewise.
21580
21581 * math/test-float32x.h: New file.
21582 * math/test-float64.h: Likewise.
21583
21584 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21585 (libm_alias_double_other_r_f64): New macro.
21586 (libm_alias_double_other_r_f32x): Likewise.
21587 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21588 libm_alias_double_other_r_f32x.
21589 (libm_alias_double_r): Use semicolon before call to
21590 libm_alias_double_other_r.
21591 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21592 <bits/floatn.h>.
21593 (libm_alias_double_other_r_f64): New macro.
21594 (libm_alias_double_other_r_f32x): Likewise.
21595 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21596 libm_alias_double_other_r_f32x.
21597
21598 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21599
21600 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21601 int.
21602 (SINF_FUNC): Likewise. Replace floor with simple casts.
21603
21604 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21605
21606 [BZ #22517]
21607 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21608 and to the list of locales to be built for testing.
21609 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21610 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21611 and build the collation rules upon that.
21612
21613 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21614
21615 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21616 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21617 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21618 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21619 instead of __insn__xxx.
21620 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21621 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21622 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21623 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21624 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21625 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21626
21627 2017-12-05 Florian Weimer <fweimer@redhat.com>
21628
21629 Linux: Implement interfaces for memory protection keys
21630 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21631 xsignal, xsysconf.
21632 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21633 * support/xunistd.h (xsysconf): Declare.
21634 * support/xraise.c: New file.
21635 * support/xsigaction.c: Likewise.
21636 * support/xsignal.c: Likewise.
21637 * support/xsysconf.c: Likewise.
21638 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21639 pkey_set, pkey_get, pkey_mprotect.
21640 [misc] (tests): Add tst-pkey.
21641 (tst-pkey): Link with -lpthread.
21642 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21643 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21644 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21645 (PKEY_DISABLE_WRITE): Define.
21646 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21647 Declare.
21648 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21649 (SEGV_PKUERR): Add.
21650 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21651 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21652 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21653 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21654 Add.
21655 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21656 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21657 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21658 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21659 * sysdeps/unix/sysv/linux/**.abilist: Update.
21660
21661 2017-12-05 Florian Weimer <fweimer@redhat.com>
21662
21663 * support/tst-test_compare.c (subprocess): Use long long instead
21664 of long argument for consistent type width across 32-bit and
21665 64-bit architectures.
21666 (do_test): Adjust expected output.
21667
21668 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21669
21670 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21671 (cosf): Define using libm_alias_float.
21672 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21673 (fabsf): Define using libm_alias_float.
21674 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21675 (fmaf): Define using libm_alias_float.
21676 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21677 (rintf): Define using libm_alias_float.
21678 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21679 (sinf): Define using libm_alias_float.
21680 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21681 <libm-alias-float.h>.
21682 (modff): Define using libm_alias_float.
21683 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21684 <libm-alias-float.h>.
21685 (logbf): Define using libm_alias_float.
21686 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21687 <libm-alias-float.h>.
21688 (ceilf): Define using libm_alias_float.
21689 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21690 <libm-alias-float.h>.
21691 (copysignf): Define using libm_alias_float.
21692 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21693 <libm-alias-float.h>.
21694 (floorf): Define using libm_alias_float.
21695 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21696 <libm-alias-float.h>.
21697 (llrintf): Define using libm_alias_float.
21698 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21699 <libm-alias-float.h>.
21700 (llroundf): Define using libm_alias_float.
21701 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21702 <libm-alias-float.h>.
21703 (lrintf): Define using libm_alias_float.
21704 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21705 <libm-alias-float.h>.
21706 (lroundf): Define using libm_alias_float.
21707 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21708 <libm-alias-float.h>.
21709 (nearbyintf): Define using libm_alias_float.
21710 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21711 <libm-alias-float.h>.
21712 (rintf): Define using libm_alias_float.
21713 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21714 <libm-alias-float.h>.
21715 (roundf): Define using libm_alias_float.
21716 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21717 <libm-alias-float.h>.
21718 (truncf): Define using libm_alias_float.
21719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21720 Include <libm-alias-float.h>.
21721 (ceilf): Define using libm_alias_float.
21722 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21723 Include <libm-alias-float.h>.
21724 (copysignf): Define using libm_alias_float.
21725 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21726 Include <libm-alias-float.h>.
21727 (floorf): Define using libm_alias_float.
21728 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21729 Include <libm-alias-float.h>.
21730 (llrintf): Define using libm_alias_float.
21731 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21732 Include <libm-alias-float.h>.
21733 (llroundf): Define using libm_alias_float.
21734 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21735 Include <libm-alias-float.h>.
21736 (logbf): Define using libm_alias_float.
21737 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21738 Include <libm-alias-float.h>.
21739 (lrintf): Define using libm_alias_float.
21740 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21741 Include <libm-alias-float.h>.
21742 (lroundf): Define using libm_alias_float.
21743 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21744 Include <libm-alias-float.h>.
21745 (modff): Define using libm_alias_float.
21746 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21747 Include <libm-alias-float.h>.
21748 (roundf): Define using libm_alias_float.
21749 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21750 Include <libm-alias-float.h>.
21751 (truncf): Define using libm_alias_float.
21752 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21753 <libm-alias-float.h>.
21754 (llrintf): Define using libm_alias_float.
21755 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21756 <libm-alias-float.h>.
21757 (llroundf): Define using libm_alias_float.
21758 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21759 <libm-alias-float.h>.
21760 (ceilf): Define using libm_alias_float.
21761 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21762 <libm-alias-float.h>.
21763 (floorf): Define using libm_alias_float.
21764 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21765 <libm-alias-float.h>.
21766 (llroundf): Define using libm_alias_float.
21767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21768 <libm-alias-float.h>.
21769 (lroundf): Define using libm_alias_float.
21770 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21771 <libm-alias-float.h>.
21772 (roundf): Define using libm_alias_float.
21773 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21774 <libm-alias-float.h>.
21775 (truncf): Define using libm_alias_float.
21776 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21777 <libm-alias-float.h>.
21778 (copysignf): Define using libm_alias_float.
21779 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21780 <libm-alias-float.h>.
21781 (llrintf): Define using libm_alias_float.
21782 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21783 <libm-alias-float.h>.
21784 (llroundf): Define using libm_alias_float.
21785 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21786 <libm-alias-float.h>.
21787 (lrintf): Define using libm_alias_float.
21788 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21789 <libm-alias-float.h>.
21790 (lroundf): Define using libm_alias_float.
21791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21792 <libm-alias-float.h>.
21793 (ceilf): Define using libm_alias_float.
21794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21795 <libm-alias-float.h>.
21796 (copysignf): Define using libm_alias_float.
21797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21798 <libm-alias-float.h>.
21799 (cosf): Define using libm_alias_float.
21800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21801 <libm-alias-float.h>.
21802 (floorf): Define using libm_alias_float.
21803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21804 <libm-alias-float.h>.
21805 (llrintf): Define using libm_alias_float.
21806 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21807 <libm-alias-float.h>.
21808 (llroundf): Define using libm_alias_float.
21809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21810 <libm-alias-float.h>.
21811 (logbf): Define using libm_alias_float.
21812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21813 <libm-alias-float.h>.
21814 (modff): Define using libm_alias_float.
21815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21816 <libm-alias-float.h>.
21817 (roundf): Define using libm_alias_float.
21818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21819 <libm-alias-float.h>.
21820 (sinf): Define using libm_alias_float.
21821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21822 <libm-alias-float.h>.
21823 (truncf): Define using libm_alias_float.
21824 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21825 <libm-alias-float.h>.
21826 (ceilf): Define using libm_alias_float.
21827 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21828 <libm-alias-float.h>.
21829 (copysignf): Define using libm_alias_float.
21830 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21831 <libm-alias-float.h>.
21832 (floorf): Define using libm_alias_float.
21833 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21834 <libm-alias-float.h>.
21835 (llrintf): Define using libm_alias_float.
21836 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21837 <libm-alias-float.h>.
21838 (llroundf): Define using libm_alias_float.
21839 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21840 <libm-alias-float.h>.
21841 (nearbyintf): Define using libm_alias_float.
21842 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21843 <libm-alias-float.h>.
21844 (rintf): Define using libm_alias_float.
21845 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21846 <libm-alias-float.h>.
21847 (roundf): Define using libm_alias_float.
21848 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21849 <libm-alias-float.h>.
21850 (truncf): Define using libm_alias_float.
21851 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21852 <libm-alias-float.h>.
21853 (ceilf): Define using libm_alias_float.
21854 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21855 <libm-alias-float.h>.
21856 (floorf): Define using libm_alias_float.
21857 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21858 <libm-alias-float.h>.
21859 (llroundf): Define using libm_alias_float.
21860 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21861 <libm-alias-float.h>.
21862 (roundf): Define using libm_alias_float.
21863 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21864 <libm-alias-float.h>.
21865 (truncf): Define using libm_alias_float.
21866 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21867 <libm-alias-float.h>.
21868 (copysignf): Define using libm_alias_float.
21869 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21870 <libm-alias-float.h>.
21871 (llrintf): Define using libm_alias_float.
21872 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21873 <libm-alias-float.h>.
21874 (llroundf): Define using libm_alias_float.
21875 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21876 <libm-alias-float.h>.
21877 (cosf): Define using libm_alias_float.
21878 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21879 <libm-alias-float.h>.
21880 (llrintf): Define using libm_alias_float.
21881 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21882 <libm-alias-float.h>.
21883 (llroundf): Define using libm_alias_float.
21884 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21885 <libm-alias-float.h>.
21886 (sinf): Define using libm_alias_float.
21887
21888 2017-12-04 Florian Weimer <fweimer@redhat.com>
21889
21890 * support/check.h (TEST_COMPARE): Define.
21891 (support_test_compare_failure): Declare.
21892 * support/Makefile (libsupport-routines): Add
21893 support_test_compare_failure.
21894 (tests): Add tst-test_compare.
21895 * support /support_test_compare_failure.c: New file.
21896 * support/tst-test_compare.c: Likewise.
21897
21898 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21899
21900 [BZ #22527]
21901 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21902 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21903 available, this rewrite of the collation rules does reproduce
21904 the test file in the same order.
21905
21906 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21907
21908 [BZ #10580]
21909 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21910 digraphs in the month and day names. Using single code points for
21911 digraphs is deprecated. While there are dedicated Unicode
21912 codepoints, for the digraphs, these are included for backwards
21913 compatibility and modern texts use a sequence of Basic Latin
21914 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21915 This makes the month and day names agree exactly with CLDR now,
21916 CLDR does not use the single code points for the digraphs either.
21917
21918 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21919
21920 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21921
21922 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21923
21924 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21925 of floor.
21926
21927 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21928
21929 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21930 Define only for libc.so.
21931
21932 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21933
21934 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21935 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21936 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21937 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21938 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21939
21940 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21941
21942 [BZ #5997]
21943 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21944
21945 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21946
21947 [BZ libc/19170]
21948 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21949 PREINIT_FUNCTION_WEAK is nonzero.
21950 (gmon_initializer): New function. Put procedure label for it in
21951 .init_array section.
21952 (_init): Don't call PREINIT_FUNCTION.
21953 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21954 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21955 value when map argument is null.
21956
21957 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21958 depi instruction from PIC pc-relative sequence.
21959 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21960 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21961 (elf_machine_load_address): Likewise.
21962 (elf_machine_runtime_setup): Likewise.
21963
21964 2017-12-02 Joseph Myers <joseph@codesourcery.com>
21965
21966 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21967 <libm-alias-double.h>.
21968 (logb): Define using libm_alias_double.
21969 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21970 <libm-alias-double.h>.
21971 (copysign): Define using libm_alias_double.
21972 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21973 <libm-alias-double.h>.
21974 (llrint): Define using libm_alias_double.
21975 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21976 <libm-alias-double.h>.
21977 (llround): Define using libm_alias_double.
21978 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21979 <libm-alias-double.h>.
21980 (lrint): Define using libm_alias_double.
21981 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21982 <libm-alias-double.h>.
21983 (lround): Define using libm_alias_double.
21984 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21985 Include <libm-alias-double.h>.
21986 (copysign): Define using libm_alias_double.
21987 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21988 Include <libm-alias-double.h>.
21989 (llrint): Define using libm_alias_double.
21990 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21991 Include <libm-alias-double.h>.
21992 (llround): Define using libm_alias_double.
21993 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21994 <libm-alias-double.h>.
21995 (logb): Define using libm_alias_double.
21996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21997 Include <libm-alias-double.h>.
21998 (lrint): Define using libm_alias_double.
21999 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22000 Include <libm-alias-double.h>.
22001 (lround): Define using libm_alias_double.
22002 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22003 <libm-alias-double.h>.
22004 (llrint): Define using libm_alias_double.
22005 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22006 <libm-alias-double.h>.
22007 (llround): Define using libm_alias_double.
22008 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22009 <libm-alias-double.h>.
22010 (llround): Define using libm_alias_double.
22011 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22012 <libm-alias-double.h>.
22013 (lround): Define using libm_alias_double.
22014 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22015 <libm-alias-double.h>.
22016 (copysign): Define using libm_alias_double.
22017 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22018 <libm-alias-double.h>.
22019 (llrint): Define using libm_alias_double.
22020 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22021 <libm-alias-double.h>.
22022 (llround): Define using libm_alias_double.
22023 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22024 <libm-alias-double.h>.
22025 (lrint): Define using libm_alias_double.
22026 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22027 <libm-alias-double.h>.
22028 (lround): Define using libm_alias_double.
22029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22030 <libm-alias-double.h>.
22031 (copysign): Define using libm_alias_double.
22032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22033 <libm-alias-double.h>.
22034 (llrint): Define using libm_alias_double.
22035 (lrint): Likewise.
22036 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22037 <libm-alias-double.h>.
22038 (llround): Define using libm_alias_double.
22039 (lround): Likewise.
22040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22041 <libm-alias-double.h>.
22042 (logb): Define using libm_alias_double.
22043 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22044 <libm-alias-double.h>.
22045 (copysign): Define using libm_alias_double.
22046 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22047 <libm-alias-double.h>.
22048 (llrint): Define using libm_alias_double.
22049 (lrint): Likewise.
22050 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22051 <libm-alias-double.h>.
22052 (llround): Define using libm_alias_double.
22053 (lround): Likewise.
22054 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22055 <libm-alias-double.h>.
22056 (llround): Define using libm_alias_double.
22057 (lround): Likewise.
22058 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22059 <libm-alias-double.h>.
22060 (copysign): Define using libm_alias_double.
22061 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22062 <libm-alias-double.h>.
22063 (llrint): Define using libm_alias_double.
22064 (lrint): Likewise.
22065 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22066 <libm-alias-double.h>.
22067 (llround): Define using libm_alias_double.
22068 (lround): Likewise.
22069 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22070 <libm-alias-double.h>.
22071 (llrint): Define using libm_alias_double.
22072 (lrint): Likewise.
22073 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22074 <libm-alias-double.h>.
22075 (llround): Define using libm_alias_double.
22076 (lround): Likewise.
22077
22078 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22079
22080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22081 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22082 compat symbol based on llround.
22083
22084 * sysdeps/powerpc/power7/fpu/s_logb.c
22085 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22086 symbol based on __logb, not on logb.
22087 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22088 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22090 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22091
22092 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22093 (rint): Define using libm_alias_double.
22094 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22095 <libm-alias-double.h>.
22096 (modf): Define using libm_alias_double.
22097 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22098 <libm-alias-double.h>.
22099 (ceil): Define using libm_alias_double.
22100 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22101 <libm-alias-double.h>.
22102 (floor): Define using libm_alias_double.
22103 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22104 <libm-alias-double.h>.
22105 (nearbyint): Define using libm_alias_double.
22106 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22107 <libm-alias-double.h>.
22108 (rint): Define using libm_alias_double.
22109 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22110 <libm-alias-double.h>.
22111 (round): Define using libm_alias_double.
22112 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22113 <libm-alias-double.h>.
22114 (trunc): Define using libm_alias_double.
22115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22116 <libm-alias-double.h>.
22117 (ceil): Define using libm_alias_double.
22118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22119 Include <libm-alias-double.h>.
22120 (floor): Define using libm_alias_double.
22121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22122 <libm-alias-double.h>.
22123 (modf): Define using libm_alias_double.
22124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22125 Include <libm-alias-double.h>.
22126 (round): Define using libm_alias_double.
22127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22128 Include <libm-alias-double.h>.
22129 (trunc): Define using libm_alias_double.
22130 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22131 <libm-alias-double.h>.
22132 (ceil): Define using libm_alias_double.
22133 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22134 <libm-alias-double.h>.
22135 (floor): Define using libm_alias_double.
22136 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22137 <libm-alias-double.h>.
22138 (round): Define using libm_alias_double.
22139 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22140 <libm-alias-double.h>.
22141 (trunc): Define using libm_alias_double.
22142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22143 <libm-alias-double.h>.
22144 (ceil): Define using libm_alias_double.
22145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22146 <libm-alias-double.h>.
22147 (floor): Define using libm_alias_double.
22148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22149 <libm-alias-double.h>.
22150 (modf): Define using libm_alias_double.
22151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22152 <libm-alias-double.h>.
22153 (round): Define using libm_alias_double.
22154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22155 <libm-alias-double.h>.
22156 (trunc): Define using libm_alias_double.
22157 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22158 <libm-alias-double.h>.
22159 (ceil): Define using libm_alias_double.
22160 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22161 <libm-alias-double.h>.
22162 (floor): Define using libm_alias_double.
22163 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22164 <libm-alias-double.h>.
22165 (nearbyint): Define using libm_alias_double.
22166 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22167 <libm-alias-double.h>.
22168 (rint): Define using libm_alias_double.
22169 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22170 <libm-alias-double.h>.
22171 (round): Define using libm_alias_double.
22172 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22173 <libm-alias-double.h>.
22174 (trunc): Define using libm_alias_double.
22175 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22176 <libm-alias-double.h>.
22177 (ceil): Define using libm_alias_double.
22178 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22179 <libm-alias-double.h>.
22180 (floor): Define using libm_alias_double.
22181 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22182 <libm-alias-double.h>.
22183 (round): Define using libm_alias_double.
22184 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22185 <libm-alias-double.h>.
22186 (trunc): Define using libm_alias_double.
22187
22188 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22189 (fabs): Define using libm_alias_double.
22190 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22191 (fma): Define using libm_alias_double.
22192 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22193 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22194 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22195 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22196
22197 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22198
22199 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22200
22201 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22202 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22203 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22204
22205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22206 due redirect macro.
22207
22208 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22209
22210 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22211
22212 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22213
22214 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22215 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22216 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22217 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22218
22219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22220 (libm-sysdep_routines): Add s_nearbyintf-generic and
22221 s_nearbyint-generic.
22222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22223 New file.
22224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22226 Likewise.
22227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22228 Likewise.
22229 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22230 file.
22231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22232 Likewise.
22233
22234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22235 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22236 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22237 file.
22238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22240 Likewise.
22241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22244
22245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22246 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22247 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22248 file.
22249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22250 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22251 Likewise.
22252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22253 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22255
22256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22257 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22258 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22259 file.
22260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22262 Likewise.
22263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22264 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22266
22267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22268 (sysdep_calls): New rule.
22269 (sysdep_routines): Use sysdep_calls as base.
22270 (libm-sysdep_routines): Add generic rule for symbols shared with
22271 libc. Add s_copysign-generic and s_copysign-generic objects.
22272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22273 New file.
22274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22276 Likewise.
22277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22280
22281 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22282
22283 [BZ #22519]
22284 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22285 the list of locales to be built for testing.
22286 * localedata/is_IS.UTF-8.in: New file.
22287 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22288 on iso14651_t1.
22289
22290 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22291
22292 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22293 <libm-alias-float.h>.
22294 (fabsf): Define using libm_alias_float.
22295
22296 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22297
22298 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22299
22300 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22301
22302 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22303 <libm-alias-float.h>.
22304 (fabsf): Define using libm_alias_float.
22305 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22306 <libm-alias-float.h>.
22307 (lrintf): Define using libm_alias_float.
22308 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22309 <libm-alias-float.h>.
22310 (rintf): Define using libm_alias_float.
22311
22312 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22313 <libm-alias-double.h>.
22314 (fabs): Define using libm_alias_double.
22315 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22316 <libm-alias-double.h>.
22317 (lrint): Define using libm_alias_double.
22318 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22319 <libm-alias-double.h>.
22320 (rint): Define using libm_alias_double.
22321
22322 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22323 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22324 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22325 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22326 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22327 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22328 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22329 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22330 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22331 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22332 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22333 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22334 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22335 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22336 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22337 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22338 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22339 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22340 s_atan_template.c.
22341 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22342 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22343 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22344 s_ceil_template.c.
22345 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22346 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22347 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22348 s_cos_template.c.
22349 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22350 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22351 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22352 s_expm1_template.c.
22353 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22354 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22355 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22356 s_fabs_template.c.
22357 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22358 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22359 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22360 s_floor_template.c.
22361 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22362 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22363 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22364 s_frexp_template.c.
22365 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22366 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22367 s_lrint_template.c.
22368 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22369 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22370 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22371 s_modf_template.c.
22372 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22373 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22374 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22375 s_nearbyint_template.c.
22376 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22377 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22378 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22379 s_remquo_template.c.
22380 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22381 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22382 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22383 s_rint_template.c.
22384 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22385 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22386 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22387 s_sin_template.c.
22388 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22389 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22390 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22391 s_sincos_template.c.
22392 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22393 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22394 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22395 s_tan_template.c.
22396 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22397 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22398 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22399 s_tanh_template.c.
22400 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22401 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22402 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22403 s_trunc_template.c.
22404 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22405 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22406 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22407 s_atan.c instead of including s_atan.c.
22408 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22409 s_atanf.c instead of including s_atanf.c.
22410 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22411 s_atanl.c instead of including s_atanl.c.
22412 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22413 instead of s_atan.c.
22414 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22415 instead of s_atanf.c.
22416 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22417 instead of s_atanl.c.
22418
22419 * scripts/update-copyrights: Do not handle intl/plural.c
22420 specially.
22421
22422 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22423
22424 [BZ #22432]
22425 * configure.ac (BISON): Require to be present.
22426 * configure: Regenerated.
22427 * intl/Makefile (generated): Add plural.c.
22428 [$(BISON) != no]: Make code unconditional.
22429 (plural.c): Change rule to $(objpfx)plural.c.
22430 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22431 * intl/plural.c: Remove.
22432 * manual/install.texi (Tools for Compilation): Document bison as
22433 required.
22434 * INSTALL: Regenerated.
22435
22436 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22437
22438 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22439 <libm-alias-double.h>.
22440 (llrint): Define using libm_alias_double.
22441 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22442 <libm-alias-float.h>.
22443 (llrintf): Define using libm_alias_float.
22444 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22445 <libm-alias-ldouble.h>.
22446 (llrintl): Define using libm_alias_ldouble.
22447
22448 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22449 declare_mgen_alias instead of weak_alias.
22450 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22451 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22452 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22453
22454 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22455
22456 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22457 Add add_n-generic.
22458 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22459 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22460 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22461
22462 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22463 Add submul_1-generic.
22464 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22465 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22466 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22467
22468 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22469 Add addmul_1-generic.
22470 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22471 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22472 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22473
22474 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22475 Add sub_n-generic.
22476 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22477 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22478 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22479
22480 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22481 Add mul_1-generic.
22482 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22483 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22484 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22485
22486 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22487
22488 According to CLDR, collation rules for Serbian and Bosnian
22489 should be the same as for Croatian.
22490
22491 [BZ #22534]
22492 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22493 and to the list of locales to be built for testing.
22494 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22495 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22496 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22497 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22498
22499 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22500
22501 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22502 to make test case pass.
22503 * localedata/hr_HR.UTF-8.in: Add more test strings.
22504
22505 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22506
22507 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22508
22509 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22510
22511 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22512 the list of locales to built for testing.
22513 * localedata/hr_HR.UTF-8.in: New file.
22514
22515 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22516
22517 [BZ #10580]
22518 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22519 iso14651_t1.
22520 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22521 CLDR (except use ligatures for the digraphs, CLDR does not use
22522 the ligatures), add first_workday, some fixes in the date and time
22523 formats.
22524 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22525 for Đ and đ.
22526 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22527 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22528 Add int_p_cs_precedes and int_n_cs_precedes.
22529 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22530 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22531 LC_MONETARY now).
22532 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22533 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22534 name_miss.
22535 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22536 and lang_lib. Change postal_fmt.
22537
22538 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22539
22540 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22541 <setjmp.h>.
22542 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22543 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22544 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22545 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22546 * sysdeps/generic/setjmpP.h: New file.
22547 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22548 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22549 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22550 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22551 Add jmp_buf-ssp.sym.
22552 (tests): Add tst-saved_mask-1.
22553
22554 2017-11-30 Arjun Shankar <arjun@redhat.com>
22555
22556 [BZ #22375]
22557 CVE-2017-17426
22558 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22559 instead of request2size.
22560
22561 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22562
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22564 (__lllrint): Remove alias.
22565 (lllrint): Likewise.
22566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22567 (__lllrintf): Likewise.
22568 (lllrintf): Likewise.
22569
22570 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22571 <libm-alias-float.h>.
22572 (copysignf): Define using libm_alias_float.
22573 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22574 <libm-alias-float.h>.
22575 (fabsf): Define using libm_alias_float.
22576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22577 Include <libm-alias-float.h>.
22578 (copysignf): Define using libm_alias_float.
22579 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22580 <libm-alias-float.h>.
22581 (fabsf): Define using libm_alias_float.
22582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22583 <libm-alias-float.h>.
22584 (fdimf): Define using libm_alias_float.
22585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22586 <libm-alias-float.h>.
22587 (fmaf): Define using libm_alias_float.
22588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22589 <libm-alias-float.h>.
22590 (llrintf): Define using libm_alias_float.
22591 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22592 Include <libm-alias-float.h>.
22593 (nearbyintf): Define using libm_alias_float.
22594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22595 <libm-alias-float.h>.
22596 (rintf): Define using libm_alias_float.
22597 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22598 <libm-alias-float.h>.
22599 (llrintf): Define using libm_alias_float.
22600 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22601 <libm-alias-float.h>.
22602 (lrintf): Define using libm_alias_float.
22603 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22604 <libm-alias-float.h>.
22605 (nearbyintf): Define using libm_alias_float.
22606 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22607 <libm-alias-float.h>.
22608 (rintf): Define using libm_alias_float.
22609 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22610 <libm-alias-float.h>.
22611 (ceilf): Define using libm_alias_float.
22612 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22613 <libm-alias-float.h>.
22614 (floorf): Define using libm_alias_float.
22615 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22616 <libm-alias-float.h>.
22617 (fmaf): Define using libm_alias_float.
22618 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22619 <libm-alias-float.h>.
22620 (lrintf): Define using libm_alias_float.
22621 (llrintf): Likewise.
22622 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22623 <libm-alias-float.h>.
22624 (nearbyintf): Define using libm_alias_float.
22625 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22626 <libm-alias-float.h>.
22627 (rintf): Define using libm_alias_float.
22628 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22629 <libm-alias-float.h>.
22630 (truncf): Define using libm_alias_float.
22631 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22632 <libm-alias-float.h>.
22633 (copysignf): Define using libm_alias_float.
22634 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22635 <libm-alias-float.h>.
22636 (fabsf): Define using libm_alias_float.
22637 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22638 <libm-alias-float.h>.
22639 (lrintf): Define using libm_alias_float.
22640 (llrintf): Likewise.
22641 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22642 <libm-alias-float.h>.
22643 (nearbyintf): Define using libm_alias_float.
22644 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22645 <libm-alias-float.h>.
22646 (rintf): Define using libm_alias_float.
22647
22648 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22649
22650 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22651 <libm-alias-double.h>.
22652 (copysign): Define using libm_alias_double.
22653 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22654 <libm-alias-double.h>.
22655 (fabs): Define using libm_alias_double.
22656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22657 Include <libm-alias-double.h>.
22658 (copysign): Define using libm_alias_double.
22659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22660 <libm-alias-double.h>.
22661 (fabs): Define using libm_alias_double.
22662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22663 <libm-alias-double.h>.
22664 (fdim): Define using libm_alias_double.
22665 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22666 <libm-alias-double.h>.
22667 (fma): Define using libm_alias_double.
22668 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22669 <libm-alias-double.h>.
22670 (llrint): Define using libm_alias_double.
22671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22672 Include <libm-alias-double.h>.
22673 (nearbyint): Define using libm_alias_double.
22674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22675 <libm-alias-double.h>.
22676 (rint): Define using libm_alias_double.
22677 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22678 <libm-alias-double.h>.
22679 (fabs): Define using libm_alias_double.
22680 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22681 <libm-alias-double.h>.
22682 (llrint): Define using libm_alias_double.
22683 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22684 <libm-alias-double.h>.
22685 (nearbyint): Define using libm_alias_double.
22686 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22687 <libm-alias-double.h>.
22688 (rint): Define using libm_alias_double.
22689 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22690 <libm-alias-double.h>.
22691 (ceil): Define using libm_alias_double.
22692 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22693 <libm-alias-double.h>.
22694 (floor): Define using libm_alias_double.
22695 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22696 <libm-alias-double.h>.
22697 (fma): Define using libm_alias_double.
22698 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22699 <libm-alias-double.h>.
22700 (lrint): Define using libm_alias_double.
22701 (llrint): Likewise.
22702 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22703 <libm-alias-double.h>.
22704 (nearbyint): Define using libm_alias_double.
22705 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22706 <libm-alias-double.h>.
22707 (rint): Define using libm_alias_double.
22708 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22709 <libm-alias-double.h>.
22710 (trunc): Define using libm_alias_double.
22711 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22712 <libm-alias-double.h>.
22713 (copysign): Define using libm_alias_double.
22714 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22715 <libm-alias-double.h>.
22716 (fabs): Define using libm_alias_double.
22717 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22718 <libm-alias-double.h>.
22719 (lrint): Define using libm_alias_double.
22720 (llrint): Likewise.
22721 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22722 <libm-alias-double.h>.
22723 (nearbyint): Define using libm_alias_double.
22724 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22725 <libm-alias-double.h>.
22726 (rint): Define using libm_alias_double.
22727
22728 [BZ #22229]
22729 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22730 <math_ldbl_opt.h>.
22731 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22732
22733 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22734 SPARC --disable-multi-arch glibc variants.
22735
22736 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22737 <libm-alias-float.h>.
22738 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22739 if [SHARED].
22740 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22741 <libm-alias-float.h>.
22742 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22743 if [SHARED].
22744 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22745 <libm-alias-float.h>.
22746 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22747 if [SHARED].
22748 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22749 <libm-alias-float.h>.
22750 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22751 if [SHARED].
22752 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22753 <libm-alias-float.h>.
22754 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22755 if [SHARED].
22756 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22757 <libm-alias-float.h>.
22758 (ceilf): Define using libm_alias_float.
22759 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22760 <libm-alias-float.h>.
22761 (floorf): Define using libm_alias_float.
22762 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22763 <libm-alias-float.h>.
22764 (fmaf): Define using libm_alias_float.
22765 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22766 <libm-alias-float.h>.
22767 (nearbyintf): Define using libm_alias_float.
22768 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22769 <libm-alias-float.h>.
22770 (rintf): Define using libm_alias_float.
22771 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22772 <libm-alias-float.h>.
22773 (truncf): Define using libm_alias_float.
22774 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22775 (copysignf): Define using libm_alias_float.
22776 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22777 (cosf): Define using libm_alias_float.
22778 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22779 (fabsf): Define using libm_alias_float.
22780 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22781 (fmaxf): Define using libm_alias_float.
22782 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22783 (fminf): Define using libm_alias_float.
22784 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22785 (llrintf): Define using libm_alias_float.
22786 [!__ILP32__] (lrintf): Likewise.
22787 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22788 (sincosf): Define using libm_alias_float.
22789 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22790 (sinf): Define using libm_alias_float.
22791 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22792 (lrintf): Define using libm_alias_float.
22793
22794 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22795 <libm-alias-double.h>.
22796 (atan): Define using libm_alias_double.
22797 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22798 <libm-alias-double.h>.
22799 (ceil): Define using libm_alias_double.
22800 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22801 <libm-alias-double.h>.
22802 (floor): Define using libm_alias_double.
22803 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22804 <libm-alias-double.h>.
22805 (fma): Define using libm_alias_double.
22806 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22807 <libm-alias-double.h>.
22808 (nearbyint): Define using libm_alias_double.
22809 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22810 <libm-alias-double.h>.
22811 (rint): Define using libm_alias_double.
22812 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22813 <libm-alias-double.h>.
22814 (sin): Define using libm_alias_double.
22815 (cos): Likewise.
22816 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22817 <libm-alias-double.h>.
22818 (tan): Define using libm_alias_double.
22819 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22820 <libm-alias-double.h>.
22821 (trunc): Define using libm_alias_double.
22822 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22823 (copysign): Define using libm_alias_double.
22824 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22825 (fabs): Define using libm_alias_double.
22826 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22827 (fmax): Define using libm_alias_double.
22828 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22829 (fmin): Define using libm_alias_double.
22830 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22831 (llrint): Define using libm_alias_double.
22832 [!__ILP32__] (lrint): Likewise.
22833 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22834 (lrint): Define using libm_alias_double.
22835
22836 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22837
22838 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22839 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22840 objects.
22841 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22842 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22843 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22844 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22845 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22846 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22847
22848 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22849 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22850 objects.
22851 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22852 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22853 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22854 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22855 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22856 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22857
22858 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22859 (libm-sysdep_routines): Add s_nearbyint-generic and
22860 s_nearbyintf-generic objects.
22861 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22862 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22863 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22864 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22865 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22866 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22867
22868 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22869 Add s_finitef-generic and s_finite-generic objects.
22870 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22871 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22872 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22873 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22874 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22875 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22876
22877 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22878 Add s_isinff-generic and s_isinf-generic objects.
22879 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22880 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22881 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22882 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22883 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22884 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22885
22886 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22887 Add s_isnanf-generic and s_isnan-generic objects.
22888 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22889 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22890 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22891 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22892 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22893 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22894
22895 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22896 macro.
22897 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22898 rule.
22899 (sysdep_routines): Use sysdep_calls as base.
22900 (libm-sysdep_routines): Add generic rule for symbols shared with
22901 libc. Add s_signbit-generic and s_signbitf-generic objects.
22902 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22903 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22904 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22905 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22906 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22907 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22908
22909 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22910
22911 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22912 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22913 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22914 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22915 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22916 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22917 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22918 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22919 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22920 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22921 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22922 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22923 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22924 libm_alias_float_r.
22925 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22926 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22927 (logf): Likewise.
22928 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22929 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22930 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22931 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22932 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22933 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22934 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22935 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22936 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22937 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22938 libm_alias_float.
22939 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22940 (cosf): Likewise.
22941 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22942 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22943 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22944 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22945 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22946 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22947 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22948 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22949 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22950 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22951 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22952 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22953 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22954 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22955 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22956 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22957 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22958 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22959 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22960 libm_alias_float.
22961 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22962 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22963 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22964 * sysdeps/ia64/fpu/w_lgammaf_main.c
22965 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22966 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22967
22968 2017-11-28 Mike FABIAN <mfabian@redhat.com>
22969 Alexandre Oliva <aoliva@redhat.com>
22970
22971 [BZ #17750]
22972 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22973 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22974 accents sorting.
22975 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22976 sorting.
22977 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22978 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22979 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22980 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22981 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22982 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22983 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22984 instead of “ifdef DIACRIT_BACKWARD”.
22985
22986 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22987
22988 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22989 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22990 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22991 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22992 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22993 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22994 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22995 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22996 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22997 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22998 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22999 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23000 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23001 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23002 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23003 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23004 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23005 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23006 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23007 ($(have-as-vis3) == yes): Remove conditional.
23008 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23009 Likewise.
23010 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23011 file.
23012 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23013 file.
23014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23015 file.
23016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23017 file.
23018 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23019 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23020 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23021 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23022 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23023 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23024 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23025 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23026
23027 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23028
23029 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23030 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23031 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23032 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23033 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23034 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23035 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23036 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23037 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23038 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23039 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23040 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23041 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23042 libm_alias_double_r.
23043 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23044 (log): Likewise.
23045 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23046 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23047 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23048 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23049 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23050 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23051 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23052 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23053 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23054 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23055 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23056 libm_alias_double.
23057 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23058 (cos): Likewise.
23059 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23060 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23061 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23062 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23063 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23064 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23065 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23066 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23067 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23068 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23069 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23070 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23071 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23072 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23073 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23074 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23075 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23076 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23077 libm_alias_double.
23078 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23079 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23080 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23081 * sysdeps/ia64/fpu/w_lgamma_main.c
23082 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23083 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23084
23085 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23086
23087 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23088 address of $global$ into %dp register earlier. Use pc-relative
23089 instruction sequence for PIC case.
23090
23091 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23092
23093 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23094 (asinhf): Define using libm_alias_float.
23095 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23096 (atanf): Define using libm_alias_float.
23097 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23098 (cbrtf): Define using libm_alias_float.
23099 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23100 (ceilf): Define using libm_alias_float.
23101 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23102 (copysignf): Define using libm_alias_float.
23103 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23104 (expm1f): Define using libm_alias_float.
23105 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23106 (fabsf): Define using libm_alias_float.
23107 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23108 (floorf): Define using libm_alias_float.
23109 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23110 (fmaxf): Define using libm_alias_float.
23111 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23112 (fminf): Define using libm_alias_float.
23113 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23114 (frexpf): Define using libm_alias_float.
23115 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23116 (llrintf): Define using libm_alias_float.
23117 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23118 (logbf): Define using libm_alias_float.
23119 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23120 (lrintf): Define using libm_alias_float.
23121 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23122 (nearbyintf): Define using libm_alias_float.
23123 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23124 (remquof): Define using libm_alias_float.
23125 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23126 (rintf): Define using libm_alias_float.
23127 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23128 (truncf): Define using libm_alias_float.
23129 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23130 <libm-alias-float.h>.
23131 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23132 if [SHARED].
23133 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23134 <libm-alias-float.h>.
23135 (expf): Define using libm_alias_float, or libm_alias_float_other
23136 if [SHARED].
23137 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23138 <libm-alias-float.h>.
23139 (log2f): Define using libm_alias_float, or libm_alias_float_other
23140 if [SHARED].
23141 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23142 <libm-alias-float.h>.
23143 (logf): Define using libm_alias_float, or libm_alias_float_other
23144 if [SHARED].
23145 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23146 <libm-alias-float.h>.
23147 (powf): Define using libm_alias_float, or libm_alias_float_other
23148 if [SHARED].
23149 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23150 <libm-alias-float.h>.
23151 (cosf): Define using libm_alias_float.
23152 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23153 <libm-alias-float.h>.
23154 (sincosf): Define using libm_alias_float.
23155 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23156 <libm-alias-float.h>.
23157 (sinf): Define using libm_alias_float.
23158 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23159 (fmaxf): Define using libm_alias_float.
23160 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23161 (fminf): Define using libm_alias_float.
23162 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23163 <libm-alias-float.h>.
23164 (fmaf): Define using libm_alias_float.
23165
23166 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23167 (asinh): Define using libm_alias_double.
23168 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23169 (atan): Define using libm_alias_double.
23170 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23171 (cbrt): Define using libm_alias_double.
23172 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23173 (ceil): Define using libm_alias_double.
23174 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23175 (copysign): Define using libm_alias_double.
23176 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23177 (expm1): Define using libm_alias_double.
23178 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23179 (fabs): Define using libm_alias_double.
23180 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23181 (fdim): Define using libm_alias_double.
23182 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23183 (floor): Define using libm_alias_double.
23184 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23185 (fmax): Define using libm_alias_double.
23186 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23187 (fmin): Define using libm_alias_double.
23188 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23189 (frexp): Define using libm_alias_double.
23190 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23191 (llrint): Define using libm_alias_double.
23192 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23193 (logb): Define using libm_alias_double.
23194 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23195 (lrint): Define using libm_alias_double.
23196 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23197 (nearbyint): Define using libm_alias_double.
23198 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23199 (remquo): Define using libm_alias_double.
23200 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23201 (rint): Define using libm_alias_double.
23202 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23203 (trunc): Define using libm_alias_double.
23204 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23205 (fmax): Define using libm_alias_double.
23206 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23207 (fmin): Define using libm_alias_double.
23208 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23209 (fma): Define using libm_alias_double.
23210
23211 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23212
23213 [BZ #22370]
23214 * elf/dl-hwcaps.c (ROUND): Removed.
23215 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23216 and ELF_NOTE_NEXT_OFFSET.
23217 * elf/dl-load.c (ROUND): Removed.
23218 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23219 * elf/readelflib.c (ROUND): Removed.
23220 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23221 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23222 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23223 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23224
23225 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23226
23227 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23228 [!__fmaf] (fmaf): Define using libm_alias_float.
23229
23230 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23231 [!__fma] (fma): Define using libm_alias_double.
23232 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23233
23234 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23235
23236 [BZ #22336]
23237 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23238 and implement the collation rules for cs from CLDR on top of that.
23239 * Makefile: Add cs_CZ.UTF-8 to test-input.
23240 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23241
23242 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23243
23244 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23245
23246 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23247 Icarus Sparry <icarus.w.sparry@intel.com>
23248
23249 * benchtests/Makefile:Add BENCHSET to allow subsets of
23250 benchmarks to be run.
23251 * benchtests/README: Add documentation for: Running subsets of
23252 benchmarks.
23253
23254 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23255
23256 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23257 range of tests names.
23258
23259 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23260 result from property and remove "max", min" and "mean" from
23261 required properties based on benchtests/bench-skeleton.c.
23262
23263 2017-11-28 Florian Weimer <fweimer@redhat.com>
23264
23265 [BZ #20826]
23266 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23267 due to Internet requirement.
23268 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23269 tst-getaddrinfo5.
23270 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23271
23272 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23273
23274 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23275 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23276 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23277 (sysdep_routines): Add memset-ultra1.
23278 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23279 file.
23280 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23281 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23282 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23283 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23284 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23285 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23286 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23287 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23288
23289 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23290 file.
23291 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23292 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23293 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23294 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23295 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23296 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23297 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23298 macro.
23299 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23300 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23301 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23302 (sysdep_routines): Add memcpy-ultra1.
23303 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23304 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23305
23306 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23307
23308 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23309 (cfloat_versions): Take function argument without trailing 'f'.
23310 Call libm_alias_float_other.
23311 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23312 * sysdeps/alpha/fpu/cargf.c: Likewise.
23313 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23314 * sysdeps/alpha/fpu/conjf.c: Likewise.
23315 * sysdeps/alpha/fpu/crealf.c: Likewise.
23316 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23317 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23318 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23319 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23320 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23321 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23322 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23323 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23324 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23325 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23326 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23327 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23328 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23329 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23330 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23331 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23332 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23333 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23334 (clog10f): Use libm_alias_float_other.
23335 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23336 (ceilf): Define using libm_alias_float.
23337 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23338 (copysignf): Define using libm_alias_float.
23339 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23340 (fabsf): Define using libm_alias_float.
23341 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23342 (floorf): Define using libm_alias_float.
23343 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23344 (fmaxf): Define using libm_alias_float.
23345 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23346 (fminf): Define using libm_alias_float.
23347 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23348 (lrintf): Define using libm_alias_float.
23349 (llrintf): Likewise.
23350 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23351 (lroundf): Define using libm_alias_float.
23352 (llroundf): Likewise.
23353 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23354 (rintf): Define using libm_alias_float.
23355 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23356 (truncf): Define using libm_alias_float.
23357
23358 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23359 (ceilf): Define using libm_alias_float.
23360 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23361 (floorf): Define using libm_alias_float.
23362 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23363 (fmaf): Define using libm_alias_float.
23364 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23365 (fmaxf): Define using libm_alias_float.
23366 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23367 (fminf): Define using libm_alias_float.
23368 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23369 (llrintf): Define using libm_alias_float.
23370 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23371 (llroundf): Define using libm_alias_float.
23372 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23373 (lrintf): Define using libm_alias_float.
23374 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23375 (lroundf): Define using libm_alias_float.
23376 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23377 <libm-alias-float.h>.
23378 (nearbyintf): Define using libm_alias_float.
23379 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23380 (rintf): Define using libm_alias_float.
23381 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23382 (roundf): Define using libm_alias_float.
23383 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23384 (truncf): Define using libm_alias_float.
23385
23386 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23387 (ceil): Define using libm_alias_double.
23388 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23389 (copysign): Define using libm_alias_double.
23390 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23391 (fabs): Define using libm_alias_double.
23392 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23393 (floor): Define using libm_alias_double.
23394 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23395 (fmax): Define using libm_alias_double.
23396 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23397 (fmin): Define using libm_alias_double.
23398 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23399 (lrint): Define using libm_alias_double.
23400 (llrint): Likewise.
23401 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23402 (lround): Define using libm_alias_double.
23403 (llround): Likewise.
23404 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23405 (rint): Define using libm_alias_double.
23406 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23407 (trunc): Define using libm_alias_double.
23408
23409 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23410 (libm_alias_double_r): Add semicolon after weak_alias call.
23411
23412 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23413
23414 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23415 (ceil): Define using libm_alias_double.
23416 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23417 (floor): Define using libm_alias_double.
23418 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23419 (fma): Define using libm_alias_double.
23420 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23421 (fmax): Define using libm_alias_double.
23422 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23423 (fmin): Define using libm_alias_double.
23424 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23425 (llrint): Define using libm_alias_double.
23426 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23427 (llround): Define using libm_alias_double.
23428 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23429 (lrint): Define using libm_alias_double.
23430 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23431 (lround): Define using libm_alias_double.
23432 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23433 (nearbyint): Define using libm_alias_double.
23434 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23435 (rint): Define using libm_alias_double.
23436 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23437 (round): Define using libm_alias_double.
23438 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23439 (trunc): Define using libm_alias_double.
23440
23441 2017-11-27 Florian Weimer <fweimer@redhat.com>
23442
23443 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23444 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23445 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23446 (tests): Add tst-mlock2.
23447 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23448 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23449 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23450 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23451 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23452 for mlock. Document mlock2.
23453
23454 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23455
23456 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23457 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23458 Likewise.
23459 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23460 Likewise.
23461 * sysdeps/x86/Makeconfig: New file.
23462 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23463 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23464 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23465 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23466 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23467 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23468 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23469 Likewise.
23470 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23471 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23472 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23473 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23474 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23475 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23476 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23477 * manual/math.texi (Mathematics): Document support for _Float64x.
23478 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23479 * stdlib/Versions (GLIBC_2.27): Likewise.
23480 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23481 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23482 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23483 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23484 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23485 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23486 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23487 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23488 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23489 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23490 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23491 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23493 Likewise.
23494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23495 Likewise.
23496 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23497 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23498 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23499 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23500 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23501 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23502 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23503 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23504 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23505 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23506 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23507 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23508 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23509 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23510
23511 2017-11-27 Andreas Schwab <schwab@suse.de>
23512
23513 * elf/Makefile (dl-routines): Add dl-sort-maps.
23514 * elf/dl-sort-maps.c: New file.
23515 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23516 (_dl_sort_maps): Declare.
23517 * elf/dl-fini.c (_dl_sort_fini): Remove.
23518 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23519 * elf/dl-close.c (_dl_close_worker): Likewise.
23520 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23521 open-coding it.
23522 * elf/dl-open.c (dl_open_worker): Likewise.
23523
23524 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23525
23526 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23527 using libm_alias_float128.
23528 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23529 Likewise.
23530 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23531 Likewise.
23532 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23533 (setpayloadsigf128): Likewise.
23534 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23535 Likewise.
23536 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23537 Likewise.
23538
23539 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23540 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23541 -mfloat128 to CFLAGS.
23542 ($(foreach
23543 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23544 Likewise.
23545 (CFLAGS-libm-test-support-float64x.c): New variable.
23546 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23547 $(f128-loader-link) to gnulib-tests.
23548
23549 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23550 (libm_alias_float128_other_r): If
23551 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23552 alias.
23553 (libm_alias_float128_r): Add semicolon after weak_alias call.
23554 * sysdeps/generic/libm-alias-ldouble.h
23555 (libm_alias_ldouble_other_r_f128): New macro.
23556 (libm_alias_ldouble_other_r_f64x): Likewise.
23557 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23558 and libm_alias_ldouble_other_r_f64x.
23559 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23560 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23561 (libm_alias_ldouble_other_r_f128): New macro.
23562 (libm_alias_ldouble_other_r_f64x): Likewise.
23563 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23564 and libm_alias_ldouble_other_r_f64x.
23565
23566 * stdlib/strfroml.c: Always include <stdlib.h>.
23567 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23568 undefine as macro and define as weak alias.
23569 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23570 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23571 <stdlib.h>.
23572 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23573 Define and later undefine as macro and define as weak alias.
23574
23575 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23576 Define and later undefine as macro. Define as weak alias if
23577 [!USE_WIDE_CHAR].
23578 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23579 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23580 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23581 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23582 Define and later undefine as macro. Define as weak alias if
23583 [!USE_WIDE_CHAR].
23584 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23585 Define and later undefine as macro. Define as weak alias if
23586 [USE_WIDE_CHAR].
23587 * sysdeps/ieee754/float128/strtof128_l.c
23588 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23589 Define and later undefine as macro. Define as weak alias if
23590 [!USE_WIDE_CHAR].
23591 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23592 Define and later undefine as macro. Define as weak alias if
23593 [USE_WIDE_CHAR].
23594 * sysdeps/ieee754/ldbl-128/strtold_l.c
23595 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23596 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23597 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23598 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23599 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23600 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23601 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23602 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23603 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23604 * sysdeps/ieee754/ldbl-96/strtold_l.c
23605 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23606 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23607 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23608 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23609
23610 * math/test-float64x.h: New file.
23611 * math/Makefile (type-float64x-yes): New variable.
23612 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23613
23614 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23615 function-like macro.
23616 (min_of_type_): Likewise.
23617 (min_of_type_l): Likewise.
23618 (min_of_type_f128): Likewise.
23619 (min_of_type): Pass () as last argument of __MATH_TG.
23620
23621 * stdlib/tst-strtod-round-skeleton.c
23622 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23623 headers.
23624
23625 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23626 for combinations of long double with _Float64 and _Float64x.
23627
23628 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23629 (__DECL_SIMD_cosf32): Likewise.
23630 (__DECL_SIMD_cosf64): Likewise.
23631 (__DECL_SIMD_cosf32x): Likewise.
23632 (__DECL_SIMD_cosf64x): Likewise.
23633 (__DECL_SIMD_cosf128x): Likewise.
23634 (__DECL_SIMD_sinf16): Likewise.
23635 (__DECL_SIMD_sinf32): Likewise.
23636 (__DECL_SIMD_sinf64): Likewise.
23637 (__DECL_SIMD_sinf32x): Likewise.
23638 (__DECL_SIMD_sinf64x): Likewise.
23639 (__DECL_SIMD_sinf128x): Likewise.
23640 (__DECL_SIMD_sincosf16): Likewise.
23641 (__DECL_SIMD_sincosf32): Likewise.
23642 (__DECL_SIMD_sincosf64): Likewise.
23643 (__DECL_SIMD_sincosf32x): Likewise.
23644 (__DECL_SIMD_sincosf64x): Likewise.
23645 (__DECL_SIMD_sincosf128x): Likewise.
23646 (__DECL_SIMD_logf16): Likewise.
23647 (__DECL_SIMD_logf32): Likewise.
23648 (__DECL_SIMD_logf64): Likewise.
23649 (__DECL_SIMD_logf32x): Likewise.
23650 (__DECL_SIMD_logf64x): Likewise.
23651 (__DECL_SIMD_logf128x): Likewise.
23652 (__DECL_SIMD_expf16): Likewise.
23653 (__DECL_SIMD_expf32): Likewise.
23654 (__DECL_SIMD_expf64): Likewise.
23655 (__DECL_SIMD_expf32x): Likewise.
23656 (__DECL_SIMD_expf64x): Likewise.
23657 (__DECL_SIMD_expf128x): Likewise.
23658 (__DECL_SIMD_powf16): Likewise.
23659 (__DECL_SIMD_powf32): Likewise.
23660 (__DECL_SIMD_powf64): Likewise.
23661 (__DECL_SIMD_powf32x): Likewise.
23662 (__DECL_SIMD_powf64x): Likewise.
23663 (__DECL_SIMD_powf128x): Likewise.
23664
23665 * stdlib/Versions (libc): Move entries for wcstof128 and
23666 wcstof128_l to ....
23667 * wcsmbs/Versions (libc): ... here.
23668 Include <float128-abi.h>.
23669
23670 2017-11-24 Florian Weimer <fweimer@redhat.com>
23671
23672 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23673 bits/mman-shared.h.
23674 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23675 <bits/mman-shared.h>.
23676 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23677 to ...
23678 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23679 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23680 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23681 <bits/mman-shared.h>.
23682
23683 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23684
23685 [BZ #22457]
23686 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23687 posix_memalign/free.
23688 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23689
23690 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23691
23692 [BZ #22469]
23693 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23694 and implement the collation rules for pl from CLDR on top of that.
23695 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23696 of locales to be built for testing.
23697 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23698
23699 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23700
23701 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23702 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23703 libm_alias_ldouble_other.
23704 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23705 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23706 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23707 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23708 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23709 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23710 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23711 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23712 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23713 libm_alias_ldouble_r.
23714 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23715 libm_alias_ldouble_other.
23716 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23717 (log10l): Likewise.
23718 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23719 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23720 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23721 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23722 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23723 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23724 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23725 (atan2l): Likewise.
23726 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23727 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23728 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23729 libm_alias_ldouble.
23730 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23731 (cosl): Likewise.
23732 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23733 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23734 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23735 (expl): Likewise.
23736 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23737 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23738 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23739 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23740 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23741 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23742 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23743 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23744 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23745 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23746 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23747 libm_alias_ldouble.
23748 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23749 libm_alias_ldouble_other.
23750 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23751 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23752 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23753 libm_alias_ldouble.
23754 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23755 libm_alias_ldouble_other.
23756 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23757 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23758 * sysdeps/ia64/fpu/w_lgammal_main.c
23759 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23760 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23761
23762 2017-11-23 Florian Weimer <fweimer@redhat.com>
23763
23764 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23765 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23766 alike. Remove freeres marker.
23767 * malloc/arena.c (arena_thread_freeres): Call
23768 tcache_thread_shutdown.
23769
23770 2017-11-23 Florian Weimer <fweimer@redhat.com>
23771
23772 [BZ #22459]
23773 Export nscd hash function as __nss_hash.
23774 * include/nss.h (__nss_hash): Declare.
23775 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23776 symbol.
23777 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23778 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23779 of __nscd_hash.
23780 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23781 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23782 * nss/Makefiles (routines): Add nss_hash.
23783 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23784 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23785 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23786 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23787
23788 2017-11-23 Florian Weimer <fweimer@redhat.com>
23789
23790 [BZ #22478]
23791 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23792 Return error code, not -1.
23793 * signal/tst-sigwait-eintr.c: New file.
23794 * signal/Makefile (tests): Add tst-sigwait-eintr.
23795
23796 2017-11-23 Florian Weimer <fweimer@redhat.com>
23797
23798 Linux: Add memfd_create system call wrapper
23799 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23800 tst-memfd_create.
23801 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23802 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23803 [__USE_GNU] (memfd_create): Declare.
23804 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23805 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23806 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23807 * sysdeps/unix/sysv/linux/**.abilist: Update.
23808 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23809
23810 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23811
23812 * localedata/gen-locale.sh: Fix typo in variable name.
23813
23814 * resolv/res_debug.c (p_secstodate): Condition definition on
23815 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23816 directly as __p_secstodate, and as a compat symbol. Do not use
23817 libresolv_hidden_def.
23818 * resolv/resolv.h (p_secstodate): Remove macro and function
23819 declaration.
23820 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23821 using p_secstodate.
23822 * include/resolv.h (__p_secstodate): Do not use
23823 libresolv_hidden_proto.
23824 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23825 (tests-internal): ... here.
23826 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23827 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23828 and declare and use __p_secstodate and use compat_symbol_reference
23829 in that case.
23830 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23831 implementation returning 77.
23832
23833 [BZ #22463]
23834 * resolv/res_debug.c: Include <libc-diag.h>.
23835 (p_secstodate): Assert time_t at least as wide as u_long. On
23836 overflow, use integer seconds since the epoch as output, or use
23837 "<overflow>" as output and set errno to EOVERFLOW if integer
23838 seconds since the epoch would be 14 or more characters.
23839 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23840 for sprintf call.
23841 * resolv/tst-p_secstodate.c: New file.
23842 * resolv/Makefile (tests): Add tst-p_secstodate.
23843 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23844
23845 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23846 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23847 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23848
23849 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23850
23851 * posix/regcomp.c (init_word_char): Add comments.
23852
23853 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23854
23855 [BZ #22447]
23856 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23857 strlen to compute length of ut_user and set trailing NUL byte of
23858 result explicitly.
23859
23860 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23861
23862 [BZ #15537]
23863 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23864 using “copy "iso14651_t1"” and then implementing the
23865 collation rules for lv from CLDR on top of that.
23866 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23867 of locales to be built for testing.
23868 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23869 sorting.
23870
23871 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23872
23873 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23874 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23875 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23876 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23877 [__USE_MISC] (MADV_HWPOISON): New macro.
23878 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23879
23880 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23881
23882 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23883 -Wmissing-braces on GCC 4.9.
23884
23885 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23886
23887 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23888 * sysdeps/s390/s390-32/start.S (_start): Likewise
23889 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23890 (thread_start): Likewise.
23891 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23892 (thread_start): Likewise.
23893 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23894 (__makecontext_ret): Likewise.
23895 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23896 (__makecontext_ret): Likewise.
23897
23898 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23899
23900 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23901 __wcschrnul): Remove attribute_hidden.
23902
23903 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23904
23905 regex: don't assume uint64_t or uint32_t
23906 This avoids -Werror=overflow errors for 32-bit systems in
23907 the 64-bit case. Problem reported by Joseph Myers in:
23908 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23909 Also, when this code is used in Gnulib it ports to platforms
23910 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23911 them, and on some 32-bit compilers there is no uint64_t.
23912 Problem reported by Gianluigi Tiesi in:
23913 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23914 * posix/regcomp.c (init_word_char): Don't assume that the types
23915 uint64_t and uint32_t exist. Adapted from Gnulib patch
23916 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23917 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23918
23919 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23920
23921 * sysdeps/aarch64/memset-reg.h: New file.
23922 * sysdeps/aarch64/memset.S: Use it.
23923 (__memset): Rename to MEMSET macro.
23924 [ZVA_MACRO]: Use zva_macro.
23925 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23926 Add memset_generic and memset_falkor.
23927 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23928 (__libc_ifunc_impl_list): Add memset ifuncs.
23929 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23930 local variable zva_size.
23931 * sysdeps/aarch64/multiarch/memset.c: New file.
23932 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23933 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23934 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23935 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23936 (DCZID_DZP_MASK): New macro.
23937 (DCZID_BS_MASK): Likewise.
23938 (init_cpu_features): Read and set zva_size.
23939 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23940 (struct cpu_features): New member zva_size.
23941
23942 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23943 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23944 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23945
23946 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23947 backwards. Fix timing computation.
23948 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23949 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23950 on memset by N at a time. Fix timing computation.
23951
23952 2017-11-20 Florian Weimer <fweimer@redhat.com>
23953
23954 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23955 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23956
23957 2017-11-19 Florian Weimer <fweimer@redhat.com>
23958
23959 manual: Document mprotect
23960 * manual/memory.texi (Memory Protection): New section.
23961 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23962 documentation of PROT_* flags and reference the Memory Protection
23963 section instead.
23964
23965 2017-11-19 Florian Weimer <fweimer@redhat.com>
23966
23967 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23968 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23969 (Scatter-Gather): ... to here. Remove misleading comment.
23970
23971 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
23972
23973 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23974 style.
23975
23976 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23977 when /proc/<pid>/setgroups does not exist.
23978
23979 2017-11-18 Florian Weimer <fweimer@redhat.com>
23980
23981 * sysdeps/unix/sysv/linux/tst-ttyname.c
23982 (become_root_in_mount_ns): Remove.
23983 (do_in_chroot_1): Call support_enter_mount_namespace.
23984 (do_in_chroot_2): Likewise.
23985 (do_test): Call support_become_root early.
23986
23987 2017-11-18 Florian Weimer <fweimer@redhat.com>
23988
23989 * support/namespace.h (support_enter_mount_namespace): Declare.
23990 * support/support_enter_mount_namespace.c: New file.
23991 * support/Makefile (libsupport-routines): Add
23992 support_enter_mount_namespace.
23993
23994 2017-11-18 Florian Weimer <fweimer@redhat.com>
23995
23996 * support/temp_file.c (support_create_temp_directory): Use
23997 test_dir and do not rely on the presence of the XXXXXX suffix.
23998 * support/temp_file.h (support_create_temp_directory): Update
23999 comment.
24000 * support/tst-xreadlink.c (do_test): Adjust.
24001 * support/support_chroot.c (support_chroot_create): Likewise.
24002
24003 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24004
24005 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24006 macro.
24007 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24008 htm-no-suspend.
24009
24010 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24011
24012 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24013 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24014 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24015 (ceill): Define using libm_alias_ldouble.
24016 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24017 <libm-alias-ldouble.h>.
24018 (copysignl): Define using libm_alias_ldouble.
24019 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24020 (fabsl): Define using libm_alias_ldouble.
24021 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24022 (floorl): Define using libm_alias_ldouble.
24023 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24024 (fmaxl): Define using libm_alias_ldouble.
24025 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24026 (fminl): Define using libm_alias_ldouble.
24027 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24028 (llrintl): Define using libm_alias_ldouble.
24029 (lrintl): Likewise.
24030 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24031 <libm-alias-ldouble.h>.
24032 (nearbyintl): Define using libm_alias_ldouble.
24033 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24034 (truncl): Define using libm_alias_ldouble.
24035 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24036 <libm-alias-ldouble.h>.
24037 (lrintl): Define using libm_alias_ldouble.
24038
24039 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24040 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24041 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24042 (asinhl): Define using libm_alias_ldouble.
24043 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24044 (atanl): Define using libm_alias_ldouble.
24045 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24046 (cbrtl): Define using libm_alias_ldouble.
24047 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24048 (ceill): Define using libm_alias_ldouble.
24049 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24050 (copysignl): Define using libm_alias_ldouble.
24051 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24052 (fabsl): Define using libm_alias_ldouble.
24053 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24054 (floorl): Define using libm_alias_ldouble.
24055 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24056 (fmaxl): Define using libm_alias_ldouble.
24057 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24058 (fminl): Define using libm_alias_ldouble.
24059 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24060 (frexpl): Define using libm_alias_ldouble.
24061 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24062 (llrintl): Define using libm_alias_ldouble.
24063 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24064 (logbl): Define using libm_alias_ldouble.
24065 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24066 (lrintl): Define using libm_alias_ldouble.
24067 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24068 (nearbyintl): Define using libm_alias_ldouble.
24069 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24070 (nextafterl): Define using libm_alias_ldouble.
24071 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24072 (remquol): Define using libm_alias_ldouble.
24073 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24074 (rintl): Define using libm_alias_ldouble.
24075 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24076 (truncl): Define using libm_alias_ldouble.
24077 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24078 (fmaxl): Define using libm_alias_ldouble.
24079 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24080 (fminl): Define using libm_alias_ldouble.
24081
24082 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24083 to C syntax instead of availability and properties of types.
24084 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24085 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24086 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24087 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24088 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24089 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24090
24091 2017-11-17 Florian Weimer <fweimer@redhat.com>
24092
24093 support_become_root: Enable file creation in namespaces.
24094 * support/support_become_root.c (setup_mapping): New function.
24095 (support_become_root): Call it.
24096
24097 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24098
24099 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24100 macro.
24101
24102 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24103
24104 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24105 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24106
24107 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24108
24109 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24110
24111 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24112 version to 4.14.
24113
24114 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24115
24116 * INSTALL: Fix botched up regeneration.
24117
24118 * NEWS: Update sourceare link to https.
24119 * configure.ac: Likewise.
24120 * crypt/md5test-giant.c: Likewise.
24121 * dlfcn/bug-atexit1.c: Likewise.
24122 * dlfcn/bug-atexit2.c: Likewise.
24123 * localedata/README: Likewise.
24124 * malloc/tst-mallocfork.c: Likewise.
24125 * manual/install.texi: Likewise.
24126 * nptl/tst-pthread-getattr.c: Likewise.
24127 * stdio-common/tst-fgets.c: Likewise.
24128 * stdio-common/tst-fwrite.c: Likewise.
24129 * sunrpc/Makefile: Likewise.
24130 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24131 * wcsmbs/tst-mbrtowc2.c: Likewise.
24132 * configure: Regenerate.
24133 * INSTALL: Regenerate.
24134
24135 2017-11-15 Martin Sebor <msebor@redhat.com>
24136
24137 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24138 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24139 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24140
24141 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24142
24143 [BZ #22145]
24144 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24145 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24146
24147 [BZ #22145]
24148 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24149 Defer is_pty check until end of the function.
24150 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24151
24152 [BZ #22145]
24153 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24154 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24155 (ttyname): Likewise.
24156 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24157 (__ttyname_r): Likewise.
24158
24159 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24160 int to bool.
24161
24162 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24163
24164 * manual/terminal.texi (Is It a Terminal):
24165 Mention ENODEV for ttyname and ttyname_r.
24166
24167 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24168
24169 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24170 constant and macro.
24171
24172 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24173 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24174 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24175 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24176 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24177 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24178
24179 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24180
24181 * signal/sigrelse.c (sigrelse): Optimize implementation.
24182
24183 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24184 (__sigpause): Rely on __sigsuspend to implement single thread
24185 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24186
24187 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24188
24189 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24190 kernel version to 4.14.
24191
24192 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24193
24194 [BZ #22442]
24195 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24196 Check if ifname is too long.
24197
24198 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24199
24200 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24201
24202 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24203
24204 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24205 was accidentally lost.
24206
24207 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24208
24209 * localedata/locales/az_IR: Add standard copyright header.
24210
24211 2017-11-15 Florian Weimer <fweimer@redhat.com>
24212
24213 [BZ #22439]
24214 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24215 not just the top one. Output a new "subheaps" statistic.
24216
24217 2017-11-15 Florian Weimer <fweimer@redhat.com>
24218
24219 [BZ #22408]
24220 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24221 under the per-arena lock.
24222 * malloc/Makefile (tests): Add tst-malloc_info.
24223 (tst-malloc_info): Link with libpthread.
24224 * malloc/tst-malloc_info.c: New file.
24225
24226 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24227
24228 [BZ #21660]
24229 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24230 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24231 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24232 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24233 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24234 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24235 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24236 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24237 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24238 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24239 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24240 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24241 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24242 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24243 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24244 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24245 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24246 (__floating_type): Likewise.
24247 (__real_integer_type): Likewise.
24248 (__complex_integer_type): Likewise.
24249 (__expr_is_real): Likewise.
24250 (__tgmath_real_type_sub): Likewise.
24251 (__tgmath_real_type): Likewise.
24252 (__tgmath_complex_type_sub): Likewise.
24253 (__tgmath_complex_type): Likewise.
24254 (__TGMATH_F128): Likewise.
24255 (__TGMATH_CF128): Likewise.
24256 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24257 new macros.
24258 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24259 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24260 Likewise.
24261 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24262 Likewise.
24263 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24264 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24265 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24266 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24267 Likewise.
24268 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24269 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24270 Likewise.
24271 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24272 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24273 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24274 Likewise.
24275 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24276 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24277 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24278 (cimag): Likewise.
24279 (creal): Likewise.
24280
24281 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24282
24283 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24284 for stpncpy calls for GCC 8.
24285 (test_strncat): Disable -Wstringop-truncation warning for strncat
24286 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24287 strncat call for GCC 7.
24288 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24289 calls for GCC 8.
24290 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24291 trailing NUL.
24292
24293 * string/bug-strncat1.c: Include <libc-diag.h>.
24294 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24295
24296 2017-11-13 Claude Paroz <claude@2xlibre.net>
24297
24298 [BZ #22387]
24299 * localedata/locales/aa_DJ: Improved readibility by replacing
24300 <Uxxxx> sequences in the ASCII printable range by their ASCII
24301 character equivalents.
24302 * localedata/locales/aa_ER: Likewise.
24303 * localedata/locales/aa_ER@saaho: Likewise.
24304 * localedata/locales/aa_ET: Likewise.
24305 * localedata/locales/af_ZA: Likewise.
24306 * localedata/locales/agr_PE: Likewise.
24307 * localedata/locales/ak_GH: Likewise.
24308 * localedata/locales/am_ET: Likewise.
24309 * localedata/locales/anp_IN: Likewise.
24310 * localedata/locales/ar_AE: Likewise.
24311 * localedata/locales/ar_BH: Likewise.
24312 * localedata/locales/ar_DZ: Likewise.
24313 * localedata/locales/ar_EG: Likewise.
24314 * localedata/locales/ar_IN: Likewise.
24315 * localedata/locales/ar_IQ: Likewise.
24316 * localedata/locales/ar_JO: Likewise.
24317 * localedata/locales/ar_KW: Likewise.
24318 * localedata/locales/ar_LB: Likewise.
24319 * localedata/locales/ar_LY: Likewise.
24320 * localedata/locales/ar_MA: Likewise.
24321 * localedata/locales/ar_OM: Likewise.
24322 * localedata/locales/ar_QA: Likewise.
24323 * localedata/locales/ar_SA: Likewise.
24324 * localedata/locales/ar_SD: Likewise.
24325 * localedata/locales/ar_SS: Likewise.
24326 * localedata/locales/ar_SY: Likewise.
24327 * localedata/locales/ar_TN: Likewise.
24328 * localedata/locales/ar_YE: Likewise.
24329 * localedata/locales/as_IN: Likewise.
24330 * localedata/locales/ast_ES: Likewise.
24331 * localedata/locales/ayc_PE: Likewise.
24332 * localedata/locales/az_AZ: Likewise.
24333 * localedata/locales/az_IR: Likewise.
24334 * localedata/locales/be_BY: Likewise.
24335 * localedata/locales/be_BY@latin: Likewise.
24336 * localedata/locales/bem_ZM: Likewise.
24337 * localedata/locales/ber_DZ: Likewise.
24338 * localedata/locales/ber_MA: Likewise.
24339 * localedata/locales/bg_BG: Likewise.
24340 * localedata/locales/bhb_IN: Likewise.
24341 * localedata/locales/bho_IN: Likewise.
24342 * localedata/locales/bi_VU: Likewise.
24343 * localedata/locales/bn_BD: Likewise.
24344 * localedata/locales/bn_IN: Likewise.
24345 * localedata/locales/bo_CN: Likewise.
24346 * localedata/locales/bo_IN: Likewise.
24347 * localedata/locales/br_FR: Likewise.
24348 * localedata/locales/brx_IN: Likewise.
24349 * localedata/locales/bs_BA: Likewise.
24350 * localedata/locales/byn_ER: Likewise.
24351 * localedata/locales/ca_AD: Likewise.
24352 * localedata/locales/ca_ES: Likewise.
24353 * localedata/locales/ca_FR: Likewise.
24354 * localedata/locales/ca_IT: Likewise.
24355 * localedata/locales/ce_RU: Likewise.
24356 * localedata/locales/chr_US: Likewise.
24357 * localedata/locales/cmn_TW: Likewise.
24358 * localedata/locales/crh_UA: Likewise.
24359 * localedata/locales/cs_CZ: Likewise.
24360 * localedata/locales/csb_PL: Likewise.
24361 * localedata/locales/cv_RU: Likewise.
24362 * localedata/locales/cy_GB: Likewise.
24363 * localedata/locales/da_DK: Likewise.
24364 * localedata/locales/de_AT: Likewise.
24365 * localedata/locales/de_BE: Likewise.
24366 * localedata/locales/de_CH: Likewise.
24367 * localedata/locales/de_DE: Likewise.
24368 * localedata/locales/de_IT: Likewise.
24369 * localedata/locales/de_LI: Likewise.
24370 * localedata/locales/de_LU: Likewise.
24371 * localedata/locales/doi_IN: Likewise.
24372 * localedata/locales/dv_MV: Likewise.
24373 * localedata/locales/dz_BT: Likewise.
24374 * localedata/locales/el_CY: Likewise.
24375 * localedata/locales/el_GR: Likewise.
24376 * localedata/locales/en_AG: Likewise.
24377 * localedata/locales/en_AU: Likewise.
24378 * localedata/locales/en_BW: Likewise.
24379 * localedata/locales/en_CA: Likewise.
24380 * localedata/locales/en_DK: Likewise.
24381 * localedata/locales/en_GB: Likewise.
24382 * localedata/locales/en_HK: Likewise.
24383 * localedata/locales/en_IE: Likewise.
24384 * localedata/locales/en_IL: Likewise.
24385 * localedata/locales/en_IN: Likewise.
24386 * localedata/locales/en_NG: Likewise.
24387 * localedata/locales/en_NZ: Likewise.
24388 * localedata/locales/en_PH: Likewise.
24389 * localedata/locales/en_SG: Likewise.
24390 * localedata/locales/en_US: Likewise.
24391 * localedata/locales/en_ZA: Likewise.
24392 * localedata/locales/en_ZM: Likewise.
24393 * localedata/locales/en_ZW: Likewise.
24394 * localedata/locales/eo: Likewise.
24395 * localedata/locales/es_AR: Likewise.
24396 * localedata/locales/es_BO: Likewise.
24397 * localedata/locales/es_CL: Likewise.
24398 * localedata/locales/es_CO: Likewise.
24399 * localedata/locales/es_CR: Likewise.
24400 * localedata/locales/es_CU: Likewise.
24401 * localedata/locales/es_DO: Likewise.
24402 * localedata/locales/es_EC: Likewise.
24403 * localedata/locales/es_ES: Likewise.
24404 * localedata/locales/es_GT: Likewise.
24405 * localedata/locales/es_HN: Likewise.
24406 * localedata/locales/es_MX: Likewise.
24407 * localedata/locales/es_NI: Likewise.
24408 * localedata/locales/es_PA: Likewise.
24409 * localedata/locales/es_PE: Likewise.
24410 * localedata/locales/es_PR: Likewise.
24411 * localedata/locales/es_PY: Likewise.
24412 * localedata/locales/es_SV: Likewise.
24413 * localedata/locales/es_US: Likewise.
24414 * localedata/locales/es_UY: Likewise.
24415 * localedata/locales/es_VE: Likewise.
24416 * localedata/locales/et_EE: Likewise.
24417 * localedata/locales/eu_ES: Likewise.
24418 * localedata/locales/eu_ES@euro: Likewise.
24419 * localedata/locales/fa_IR: Likewise.
24420 * localedata/locales/ff_SN: Likewise.
24421 * localedata/locales/fi_FI: Likewise.
24422 * localedata/locales/fil_PH: Likewise.
24423 * localedata/locales/fo_FO: Likewise.
24424 * localedata/locales/fr_BE: Likewise.
24425 * localedata/locales/fr_CA: Likewise.
24426 * localedata/locales/fr_CH: Likewise.
24427 * localedata/locales/fr_FR: Likewise.
24428 * localedata/locales/fr_LU: Likewise.
24429 * localedata/locales/fur_IT: Likewise.
24430 * localedata/locales/fy_DE: Likewise.
24431 * localedata/locales/fy_NL: Likewise.
24432 * localedata/locales/ga_IE: Likewise.
24433 * localedata/locales/gd_GB: Likewise.
24434 * localedata/locales/gez_ER: Likewise.
24435 * localedata/locales/gez_ET: Likewise.
24436 * localedata/locales/gl_ES: Likewise.
24437 * localedata/locales/gu_IN: Likewise.
24438 * localedata/locales/gv_GB: Likewise.
24439 * localedata/locales/ha_NG: Likewise.
24440 * localedata/locales/hak_TW: Likewise.
24441 * localedata/locales/he_IL: Likewise.
24442 * localedata/locales/hi_IN: Likewise.
24443 * localedata/locales/hif_FJ: Likewise.
24444 * localedata/locales/hne_IN: Likewise.
24445 * localedata/locales/hr_HR: Likewise.
24446 * localedata/locales/hsb_DE: Likewise.
24447 * localedata/locales/ht_HT: Likewise.
24448 * localedata/locales/hu_HU: Likewise.
24449 * localedata/locales/hy_AM: Likewise.
24450 * localedata/locales/i18n: Likewise.
24451 * localedata/locales/ia_FR: Likewise.
24452 * localedata/locales/id_ID: Likewise.
24453 * localedata/locales/ig_NG: Likewise.
24454 * localedata/locales/ik_CA: Likewise.
24455 * localedata/locales/is_IS: Likewise.
24456 * localedata/locales/it_CH: Likewise.
24457 * localedata/locales/it_IT: Likewise.
24458 * localedata/locales/iu_CA: Likewise.
24459 * localedata/locales/ja_JP: Likewise.
24460 * localedata/locales/ka_GE: Likewise.
24461 * localedata/locales/kk_KZ: Likewise.
24462 * localedata/locales/kl_GL: Likewise.
24463 * localedata/locales/kn_IN: Likewise.
24464 * localedata/locales/ko_KR: Likewise.
24465 * localedata/locales/kok_IN: Likewise.
24466 * localedata/locales/ks_IN: Likewise.
24467 * localedata/locales/ks_IN@devanagari: Likewise.
24468 * localedata/locales/ku_TR: Likewise.
24469 * localedata/locales/kw_GB: Likewise.
24470 * localedata/locales/ky_KG: Likewise.
24471 * localedata/locales/lb_LU: Likewise.
24472 * localedata/locales/lg_UG: Likewise.
24473 * localedata/locales/li_BE: Likewise.
24474 * localedata/locales/li_NL: Likewise.
24475 * localedata/locales/lij_IT: Likewise.
24476 * localedata/locales/ln_CD: Likewise.
24477 * localedata/locales/lo_LA: Likewise.
24478 * localedata/locales/lt_LT: Likewise.
24479 * localedata/locales/lv_LV: Likewise.
24480 * localedata/locales/lzh_TW: Likewise.
24481 * localedata/locales/mag_IN: Likewise.
24482 * localedata/locales/mai_IN: Likewise.
24483 * localedata/locales/mg_MG: Likewise.
24484 * localedata/locales/mhr_RU: Likewise.
24485 * localedata/locales/mi_NZ: Likewise.
24486 * localedata/locales/mk_MK: Likewise.
24487 * localedata/locales/ml_IN: Likewise.
24488 * localedata/locales/mn_MN: Likewise.
24489 * localedata/locales/mni_IN: Likewise.
24490 * localedata/locales/mr_IN: Likewise.
24491 * localedata/locales/ms_MY: Likewise.
24492 * localedata/locales/mt_MT: Likewise.
24493 * localedata/locales/my_MM: Likewise.
24494 * localedata/locales/nan_TW: Likewise.
24495 * localedata/locales/nan_TW@latin: Likewise.
24496 * localedata/locales/nb_NO: Likewise.
24497 * localedata/locales/nds_DE: Likewise.
24498 * localedata/locales/nds_NL: Likewise.
24499 * localedata/locales/ne_NP: Likewise.
24500 * localedata/locales/nhn_MX: Likewise.
24501 * localedata/locales/niu_NU: Likewise.
24502 * localedata/locales/niu_NZ: Likewise.
24503 * localedata/locales/nl_AW: Likewise.
24504 * localedata/locales/nl_BE: Likewise.
24505 * localedata/locales/nl_NL: Likewise.
24506 * localedata/locales/nn_NO: Likewise.
24507 * localedata/locales/nr_ZA: Likewise.
24508 * localedata/locales/nso_ZA: Likewise.
24509 * localedata/locales/oc_FR: Likewise.
24510 * localedata/locales/om_ET: Likewise.
24511 * localedata/locales/om_KE: Likewise.
24512 * localedata/locales/or_IN: Likewise.
24513 * localedata/locales/os_RU: Likewise.
24514 * localedata/locales/pa_IN: Likewise.
24515 * localedata/locales/pa_PK: Likewise.
24516 * localedata/locales/pap_AW: Likewise.
24517 * localedata/locales/pap_CW: Likewise.
24518 * localedata/locales/pl_PL: Likewise.
24519 * localedata/locales/ps_AF: Likewise.
24520 * localedata/locales/pt_BR: Likewise.
24521 * localedata/locales/pt_PT: Likewise.
24522 * localedata/locales/quz_PE: Likewise.
24523 * localedata/locales/raj_IN: Likewise.
24524 * localedata/locales/ro_RO: Likewise.
24525 * localedata/locales/ru_RU: Likewise.
24526 * localedata/locales/ru_UA: Likewise.
24527 * localedata/locales/rw_RW: Likewise.
24528 * localedata/locales/sa_IN: Likewise.
24529 * localedata/locales/sat_IN: Likewise.
24530 * localedata/locales/sc_IT: Likewise.
24531 * localedata/locales/sd_IN: Likewise.
24532 * localedata/locales/sd_IN@devanagari: Likewise.
24533 * localedata/locales/se_NO: Likewise.
24534 * localedata/locales/sgs_LT: Likewise.
24535 * localedata/locales/shs_CA: Likewise.
24536 * localedata/locales/si_LK: Likewise.
24537 * localedata/locales/sid_ET: Likewise.
24538 * localedata/locales/sk_SK: Likewise.
24539 * localedata/locales/sl_SI: Likewise.
24540 * localedata/locales/sm_WS: Likewise.
24541 * localedata/locales/so_DJ: Likewise.
24542 * localedata/locales/so_ET: Likewise.
24543 * localedata/locales/so_KE: Likewise.
24544 * localedata/locales/so_SO: Likewise.
24545 * localedata/locales/sq_AL: Likewise.
24546 * localedata/locales/sq_MK: Likewise.
24547 * localedata/locales/sr_ME: Likewise.
24548 * localedata/locales/sr_RS: Likewise.
24549 * localedata/locales/sr_RS@latin: Likewise.
24550 * localedata/locales/ss_ZA: Likewise.
24551 * localedata/locales/st_ZA: Likewise.
24552 * localedata/locales/sv_FI: Likewise.
24553 * localedata/locales/sv_SE: Likewise.
24554 * localedata/locales/sw_KE: Likewise.
24555 * localedata/locales/sw_TZ: Likewise.
24556 * localedata/locales/szl_PL: Likewise.
24557 * localedata/locales/ta_IN: Likewise.
24558 * localedata/locales/ta_LK: Likewise.
24559 * localedata/locales/tcy_IN: Likewise.
24560 * localedata/locales/te_IN: Likewise.
24561 * localedata/locales/tg_TJ: Likewise.
24562 * localedata/locales/th_TH: Likewise.
24563 * localedata/locales/the_NP: Likewise.
24564 * localedata/locales/ti_ER: Likewise.
24565 * localedata/locales/ti_ET: Likewise.
24566 * localedata/locales/tig_ER: Likewise.
24567 * localedata/locales/tk_TM: Likewise.
24568 * localedata/locales/tl_PH: Likewise.
24569 * localedata/locales/tn_ZA: Likewise.
24570 * localedata/locales/to_TO: Likewise.
24571 * localedata/locales/tpi_PG: Likewise.
24572 * localedata/locales/tr_CY: Likewise.
24573 * localedata/locales/tr_TR: Likewise.
24574 * localedata/locales/ts_ZA: Likewise.
24575 * localedata/locales/tt_RU: Likewise.
24576 * localedata/locales/tt_RU@iqtelif: Likewise.
24577 * localedata/locales/ug_CN: Likewise.
24578 * localedata/locales/uk_UA: Likewise.
24579 * localedata/locales/unm_US: Likewise.
24580 * localedata/locales/ur_IN: Likewise.
24581 * localedata/locales/ur_PK: Likewise.
24582 * localedata/locales/uz_UZ: Likewise.
24583 * localedata/locales/uz_UZ@cyrillic: Likewise.
24584 * localedata/locales/ve_ZA: Likewise.
24585 * localedata/locales/vi_VN: Likewise.
24586 * localedata/locales/wa_BE: Likewise.
24587 * localedata/locales/wae_CH: Likewise.
24588 * localedata/locales/wal_ET: Likewise.
24589 * localedata/locales/wo_SN: Likewise.
24590 * localedata/locales/xh_ZA: Likewise.
24591 * localedata/locales/yi_US: Likewise.
24592 * localedata/locales/yo_NG: Likewise.
24593 * localedata/locales/yue_HK: Likewise.
24594 * localedata/locales/yuw_PG: Likewise.
24595 * localedata/locales/zh_CN: Likewise.
24596 * localedata/locales/zh_HK: Likewise.
24597 * localedata/locales/zh_SG: Likewise.
24598 * localedata/locales/zh_TW: Likewise.
24599 * localedata/locales/zu_ZA: Likewise.
24600
24601 2017-11-13 Florian Weimer <fweimer@redhat.com>
24602
24603 * support/next_to_fault.h, support/next_to_fault.c: New files.
24604 * support/Makefile (libsupport-routines): Add next_to_fault.
24605 * resolv/tst-inet_pton.c (struct next_to_fault)
24606 (next_to_fault_allocate, next_to_fault_free): Remove.
24607 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24608
24609 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24610
24611 * elf/dl-support.c: Include <dl-procruntime.c>.
24612 * include/link.h: Include <link_map.h>.
24613 * sysdeps/generic/dl-procruntime.c: New file.
24614 * sysdeps/generic/link_map.h: Likewise.
24615 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24616 the writable ld.so namespace.
24617
24618 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24619
24620 timezone: pacify GCC -Wstringop-truncation
24621 Problem reported by Martin Sebor in:
24622 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24623 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24624
24625 2017-11-12 Florian Weimer <fweimer@redhat.com>
24626
24627 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24628 tst-xreadlink.
24629 (tests): Add tst-xreadlink.
24630 * support/support.h (xstrndup): Declare.
24631 * support/xunistd.h (xunlink, xreadlink): Declare.
24632 * support/temp_file.h (support_create_temp_directory): Declare.
24633 * support/temp_file.c (support_create_temp_directory): New function.
24634 * support/support_chroot.c (support_chroot_create): Use it.
24635 * support/xreadlink.c: New file.
24636 * support/xstrndup.c: Likewise.
24637 * support/xunlink.c: Likewise.
24638 * support/tst-xreadlink.c: Likewise.
24639
24640 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24641
24642 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24643
24644 2017-11-11 Florian Weimer <fweimer@redhat.com>
24645
24646 [BZ #22409]
24647 [BZ #22412]
24648 * resolv/res_comp.c (printable_string, binary_hnok)
24649 (binary_leading_dash): New functions.
24650 (res_hnok): Reimplement using these functions and ns_name_pton.
24651 (res_ownok): Likewise.
24652 (res_mailok): Reimplement using printable_string, ns_name_pton and
24653 binary_hnok.
24654 (res_dnok): Reimplement using printable_string and ns_name_pton.
24655 * resolv/tst-res_hnok.c (tests): Add additional tests.
24656 (LETTERDIGITS, PRINTABLE): Define.
24657 (do_test): Adjust one_char results.
24658
24659 2017-11-11 Florian Weimer <fweimer@redhat.com>
24660
24661 [BZ #22413]
24662 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24663 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24664
24665 2017-11-11 Florian Weimer <fweimer@redhat.com>
24666
24667 * resolv/tst-ns_name_pton.c: New file.
24668 * resolv/Makefile (tests): Add tst-ns_name_pton.
24669 (tst-ns_name_pton): Link against libresolv.
24670
24671 2017-11-11 Florian Weimer <fweimer@redhat.com>
24672
24673 * resolv/tst-res_hnok.c: New file.
24674 * resolv/Makefile (tests): Add tst-res_hnok.
24675 (tst-res_hnok): Link against libresolv.
24676
24677 2017-11-11 Florian Weimer <fweimer@redhat.com>
24678
24679 * resolv/tst-resolv-network.c: Use test framework instead explicit
24680 main function.
24681
24682 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24683
24684 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24685 <jmp_buf-macros.h>.
24686 [!_ISOMAC] (STR_HELPER): New.
24687 [!_ISOMAC] (STR): Likewise.
24688 [!_ISOMAC] (TEST_SIZE): Likewise.
24689 [!_ISOMAC] (TEST_ALIGN): Likewise.
24690 [!_ISOMAC] (TEST_OFFSET): Likewise.
24691 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24692 field offsets of jmp_buf as well as sigjmp_buf.
24693 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24694 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24695 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24696 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24697 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24698 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24699 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24700 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24701 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24702 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24703 Likewise.
24704 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24705 Likewise.
24706 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24708 Likewise.
24709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24710 Likewise.
24711 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24712 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24713 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24714 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24715 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24716 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24717 Likewise.
24718 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24719 Likewise.
24720 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24721 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24722 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24723
24724 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24725
24726 * include/float.h
24727 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24728 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24729 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24730 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24731 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24732 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24733 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24734 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24735 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24736 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24737 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24738 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24739 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24740 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24741 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24742 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24743 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24744 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24745 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24746 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24747 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24748 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24749 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24750 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24751 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24752 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24753 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24754 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24755 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24756 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24757 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24758 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24759 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24760 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24761 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24762 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24763 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24764 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24765 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24766 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24767 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24768 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24769 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24770 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24771 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24772 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24774 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24776 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24778 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24779 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24780 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24781 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24782 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24783 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24784 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24785 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24786 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24787 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24788 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24789 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24790 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24791 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24792 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24793 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24794 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24795 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24796 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24797 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24798 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24799 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24800 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24801 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24802 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24803 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24804 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24805 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24806 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24807 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24808 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24809 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24810 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24811 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24812 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24813 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24814 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24815
24816 * stdlib/tst-strtod.h (F16): New macro.
24817 (F32): Likewise.
24818 (F64): Likewise.
24819 (F32X): Likewise.
24820 (F64X): Likewise.
24821 (F128X): Likewise.
24822 (IF_FLOAT16): Likewise.
24823 (IF_FLOAT32): Likewise.
24824 (IF_FLOAT64): Likewise.
24825 (IF_FLOAT32X): Likewise.
24826 (IF_FLOAT64X): Likewise.
24827 (IF_FLOAT128X): Likewise.
24828 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24829 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24830 (STRTOD_TEST_FOREACH): Likewise.
24831 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24832 (CHOOSE_f64): Likewise.
24833 (CHOOSE_f32x): Likewise.
24834 (CHOOSE_f64x): Likewise.
24835
24836 2017-11-07 Andreas Schwab <schwab@suse.de>
24837
24838 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24839
24840 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24841
24842 [BZ #22403]
24843 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24844 to be escaped.
24845 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24846 to be escaped.
24847
24848 2017-11-07 Claude Paroz <claude@2xlibre.net>
24849
24850 [BZ #22403]
24851 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24852 to be escaped.
24853 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24854 to be escaped.
24855 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24856 to be escaped.
24857
24858 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24859
24860 [BZ #22298]
24861 * nptl/allocatestack.c (allocate_stack): Check if
24862 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24863 __PTHREAD_MUTEX_HAVE_PREV is defined.
24864 * nptl/descr.h (pthread): Likewise.
24865 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24866 Likewise.
24867 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24868 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24869 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24870 * sysdeps/nptl/bits/thread-shared-types.h
24871 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24872 defines.
24873 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24874 of __WORDSIZE for internal layout.
24875 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24876 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24877 instead of __WORDSIZE whether to use an union for __spins and __list
24878 fields.
24879 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24880 case.
24881 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24882 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24883 defines.
24884 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24885 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24886 Likewise.
24887 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24888 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24889 Likewise.
24890 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24891 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24892 Likewise.
24893 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24894 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24895 Likewise.
24896 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24897 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24898 Likewise.
24899 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24900 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24901 Likewise.
24902 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24903 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24904 Likewise.
24905 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24906 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24907 Likewise.
24908 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24909 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24910 Likewise.
24911 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24912 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24913 Likewise.
24914 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24915 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24916 Likewise.
24917 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24918 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24919 Likewise.
24920 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24921 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24922 Likewise.
24923 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24924 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24925 Likewise.
24926
24927 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24928 New macros.
24929 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24930 checks for expected input type size.
24931 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24932 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24933 Likewise.
24934 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24935 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24936 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24937 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24938 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24939 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24940 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24941 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24942 superflous runtime assert check.
24943 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24944 Likewise.
24945 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24946 Likewise.
24947 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24948 Likewise.
24949 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24950 Likewise.
24951 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24952 Likewise.
24953 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24954 Likewise.
24955 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24956 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24957 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24958 Likewise.
24959 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24960 Likewise.
24961 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24962 Likewise.
24963 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24964 Likewise.
24965 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24966 Likewise.
24967 * nptl/pthread_attr_setinheritsched.c
24968 (__pthread_attr_setinheritsched): Likewise.
24969 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24970 Likewise.
24971 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24972 Likewise.
24973 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24974 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24975 __old_pthread_attr_setstack): Likewise.
24976 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24977 Likewise.
24978 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24979 Likewise.
24980 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24981 Likewise.
24982 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24983 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24984 Likewise.
24985 * nptl/tst-typesizes.c: Remove file.
24986
24987 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24988 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24989 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24990 checks for internal pthread_mutex_t offsets.
24991 * sysdeps/aarch64/nptl/pthread-offsets.h
24992 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24993 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24994 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24995 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24996 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24997 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24998 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24999 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25000 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25001 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25002 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25003 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25004 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25005 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25006 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25007 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25008 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25009 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25010
25011 2017-11-07 Florian Weimer <fweimer@redhat.com>
25012
25013 * bits/mman-linux.h: Move ...
25014 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25015 comment.
25016 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25017 outdated comment.
25018
25019 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25020
25021 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25022 Redefine STRNLEN as __strnlen_power8.
25023
25024 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25025
25026 * signal/sighold.c (sighold): Optimize implementation.
25027
25028 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25029 __NR_rt_sigqueueinfo.
25030
25031 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25032 __sigtimedwait.
25033 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25034 assume __NR_rt_sigtimedwait.
25035 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25036 and add LIBC_CANCEL_HANDLED for cancellation marking.
25037 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25038
25039 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25040 (sysdeps_routines): Add memchr_noneon.
25041 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25042 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25043 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25044 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25045 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25046 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25047 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25048
25049 * sysdeps/arm/arm-ifunc.h: New file.
25050 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25051 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25052 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25053 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25054 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25055 (__memcpy_neon): Avoid create hidden alias.
25056 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25057 (__memcpy_vfp): Likewise.
25058 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25059 (sysdep_routines): Add memcpy_arm.
25060 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25061
25062 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25063
25064 [BZ #22362]
25065 * Makerules (make-link-multidir): New.
25066 * config.make.in (multidir): New.
25067 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25068 * configure: Regenerated.
25069 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25070 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25071 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25072 New target.
25073
25074 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25075
25076 [BZ #22402]
25077 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25078 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25079
25080 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25081
25082 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25083 to be escaped.
25084
25085 2017-11-04 Florian Weimer <fweimer@redhat.com>
25086
25087 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25088
25089 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25090
25091 * math/math.h [__HAVE_DISTINCT_FLOAT16
25092 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25093 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25094 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25095 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25096 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25097 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25098 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25099 (__MATH_TG_F32): New macro.
25100 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25101 (__MATH_TG_F64X): Likewise.
25102 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25103 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25104
25105 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25106
25107 * po/de.po: Update translations.
25108 * po/ru.po: Likewise.
25109
25110 2017-11-03 Florian Weimer <fweimer@redhat.com>
25111
25112 * manual/filesys.texi (Hard Links): Document linkat.
25113
25114 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25115
25116 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25117 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25118 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25119 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25120 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25121 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25122 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25123 the same as _Float128.
25124 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25125 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25126 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25127
25128 * stdlib/stdlib.h
25129 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25130 Declare.
25131 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25132 Likewise.
25133 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25134 Likewise.
25135 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25136 (strtof32x): Likewise.
25137 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25138 (strtof64x): Likewise.
25139 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25140 (strtof128x): Likewise.
25141 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25142 (strfromf16): Likewise.
25143 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25144 (strfromf32): Likewise.
25145 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25146 (strfromf64): Likewise.
25147 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25148 (strfromf32x): Likewise.
25149 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25150 (strfromf64x): Likewise.
25151 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25152 (strfromf128x): Likewise.
25153 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25154 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25155 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25156 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25157 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25158 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25159
25160 2017-11-03 Richard Henderson <rth@twiddle.net>
25161
25162 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25163
25164 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25165
25166 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25167
25168 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25169
25170 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25171 DT_TLSDESC_GOT initialization.
25172 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25173 (_dl_tlsdesc_resolve_hold): Likewise.
25174 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25175 (_dl_tlsdesc_resolve_hold): Likewise.
25176 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25177 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25178
25179 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25180
25181 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25182
25183 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25184
25185 [BZ #18572]
25186 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25187 non-lazily for R_ARM_TLS_DESC.
25188
25189 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25190
25191 [BZ #17078]
25192 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25193 R_ARM_TLS_DESC case.
25194 (elf_machine_lazy_rel): Remove the prelink check.
25195
25196 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25197
25198 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25199 DT_TLSDESC_GOT initialization.
25200 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25201 (_dl_tlsdesc_resolve_rela): Likewise.
25202 (_dl_tlsdesc_resolve_hold): Likewise.
25203 (_dl_tlsdesc_undefweak): Remove ldar.
25204 (_dl_tlsdesc_dynamic): Likewise.
25205 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25206 (_dl_tlsdesc_resolve_rela): Likewise.
25207 (_dl_tlsdesc_resolve_hold): Likewise.
25208 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25209 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25210 (_dl_tlsdesc_resolve_rela): Likewise.
25211 (_dl_tlsdesc_resolve_hold): Likewise.
25212
25213 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25214
25215 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25216 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25217
25218 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25219
25220 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25221 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25222
25223 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25224
25225 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25226 Declare.
25227 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25228 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25229 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25230 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25231 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25232 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25233 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25234 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25235 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25236 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25237 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25238
25239 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25240
25241 [BZ #22382]
25242 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25243 * localedata/locales/tpi_PG: Add standard header.
25244
25245 2017-11-02 Florian Weimer <fweimer@redhat.com>
25246
25247 test-errno-linux: quotactl can fail with EPERM in containers.
25248 * sysdeps/unix/sysv/linux/test-errno-linux.c
25249 (LIST, LIST_FORWARD): New macros.
25250 (check_error_in_list): New function.
25251 (test_wrp_rv): Accept list of permitted error codes.
25252 (test_wrp_rv2): Remove.
25253 (test_wrp): Call test_wrp_rv with list of error codes.
25254 (test_wrp2): Accept list of error codes.
25255 (do_test): Adjust. Allow EPERM for quotactl.
25256
25257 2017-11-02 Florian Weimer <fweimer@redhat.com>
25258
25259 * stdio-common/bug16.c (do_test): Use array_length.
25260 * stdio-common/errlist.c (_sys_nerr): Likewise.
25261 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25262 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25263 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25264 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25265 (do_test): Use array_length.
25266 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25267 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25268 * stdio-common/tst-printf-round.c (do_test): Likewise.
25269 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25270 (CHECK): Use array_length.
25271 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25272 * stdio-common/tstscanf.c (main): Likewise.
25273 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25274
25275 2017-11-02 Florian Weimer <fweimer@redhat.com>
25276
25277 Add array_length and array_end macros.
25278 * include/array_length.h: New file.
25279
25280 2017-11-02 Florian Weimer <fweimer@redhat.com>
25281
25282 [BZ #22332]
25283 * posix/tst-glob-tilde.c (do_noescape): New variable.
25284 (one_test): Process it.
25285 (do_test): Set do_noescape. Add unescaping test case.
25286
25287 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25288
25289 * math/complex.h
25290 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25291 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25292 with appropriate macros defined and undefined.
25293 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25294 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25295 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25296 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25297 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25298 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25299 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25300 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25301 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25302 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25303
25304 * math/complex.h
25305 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25306 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25307 that for long double. Do not condition define and undefine of
25308 _Mdouble_complex_ on [__CFLOAT128].
25309
25310 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25311
25312 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25313 of <sysdeps/generic/sysdep.h>.
25314 (ALIGNARG): Removed.
25315 (ASM_SIZE_DIRECTIVE): Likewise.
25316 (ENTRY): Likewise.
25317 (END): Likewise.
25318 (ENTRY_CHK): Likewise.
25319 (END_CHK): Likewise.
25320 (syscall_error): Likewise.
25321 (mcount): Likewise.
25322 (PSEUDO_END): Likewise.
25323 (L): Likewise.
25324 (atom_text_section): Likewise.
25325 * sysdeps/x86/sysdep.h: New file.
25326 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25327 of <sysdeps/generic/sysdep.h>.
25328 (ALIGNARG): Removed.
25329 (ASM_SIZE_DIRECTIVE): Likewise.
25330 (ENTRY): Likewise.
25331 (END): Likewise.
25332 (ENTRY_CHK): Likewise.
25333 (END_CHK): Likewise.
25334 (syscall_error): Likewise.
25335 (mcount): Likewise.
25336 (PSEUDO_END): Likewise.
25337 (L): Likewise.
25338 (atom_text_section): Likewise.
25339
25340 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25341
25342 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25343 category of LC_CTYPE set to "i18n:2012".
25344 * localedata/locales/i18n_ctype: Regenerate.
25345
25346 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25347
25348 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25349 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25350 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25351 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25352
25353 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25354 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25355 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25356 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25357
25358 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25359
25360 * math/complex.h
25361 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25362 New macro.
25363 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25364 Likewise.
25365 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25366 Likewise.
25367 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25368 (CMPLXF32X): Likewise.
25369 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25370 (CMPLXF64X): Likewise.
25371 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25372 (CMPLXF128X): Likewise.
25373
25374 * math/math.h
25375 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25376 (__MATH_EVAL_FMT2): Define to add 0.0f.
25377
25378 2017-10-31 Alan Modra <amodra@gmail.com>
25379
25380 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25381 include sysdep.h.
25382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25396 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25397 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25398 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25399 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25400 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25401 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25402 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25403 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25404 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25405 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25406 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25407 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25408 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25409 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25410 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25411 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25412 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25413 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25414 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25415 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25416 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25417 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25418 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25419 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25420 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25421 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25422 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25423 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25424 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25425 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25426 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25427 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25428 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25429 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25430 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25431 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25432 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25433 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25434 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25435 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25436 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25437 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25438 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25439 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25440 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25441 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25442 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25443 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25444 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25445 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25446 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25447 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25448 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25449 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25450 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25451
25452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25453 include sysdep.h and math_ldbl_opt.h.
25454
25455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25456 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25481
25482 2017-10-31 Alan Modra <amodra@gmail.com>
25483
25484 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25485 string/strncase_l.c, not string/strncase.c.
25486 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25487 (libc_hidden_def): Redefine.
25488
25489 2017-10-31 Alan Modra <amodra@gmail.com>
25490
25491 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25492 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25493 (__strcasecmp): Don't define.
25494
25495 2017-10-31 Alan Modra <amodra@gmail.com>
25496
25497 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25498 IS_IN (libc).
25499 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25500 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25501 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25502
25503 2017-10-31 Alan Modra <amodra@gmail.com>
25504
25505 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25506 USE_AS_STPNCPY.
25507
25508 2017-10-31 Alan Modra <amodra@gmail.com>
25509
25510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25511 Redefine only when SHARED.
25512
25513 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25514
25515 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25516 Include <bits/math-finite.h> with appropriate macros defined and
25517 undefined.
25518 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25519 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25520 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25521 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25522 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25523
25524 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25525 [!_Mlong_double_] (_Mlong_double_): Likewise.
25526 [!_Mfloat16_] (_Mfloat16_): Likewise.
25527 [!_Mfloat32_] (_Mfloat32_): Likewise.
25528 [!_Mfloat64_] (_Mfloat64_): Likewise.
25529 [!_Mfloat128_] (_Mfloat128_): Likewise.
25530 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25531 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25532 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25533 (_Mdouble_): Define without indirection through those macros.
25534 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25535 [!_Mfloat128_] (_Mfloat128_): Likewise.
25536 [_Mlong_double_] (_Mlong_double_): Likewise.
25537 (_Mdouble_): Define without indirection through those macros.
25538 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25539 not add -D_Mlong_double_=double.
25540 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25541 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25542
25543 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25544
25545 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25546
25547 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25548
25549 * sysdeps/x86/libc-start.c: Reformat.
25550
25551 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25552
25553 [BZ #22353]
25554 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25555 (1): Renamed to ...
25556 (L(Src0)): This.
25557 (L(Src1)): New.
25558 (L(Src2)): Likewise.
25559 (L(1)): Renamed to ...
25560 (L(Src3)): This.
25561
25562 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25563
25564 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25565 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25566 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25567 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25568 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25569 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25570 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25571 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25572 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25573 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25574 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25575 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25576 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25577 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25578 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25579 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25580 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25581 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25582 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25583 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25584 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25585 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25586 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25587 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25588 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25589 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25590 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25591 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25592 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25593 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25594 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25595 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25596 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25597 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25598 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25599 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25600 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25601 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25602 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25603 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25604 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25605 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25606 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25607 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25608 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25609 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25610 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25611 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25612 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25613 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25614 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25615 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25616 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25617 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25618 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25619 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25620 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25621 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25622 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25623 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25624 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25625 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25626 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25627 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25628 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25629 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25630
25631 2017-10-30 Florian Weimer <fweimer@redhat.com>
25632
25633 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25634 always defined.
25635 * io/tst-mkdirat.c (do_test): Likewise.
25636 * io/tst-mkfifoat.c (do_test): Likewise.
25637 * io/tst-mknodat.c (do_test): Likewise.
25638 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25639 * locale/programs/locale.c (select_dirs): Likewise.
25640 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25641 * posix/bug-glob2.c (my_readdir): Likewise.
25642 * posix/tst-dir.c (main): Likewise.
25643 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25644 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25645
25646 2017-10-30 Florian Weimer <fweimer@redhat.com>
25647
25648 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25649 just __USE_GNU.
25650
25651 2017-10-30 Florian Weimer <fweimer@redhat.com>
25652
25653 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25654 Convert to support/test-driver.c.
25655 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25656 New macro parameters.
25657 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25658 * posix/tst-gnuglob.c: New file.
25659 * posix/tst-gnuglob64.c: Likewise.
25660 * posix/Makefile (tests): Add tst-gnuglob64.
25661
25662 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25663
25664 [BZ #19485]
25665 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25666 and use a better translation for March in “mon”.
25667 * localedata/locales/csb_PL: Use more ASCII to improve the
25668 readability of the source.
25669
25670 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25671
25672 [BZ #13953]
25673 * localedata/locales/km_KH: Use ASCII as much
25674 as possible for better readability of the source and
25675 remove useless comments.
25676 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25677 was commented out and apparently wrong anyway because it was
25678 using Lao characters. If Buddhist era should be used
25679 for km_KH, a native speaker should write the correct formaat
25680 for Khmer.
25681 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25682 (According to CLDR, the first weekday for Cambodia is Sunday).
25683 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25684 (These were using Lao characters which must be wrong. If we get
25685 the correct data from a native speaker, we could add it back, until
25686 then it is better not to have name_mr and name_mrs at all than
25687 having it wrong).
25688
25689 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25690
25691 * locale/loadlocale.c: Correct size of
25692 _nl_value_type_LC_<category> arrays.
25693
25694 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25695
25696 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25697 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25698 with appropriate macros defined and undefined.
25699 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25700 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25701 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25702 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25703 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25704
25705 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25706
25707 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25708 "-O2 -march=i586".
25709
25710 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25711
25712 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25713 with lowercase letters to make it agree with CLDR.
25714
25715 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25716
25717 [BZ #15260]
25718 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25719 first letters of yesstr and nostr in yesexpr and noexpr,
25720 not for the full words.
25721 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25722 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25723 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25724 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25725 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25726 first letters of yesstr and nostr in yesexpr and noexpr,
25727 until now only English was matched in yesexpr and noexpr.
25728 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25729 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25730 fil but not for tl. As tl and fil are very similar, using fil
25731 is probably better than using English.
25732
25733 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25734
25735 [BZ #21706]
25736 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25737 in yesstr and nostr.
25738
25739 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25740
25741 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25742 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25743 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25744 Likewise.
25745 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25746 Likewise.
25747 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25748 Likewise.
25749 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25750 Likewise.
25751 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25752 (SNANF128X): Likewise.
25753
25754 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25755 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25756 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25757 (HUGE_VAL_F32): Likewise.
25758 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25759 (HUGE_VAL_F64): Likewise.
25760 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25761 (HUGE_VAL_F32X): Likewise.
25762 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25763 (HUGE_VAL_F64X): Likewise.
25764 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25765 (HUGE_VAL_F128X): Likewise.
25766
25767 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25768
25769 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25770 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25771 for the br_FR locale.
25772
25773 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25774
25775 [BZ #21706]
25776 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25777
25778 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25779
25780 * locale/programs/record-status.h: Define globals, and function
25781 prototypes. Move function bodies...
25782 * locale/programs/record-status.c: ... to here. New file.
25783 * iconv/Makefile (iconv_prog-modules): Add record-status.
25784 * locale/Makefile (lib-modules): Likewise.
25785 * iconv/iconv_prog.c: Remove verbose.
25786 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25787 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25788 record a warning about ASCII compatibility.
25789 * locale/programs/ld-monetary.c (monetary_finish): If
25790 warn_int_curr_symbol is true then record a warning about the symbol
25791 not being in our ISO 4217 list.
25792 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25793 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25794 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25795 (OPT_NO_WARN): Define.
25796 (OPT_WARN): Define.
25797 (options): Add entry for --no-warnings, and --warnings.
25798 (set_warnings): New function to enable/disable warnings.
25799 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25800 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25801 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25802 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25803 Pass flags to generate_locale.
25804 (generate_locale): Accept new flag argument and pass it to localedef
25805 invocation.
25806 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25807 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25808
25809 * localedata/Makefile (test-input-data): Use full file name.
25810 * localedata/da_DK.in: Rename to...
25811 * localedata/da_DK.ISO-8859-1.in: ...this.
25812 * localedata/de_DE.in: Rename to...
25813 * localedata/de_DE.ISO-8859-1.in: ...this.
25814 * localedata/en_US.in: Rename to...
25815 * localedata/en_US.ISO-8859-1.in: ...this.
25816 * localedata/fr_FR.in: Rename to...
25817 * localedata/fr_FR.UTF-8.in: ... this.
25818 * localedata/hr_HR.in: Rename to...
25819 * localedata/hr_HR.ISO-8859-2.in: ...this.
25820 * localedata/hu_HU.in: Rename to...
25821 * localedata/hu_HU.UTF-8.in: ...this.
25822 * localedata/si_LK.in: Rename to...
25823 * localedata/si_LK.UTF-8.in: ...this.
25824 * localedata/sv_SE.in: Rename to...
25825 * localedata/sv_SE.ISO-8859-1.in: ...this.
25826 * localedata/tr_TR.in: Rename to...
25827 * localedata/tr_TR.UTF-8.in: ...this.
25828 * localedata/uk_UA.in: Rename to...
25829 * localedata/uk_UA.UTF-8.in: ...this.
25830 * localedata/sort-test.sh: Test file is locale name with the
25831 suffix.
25832
25833 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25834 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25835 file.
25836 * localedata/locales/i18n_ctype: Regenerate.
25837 * localedata/locales/tr_TR: Likewise.
25838 * localedata/locales/translit_circle: Likewise.
25839 * localedata/locales/translit_cjk_compat: Likewise.
25840 * localedata/locales/translit_combining: Likewise.
25841 * localedata/locales/translit_compat: Likewise.
25842 * localedata/locales/translit_font: Likewise.
25843 * localedata/locales/translit_fraction: Likewise.
25844
25845 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25846
25847 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25848 lxvd2x/stxvd2x with lvx/stvx.
25849 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25850
25851 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25852
25853 * include/alloc_buffer.h: Replace "if if " with "if " in
25854 comments.
25855 * sysdeps/mips/memcpy.S: Likkewise.
25856 * sysdeps/mips/memset.S: Likewise.
25857 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25858 Likewise.
25859 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25860 Likewise.
25861 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25862 Likewise.
25863
25864 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25865
25866 [BZ #15261]
25867 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25868 yesexpr and noexpr.
25869 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25870 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25871 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25872 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25873 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25874 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25875 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25876
25877 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25878
25879 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25880 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25881 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25882 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25883 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25884 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25885 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25886 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25887 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25888 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25889 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25890 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25891
25892 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25893
25894 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25895 as possible for better readability of the source.
25896 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25897 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25898 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25899 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25900 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25901 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25902 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25903 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25904 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25905 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25906 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25907 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25908 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25909 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25910 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25911 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25912 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25913 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25914 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25915 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25916 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25917 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25918 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25919 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25920 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25921 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25922 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25923 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25924 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25925 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25926 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25927 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25928 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25929 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25930 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25931 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25932 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25933 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25934 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25935 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25936 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25937 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25938 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25939 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25940 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25941 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25942 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25943 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25944 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25945 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25946 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25947 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25948 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25949 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25950 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25951 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25952 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25953 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25954 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25955 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25956 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25957 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25958 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25959 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25960 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25961 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25962 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25963 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25964 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25965 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25966 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25967 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25968 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25969 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25970 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25971 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25972 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25973 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25974 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25975 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25976 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25977 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25978 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25979 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25980 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25981 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25982 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25983 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25984 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25985 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25986 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25987 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25988 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25989 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25990 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25991 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25992 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25993 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25994 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25995 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25996 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25997 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25998 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25999 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26000 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26001 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26002 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26003 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26004 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26005 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26006 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26007 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26008 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26009 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26010 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26011 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26012 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26013 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26014 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26015 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26016 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26017 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26018 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26019 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26020 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26021 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26022 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26023 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26024 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26025 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26026 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26027 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26028 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26029 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26030 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26031 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26032 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26033 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26034 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26035 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26036 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26037 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26038 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26039 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26040 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26041 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26042 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26043 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26044 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26045 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26046 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26047 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26048 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26049 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26050 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26051 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26052 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26053 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26054 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26055 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26056 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26057 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26058 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26059 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26060 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26061 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26062 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26063 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26064 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26065 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26066 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26067 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26068 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26069 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26070
26071 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26072
26073 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26074 (Use first letters of yesstr and nostr correctly instead of using
26075 full words).
26076
26077 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26078
26079 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26080 (Use first letters of yesstr and nostr correctly).
26081
26082 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26083
26084 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26085 also check for the first characters of yesstr and nostr.
26086 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26087 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26088
26089 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26090
26091 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26092 also check for Chinese characters.
26093
26094 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26095
26096 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26097 match also for the contents of yesstr and nostr. As the first letter
26098 of yesstr and nostr is equal, checking only for the first letter
26099 is not enough.
26100
26101 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26102
26103 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26104 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26105
26106 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26107
26108 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26109 of main contributor.
26110
26111 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26112
26113 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26114 instead of using English.
26115
26116 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26117
26118 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26119 by including the first letters of nostr and yesexpr in the regexp.
26120 Also make it more readable by using ASCII where possible.
26121
26122 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26123
26124 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26125 the first letter of nostr in the regexp. It agrees with CLDR now.
26126 Also make it more readable by using ASCII where possible.
26127
26128 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26129
26130 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26131 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26132 these strings contain a U+17D6 (which somewhat looks like a colon)
26133 instead of a real colon to separate the full words for “yes”
26134 and “no” from the single letter responses.
26135
26136 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26137
26138 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26139 it agree with CLDR (include the first letter of yesstr).
26140 Also make it more readable by using ASCII where possible.
26141
26142 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26143
26144 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26145 and improve yesexpr and noexpr. The yesstr and nostr apparently
26146 came from CLDR. And CLDR has a bug there: these strings contain
26147 a U+0903 (which looks like a colon) instead of a real colon
26148 to separate the full words for “yes” and “no” from the single
26149 letter responses.
26150
26151 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26152
26153 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26154 letters of the full yesstr and nostr in yesexpr and noexpr.
26155
26156 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26157
26158 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26159 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26160 * localedata/locales/an_ES: Make source more readable by using ASCII
26161 where possible.
26162
26163 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26164
26165 [BZ #20952]
26166 * localedata/locales/yuw_PG: New file.
26167 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26168 * locale/iso-639.def: Add Yau (Uruwa).
26169
26170 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26171
26172 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26173
26174 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26175
26176 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26177 (__libc_realloc): Likewise.
26178 (_mid_memalign): Likewise.
26179 (__libc_calloc): Likewise.
26180
26181 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26182
26183 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26184 by adding the generic +1 and -0 as in all other locales.
26185 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26186 day names and make it more readable by using ASCII where possible.
26187
26188 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26189
26190 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26191 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26192
26193 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26194
26195 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26196 WNOHANG in waitpid call.
26197
26198 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26199
26200 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26201 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26202
26203 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26204 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26205 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26206 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26207 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26208 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26209 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26210 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26211 variables.
26212
26213 2017-10-23 Michael Collison <michael.collison@arm.com>
26214
26215 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26216 with __builtin_sqrt.
26217 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26218 with __builtin_sqrtf.
26219 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26220 with __builtin_ceil.
26221 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26222 with __builtin_ceilf.
26223 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26224 with __builtin_floor.
26225 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26226 with __builtin_floorf.
26227 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26228 with __builtin_fma.
26229 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26230 with __builtin_fmaf.
26231 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26232 with __builtin_fmax.
26233 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26234 with __builtin_fmaxf.
26235 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26236 with __builtin_fmin.
26237 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26238 with __builtin_fminf.
26239 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26240 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26241 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26242 with builtin_rint and conversion to int.
26243 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26244 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26245 with builtin_llround.
26246 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26247 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26248 with builtin_rint and conversion to long int.
26249 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26250 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26251 with builtin_lround.
26252 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26253 with builtin_lroundf.
26254 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26255 statements with __builtin_nearbyint.
26256 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26257 statements with __builtin_nearbyintf.
26258 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26259 with __builtin_rint.
26260 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26261 with __builtin_rintf.
26262 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26263 with __builtin_round.
26264 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26265 with __builtin_roundf.
26266 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26267 with __builtin_trunc.
26268 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26269 with __builtin_truncf.
26270 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26271 and s_l[l]round[f].c too.
26272
26273 2017-10-23 Alan Modra <amodra@gmail.com>
26274
26275 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26276 Adjust stack after restoring regs. Add missing LR cfi_restore.
26277
26278 2017-10-23 Alan Modra <amodra@gmail.com>
26279
26280 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26281 Move LR save and frame setup/teardown and LR restore to
26282 immediately around memset call. Provide cfi.
26283
26284 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26285
26286 * sysdeps/i386/fpu/e_powf.S: Removed.
26287 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26288 * sysdeps/i386/fpu/w_powf.c: Likewise.
26289 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26290 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26291 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26292 Add e_powf-sse2.
26293 (CFLAGS-e_powf-sse2.c): New.
26294 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26295 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26296
26297 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26298
26299 * sysdeps/i386/fpu/e_log2f.S: Removed.
26300 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26301 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26302 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26303 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26304 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26305 Add e_log2f-sse2.
26306 (CFLAGS-e_log2f-sse2.c): New.
26307 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26308 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26309
26310 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26311
26312 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26313 Add e_powf-fma.
26314 (CFLAGS-e_powf-fma.c): New.
26315 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26316 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26317
26318 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26319
26320 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26321 Add e_log2f-fma.
26322 (CFLAGS-e_log2f-fma.c): New.
26323 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26324 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26325
26326 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26327
26328 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26329 Add e_logf-fma.
26330 (CFLAGS-e_logf-fma.c): New.
26331 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26332 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26333
26334 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26335
26336 * sysdeps/i386/fpu/e_logf.S: Removed.
26337 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26338 * sysdeps/i386/fpu/w_logf.c: Likewise.
26339 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26340 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26341 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26342 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26343 Add e_logf-sse2.
26344 (CFLAGS-e_logf-sse2.c): New.
26345 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26346 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26347
26348 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26349
26350 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26351 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26352 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26353 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26354 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26355 Add e_exp2f-sse2.
26356 (CFLAGS-e_exp2f-sse2.c): New.
26357 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26358 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26359
26360 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26361
26362 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26363 Add e_exp2f-fma.
26364 (CFLAGS-e_exp2f-fma.c): New.
26365 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26366 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26367
26368 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26369
26370 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26371 * sysdeps/i386/fpu/e_expf.S: Likewise.
26372 * sysdeps/i386/fpu/math_errf.c: Likewise.
26373 * sysdeps/i386/fpu/w_expf.c: Likewise.
26374 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26375 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26376 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26377 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26378 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26379 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26380 Remove e_expf-ia32.
26381 (CFLAGS-e_expf-sse2.c): New.
26382 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26383 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26384
26385 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26388 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26389 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26390 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26391 e_expf.c.
26392 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26393 New.
26394 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26395 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26396 Renamed to ...
26397 (__redirect_expf): This.
26398 (SYMBOL_NAME): Changed to expf.
26399 (__ieee754_expf): Renamed to ...
26400 (__expf): This.
26401 (__GI___expf): This.
26402 (__ieee754_expf): Add strong_alias.
26403 (__expf_finite): Likewise.
26404 (__expf): New.
26405 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26406
26407 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26408
26409 [BZ #22332]
26410 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26411 unescaping.
26412
26413 2017-10-21 Florian Weimer <fweimer@redhat.com>
26414
26415 * posix/Makefile (tests): Add tst-glob-tilde.
26416 (tests-special): Add tst-glob-tilde-mem.out
26417 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26418 (tst-glob-tilde-mem.out): Add mtrace check.
26419 * posix/tst-glob-tilde.c: New file.
26420
26421 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26422
26423 * bits/floatn-common.h: New file.
26424 * math/Makefile (headers): Add bits/floatn-common.h.
26425 * bits/floatn.h: Include <bits/floatn-common.h>.
26426 * sysdeps/ia64/bits/floatn.h: Likewise.
26427 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26428 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26429 * sysdeps/powerpc/bits/floatn.h: Likewise.
26430 * sysdeps/x86/bits/floatn.h: Likewise.
26431
26432 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26433
26434 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26435 indicates whether compiler emits an warning for alias for
26436 functions with incompatible types.
26437
26438 [BZ #22273]
26439 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26440 the auxiliary process is terminated by a signal before calling _exit
26441 or execve.
26442
26443 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26444
26445 [BZ #21265]
26446 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26447 New.
26448 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26449 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26450 and bit_arch_XSAVEC_Usable if needed.
26451 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26452 and bit_arch_Use_dl_runtime_resolve_opt.
26453 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26454 Removed.
26455 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26456 (bit_arch_Prefer_No_AVX512): Updated.
26457 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26458 (bit_arch_XSAVEC_Usable): New.
26459 (STATE_SAVE_OFFSET): Likewise.
26460 (STATE_SAVE_MASK): Likewise.
26461 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26462 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26463 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26464 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26465 (index_arch_XSAVEC_Usable): New.
26466 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26467 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26468 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26469 is enabled.
26470 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26471 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26472 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26473 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26474 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26475 _dl_runtime_resolve_xsavec.
26476 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26477 Removed.
26478 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26479 instead of VEC_SIZE.
26480 (REGISTER_SAVE_BND0): Removed.
26481 (REGISTER_SAVE_BND1): Likewise.
26482 (REGISTER_SAVE_BND3): Likewise.
26483 (REGISTER_SAVE_RAX): Always defined to 0.
26484 (VMOV): Removed.
26485 (_dl_runtime_resolve_avx): Likewise.
26486 (_dl_runtime_resolve_avx_slow): Likewise.
26487 (_dl_runtime_resolve_avx_opt): Likewise.
26488 (_dl_runtime_resolve_avx512): Likewise.
26489 (_dl_runtime_resolve_avx512_opt): Likewise.
26490 (_dl_runtime_resolve_sse): Likewise.
26491 (_dl_runtime_resolve_sse_vex): Likewise.
26492 (USE_FXSAVE): New.
26493 (_dl_runtime_resolve_fxsave): Likewise.
26494 (USE_XSAVE): Likewise.
26495 (_dl_runtime_resolve_xsave): Likewise.
26496 (USE_XSAVEC): Likewise.
26497 (_dl_runtime_resolve_xsavec): Likewise.
26498 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26499 Removed.
26500 (_dl_runtime_resolve_avx512_opt): Likewise.
26501 (_dl_runtime_resolve_avx): Likewise.
26502 (_dl_runtime_resolve_avx_opt): Likewise.
26503 (_dl_runtime_resolve_sse): Likewise.
26504 (_dl_runtime_resolve_sse_vex): Likewise.
26505 (_dl_runtime_resolve_fxsave): New.
26506 (_dl_runtime_resolve_xsave): Likewise.
26507 (_dl_runtime_resolve_xsavec): Likewise.
26508
26509 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26510
26511 [BZ #22320]
26512 CVE-2017-15670
26513 * posix/glob.c (__glob): Fix one-byte overflow.
26514
26515 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26516
26517 * malloc/malloc.c (sysdep-cancel.h): Add include.
26518
26519 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26520
26521 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26522
26523 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26524
26525 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26526 (tests): Remove $(objpfx)ga_test depdendency.
26527 * resolv/ga_test.c: Remove file.
26528
26529 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26530
26531 [BZ #18812]
26532 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26533 * localedata/locales/kab_DZ: New file.
26534
26535 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26536
26537 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26538 _dl_relocate_static_pie instead of _dl_start to compute load
26539 address in static PIE.
26540
26541 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26542
26543 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26544
26545 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26546
26547 [BZ #13605]
26548 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26549 * localedata/locales/shn_MM: New file.
26550
26551 2017-10-20 Florian Weimer <fweimer@redhat.com>
26552
26553 [BZ #22321]
26554 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26555 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26556 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26557 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26558 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26559 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26560
26561 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26562
26563 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26564
26565 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26566
26567 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26568
26569 [BZ #22322]
26570 * sysdeps/mips/bits/long-double.h: Move to ....
26571 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26572
26573 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26574
26575 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26576
26577 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26578 H.J. Lu <hongjiu.lu@intel.com>
26579
26580 [BZ #22299]
26581 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26582 GLRO(dl_platform) to NULL.
26583 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26584 (modules-names): Add tst-platformmod-1 and
26585 x86_64/tst-platformmod-2.
26586 (CFLAGS-tst-platform-1.c): New.
26587 (CFLAGS-tst-platformmod-1.c): Likewise.
26588 (CFLAGS-tst-platformmod-2.c): Likewise.
26589 (LDFLAGS-tst-platformmod-2.so): Likewise.
26590 ($(objpfx)tst-platform-1): Likewise.
26591 ($(objpfx)tst-platform-1.out): Likewise.
26592 (tst-platform-1-ENV): Likewise.
26593 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26594 * sysdeps/x86_64/tst-platform-1.c: New file.
26595 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26596 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26597
26598 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26599
26600 [BZ #13994]
26601 * locale/iso-639.def: Add Karbi.
26602 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26603 * localedata/locales/mjw_IN: New file.
26604
26605 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26606
26607 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26608 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26609 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26610 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26611 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26612 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26613 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26614 <bits/floatn.h>.
26615 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26616 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26617 * manual/math.texi (Mathematics): Document additional architecture
26618 support for _Float128.
26619 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26620 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26621 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26622 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26623 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26625 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26626 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26627 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26628 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26629 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26630 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26631 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26632 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26633 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26634
26635 2017-10-18 Renlin Li <renlin.li@arm.com>
26636
26637 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26638 _DYNAMIC symbol to calculate load address.
26639
26640 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26641
26642 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26643 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26644 summary bits.
26645 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26646 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26647
26648 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26649
26650 [BZ #16777]
26651 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26652 and improve readability by using more ASCII.
26653 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26654 and improve readability by using more ASCII.
26655
26656 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26657
26658 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26659 not all targets support atomics on bool.
26660
26661 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26662
26663 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26664 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26665 __f128.
26666 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26667 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26668 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26669 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26670 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26671 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26672
26673 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26674
26675 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26676 defines.
26677
26678 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26679
26680 [BZ #22159]
26681 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26682 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26683 (do_check_remalloced_chunk): Fix build bug.
26684 (do_check_malloc_state): Add assert that checks arena->top.
26685 (malloc_consolidate): Remove initialization.
26686 (int_mallinfo): Remove call to malloc_consolidate.
26687 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26688
26689 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26690
26691 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26692 (have_fastchunks): Remove.
26693 (clear_fastchunks): Remove.
26694 (set_fastchunks): Remove.
26695 (malloc_state): Add have_fastchunks.
26696 (malloc_init_state): Use have_fastchunks.
26697 (do_check_malloc_state): Remove incorrect invariant checks.
26698 (_int_malloc): Use have_fastchunks.
26699 (_int_free): Likewise.
26700 (malloc_consolidate): Likewise.
26701
26702 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26703
26704 * malloc/malloc.c (tcache_put): Inline.
26705 (tcache_get): Inline.
26706
26707 2017-10-17 Jordi Mallach <jordi@gnu.org>
26708
26709 Aurelien Jarno <aurelien@aurel32.net>
26710 [BZ #2522]
26711 * localedata/locales/ca_ES@valencia: New file.
26712 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26713
26714 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26715
26716 [BZ #22296]
26717 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26718 < 6.x
26719
26720 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26721
26722 * scripts/build-many-glibcs.py (Context.add_all_configs):
26723 Add arm-linux-gnueabihf multiarch extra_glibcs.
26724
26725 * sysdeps/generic/ifunc-init.h: New file.
26726 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26727
26728 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26729
26730 [BZ #22019]
26731 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26732 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26733 * stdlib/tst-strfmon_l.c: adapt test case.
26734
26735 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26736
26737 * sysdeps/generic/float128-abi.h: New file.
26738 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26739 non-__prefixed symbols to ....
26740 * math/Versions: ... here. Include <float128-abi.h>.
26741 * stdlib/Versions ... and here. Include <float128-abi.h>
26742
26743 2017-10-16 Florian Weimer <fweimer@redhat.com>
26744
26745 * version.h (VERSION): Switch to ".9000" as the development
26746 version suffix.
26747
26748 2017-10-16 Florian Weimer <fweimer@redhat.com>
26749
26750 [BZ #22050]
26751 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26752 compat_symbol_reference to access non-default version.
26753
26754 2017-10-16 Florian Weimer <fweimer@redhat.com>
26755
26756 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26757
26758 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26759
26760 * include/shlib-compat.h (compat_symbol_reference): Update
26761 comment.
26762
26763 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26764
26765 * math/Makefile (test-types): Add
26766 $(type-float128-$(float128-alias-fcts)).
26767 * math/test-float128.h (TYPE_STR): Define conditional on
26768 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26769 (ULP_IDX): Likewise.
26770 (ULP_I_IDX): Likewise.
26771
26772 * stdlib/strtold.c: Include <bits/floatn.h>
26773 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26774 and later undefine as macro. Define as weak alias if
26775 [!USE_WIDE_CHAR].
26776 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26777 and later undefine as macro. Define as weak alias if
26778 [USE_WIDE_CHAR].
26779 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26780 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26781 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26782 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26783 Define and later undefine as macro. Define as weak alias if
26784 [USE_WIDE_CHAR].
26785 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26786 <bits/floatn.h>.
26787 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26788 Define and later undefine as macro. Define as weak alias if
26789 [!USE_WIDE_CHAR].
26790 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26791 Define and later undefine as macro. Define as weak alias if
26792 [USE_WIDE_CHAR].
26793
26794 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26795
26796 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26797 record_verbose messages.
26798
26799 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26800
26801 [BZ #22052]
26802 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26803 to silence -O3 -Wall warning with GCC 7.
26804
26805 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 * Makeconfig (+link-static-before-libc): Use the first of
26808 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26809 * gmon/Makefile (tests): Add tst-gmon-static.
26810 (tests-static): Likewise.
26811 (CFLAGS-tst-gmon-static.c): New.
26812 (CRT-tst-gmon-static): Likewise.
26813 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26814 (tst-gmon-static-ENV): Likewise.
26815 (tests-special): Likewise.
26816 ($(objpfx)tst-gmon-static.out): Likewise.
26817 (clean-tst-gmon-static-data): Likewise.
26818 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26819 * gmon/tst-gmon-static-gprof.sh: New file.
26820 * gmon/tst-gmon-static.c: Likewise.
26821
26822 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26823
26824 [BZ #22295]
26825 * locale/programs/linereader.c (get_string): Don't warn on
26826 non-symbolic character.
26827
26828 [BZ #22294]
26829 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26830 int_curr_symbol.
26831
26832 [BZ #22292]
26833 * locale/programs/record-status.h: New file
26834 * locale/programs/locale.c: Add comment.
26835 * locale/programs/charmap-dir.c: Don't include error.h.
26836 (charmap_opendir): Use record_error.
26837 * locale/programs/charmap.c: Don't include error.h.
26838 (charmap_read): Use record_error, and record_warning.
26839 (parse_charmap): Likewise.
26840 * locale/programs/ld-address.c: Don't include error.h.
26841 (address_finish): Use record_error, and record_warning.
26842 * locale/programs/ld-collate.c: Don't include error.h.
26843 (collate_finish): Use record_error, and record_error_at_line.
26844 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26845 (ctype_class_new): Likewise.
26846 (ctype_map_new): Likewise.
26847 (set_one_default): Likewise.
26848 (set_class_defaults): Likewise.
26849 (translit_flatten): Likewise.
26850 (allocate_arrays): Use record_error, and record_verbose.
26851 * locale/programs/ld-identification.c: Don't include error.h.
26852 (indentation_finish): Use record_error and record_warning.
26853 * locale/programs/ld-measurement.c: Don't include error.h.
26854 (measurement_finish): Use record_error.
26855 * locale/programs/ld-messages.c
26856 (message_finish): Likewise.
26857 * locale/programs/ld-monetary.c
26858 (monetary_finish): Likewise.
26859 * locale/programs/ld-name.c (name_finish): Use record_error
26860 and record_warning.
26861 * locale/programs/ld-numeric.c
26862 (numeric_finish): Use record_error.
26863 * locale/programs/ld-paper.c: Don't include error.h.
26864 (paper_finish): Use record_error.
26865 * locale/programs/ld-telephone.c: Don't include error.h.
26866 (telephone_finish): Use record_error.
26867 * locale/programs/ld-time.c (time_finish): Likewise.
26868 * locale/programs/linereader.h (lr_error): Make inline func.
26869 * locale/programs/localedef.c: Define recorded_warning_count,
26870 and recorded_error_count.
26871 (main): Use record_error. Use recorded_error_count and
26872 recorded_warning_count to issue correct error returns.
26873 (add_to_readlist): Use record_error.
26874 (find_locale): Likewise.
26875 (load_locale): Likewise.
26876 * locale/programs/localedef.h: Remove be_quiet
26877 and WITH_CUR_LOCALE.
26878 * locale/programs/locarchive.c (compare_from_file): Use
26879 record_error.
26880 * locale/programs/locfile.c (write_locale_data): Use
26881 record_error.
26882 * locale/programs/repertoire.c: Dont include error.h.
26883 (repertoire_complain): Use record_error.
26884 * localedata/tst-fmon.sh: Expect failures from localedef.
26885 * localedata/tst-locale.sh: Likewise.
26886 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26887
26888 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26889 (REPORTS): Likewise.
26890 (check): Likewise.
26891 (i18n): Rename to...
26892 (i18n_ctype): ...this.
26893 (i18n-report): Rename to...
26894 (i18n_ctype-report): ...this.
26895 * localedata/locales/i18n_ctype: Regenerate.
26896 * localedata/locales/i18n: copy i18n_ctype.
26897
26898 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26899
26900 * stdlib/strfroml.c: Include <bits/floatn.h>.
26901 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26902 Define before include of <stdlib.h> and undefine afterwards, then
26903 define as weak alias.
26904
26905 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26906 Undefine and restore default definition. Use
26907 libm_alias_ldouble_other.
26908
26909 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26910
26911 [BZ #22153]
26912 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26913 in coredumps.
26914
26915 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26916
26917 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26918 Assign sym_map to be map for local symbols, as TLS relocations
26919 use sym_map to determine whether the symbol is defined and to
26920 extract the TLS information.
26921 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26922 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26923
26924 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26925
26926 [BZ #22189]
26927 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26928 (math_force_eval): Add powerpc version.
26929
26930 [BZ #22142]
26931 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26932 -DBL_MAX.
26933 (do_test): Likewise.
26934 * stdio-common/tst-printf.sh: Likewise.
26935 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26936 ifdef clause in order to set the carry bit right. Replace r0 by
26937 0 without changing the behavior.
26938
26939 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26940
26941 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26942 <libm-alias-ldouble.h>.
26943 (fabsl): Define using libm_alias_ldouble.
26944 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26945 <libm-alias-ldouble.h>.
26946 (fabsl): Define using libm_alias_ldouble.
26947
26948 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26949 Remove conditional code.
26950
26951 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26952 Rename to __clog10_internal_l.
26953 (__clog10_internal_l): Define aliases using
26954 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26955 with __clog10.
26956
26957 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26958
26959 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26960 * benchtests/sincosf-inputs: New file.
26961 * benchtests/cosf-inputs: New file.
26962 * benchtests/sinf-inputs: New file.
26963
26964 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26965
26966 * posix/tst-spawn.c (do_test): Wait for both children.
26967
26968 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26969
26970 [BZ #22284]
26971 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26972 tests-pie): Add tst-gmon-pie.
26973 (CFLAGS-tst-gmon-pie.c): New.
26974 (CRT-tst-gmon-pie): Likewise.
26975 (tst-gmon-pie-ENV): Likewise.
26976 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26977 ($(objpfx)tst-gmon-pie.out): Likewise.
26978 (clean-tst-gmon-pie-data): Likewise.
26979 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26980 * gmon/gmon.c [PIC]: Include <link.h>.
26981 [PIC] (callback): New function.
26982 (write_hist): Add an argument for load address. Subtract load
26983 address from PCs.
26984 (write_call_graph): Likewise.
26985 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26986 it to write_hist and write_call_graph.
26987 * gmon/tst-gmon-pie.c: New file.
26988
26989 2017-10-11 Joseph Myers <joseph@codesourcery.com>
26990
26991 * math/Makefile (test-types-basic): New variable.
26992 (test-types): Likewise.
26993 (libm-test-support): Use $(test-types) instead of $(types).
26994 (libm-tests-base-normal): Likewise.
26995 (libm-tests-base-finite): Likewise.
26996 (libm-tests-base-inline): Likewise.
26997 (generated): Likewise.
26998 ($(objpfx)libm-test-support-$(t).c): Likewise.
26999 (libm-tests-for-type iterator): Likewise.
27000 (libm-test-support iterator): Likewise.
27001 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27002 (ulp_idx): Use ULP_IDX.
27003 * math/test-ldouble.h: Include <float.h>.
27004 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27005 (ULP_IDX): New macro.
27006 (ULP_I_IDX): Likewise.
27007 * math/test-double.h (ULP_IDX): Likewise.
27008 (ULP_I_IDX): Likewise.
27009 * math/test-float.h (ULP_IDX): Likewise.
27010 (ULP_I_IDX): Likewise.
27011 * math/test-float128.h (ULP_IDX): Likewise.
27012 (ULP_I_IDX): Likewise.
27013
27014 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27015
27016 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27017 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27018 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27019 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27020 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27021 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27022 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27023 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27024 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27025 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27026 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27027 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27028 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27029 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27030 (SINGLE_THREAD_BY_GLOBAL): Define.
27031 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27032 Likewise.
27033 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27034 Likewise.
27035 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27036 Likewise.
27037 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27038 Likewise.
27039 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27040 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27041 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27042 Likewise.
27043
27044 2017-10-11 Andreas Schwab <schwab@suse.de>
27045
27046 * nis/Makefile (aux): Remove.
27047 * nscd/Makefile (aux): Add nscd_hash.
27048 (nscd-modules): Likewise.
27049 ($(objpfx)nscd): Don't depend on libnsl.
27050 * nscd/nscd_hash.c: New file.
27051 * nscd/nscd_hash.h: Likewise.
27052 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27053 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27054 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27055 instead of <nis/rpcsvc/nis.h>.
27056 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27057
27058 2017-10-11 Florian Weimer <fweimer@redhat.com>
27059
27060 [BZ #22078]
27061 Avoid large NSS buffers with many addresses, aliases.
27062 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27063 using dynarrays and struct alloc_buffer.
27064 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27065 (tst-nss-files-hosts-multi): Link with -ldl.
27066 * nss/tst-nss-files-hosts-multi.c: New file.
27067
27068 2017-10-11 Florian Weimer <fweimer@redhat.com>
27069
27070 [BZ #18023]
27071 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27072 scratch_buffer. Eliminate gotos.
27073
27074 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27075
27076 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27077 libm_alias_ldouble_other.
27078 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27079 undefine and redefine.
27080 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27081 (exp10l): Do not define here.
27082 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27083 (weak_alias): Undefine and redefine.
27084 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27085 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27086 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27087 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27088
27089 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27090 [!__fma] (fma): Define using libm_alias_double.
27091 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27092 [!__fmaf] (fmaf): Define using libm_alias_float.
27093 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27094 (fmal): Define using libm_alias_ldouble.
27095
27096 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27097
27098 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27099 New macro.
27100 (libm_alias_double_other): Likewise.
27101 (libm_alias_double_r): Use libm_alias_double_other_r.
27102 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27103 New macro.
27104 (libm_alias_float_other): Likewise.
27105 (libm_alias_float_r): Use libm_alias_float_other_r.
27106 * sysdeps/generic/libm-alias-float128.h
27107 (libm_alias_float128_other_r): New macro.
27108 (libm_alias_float128_other): Likewise.
27109 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27110 * sysdeps/generic/libm-alias-ldouble.h
27111 (libm_alias_ldouble_other_r): New macro.
27112 (libm_alias_ldouble_other): Likewise.
27113 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27114 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27115 (libm_alias_double_other_r): New macro.
27116 (libm_alias_double_other): Likewise.
27117 (libm_alias_double_r): Use libm_alias_double_other_r.
27118 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27119 (libm_alias_ldouble_other_r): New macro.
27120 (libm_alias_ldouble_other): Likewise.
27121 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27122 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27123 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27124 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27125 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27126 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27127 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27128 * math/w_exp2f.c: Use libm_alias_float_other.
27129 * math/w_expf.c: Likewise.
27130 * math/w_log2f.c: Likewise.
27131 * math/w_logf.c: Likewise.
27132 * math/w_powf.c: Likewise.
27133 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27134 [!__exp2f]: Use libm_alias_float_other.
27135 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27136 [!__expf]: Use libm_alias_float_other.
27137 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27138 [!__log2f]: Use libm_alias_float_other.
27139 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27140 [!__logf]: Use libm_alias_float_other.
27141 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27142 [!__powf]: Use libm_alias_float_other.
27143
27144 2017-10-10 Florian Weimer <fweimer@redhat.com>
27145
27146 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27147 function.
27148 (_nss_files_gethostbyname3_r): Call it.
27149
27150 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27151
27152 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27153 error. Remove default definition of declare_mgen_alias.
27154 [!declare_mgen_alias_r]: Likewise.
27155 * sysdeps/generic/math-type-macros-double.h
27156 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27157 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27158 (declare_mgen_alias_r): Likewise.
27159 * sysdeps/generic/math-type-macros-float128.h
27160 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27161 * sysdeps/generic/math-type-macros-ldouble.h
27162 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27163 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27164 macro.
27165 (declare_mgen_alias_r_s): Likewise.
27166 (declare_mgen_alias_r): Likewise.
27167 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27168 (lgamma_r): Define using libm_alias_double_r.
27169 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27170 (lgammaf_r): Define using libm_alias_float_r.
27171 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27172 (lgammal_r): Define using libm_alias_ldouble_r.
27173 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27174 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27175
27176 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27177
27178 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27179 extern declaration.
27180
27181 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27182
27183 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27184
27185 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27186
27187 [BZ #21326]
27188 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27189 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27190 * math/Makefile (test-math-cxx11): New test.
27191 * math/test-math-cxx11.cc: New file.
27192
27193 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27194
27195 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27196
27197 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27198 call to allocate the slave pty file descriptor.
27199
27200 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27201
27202 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27203 [!__fma] (fma): Define using libm_alias_double.
27204 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27205 [!__fma] (fma): Define using libm_alias_double.
27206
27207 * sysdeps/ieee754/float128/float128_private.h: Include
27208 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27209 (libm_alias_ldouble_r): Undefine and redefine.
27210 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27211 <libm-alias-ldouble.h>.
27212 (asinhl): Define using libm_alias_ldouble.
27213 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27214 <libm-alias-ldouble.h>.
27215 (atanl): Define using libm_alias_ldouble.
27216 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27217 <libm-alias-ldouble.h>.
27218 (cbrtl): Define using libm_alias_ldouble.
27219 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27220 <libm-alias-ldouble.h>.
27221 (ceill): Define using libm_alias_ldouble.
27222 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27223 <libm-alias-ldouble.h>.
27224 (copysignl): Define using libm_alias_ldouble.
27225 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27226 <libm-alias-ldouble.h>.
27227 (cosl): Define using libm_alias_ldouble.
27228 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27229 <libm-alias-ldouble.h>.
27230 (erfl): Define using libm_alias_ldouble.
27231 (erfcl): Likewise.
27232 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27233 <libm-alias-ldouble.h>.
27234 (expm1l): Define using libm_alias_ldouble.
27235 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27236 <libm-alias-ldouble.h>.
27237 (fabsl): Define using libm_alias_ldouble.
27238 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27239 <libm-alias-ldouble.h>.
27240 (floorl): Define using libm_alias_ldouble.
27241 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27242 <libm-alias-ldouble.h>.
27243 (fmal): Define using libm_alias_ldouble.
27244 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27245 <libm-alias-ldouble.h>.
27246 (frexpl): Define using libm_alias_ldouble.
27247 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27248 libm_alias_ldouble.
27249 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27250 <libm-alias-ldouble.h>.
27251 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27252 libm_alias_ldouble.
27253 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27254 <libm-alias-ldouble.h>.
27255 (getpayloadl): Define using libm_alias_ldouble.
27256 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27257 <libm-alias-ldouble.h>.
27258 (llrintl): Define using libm_alias_ldouble.
27259 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27260 <libm-alias-ldouble.h>.
27261 (llroundl): Define using libm_alias_ldouble.
27262 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27263 <libm-alias-ldouble.h>.
27264 (logbl): Define using libm_alias_ldouble.
27265 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27266 <libm-alias-ldouble.h>.
27267 (lrintl): Define using libm_alias_ldouble.
27268 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27269 <libm-alias-ldouble.h>.
27270 (lroundl): Define using libm_alias_ldouble.
27271 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27272 <libm-alias-ldouble.h>.
27273 (modfl): Define using libm_alias_ldouble.
27274 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27275 <libm-alias-ldouble.h>.
27276 (nearbyintl): Define using libm_alias_ldouble.
27277 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27278 <libm-alias-ldouble.h>.
27279 (nextafterl): Define using libm_alias_ldouble.
27280 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27281 <libm-alias-ldouble.h>.
27282 (nextupl): Define using libm_alias_ldouble.
27283 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27284 <libm-alias-ldouble.h>.
27285 (remquol): Define using libm_alias_ldouble.
27286 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27287 <libm-alias-ldouble.h>.
27288 (rintl): Define using libm_alias_ldouble.
27289 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27290 <libm-alias-ldouble.h>.
27291 (roundevenl): Define using libm_alias_ldouble.
27292 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27293 <libm-alias-ldouble.h>.
27294 (roundl): Define using libm_alias_ldouble.
27295 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27296 using libm_alias_ldouble.
27297 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27298 <libm-alias-ldouble.h>.
27299 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27300 Define using libm_alias_ldouble.
27301 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27302 <libm-alias-ldouble.h>.
27303 (sincosl): Define using libm_alias_ldouble.
27304 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27305 <libm-alias-ldouble.h>.
27306 (sinl): Define using libm_alias_ldouble.
27307 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27308 <libm-alias-ldouble.h>.
27309 (tanhl): Define using libm_alias_ldouble.
27310 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27311 <libm-alias-ldouble.h>.
27312 (tanl): Define using libm_alias_ldouble.
27313 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27314 <libm-alias-ldouble.h>.
27315 (totalorderl): Define using libm_alias_ldouble.
27316 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27317 <libm-alias-ldouble.h>.
27318 (totalordermagl): Define using libm_alias_ldouble.
27319 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27320 <libm-alias-ldouble.h>.
27321 (truncl): Define using libm_alias_ldouble.
27322 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27323 libm_alias_ldouble.
27324 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27325 libm_alias_ldouble.
27326 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27327 <libm-alias-ldouble.h>.
27328 (weak_alias): Do not undefine and redefine.
27329 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27330 (copysignl): Define with long_double_symbol only if [IS_IN
27331 (libc)].
27332 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27333 <libm-alias-ldouble.h>.
27334 (weak_alias): Do not undefine and redefine.
27335 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27336 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27337 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27338 <libm-alias-ldouble.h>.
27339 (weak_alias): Do not undefine and redefine.
27340 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27341 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27342 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27343 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27344 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27345 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27346 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27347 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27348 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27349 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27350 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27351 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27352 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27353 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27354 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27355 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27356 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27357 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27358 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27359 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27360 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27361 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27362 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27363 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27364 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27365 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27366
27367 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27368
27369 [BZ #22111]
27370 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27371 (tcache_thread_freeres): Set tcache_shutting_down before
27372 freeing the tcache.
27373 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27374 * malloc/tst-malloc-tcache-leak.c: New file.
27375
27376 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27377
27378 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27379 back to powerpc32 file.
27380 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27381 (memrchr): Add __memrchr_power8 to ifunc list.
27382 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27383 extra bytes for unaligned inputs.
27384
27385 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27386
27387 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27388 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27389 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27390 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27391 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27392
27393 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27394
27395 * sysdeps/arm/libm-test-ulps: Update.
27396
27397 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27398 <libm-alias-ldouble.h>.
27399 (asinhl): Define using libm_alias_ldouble.
27400 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27401 <libm-alias-ldouble.h>.
27402 (cbrtl): Define using libm_alias_ldouble.
27403 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27404 <libm-alias-ldouble.h>.
27405 (copysignl): Define using libm_alias_ldouble.
27406 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27407 <libm-alias-ldouble.h>.
27408 (cosl): Define using libm_alias_ldouble.
27409 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27410 <libm-alias-ldouble.h>.
27411 (erfl): Define using libm_alias_ldouble.
27412 (erfcl): Likewise.
27413 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27414 <libm-alias-ldouble.h>.
27415 (fmal): Define using libm_alias_ldouble.
27416 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27417 <libm-alias-ldouble.h>.
27418 (frexpl): Define using libm_alias_ldouble.
27419 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27420 libm_alias_ldouble.
27421 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27422 <libm-alias-ldouble.h>.
27423 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27424 libm_alias_ldouble.
27425 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27426 <libm-alias-ldouble.h>.
27427 (getpayloadl): Define using libm_alias_ldouble.
27428 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27429 <libm-alias-ldouble.h>.
27430 (llrintl): Define using libm_alias_ldouble.
27431 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27432 <libm-alias-ldouble.h>.
27433 (llroundl): Define using libm_alias_ldouble.
27434 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27435 <libm-alias-ldouble.h>.
27436 (lrintl): Define using libm_alias_ldouble.
27437 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27438 <libm-alias-ldouble.h>.
27439 (lroundl): Define using libm_alias_ldouble.
27440 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27441 <libm-alias-ldouble.h>.
27442 (modfl): Define using libm_alias_ldouble.
27443 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27444 <libm-alias-ldouble.h>.
27445 (nextupl): Define using libm_alias_ldouble.
27446 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27447 <libm-alias-ldouble.h>.
27448 (remquol): Define using libm_alias_ldouble.
27449 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27450 <libm-alias-ldouble.h>.
27451 (roundevenl): Define using libm_alias_ldouble.
27452 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27453 <libm-alias-ldouble.h>.
27454 (roundl): Define using libm_alias_ldouble.
27455 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27456 using libm_alias_ldouble.
27457 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27458 <libm-alias-ldouble.h>.
27459 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27460 <libm-alias-ldouble.h>.
27461 (setpayloadsigl): Define using libm_alias_ldouble.
27462 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27463 <libm-alias-ldouble.h>.
27464 (sincosl): Define using libm_alias_ldouble.
27465 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27466 <libm-alias-ldouble.h>.
27467 (sinl): Define using libm_alias_ldouble.
27468 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27469 <libm-alias-ldouble.h>.
27470 (tanhl): Define using libm_alias_ldouble.
27471 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27472 <libm-alias-ldouble.h>.
27473 (tanl): Define using libm_alias_ldouble.
27474 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27475 <libm-alias-ldouble.h>.
27476 (totalorderl): Define using libm_alias_ldouble.
27477 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27478 <libm-alias-ldouble.h>.
27479 (totalordermagl): Define using libm_alias_ldouble.
27480 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27481 libm_alias_ldouble.
27482 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27483 libm_alias_ldouble.
27484
27485 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27486
27487 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27488 memmove_falkor.
27489 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27490 (__libc_ifunc_impl_list): Likewise.
27491 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27492 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27493
27494 * benchtests/bench-memmove-walk.c: New file.
27495 * benchtests/Makefile (string-benchset): Add it.
27496
27497 * benchtests/bench-memset-walk.c: New file.
27498 * benchtests/Makefile (string-benchset): Add it.
27499
27500 * benchtests/bench-memcpy-walk.c: New file.
27501 * benchtests/Makefile (string-benchset): Add it.
27502
27503 2017-10-05 Florian Weimer <fweimer@redhat.com>
27504
27505 nscd: Eliminate compilation time dependency in the build output.
27506 * nscd/nscd_stat.c (STATDATA_VERSION)
27507 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27508 (STATDATA_VERSION_FULL): New macro definitions.
27509 (compilation): Remove.
27510 (struct statdata): Adjust version member.
27511 (send_stats): Set version from STATDATA_VERSION_FULL.
27512 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27513
27514 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27515
27516 * configure.ac (--enable-add-ons): Remove option.
27517 (machine): Do not mention add-ons in comment.
27518 (LIBC_PRECONFIGURE): Likewise.
27519 (add_ons): Remove variable and sanity checks and logic to locate
27520 add-ons.
27521 (add_ons_automatic): Remove variable.
27522 (configured_add_ons): Likewise.
27523 (add_ons_sfx): Likewise.
27524 (add_ons_pfx): Likewise.
27525 (add_on_subdirs): Likewise.
27526 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27527 consideration of add-ons in Implies handling.
27528 (sysdeps_add_ons): Likewise.
27529 * configure: Regenerated.
27530 * libidn/configure.ac: Remove.
27531 * libidn/configure: Likewise.
27532 * sysdeps/unix/inet/configure.ac: New file.
27533 * sysdeps/unix/inet/configure: New generated file.
27534 * sysdeps/unix/inet/Subdirs: Add libidn.
27535 * Makeconfig (sysdeps-srcdirs): Remove variable.
27536 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27537 ($(common-objpfx)config.status): Do not depend on add-on files.
27538 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27539 comment.
27540 (all-subdirs): Do not include $(add-on-subdirs).
27541 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27542 * config.make.in (add-ons): Remove variable.
27543 (add-on-subdirs): Likewise.
27544 (sysdeps-add-ons): Likewise.
27545 * manual/Makefile (add-chapters): Remove.
27546 ($(objpfx)texis): Do not depend on $(add-chapters).
27547 (nonexamples): Do not handle $(add-chapters).
27548 (examples): Do not handle $(add-ons).
27549 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27550 libc-texinfo.sh.
27551 * manual/install.texi (Installation): Do not mention add-ons.
27552 (--enable-add-ons): Do not document configure option.
27553 * INSTALL: Regenerated.
27554 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27555 * manual/maint.texi (Hierarchy Conventions): Do not mention
27556 add-ons.
27557 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27558 --enable-add-ons.
27559 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27560 add-ons.
27561 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27562 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27563
27564 2017-10-05 Andreas Schwab <schwab@suse.de>
27565
27566 [BZ #15142]
27567 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27568 (_IO_flush_all_lockp): Always lock list_all_lock.
27569 (_IO_flush_all_linebuffered): Likewise.
27570 (_IO_unbuffer_all): Likewise.
27571
27572 2017-10-05 Florian Weimer <fweimer@redhat.com>
27573
27574 [BZ #15436]
27575 Do not flush stdio streams on abort.
27576 * stdlib/abort.c (fflush): Remove macro definition.
27577 (abort): Remove stages related to stdio flushing.
27578
27579 2017-10-05 Florian Weimer <fweimer@redhat.com>
27580
27581 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27582
27583 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27584
27585 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27586
27587 2017-10-05 Florian Weimer <fweimer@redhat.com>
27588
27589 * support/support_format_hostent.c (support_format_hostent): Add
27590 more error information for NETDB_INTERNAL.
27591
27592 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27593
27594 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27595 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27596 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27597 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27598 AC_DEFINE if multi-arch is enabled.
27599 * sysdeps/i386/configure: Regenerated.
27600
27601 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27602
27603 * Makeconfig (+link-static-before-libc): Use
27604 $(DEFAULT-LDFLAGS-$(@F)).
27605 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27606 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27607 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27608
27609 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27610
27611 * elf/Makefile (tests): Add tst-main1.
27612 (modules-names): Add tst-main1mod.
27613 ($(objpfx)tst-main1): New.
27614 (CRT-tst-main1): Likewise.
27615 (LDFLAGS-tst-main1): Likewise.
27616 (LDLIBS-tst-main1): Likewise.
27617 (tst-main1mod.so-no-z-defs): Likewise.
27618 * elf/tst-main1.c: New file.
27619 * elf/tst-main1mod.c: Likewise.
27620
27621 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27622
27623 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27624
27625 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27626
27627 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27628 (fma): Define using libm_alias_double.
27629 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27630 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27631 <math_ldbl_opt.h>.
27632 (fmal): Do not define as compat symbol here.
27633 * sysdeps/alpha/fpu/s_fma.c: New file.
27634
27635 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27636
27637 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27638
27639 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27640
27641 [BZ #22229]
27642 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27643 <math_ldbl_opt.h>
27644 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27645 and libc.
27646 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27647 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27648 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27649 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27651 Include <math_ldbl_opt.h>
27652 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27653 and libc.
27654 (compat_symbol): Undefine and redefine.
27655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27656 <math_ldbl_opt.h>
27657 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27658 (compat_symbol): Undefine and redefine.
27659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27660 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27661 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27662 GLIBC_2_1 for libm.
27663 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27664 GLIBC_2.0 copysignl symbol.
27665 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27666 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27667
27668 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27669
27670 2017-10-04 Florian Weimer <fweimer@redhat.com>
27671
27672 * scripts/check-local-headers.sh: Ignore nspr4 header file
27673 directory in addition to nspr.
27674
27675 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27676
27677 [BZ #17956]
27678 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27679 * configure: Regenerate.
27680 * crypt/Makefile (nss-cpp-flags): New variable.
27681 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27682 (CPPFLAGS-md5-crypt.c): Use it.
27683 * scripts/check-local-headers.sh: Ignore nspr header file
27684 directory.
27685
27686 2017-10-04 Andreas Schwab <schwab@suse.de>
27687
27688 * nis/Makefile (services): Remove compat.
27689 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27690 ($(objpfx)libnss_compat.so): Remove rule.
27691 * nis/Versions (libnss_compat): Remove.
27692 * nss/Makefile (services): Add compat.
27693 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27694 * nss/Versions (libnss_compat): Define.
27695 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27696 Don't include <rpc/types.h>. Replace bool_t by bool.
27697 * nss/nss_compat/compat-initgroups.c: Likewise.
27698 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27699 instead of <rpcsrv/ypclnt.h>.
27700 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27701 yp_get_default_domain.
27702 * nss/nss_compat/compat-pwd.c: Likewise.
27703 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27704 yp_get_default_domain.
27705 * nss/nss_compat/nisdomain.c: New file.
27706 * nss/nss_compat/nisdomain.h: Likewise.
27707
27708 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27709
27710 [BZ #22244]
27711 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27712 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27713
27714 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27715
27716 [BZ #22243]
27717 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27718 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27719
27720 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27721
27722 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27723 "movl main@GOTOFF(%ebx), %eax".
27724
27725 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27726
27727 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27728 allow undefined _DYNAMIC in PIE libc.a.
27729 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27730 Likewse.
27731
27732 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27733
27734 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27735 check _DYNAMIC.
27736
27737 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27738
27739 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27740 check _DYNAMIC.
27741
27742 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27743
27744 * math/test-math-iscanonical.cc (error): Replace bool with int.
27745
27746 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27747
27748 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27749 (modf): Define using libm_alias_double, only if [!__modf].
27750 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27751 <libm-alias-double.h>.
27752 (modf): Define using libm_alias_double, only if [!__modf].
27753 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27754 compat symbol here.
27755 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27756 (weak_alias): Do not undefine and redefine.
27757 (strong_alias): Likewise.
27758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27759 (weak_alias): Likewise.
27760 (strong_alias): Likewise.
27761
27762 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27763 (logb): Define using libm_alias_double, only if [!__logb].
27764 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27765 <libm-alias-double.h>.
27766 (logb): Define using libm_alias_double, only if [!__logb].
27767 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27769 (weak_alias): Do not undefine and redefine.
27770 (strong_alias): Likewise.
27771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27772 (weak_alias): Likewise.
27773 (strong_alias): Likewise.
27774
27775 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27776
27777 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27778 Check SHARED instead PIC.
27779
27780 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27781
27782 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27783 [!__fmaf] (fmaf): Define using libm_alias_float.
27784
27785 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27786 (frexp): Define using libm_alias_double.
27787 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27788 <libm-alias-double.h>.
27789 (frexp): Define using libm_alias_double.
27790 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27791 compat symbol here.
27792
27793 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27794
27795 [BZ #22235]
27796 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27797 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27798 (CFLAGS-test-math-iscanonical.cc): New variable.
27799 * math/test-math-iscanonical.cc: New file.
27800 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27801 Provide a C++ implementation based on function overloading,
27802 rather than using __MATH_TG, which uses C-only builtins.
27803 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27804 Likewise.
27805 * sysdeps/powerpc/powerpc64le/Makefile
27806 (CFLAGS-test-math-iscanonical.cc): New variable.
27807
27808 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27809
27810 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27811 (ceil): Define using libm_alias_double.
27812 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27813 (floor): Define using libm_alias_double.
27814 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27815 <libm-alias-double.h>.
27816 (llround): Define using libm_alias_double.
27817 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27818 <libm-alias-double.h>.
27819 (lround): Define using libm_alias_double.
27820 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27821 <libm-alias-double.h>.
27822 (nearbyint): Define using libm_alias_double.
27823 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27824 <libm-alias-double.h>.
27825 (remquo): Define using libm_alias_double.
27826 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27827 (rint): Define using libm_alias_double.
27828 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27829 (round): Define using libm_alias_double.
27830 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27831 (trunc): Define using libm_alias_double.
27832 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27833 <libm-alias-double.h>.
27834 (ceil): Define using libm_alias_double.
27835 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27836 <libm-alias-double.h>.
27837 (floor): Define using libm_alias_double.
27838 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27839 <libm-alias-double.h>.
27840 (llround): Define using libm_alias_double.
27841 [_LP64] (lround): Likewise.
27842 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27843 <libm-alias-double.h>.
27844 [!_LP64] (lround): Define using libm_alias_double.
27845 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27846 <libm-alias-double.h>.
27847 (nearbyint): Define using libm_alias_double.
27848 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27849 <libm-alias-double.h>.
27850 (remquo): Define using libm_alias_double.
27851 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27852 <libm-alias-double.h>.
27853 (rint): Define using libm_alias_double.
27854 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27855 <libm-alias-double.h>.
27856 (round): Define using libm_alias_double.
27857 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27858 <libm-alias-double.h>.
27859 (trunc): Define using libm_alias_double.
27860 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27861 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27862 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27863 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27864 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27865 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27866 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27867 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27868 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27869
27870 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27871
27872 * math/w_remainder.c: New file.
27873 * math/w_remainderf.c: New file.
27874 * math/w_remainderl.c: New file.
27875
27876 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27877
27878 * elf/rtld.c (BOOTSTRAP_MAP): New.
27879 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27880 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27881 Likewise.
27882 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27883 Likewise.
27884 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27885 Likewise.
27886
27887 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27888
27889 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27890 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27891 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27892 rtld_hidden_data_ver): Define to empty.
27893 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27894 __assert_perror_fail): Likewise.
27895 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27896 (__rewinddir): Likewise.
27897 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27898 (__profile_frequency): Likewise.
27899 * include/setjmp.h (__sigsetjmp): Likewise.
27900 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27901 __libc_sigaction): Likewise.
27902 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27903 not set hidden attribute.
27904 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27905 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27906 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27907 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27908 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27909 __fxstatat64): Likewise.
27910 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27911 (__uname): Likewise.
27912 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27913 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27914 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27915 (NO_RTLD_HIDDEN): Set.
27916 * sysdeps/mach/hurd/configure: Refresh.
27917 * config.h.in: Refresh.
27918
27919 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27920
27921 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27922 (atan): Define using libm_alias_double.
27923 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27924 (tan): Define using libm_alias_double.
27925 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27926 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27927
27928 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27929 define as weak alias of __atan. Do not define any aliases if
27930 [__atan].
27931 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27932 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27933 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27934 as weak alias of __tan. Do not define any aliases if [__tan].
27935 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27936 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27937 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27938 __atan.
27939 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27940 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27941 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27942 and define as weak alias of __atan.
27943 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27944 __atan.
27945 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27946 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27947 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27948 define as weak alias of __tan.
27949
27950 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27951
27952 * math/w_lgamma.c: New file.
27953 * math/w_lgammaf.c: New file.
27954 * math/w_lgammal.c: New file.
27955
27956 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27957
27958 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27959 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27960 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27961 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27962 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27963 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27964 * sysdeps/i386/fpu/w_log2f.c: New file.
27965 * sysdeps/i386/fpu/w_logf.c: New file.
27966 * sysdeps/i386/fpu/w_powf.c: New file.
27967 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27968 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27969 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27970
27971 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27972 H.J. Lu <hongjiu.lu@intel.com>
27973
27974 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27975 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27976 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27977 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27978 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27979 the new expf code.
27980 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27981 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27982 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27983 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27984 * sysdeps/i386/fpu/w_exp2f.c: New file.
27985 * sysdeps/i386/fpu/w_expf.c: New file.
27986 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27987 * sysdeps/x86_64/fpu/w_expf.c: New file.
27988
27989 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27990
27991 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27992 (log2f): Likewise.
27993 (powf): Likewise.
27994 * math/w_log2f.c: New file.
27995 * math/w_logf.c: New file.
27996 * math/w_powf.c: New file.
27997 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27998 * math/w_logf_compat.c (__logf_compat): Likewise.
27999 * math/w_powf_compat.c (__powf_compat): Likewise.
28000 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28001 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28002 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28003 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28004 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28005 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28006 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28007 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28008 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28009 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28010 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28011 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28012 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28013 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28014 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28016 Likewise.
28017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28018 Likewise.
28019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28020 Likewise.
28021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28022 Likewise.
28023 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28024 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28025 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28026 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28027 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28028 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28029 Likewise.
28030 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28031 Likewise.
28032 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28033 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28034 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28035
28036 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28037
28038 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28039 (sysdep_routines): Add memrchr_power8.
28040 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28041 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28042 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28043 New file.
28044 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28045 (memrchr): Add __memrchr_power8 to ifunc list.
28046 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28047
28048 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28049
28050 [BZ #18822]
28051 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28052 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28053 libc_hidden_def.
28054 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28055 (__posix_fallocate64_l64): Likewise.
28056
28057 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28058
28059 [BZ #18822]
28060 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28061 (__sched_setaffinity_new): Add libc_hidden_proto and
28062 libc_hidden_def.
28063
28064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28065
28066 [BZ #18822]
28067 * include/glob.h (__glob64): Add libc_hidden_proto.
28068 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28069 libc_hidden_def.
28070
28071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28072
28073 [BZ #18822]
28074 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28075 attribute_hidden.
28076
28077 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28078
28079 [BZ #18822]
28080 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28081
28082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28083
28084 [BZ #18822]
28085 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28086 libc_hidden_def.
28087
28088 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28089
28090 [BZ #18822]
28091 * csu/version.c (__libc_print_version): Add attribute_hidden.
28092
28093 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28094
28095 [BZ #18822]
28096 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28097
28098 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28099
28100 [BZ #18822]
28101 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28102
28103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28104
28105 [BZ #18822]
28106 * nscd/nscd_helper.c (__nis_hash): New prototype.
28107
28108 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28109
28110 [BZ #18822]
28111 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28112 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28113 libc_hidden_def.
28114 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28115 * termios/tcgetattr.c (__tcgetattr): Likewise.
28116
28117 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28118
28119 [BZ #18822]
28120 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28121 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28122 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28123 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28124 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28125
28126 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28127
28128 [BZ #18822]
28129 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28130
28131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28132
28133 [BZ #18822]
28134 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28135 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28136
28137 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28138
28139 [BZ #18822]
28140 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28141
28142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28143
28144 [BZ #18822]
28145 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28146 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28147
28148 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28149
28150 [BZ #18822]
28151 * include/ifreq.h: New file.
28152 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28153 (__ifreq): Likewise.
28154 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28155 (__ifreq): Likewise.
28156
28157 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28158
28159 [BZ #18822]
28160 * include/idna.h: New file.
28161 * inet/getnameinfo.c: Include <idna.h> instead of
28162 <libidn/idna.h>.
28163 (__idna_to_unicode_lzlz): Removed.
28164 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28165 <libidn/idna.h>.
28166 (__idna_to_ascii_lz): Removed.
28167 (__idna_to_unicode_lzlz): Likewise.
28168
28169 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28170
28171 [BZ #18822]
28172 * include/plural-exp.h: New file.
28173 * intl/plural-exp.c: Include <plural-exp.h> instead of
28174 "plural-exp.h".
28175
28176 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28177
28178 [BZ #18822]
28179 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28180 "getsourcefilter.h".
28181 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28182 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28183 "getsourcefilter.h".
28184 (__get_sol): Removed.
28185
28186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28187
28188 [BZ #18822]
28189 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28190 to ...
28191 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28192
28193 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28194
28195 [BZ #18822]
28196 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28197 attribute_hidden.
28198
28199 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28200
28201 [BZ #18822]
28202 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28203
28204 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28205
28206 [BZ #18822]
28207 * include/search.h (__tdestroy): Add libc_hidden_proto.
28208 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28209
28210 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28211
28212 [BZ #18822]
28213 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28214
28215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28216
28217 [BZ #18822]
28218 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28219 attribute_hidden.
28220
28221 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28222
28223 [BZ #18822]
28224 * include/signal.h (__kill): Add libc_hidden_proto.
28225 (__sigblock): Likewise.
28226 (__sigprocmask): Likewise.
28227 (__sigaltstack): Likewise.
28228 * signal/kill.c (__kill): Add libc_hidden_def.
28229 * signal/sigblock.c (__sigblock): Likewise.
28230 * signal/sigprocmask.c (__sigprocmask): Likewise.
28231 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28232 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28233 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28234 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28235 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28236 Likewise.
28237 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28238 Likewise.
28239 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28240 (__sigprocmask): Likewise.
28241 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28242 Likewise.
28243 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28244 (__sigprocmask): Likewise.
28245 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28246 Likewise.
28247
28248 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28249
28250 [BZ #18822]
28251 * include/string.h (__strsep): Add libc_hidden_proto.
28252 * string/strsep.c (__strsep): Add libc_hidden_def.
28253
28254 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28255
28256 [BZ #18822]
28257 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28258 attribute_hidden.
28259 (__spawni): Likewise.
28260
28261 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28262
28263 [BZ #18822]
28264 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28265 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28266 libc_hidden_def.
28267
28268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28269
28270 [BZ #18822]
28271 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28272
28273 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28274
28275 [BZ #18822]
28276 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28277 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28278 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28279 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28280 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28281 Likewise.
28282 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28283 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28284
28285 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28286
28287 [BZ #18822]
28288 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28289 (__dcigettext): Likewise.
28290
28291 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28292
28293 [BZ #18822]
28294 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28295 libc_hidden_proto.
28296 (__get_nprocs): Likewise.
28297 (__get_phys_pages): Likewise.
28298 (__get_avphys_pages): Likewise.
28299 (__get_child_max): Add attribute_hidden.
28300 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28301 (__get_nprocs): Likewise.
28302 (__get_phys_pages): Likewise.
28303 (__get_avphys_pages): Likewise.
28304 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28305 libc_hidden_def.
28306 (__get_nprocs): Likewise.
28307 (__get_phys_pages): Likewise.
28308 (__get_avphys_pages): Likewise.
28309 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28310 libc_hidden_def.
28311 (__get_nprocs_conf): Likewise.
28312 (__get_phys_pages): Likewise.
28313 (__get_avphys_pages): Likewise.
28314
28315 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28316
28317 [BZ #18822]
28318 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28319 attribute_hidden.
28320 (__netlink_close): Likewise.
28321 (__netlink_free_handle): Likewise.
28322 (__netlink_request): Likewise.
28323
28324 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28325
28326 [BZ #18822]
28327 * include/rpc/rpc.h (__rpc_thread_variables): Add
28328 attribute_hidden.
28329 (__rpc_thread_svc_cleanup): Likewise.
28330 (__rpc_thread_clnt_cleanup): Likewise.
28331 (__rpc_thread_key_cleanup): Likewise.
28332
28333 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28334
28335 [BZ #18822]
28336 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28337 (__writev): Likewise.
28338 * misc/readv.c (__readv): Add libc_hidden_def.
28339 * misc/writev.c (__writev): Likewise.
28340 * sysdeps/posix/readv.c (__readv): Likewise.
28341 * sysdeps/posix/writev.c (__writev): Likewise.
28342 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28343 (__readv): Likewise.
28344 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28345 (__writev): Likewise.
28346
28347 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28348
28349 [BZ #18822]
28350 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28351 (__regcomp): Add libc_hidden_proto.
28352 (__regexec): Likewise.
28353 (__regfree): Likewise.
28354 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28355 (__regfree): Likewise.
28356 * posix/regexec.c (__regexec): Likewise.
28357
28358 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28359
28360 [BZ #18822]
28361 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28362 (__getutent): Likewise.
28363 (__getutid): Likewise.
28364 (__getutline): Likewise.
28365 (__pututline): Likewise.
28366 (__getutent_r): Likewise.
28367 (__getutid_r): Likewise.
28368 (__getutline_r): Likewise.
28369 (__utmpname): Add attribute_hidden.
28370 (__setutent): Likewise.
28371 (__endutent): Likewise.
28372 * login/getutent.c (__getutent): Add libc_hidden_def.
28373 * login/getutent_r.c (__getutent_r): Likewise.
28374 (__pututline): Likewise.
28375 * login/getutid.c (__getutid): Likewise.
28376 * login/getutid_r.c (__getutid_r): Likewise.
28377 * login/getutline.c (__getutline): Likewise.
28378 * login/getutline_r.c (__getutline_r): Likewise.
28379 * login/updwtmp.c (__updwtmp): Likewise.
28380
28381 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28382
28383 [BZ #18822]
28384 * include/dirent.h (__opendir): Always add attribute_hidden.
28385 (__fdopendir): Likewise.
28386 (__closedir): Likewise.
28387 (__readdir): Likewise.
28388 (__readdir64): Add libc_hidden_proto.
28389 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28390 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28391 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28392 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28393 New alias.
28394
28395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28396
28397 [BZ #18822]
28398 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28399 * include/netdb.h (__gethostbyaddr_r): Likewise.
28400 (__gethostbyname_r): Likewise.
28401 (__gethostbyname2_r): Likewise.
28402 (__getnetbyaddr_r): Likewise.
28403 (__getnetbyname_r): Likewise.
28404 (__getservbyname_r): Likewise.
28405 (__getservbyport_r): Likewise.
28406 (__getprotobyname_r): Likewise.
28407 (__getprotobynumber_r): Likewise.
28408 (__getnetgrent_r): Likewise.
28409 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28410 (__getrpcbynumber_r): Likewise.
28411 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28412
28413 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28414
28415 [BZ #18822]
28416 * include/stdio.h (__fcloseall): Add attribute_hidden.
28417 (__getline): Likewise.
28418 (__path_search): Likewise.
28419 (__gen_tempname): Likewise.
28420 (__libc_message): Likewise.
28421 (__flockfile): Likewise.
28422 (__funlockfile): Likewise.
28423 (__fxprintf): Likewise.
28424 (__fxprintf_nocancel): Likewise.
28425
28426 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28427
28428 [BZ #18822]
28429 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28430 (__sgetsgent_r): Likewise.
28431
28432 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28433
28434 [BZ #18822]
28435 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28436 (__statfs64): Likewise.
28437 (__fstatfs64): Likewise.
28438 * include/sys/statvfs.h (__statvfs64): Likewise.
28439 (__fstatvfs64): Likewise.
28440 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28441 (__statfs_filesize_max): Likewise.
28442 (__statfs_symlinks): Likewise.
28443 (__statfs_chown_restricted): Likewise.
28444
28445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28446
28447 [BZ #18822]
28448 * include/time.h (__tzstring): Add attribute_hidden.
28449 (__tzfile_read): Likewise.
28450 (__tzfile_compute): Likewise.
28451 (__tzfile_default): Likewise.
28452 (__tzset_parse_tz): Likewise.
28453 (__offtime): Likewise.
28454 (__asctime_r): Likewise.
28455 (__tzset): Likewise.
28456 (__tz_convert): Likewise.
28457 (__getdate_r): Likewise.
28458 (__getclktck): Likewise.
28459
28460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28461
28462 [BZ #18822]
28463 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28464 (__nscd_unmap): Likewise.
28465 (__nscd_cache_search): Likewise.
28466 (__nscd_get_nl_timestamp): Likewise.
28467 (__nscd_getpwnam_r): Likewise.
28468 (__nscd_getpwuid_r): Likewise.
28469 (__nscd_getgrnam_r): Likewise.
28470 (__nscd_getgrgid_r): Likewise.
28471 (__nscd_gethostbyname_r): Likewise.
28472 (__nscd_gethostbyname2_r): Likewise.
28473 (__nscd_gethostbyaddr_r): Likewise.
28474 (__nscd_getai): Likewise.
28475 (__nscd_getgrouplist): Likewise.
28476 (__nscd_getservbyname_r): Likewise.
28477 (__nscd_getservbyport_r): Likewise.
28478 (__nscd_innetgr): Likewise.
28479 (__nscd_setnetgrent): Likewise.
28480
28481 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28482
28483 [BZ #18822]
28484 * include/gmp.h: Declare internal functions only if _ISOMAC is
28485 undefined.
28486 (__mpn_extract_double): Add attribute_hidden.
28487 (__mpn_extract_long_double): Likewise.
28488 (__mpn_extract_float128): Likewise.
28489 (__mpn_construct_float): Likewise.
28490 (__mpn_construct_double): Likewise.
28491 (__mpn_construct_long_double): Likewise.
28492 (__mpn_construct_float128): Likewise.
28493 (mpn_add_1): Likewise.
28494 (mpn_addmul_1): Likewise.
28495 (mpn_add_n): Likewise.
28496 (mpn_cmp): Likewise.
28497 (mpn_divrem): Likewise.
28498 (mpn_lshift): Likewise.
28499 (mpn_mul): Likewise.
28500 (mpn_mul_1): Likewise.
28501 (mpn_rshift): Likewise.
28502 (mpn_sub_1): Likewise.
28503 (mpn_submul_1): Likewise.
28504 (mpn_sub_n): Likewise.
28505
28506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28507
28508 [BZ #18822]
28509 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28510 (__wcscat): Likewise.
28511 (__btowc): Likewise.
28512 (__wcrtomb): Likewise.
28513 (__mbsrtowcs): Likewise.
28514 (__wcsrtombs): Likewise.
28515 (__mbsnrtowcs): Likewise.
28516 (__wcsnrtombs): Likewise.
28517 (__wcsncpy): Likewise.
28518 (__wcpncpy): Likewise.
28519 (__wmemcpy): Likewise.
28520 (__wmempcpy): Likewise.
28521 (__wmemmove): Likewise.
28522 (__wcschrnul): Likewise.
28523 (__vfwscanf): Likewise.
28524 (__vswprintf): Likewise.
28525 (__fwprintf): Likewise.
28526 (__vfwprintf): Likewise.
28527
28528 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28529
28530 [BZ #18822]
28531 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28532 (__getgrgid_r): Likewise.
28533 (__getgrnam_r): Likewise.
28534 * include/pwd.h (__getpwuid_r): Likewise.
28535 (__getpwnam_r): Likewise.
28536 (__fgetpwent_r): Likewise.
28537 * include/shadow.h (__getspnam_r): Likewise.
28538 (__sgetspent_r): Likewise.
28539 (__fgetspent_r): Likewise.
28540
28541 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28542
28543 [BZ #18822]
28544 * include/unistd.h (__access): Add attribute_hidden.
28545 (__lseek64): Likewise.
28546 (__libc_pread64): Likewise.
28547 (__pipe2): Likewise.
28548 (__sleep): Likewise.
28549 (__chdir): Likewise.
28550 (__fchdir): Likewise.
28551 (__getcwd): Likewise.
28552 (__rmdir): Likewise.
28553 (__execvpe): Likewise.
28554 (__execve): Likewise.
28555 (__setsid): Likewise.
28556 (__getuid): Likewise.
28557 (__geteuid): Likewise.
28558 (__getgid): Likewise.
28559 (__getegid): Likewise.
28560 (__getgroups): Likewise.
28561 (__group_member): Likewise.
28562 (__ttyname_r): Likewise.
28563 (__isatty): Likewise.
28564 (__readlink): Likewise.
28565 (__unlink): Likewise.
28566 (__gethostname): Likewise.
28567 (__profil): Likewise.
28568 (__getdtablesize): Likewise.
28569 (__brk): Likewise.
28570 (__ftruncate): Likewise.
28571 (__ftruncate64): Likewise.
28572
28573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28574
28575 [BZ #18822]
28576 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28577 * argp/argp-fs-xinl.c: Likewise.
28578 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28579 * argp/argp-parse.c: Include <argp.h>.
28580 * argp/argp-xinl.c: Likewise.
28581 * include/argp-fmtstream.h: New file.
28582 * include/argp.h (__argp_error): Add attribute_hidden.
28583 (__argp_failure): Likewise.
28584 (__argp_input): Likewise.
28585 (__argp_state_help): Likewise.
28586
28587 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28588
28589 [BZ #18822]
28590 * include/wchar.h (____wcstof_l_internal): New prototype.
28591 (____wcstod_l_internal): Likewise.
28592 (____wcstold_l_internal): Likewise.
28593 (____wcstol_l_internal): Likewise.
28594 (____wcstoul_l_internal): Likewise.
28595 (____wcstoll_l_internal): Likewise.
28596 (____wcstoull_l_internal): Likewise.
28597 (____wcstof128_l_internal): Likewise.
28598 * sysdeps/ieee754/float128/wcstof128.c
28599 (____wcstof128_l_internal): Removed.
28600 * sysdeps/ieee754/float128/wcstof128_l.c
28601 (____wcstof128_l_internal): Likewise.
28602 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28603 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28604 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28605 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28606 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28607 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28608 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28609 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28610 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28611 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28612
28613 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28614
28615 [BZ #18822]
28616 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28617 instead of <sys/statvfs.h>.
28618 (__internal_statvfs): Removed.
28619 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28620 instead of <sys/statvfs.h>.
28621 (__internal_statvfs64): Removed.
28622 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28623 "internal_statvfs.h" instead of <sys/statvfs.h>.
28624 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28625 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28626 instead of <sys/statvfs.h>.
28627 (__internal_statvfs): Removed.
28628 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28629 instead of <sys/statvfs.h>.
28630 (__internal_statvfs64): Removed.
28631
28632 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28633
28634 [BZ #18822]
28635 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28636 (__gconv_close): Likewise.
28637 (__gconv): Likewise.
28638 (__gconv_find_transform): Likewise.
28639 (__gconv_lookup_cache): Likewise.
28640 (__gconv_compare_alias_cache): Likewise.
28641 (__gconv_load_cache): Likewise.
28642 (__gconv_get_path): Likewise.
28643 (__gconv_close_transform): Likewise.
28644 (__gconv_release_cache): Likewise.
28645 (__gconv_find_shlib): Likewise.
28646 (__gconv_release_shlib): Likewise.
28647 (__gconv_get_builtin_trans): Likewise.
28648 (__gconv_compare_alias): Likewise.
28649 * include/dlfcn.h (_dlerror_run): Likewise.
28650 * include/stdio.h (__fortify_fail_abort): Likewise.
28651 * include/time.h (__tz_compute): Likewise.
28652 (__strptime_internal): Likewise.
28653 * intl/gettextP.h (_nl_find_domain): Likewise.
28654 (_nl_load_domain): Likewise.
28655 (_nl_find_msg): Likewise.
28656 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28657 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28658 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28659 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28660 (__gai_find_request): Likewise.
28661 (__gai_remove_request): Likewise.
28662 (__gai_notify): Likewise.
28663 (__gai_notify_only): Likewise.
28664 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28665 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28666 (_dl_non_dynamic_init): Likewise.
28667 (_dl_aux_init): Likewise.
28668 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28669 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28670 Likewise.
28671 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28672 (__wcsmbs_clone_conv): Likewise.
28673 (__wcsmbs_named_conv): Likewise.
28674
28675 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28676
28677 [BZ #18822]
28678 * include/stdlib.h (__random): Add attribute_hidden.
28679 (__random_r): Likewise.
28680 (__srandom_r): Likewise.
28681 (__initstate_r): Likewise.
28682 (__setstate_r): Likewise.
28683 (__erand48_r): Likewise.
28684 (__nrand48_r): Likewise.
28685 (__jrand48_r): Likewise.
28686 (__srand48_r): Likewise.
28687 (__seed48_r): Likewise.
28688 (__lcong48_r): Likewise.
28689 (__drand48_iterate): Likewise.
28690 (__setenv): Likewise.
28691 (__unsetenv): Likewise.
28692 (__clearenv): Likewise.
28693 (__ptsname_r): Likewise.
28694 (__posix_openpt): Likewise.
28695 (__add_to_environ): Likewise.
28696 (__realpath): Add libc_hidden_proto.
28697 (__ecvt_r): Likewise.
28698 (__fcvt_r): Likewise.
28699 (__qecvt_r): Likewise.
28700 (__qfcvt_r): Likewise.
28701 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28702 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28703
28704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28705
28706 [BZ #18822]
28707 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28708 * include/time.h (__mktime_internal): Likewise.
28709 * libio/iolibio.h (__fopen_internal): Likewise.
28710
28711 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28712
28713 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28714 pointer in frame.
28715 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28716 Correct offset used to restore PIC register.
28717
28718 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28719
28720 [BZ libc/22165]
28721 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28722 code to load address of __getcontext_ret when generating PIC code.
28723
28724 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28725
28726 * elf/Makefile (tests-static-internal): Add
28727 tst-tls1-static-non-pie.
28728 (LDFLAGS-tst-tls1-static-non-pie): New.
28729 * elf/tst-tls1-static-non-pie.c: New file.
28730
28731 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28732
28733 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28734 (asinh): Define using libm_alias_double.
28735 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28736 (cbrt): Define using libm_alias_double.
28737 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28738 <libm-alias-double.h>.
28739 (copysign): Define using libm_alias_double.
28740 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28741 (erf): Define using libm_alias_double.
28742 (erfc): Likewise.
28743 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28744 (expm1): Define using libm_alias_double.
28745 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28746 (fabs): Define using libm_alias_double.
28747 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28748 libm_alias_double.
28749 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28750 <libm-alias-double.h>.
28751 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28752 libm_alias_double.
28753 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28754 <libm-alias-double.h>.
28755 (getpayload): Define using libm_alias_double.
28756 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28757 <libm-alias-double.h>.
28758 (llrint): Define using libm_alias_double.
28759 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28760 (lrint): Define using libm_alias_double.
28761 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28762 <libm-alias-double.h>.
28763 (nextup): Define using libm_alias_double.
28764 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28765 <libm-alias-double.h>.
28766 (roundeven): Define using libm_alias_double.
28767 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28768 libm_alias_double.
28769 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28770 <libm-alias-double.h>.
28771 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28772 using libm_alias_double.
28773 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28774 (cos): Define using libm_alias_double.
28775 (sin): Likewise.
28776 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28777 <libm-alias-double.h>.
28778 (sincos): Define using libm_alias_double.
28779 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28780 (tanh): Define using libm_alias_double.
28781 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28782 <libm-alias-double.h>.
28783 (totalorder): Define using libm_alias_double.
28784 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28785 <libm-alias-double.h>.
28786 (totalordermag): Define using libm_alias_double.
28787 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28788 libm_alias_double.
28789 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28790 libm_alias_double.
28791 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28792 <libm-alias-double.h>.
28793 (getpayload): Define using libm_alias_double.
28794 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28795 <libm-alias-double.h>.
28796 (roundeven): Define using libm_alias_double.
28797 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28798 <libm-alias-double.h>.
28799 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28800 <libm-alias-double.h>.
28801 (totalorder): Define using libm_alias_double.
28802 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28803 <libm-alias-double.h>.
28804 (totalordermag): Define using libm_alias_double.
28805 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28806 libc compat symbol here.
28807 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28808 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28809 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28810 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28811 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28812 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28813 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28814 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28815 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28816 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28817
28818 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28819
28820 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28821 _dl_relocate_static_pie instead of _dl_start to compute load
28822 address in static PIE. Return 0 if _DYNAMIC is undefined for
28823 static executable.
28824
28825 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28826
28827 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28828 _DYNAMIC is undefined for static executable.
28829
28830 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28831
28832 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28833
28834 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28835
28836 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28837
28838 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28839
28840 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28841 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28842 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28843 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28844 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28845 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28846 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28847 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28848 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28849 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28850 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28851 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28852 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28853 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28854 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28855 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28856 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28857
28858 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28859
28860 * math/bits/cmathcalls.h (cimag): Remove inline.
28861 (creal): Remove inline.
28862 (conj): Remove inline.
28863
28864 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28865
28866 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28867 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28868 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28869 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28870 (issignalingf_inline): Likewise.
28871 (POWF_LOG2_TABLE_BITS): Likewise.
28872 (POWF_LOG2_POLY_ORDER): Likewise.
28873 (POWF_SCALE_BITS): Likewise.
28874 (POWF_SCALE): Likewise.
28875 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28876 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28877 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28878
28879 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28880
28881 * math/Makefile (type-float-routines): Add e_log2f_data.
28882 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28883 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28884 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28885 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28886 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28887 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28888 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28889
28890 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28891
28892 * math/Makefile (type-float-routines): Add e_logf_data.
28893 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28894 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28895 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28896 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28897 * sysdeps/i386/fpu/e_logf_data.c: New file.
28898 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28899 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28900
28901 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28902
28903 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28904 undefined _DYNAMIC in PIE libc.a.
28905 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28906 Likewse.
28907
28908 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28909
28910 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28911 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28912 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28913 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28914 (__signbit): Remove.
28915 (__signbitl): Remove.
28916 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28917 (__signbit): Remove.
28918 (__signbitl): Remove.
28919 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28920 (__signbit): Remove.
28921 (__signbitl): Remove.
28922 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28923 (__signbit): Remove.
28924 (__signbitl): Remove.
28925 * sysdeps/tile/bits/mathinline.h: Delete file.
28926 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28927 (__signbit): Remove.
28928 (__signbitl): Remove.
28929
28930 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28931
28932 * math/math.h: Improve handling of C99 isgreater macros.
28933 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28934 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28935 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28936 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28937 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28938
28939 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28940
28941 * sysdeps/aarch64/libm-test-ulps: Update.
28942
28943 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28944
28945 [BZ #22225]
28946 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28947 math_opt_barrier on argument when doing arithmetic on it.
28948 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28949 Likewise. Use math_force_eval not math_opt_barrier after
28950 arithmetic.
28951 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28952 math_opt_barrier on argument when doing arithmetic on it.
28953 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28954 Likewise.
28955
28956 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28957
28958 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28959 libc_hidden_def.
28960 (__freeifaddrs): Likewise.
28961
28962 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28963
28964 * include/dirent.h (__dirfd): New declaration.
28965 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28966 alias.
28967 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28968 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28969 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
28970 * include/unistd.h (__revoke): New declaration.
28971 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28972 alias.
28973 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28974 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28975 revoke.
28976 * include/dirent.h (__seekdir): New declaration.
28977 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28978 redefine as weak alias.
28979 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28980 of seekdir.
28981 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28982 and use libc_hidden_def on them.
28983 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28984 them.
28985 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28986 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28987 instead of getifaddrs and freeifaddrs.
28988
28989 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28990
28991 [BZ #18822]
28992 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28993 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28994 (__dso_handle): Remove declaration.
28995 * dlfcn/tstatexit.c (__dso_handle): Removed.
28996 (main): Don't check __dso_handle.
28997 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28998 (main): Don't check __dso_handle.
28999 * include/dso_handle.h: New file.
29000 * malloc/mtrace.c: Include <dso_handle.h>.
29001 (mtrace): Pass __dso_handle directly.
29002 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29003 (__dso_handle): Remove declaration.
29004 (__pthread_atfork): Pass __dso_handle directly.
29005 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29006 (__dso_handle): Removed.
29007 * posix/wordexp-test.c: Include <dso_handle.h>.
29008 (__dso_handle): Remove declaration.
29009 (__app_register_atfork): Pass __dso_handle directly.
29010 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29011 (__dso_handle): Remove declaration.
29012 (at_quick_exit): Pass __dso_handle directly.
29013 * stdlib/atexit.c: Include <dso_handle.h>.
29014 (__dso_handle): Remove declaration.
29015 (atexit): Pass __dso_handle directly.
29016 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29017 (__dso_handle): Removed.
29018
29019 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29020
29021 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29022 using VDSO.
29023
29024 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29025
29026 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29027 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29028 values to correct default value for given type.
29029
29030 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29031
29032 [BZ #22101]
29033 * elf/Makefile (tests): Add tst-debug1.
29034 ($(objpfx)tst-debug1): New.
29035 ($(objpfx)tst-debug1.out): Likewise.
29036 ($(objpfx)tst-debug1mod1.so): Likewise.
29037 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29038 with p_filesz == 0.
29039 * elf/tst-debug1.c: New file.
29040
29041 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29042
29043 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29044 Define using __ifunc.
29045
29046 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29047
29048 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29049 exp2f() values.
29050
29051 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29052
29053 [BZ #22156]
29054 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29055
29056 2017-09-26 Florian Weimer <fweimer@redhat.com>
29057
29058 * resolv/Makefile (tests-internal): Fix typo in comment.
29059
29060 2017-09-26 Florian Weimer <fweimer@redhat.com>
29061
29062 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29063
29064 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29065
29066 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29067 Use an union instead of a max_align_t array for __space,
29068 so that __space is the same size on all platforms.
29069 * malloc/scratch_buffer_grow_preserve.c
29070 (__libc_scratch_buffer_grow_preserve): Likewise.
29071
29072 [BZ #22183]
29073 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29074 version to 2.
29075 * posix/Makefile (routines): Add glob-lstat-compat and
29076 glob64-lstat-compat.
29077 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29078 * posix/glob-lstat-compat.c: New file.
29079 * posix/glob64-lstat-compat.c: Likewise.
29080 * posix/tst-glob_lstat_compat.c: Likewise.
29081 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29082 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29083 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29084 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29085 Likewise.
29086 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29087 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29088 * posix/glob.c (glob_lstat): New function.
29089 (glob): Rename to __glob and add versioned symbol to 2.27.
29090 (glob_in_dir): Use glob_lstat.
29091 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29092 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29093 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29094 2.27.
29095 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29096 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29097 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29098 gl_lstat on glob call.
29099 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29100 and glob64 symbols.
29101 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29102 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29103 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29104 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29105 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29106 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29107 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29108 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29109 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29110 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29111 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29112 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29114 Likewise.
29115 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29117 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29118 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29119 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29120 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29121 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29122 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29123 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29124 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29125 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29126 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29127
29128 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29129
29130 * configure.ac (AS): Require binutils 2.25 or later.
29131 * configure: Regenerated.
29132
29133 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29134
29135 [BZ #22207]
29136 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29137 VM size.
29138
29139 2017-09-25 DJ Delorie <dj@redhat.com>
29140
29141 [BZ #22161]
29142 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29143 resetting timeout.
29144
29145 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29146
29147 * sysdeps/ieee754/dbl-64/sincos32.h
29148 [SINCCOS32_H]: Remove define.
29149 [SINCOS32_H]: Define.
29150
29151 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29152
29153 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29154 (exp2f): Likewise.
29155 * math/w_exp2f.c: New file.
29156 * math/w_expf.c: New file.
29157 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29158 * math/w_expf_compat.c (__expf_compat): Likewise.
29159 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29160 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29161 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29162 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29163 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29164 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29165 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29166 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29167 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29168 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29169 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29170 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29171 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29172 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29174 Likewise.
29175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29176 Likewise.
29177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29178 Likewise.
29179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29180 Likewise.
29181 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29182 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29183 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29184 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29185 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29186 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29187 Likewise.
29188 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29189 Likewise.
29190 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29191 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29192 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29193
29194 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29195
29196 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29197 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29198 (roundtoint, converttoint): Likewise.
29199 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29200 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29201 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29202 * sysdeps/ieee754/flt-32/math_config.h: New file.
29203 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29204 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29205 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29206 * sysdeps/i386/fpu/math_errf.c: New file.
29207 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29208 * sysdeps/ia64/fpu/math_errf.c: New file.
29209 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29210 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29211
29212 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29213
29214 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29215 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29216 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29217 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29218 to make sure that these symbols are defined.
29219 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29220 of <limits.h>
29221 (__need_NULL): Do not define.
29222 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29223 alignment.
29224 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29225 CMGROUP_MAX, cmsgcred): Do not define.
29226 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29227 NULL.
29228 * bits/socket.h: Likewise.
29229 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29230 __gettimeofday instead of gettimeofday.
29231 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29232 instead of settimeofday.
29233
29234 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29235
29236 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29237 (asinhf): Define using libm_alias_float.
29238 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29239 (atanf): Define using libm_alias_float.
29240 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29241 (cbrtf): Define using libm_alias_float.
29242 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29243 (ceilf): Define using libm_alias_float.
29244 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29245 <libm-alias-float.h>.
29246 (copysignf): Define using libm_alias_float.
29247 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29248 (cosf): Define using libm_alias_float.
29249 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29250 (erff): Define using libm_alias_float.
29251 (erfcf): Likewise.
29252 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29253 (expm1f): Define using libm_alias_float.
29254 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29255 (fabsf): Define using libm_alias_float.
29256 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29257 (floorf): Define using libm_alias_float.
29258 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29259 (frexpf): Define using libm_alias_float.
29260 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29261 libm_alias_float.
29262 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29263 <libm-alias-float.h>.
29264 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29265 libm_alias_float.
29266 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29267 <libm-alias-float.h>.
29268 (getpayloadf): Define using libm_alias_float.
29269 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29270 <libm-alias-float.h>.
29271 (llrintf): Define using libm_alias_float.
29272 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29273 <libm-alias-float.h>.
29274 (llroundf): Define using libm_alias_float.
29275 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29276 (logbf): Define using libm_alias_float.
29277 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29278 (lrintf): Define using libm_alias_float.
29279 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29280 (lroundf): Define using libm_alias_float.
29281 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29282 (modff): Define using libm_alias_float.
29283 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29284 <libm-alias-float.h>.
29285 (nearbyintf): Define using libm_alias_float.
29286 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29287 <libm-alias-float.h>.
29288 (nextafterf): Define using libm_alias_float.
29289 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29290 <libm-alias-float.h>.
29291 (nextupf): Define using libm_alias_float.
29292 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29293 <libm-alias-float.h>.
29294 (remquof): Define using libm_alias_float.
29295 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29296 (rintf): Define using libm_alias_float.
29297 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29298 <libm-alias-float.h>.
29299 (roundevenf): Define using libm_alias_float.
29300 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29301 (roundf): Define using libm_alias_float.
29302 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29303 using libm_alias_float.
29304 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29305 <libm-alias-float.h>.
29306 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29307 Define using libm_alias_float.
29308 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29309 <libm-alias-float.h>.
29310 (sincosf): Define using libm_alias_float.
29311 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29312 (sinf): Define using libm_alias_float.
29313 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29314 (tanf): Define using libm_alias_float.
29315 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29316 (tanhf): Define using libm_alias_float.
29317 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29318 <libm-alias-float.h>.
29319 (totalorderf): Define using libm_alias_float.
29320 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29321 <libm-alias-float.h>.
29322 (totalordermagf): Define using libm_alias_float.
29323 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29324 (truncf): Define using libm_alias_float.
29325 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29326 libm_alias_float.
29327 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29328 libm_alias_float.
29329
29330 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29331
29332 [BZ #22146]
29333 math/math.h: Let fpclassify use the builtin in C++ mode, even
29334 when optimazing for size.
29335
29336 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29337
29338 * csu/Makefile (generated): Do not add version-info.h.
29339 (before-compile): Likewise.
29340 (all-Banner-files): Remove variable.
29341 ($(objpfx)version-info.h): Remove rule.
29342 * csu/version.c (banner): Do not include "version-info.h".
29343 * libidn/Banner: Remove.
29344 * manual/contrib.texi (Simon Josefsson): New entry.
29345
29346 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29347
29348 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29349 Remove conditionals on LDBL_MANT_DIG.
29350 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29351 (__ieee754_lgammal_r): Likewise.
29352
29353 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29354
29355 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29356 _Float128 and L().
29357 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29358 _Float128 and L(). Replace _Float128 with long double and L(x)
29359 with xL, throughout the file.
29360 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29361 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29362 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29363 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29364
29365 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29366
29367 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29368 sysdeps/ieee754/ldbl-128ibm.
29369 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29370 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29371 of including it. Keep _Float128 and L() intact. These will be
29372 reviewed by a separate patch.
29373 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29374 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29375 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29376 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29377
29378 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29379
29380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29381 (__finitef128): Define to __redirect___finitef128.
29382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29383 (__isinff128): Define to __redirect___isinff128.
29384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29385 (__isnanf128): Define to __redirect___isnanf128.
29386
29387 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29388
29389 * sysdeps/powerpc/powerpc64le/Makefile
29390 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29391 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29392
29393 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29394 Carlos O'Donell <carlos@redhat.com>
29395
29396 [BZ #22180]
29397 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29398 * stdlib/test-dlclose-exit-race.c: New file.
29399 * stdlib/test-dlclose-exit-race-helper.c: New file.
29400 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29401
29402 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29403
29404 * crypt/Banner: Remove file.
29405 * nptl/Banner: Likewise.
29406 * resolv/Banner: Likewise.
29407 * soft-fp/Banner: Likewise.
29408 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29409 ($(objpfx)version.d): Remove dependency on banner.h.
29410 ($(objpfx)version.os): Likewise.
29411 * nptl/version.c (banner): Do not include banner.h.
29412 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29413 Jelinek and BIND code.
29414
29415 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29416 Carlos O'Donell <carlos@redhat.com>
29417
29418 * support/xdlfcn.h: New file.
29419 * support/xdlfcn.c: New file.
29420 * support/Makefile (libsupport-routines): Add xdlfcn.
29421 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29422
29423 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29424
29425 [BZ #20142]
29426 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29427 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29428 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29429 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29430 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29431 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29432 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29433 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29434
29435 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29436 Ricky Zhou <rickyz@google.com>
29437 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29438
29439 [BZ #14333]
29440 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29441 Remove atomics.
29442 (__new_exitfn): Fail registration when we finished at_exit processing.
29443 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29444 * stdlib/on_exit.c (__on_exit): Likewise.
29445 * stdlib/exit.c (__exit_funcs_done): New variable.
29446 (__run_exit_handlers): Use __exit_funcs_lock.
29447 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29448 declarations.
29449 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29450 (test-cxa_atexit-race, test-on_exit-race): New tests.
29451 * stdlib/test-atexit-race-common.c: New file.
29452 * stdlib/test-atexit-race.c: New file.
29453 * stdlib/test-at_quick_exit-race.c: New file.
29454 * stdlib/test-cxa_atexit-race.c: New file.
29455 * stdlib/test-on_exit-race.c: New file.
29456
29457 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29458
29459 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29460 * benchtests/exp2f-inputs: Copy of expf-inputs.
29461 * benchtests/log2f-inputs: Copy of logf-inputs.
29462
29463 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29464
29465 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29466 Explicitly take address of first element of array arguments in
29467 call to INLINE_SYSCALL.
29468
29469 2017-09-19 Andreas Schwab <schwab@suse.de>
29470
29471 [BZ #22134]
29472 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29473 execveat first.
29474 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29475 unimplemented.
29476 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29477 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29478 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29479 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29480 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29481 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29482 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29483 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29484 * posix/Makefile (tests): Add tst-fexecve.
29485 * posix/tst-fexecve.c: New file.
29486
29487 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29488
29489 * benchtests/Makefile: Add logf benchmark.
29490 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29491
29492 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29493
29494 * benchtests/Makefile: Add expf benchmark.
29495 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29496
29497 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29498
29499 * csu/Makefile: Add -funwind-tables to libc-start.c.
29500 * debug/Makefile: Add -funwind-tables to backtrace.c.
29501 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29502 * sysdeps/arm/Makefile: Likewise.
29503 * sysdeps/i386/Makefile: Likewise.
29504 * sysdeps/m68k/Makefile: Likewise.
29505 * sysdeps/mips/Makefile: Likewise.
29506 * sysdeps/nios2/Makefile: Likewise.
29507 * sysdeps/sh/Makefile: Likewise.
29508 * sysdeps/sparc/Makefile: Likewise.
29509
29510 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29511
29512 * benchtests/Makefile (bench-math): Add trunc and truncf.
29513 (CFLAGS-bench-trunc.c): New variable.
29514 (CFLAGS-bench-truncf.c): Likewise.
29515 * benchtests/trunc-inputs: New file.
29516 * benchtests/truncf-inputs: Likewise.
29517
29518 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29519
29520 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29521
29522 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29523
29524 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29525 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29526 redefine.
29527 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29528 (exp10l): Define as weak alias.
29529 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29530 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29531 and redefine.
29532 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29533 (remainderl): Define as weak alias.
29534
29535 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29536 (fmal): Define using libm_alias_ldouble.
29537 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29538 (acoshl): Define using libm_alias_ldouble.
29539 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29540 (acosl): Define using libm_alias_ldouble.
29541 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29542 (asinl): Define using libm_alias_ldouble.
29543 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29544 (atan2l): Define using libm_alias_ldouble.
29545 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29546 (atanhl): Define using libm_alias_ldouble.
29547 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29548 (coshl): Define using libm_alias_ldouble.
29549 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29550 (exp10l): Define using libm_alias_ldouble.
29551 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29552 (exp2l): Define using libm_alias_ldouble.
29553 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29554 (expl): Define using libm_alias_ldouble.
29555 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29556 (fmodl): Define using libm_alias_ldouble.
29557 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29558 (hypotl): Define using libm_alias_ldouble.
29559 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29560 (j0l): Define using libm_alias_ldouble.
29561 (y0l): Likewise.
29562 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29563 (j1l): Define using libm_alias_ldouble.
29564 (y1l): Likewise.
29565 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29566 (jnl): Define using libm_alias_ldouble.
29567 (ynl): Likewise.
29568 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29569 (log10l): Define using libm_alias_ldouble.
29570 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29571 (log2l): Define using libm_alias_ldouble.
29572 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29573 (logl): Define using libm_alias_ldouble.
29574 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29575 (powl): Define using libm_alias_ldouble.
29576 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29577 (remainderl): Define using libm_alias_ldouble.
29578 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29579 (sinhl): Define using libm_alias_ldouble.
29580 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29581 (sqrtl): Define using libm_alias_ldouble.
29582 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29583 (tgammal): Define using libm_alias_ldouble.
29584 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29585 (exp10l): Do not use long_double_symbol here.
29586 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29587 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29588 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29589 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29590 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29591 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29592 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29593 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29594 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29595 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29596 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29597 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29598 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29599 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29600 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29601 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29602 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29603 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29604 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29605 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29606 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29607 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29608
29609 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29610
29611 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29612 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29613
29614 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29615
29616 * io/read.c (read): Add libc_hidden_weak.
29617 * sysdeps/mach/hurd/read.c (read): Likewise.
29618 * io/write.c (write): Likewise.
29619 * sysdeps/mach/hurd/write.c (write): Likewise.
29620 * io/pread64.c (__pread64): Likewise.
29621 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29622 * posix/pread64.c (__pread64): Add libc_hidden_def.
29623
29624 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29625
29626 * benchtests/scripts/compare_strings.py: New option -g.
29627 (draw_graph): Print a message that a graph is being generated.
29628 (process_results): Generate graph only if -g is passed.
29629 (main): Process option -g.
29630
29631 * benchtests/scripts/compare_strings.py (process_results):
29632 Better spacing for output.
29633
29634 * benchtests/scripts/compare_strings.py: Use argparse.
29635 * benchtests/README: Document existence of compare_strings.py.
29636
29637 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29638
29639 * math/s_fma.c: Include <libm-alias-double.h>.
29640 (fma): Define using libm_alias_double.
29641 * math/s_nextafter.c: Include <libm-alias-double.h>.
29642 (nextafter): Define using libm_alias_double.
29643 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29644 (acos): Define using libm_alias_double.
29645 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29646 (aocsh): Define using libm_alias_double.
29647 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29648 (asin): Define using libm_alias_double.
29649 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29650 (atan2): Define using libm_alias_double.
29651 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29652 (atanh): Define using libm_alias_double.
29653 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29654 (cosh): Define using libm_alias_double.
29655 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29656 (exp10): Define using libm_alias_double.
29657 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29658 (exp2): Define using libm_alias_double.
29659 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29660 (exp): Define using libm_alias_double.
29661 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29662 (fmod): Define using libm_alias_double.
29663 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29664 (hypot): Define using libm_alias_double.
29665 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29666 (j0): Define using libm_alias_double.
29667 (y0): Likewise.
29668 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29669 (j1): Define using libm_alias_double.
29670 (y1): Likewise.
29671 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29672 (jn): Define using libm_alias_double.
29673 (yn): Likewise.
29674 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29675 (log10): Define using libm_alias_double.
29676 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29677 (log2): Define using libm_alias_double.
29678 * math/w_log_compat.c: Include <libm-alias-double.h>.
29679 (log): Define using libm_alias_double.
29680 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29681 (pow): Define using libm_alias_double.
29682 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29683 (remainder): Define using libm_alias_double.
29684 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29685 (sinh): Define using libm_alias_double.
29686 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29687 (sqrt): Define using libm_alias_double.
29688 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29689 (tgamma): Define using libm_alias_double.
29690 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29691 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29692 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29693 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29694 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29695 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29696 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29697 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29698 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29699 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29700 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29701 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29702 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29703 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29704 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29705 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29706 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29707 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29708 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29709 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29710 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29711 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29712 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29713 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29714 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29715
29716 * math/e_acoshl.c: Remove.
29717 * math/e_acosl.c: Likewise.
29718 * math/e_asinl.c: Likewise.
29719 * math/e_atan2l.c: Likewise.
29720 * math/e_atanhl.c: Likewise.
29721 * math/e_coshl.c: Likewise.
29722 * math/e_expl.c: Likewise.
29723 * math/e_fmodl.c: Likewise.
29724 * math/e_gammal_r.c: Likewise.
29725 * math/e_hypotl.c: Likewise.
29726 * math/e_j0l.c: Likewise.
29727 * math/e_j1l.c: Likewise.
29728 * math/e_jnl.c: Likewise.
29729 * math/e_lgammal_r.c: Likewise.
29730 * math/e_log10l.c: Likewise.
29731 * math/e_log2l.c: Likewise.
29732 * math/e_logl.c: Likewise.
29733 * math/e_powl.c: Likewise.
29734 * math/e_rem_pio2l.c: Likewise.
29735 * math/e_sinhl.c: Likewise.
29736 * math/e_sqrtf128.c: Likewise.
29737 * math/e_sqrtl.c: Likewise.
29738 * math/k_cosl.c: Likewise.
29739 * math/k_sinl.c: Likewise.
29740 * math/k_tanl.c: Likewise.
29741 * math/s_asinhl.c: Likewise.
29742 * math/s_atanl.c: Likewise.
29743 * math/s_cbrtl.c: Likewise.
29744 * math/s_erfl.c: Likewise.
29745 * math/s_expm1l.c: Likewise.
29746 * math/s_log1pl.c: Likewise.
29747 * math/s_tanhl.c: Likewise.
29748
29749 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29750
29751 [BZ #21745]
29752 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29753 [$(subdir) = math] (sysdep_calls): New variable. Has the
29754 previous contents of sysdep_routines, but re-sorted..
29755 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29756 sysdep_calls.
29757 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29758 defined in sysdep_calls and replace by the respective m_* names.
29759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29760 (compat_symbol): Undefine to avoid duplicated compat symbols in
29761 libc.
29762
29763 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29764
29765 * math/s_fmaf.c: Include <libm-alias-float.h>.
29766 (fmaf): Define using libm_alias_float.
29767 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29768 (acosf): Define using libm_alias_float.
29769 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29770 (acoshf): Define using libm_alias_float.
29771 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29772 (asinf): Define using libm_alias_float.
29773 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29774 (atan2f): Define using libm_alias_float.
29775 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29776 (atanhf): Define using libm_alias_float.
29777 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29778 (coshf): Define using libm_alias_float.
29779 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29780 (exp10f): Define using libm_alias_float.
29781 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29782 (fmodf): Define using libm_alias_float.
29783 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29784 (hypotf): Define using libm_alias_float.
29785 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29786 (j0f): Define using libm_alias_float.
29787 (y0f): Likewise.
29788 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29789 (j1f): Define using libm_alias_float.
29790 (y1f): Likewise.
29791 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29792 (jnf): Define using libm_alias_float.
29793 (ynf): Likewise.
29794 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29795 (log10f): Define using libm_alias_float.
29796 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29797 (log2f): Define using libm_alias_float.
29798 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29799 (logf): Define using libm_alias_float.
29800 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29801 (powf): Define using libm_alias_float.
29802 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29803 (remainderf): Define using libm_alias_float.
29804 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29805 (sinhf): Define using libm_alias_float.
29806 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29807 (sqrtf): Define using libm_alias_float.
29808 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29809 (tgammaf): Define using libm_alias_float.
29810
29811 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29812
29813 * include/math.h (roundeven): Change hidden_proto call to
29814 __roundeven.
29815 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29816 alias.
29817 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29818 (y0): Rename to __y0 and define as weak alias.
29819 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29820 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29821 alias.
29822 (y0f): Rename to __y0f and define as weak alias.
29823 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29824 alias.
29825 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29826 (y1): Rename to __y1 and define as weak alias.
29827 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29828 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29829 alias.
29830 (y1f): Rename to __y1f and define as weak alias.
29831 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29832 alias.
29833 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29834 (yn): Rename to __yn and define as weak alias.
29835 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29836 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29837 alias.
29838 (ynf): Rename to __ynf and define as weak alias.
29839 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29840 (fromfp): Define as weak alias.
29841 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29842 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29843 (fromfpx): Define as weak alias.
29844 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29845 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29846 __getpayload and define as weak alias.
29847 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29848 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29849 __roundeven and define as weak alias.
29850 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29851 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29852 __setpayload.
29853 (setpayload): Define as weak alias.
29854 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29855 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29856 __setpayloadsig.
29857 (setpayloadsig): Define as weak alias.
29858 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29859 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29860 __totalorder and define as weak alias.
29861 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29862 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29863 to __totalordermag and define as weak alias.
29864 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29865 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29866 (ufromfp): Define as weak alias.
29867 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29868 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29869 __ufromfpx.
29870 (ufromfpx): Define as weak alias.
29871 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29872 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29873 Rename to __getpayload and define as weak alias.
29874 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29875 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29876 Rename to __roundeven and define as weak alias.
29877 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29878 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29879 Rename to __totalorder and define as weak alias.
29880 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29881 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29882 (totalordermag): Rename to __totalordermag and define as weak
29883 alias.
29884 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29885 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29886 macro.
29887 (__roundevenl): Likewise.
29888 (__totalorderl): Likewise.
29889 (__totalordermagl): Likewise
29890 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29891 __fromfpf128.
29892 (fromfpf128): Define as weak alias.
29893 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29894 __fromfpxf128.
29895 (fromfpxf128): Define as weak alias.
29896 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29897 __setpayloadf128.
29898 (setpayloadf128): Define as weak alias.
29899 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29900 __setpayloadsigf128.
29901 (setpayloadsigf128): Define as weak alias.
29902 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29903 __ufromfpf128.
29904 (ufromfpf128): Define as weak alias.
29905 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29906 __ufromfpxf128.
29907 (ufromfpxf128): Define as weak alias.
29908 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29909 (fromfpf): Define as weak alias.
29910 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29911 __fromfpxf.
29912 (fromfpxf): Define as weak alias.
29913 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29914 __getpayloadf and define as weak alias.
29915 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29916 __roundevenf and define as weak alias.
29917 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29918 __setpayloadf.
29919 (setpayloadf): Define as weak alias.
29920 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29921 __setpayloadsigf.
29922 (setpayloadsigf): Define as weak alias.
29923 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29924 __totalorderf and define as weak alias.
29925 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29926 Rename to __totalordermagf and define as weak alias.
29927 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29928 __ufromfpf.
29929 (ufromfpf): Define as weak alias.
29930 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29931 __ufromfpxf.
29932 (ufromfpxf): Define as weak alias.
29933 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29934 __fromfpl.
29935 (fromfpl): Define as weak alias.
29936 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29937 __fromfpxl.
29938 (fromfpxl): Define as weak alias.
29939 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29940 to __getpayloadl and define as weak alias.
29941 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29942 __roundevenl and define as weak alias.
29943 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29944 __setpayloadl.
29945 (setpayloadl): Define as weak alias.
29946 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29947 __setpayloadsigl.
29948 (setpayloadsigl): Define as weak alias.
29949 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29950 to __totalorderl and define as weak alias.
29951 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29952 Rename to __totalordermagl and define as weak alias.
29953 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29954 __ufromfpl.
29955 (ufromfpl): Define as weak alias.
29956 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29957 __ufromfpxl.
29958 (ufromfpxl): Define as weak alias.
29959 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29960 __fromfpl.
29961 (fromfpl): Define as weak alias.
29962 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29963 __fromfpxl.
29964 (fromfpxl): Define as weak alias.
29965 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29966 Rename to __getpayloadl and define as weak alias.
29967 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29968 to __roundevenl and define as weak alias. Call __roundeven
29969 instead of roundeven.
29970 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29971 __setpayloadl.
29972 (setpayloadl): Define as weak alias.
29973 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29974 __setpayloadsigl.
29975 (setpayloadsigl): Define as weak alias.
29976 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29977 Rename to __totalorderl and define as weak alias.
29978 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29979 Rename to __totalordermagl and define as weak alias.
29980 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29981 __ufromfpl.
29982 (ufromfpl): Define as weak alias.
29983 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29984 __ufromfpxl.
29985 (ufromfpxl): Define as weak alias.
29986 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29987 __fromfpl.
29988 (fromfpl): Define as weak alias.
29989 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29990 __fromfpxl.
29991 (fromfpxl): Define as weak alias.
29992 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29993 __getpayloadl and define as weak alias.
29994 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29995 __roundevenl and define as weak alias.
29996 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29997 __setpayloadl.
29998 (setpayloadl): Define as weak alias.
29999 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30000 __setpayloadsigl.
30001 (setpayloadsigl): Define as weak alias.
30002 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30003 __totalorderl and define as weak alias.
30004 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30005 Rename to __totalordermagl and define as weak alias.
30006 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30007 __ufromfpl.
30008 (ufromfpl): Define as weak alias.
30009 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30010 __ufromfpxl.
30011 (ufromfpxl): Define as weak alias.
30012
30013 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30014
30015 * benchtests/bench-string.h (realloc_bufs): New function.
30016 (test_init): Call it.
30017 * benchtests/bench-memset-large.c (do_test): Likewise.
30018 * benchtests/bench-memset.c (do_test): Likewise.
30019
30020 * benchtests/bench-memset-large.c: Print output in JSON
30021 format.
30022 * benchtests/bench-memset.c: Likewise.
30023
30024 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30025
30026 [BZ #21084]
30027 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30028 * iconvdata/Makefile: Add IBM858.
30029 * iconvdata/gconv-modules: Likewise.
30030 * iconvdata/tst-tables.sh: Likewise.
30031 * iconvdata/ibm858.c: New file.
30032 * localedata/charmaps/IBM858: Likewise.
30033
30034 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30035
30036 [BZ #22023]
30037 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30038 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30039
30040 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30041
30042 [BZ #22112]
30043 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30044 and add tel_int_fmt.
30045
30046 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30047
30048 * sysdeps/generic/libm-alias-float128.h: New file.
30049 * sysdeps/generic/math-type-macros-float128.h: Include
30050 <libm-alias-float128.h>.
30051 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30052
30053 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30054
30055 * sysdeps/generic/libm-alias-ldouble.h: New file.
30056 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30057 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30058 * sysdeps/generic/math-type-macros-ldouble.h: Include
30059 <libm-alias-ldouble.h>.
30060 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30061 libm_alias_ldouble.
30062
30063 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30064
30065 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30066 * math/w_exp_compat.c: ... here.
30067 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30068 * math/w_expf_compat.c: ... here.
30069 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30070 * math/w_expl_compat.c: ... here.
30071 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30072 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30073 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30074 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30075
30076 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30077
30078 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30079 redefine.
30080 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30081 macro.
30082 (ldexpl): Only define as compat symbol for libc, not libm.
30083 (scalbnl): Define as compat symbol for libc here.
30084 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30085 define for [IS_IN (libc)].
30086 (__ldexpl_2): Remove alias.
30087 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30088 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30089 name in long_double_symbol call.
30090 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30091 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30092 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30093 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30094 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30095 Remove macro.
30096 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30097 Define as compat symbol.
30098
30099 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30100
30101 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30102 * sysdeps/unix/sysv/linux/alpha/Makefile
30103 [$(subdir) = csu] (sysdep_routines): Remove rule.
30104
30105 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30106
30107 * sysdeps/generic/libm-alias-double.h: New file.
30108 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30109 * sysdeps/generic/math-type-macros-double.h: Include
30110 <libm-alias-double.h>.
30111 [declare_mgen_alias] (declare_mgen_alias): Define to use
30112 libm_alias_double.
30113 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30114 (M_LIBM_NEED_COMPAT): Remove macro.
30115 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30116 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30117 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30118 code.
30119 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30120 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30121 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30122 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30123 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30124 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30125 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30126 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30127 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30128 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30129 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30130 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30131 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30132 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30133 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30134 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30135 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30136 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30137 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30138 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30139 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30140 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30141 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30142 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30143 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30144 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30145 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30146 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30147 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30148 macro.
30149 (declare_mgen_alias): New macro.
30150 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30151 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30153 (M_LIBM_NEED_COMPAT): Remove macro.
30154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30155 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30156 <first-versions.h>.
30157 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30158 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30159
30160 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30161
30162 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30163 (declare_mgen_alias_2): Remove.
30164 * sysdeps/generic/math-type-macros-double.h
30165 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30166 Likewise.
30167 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30168 alias.
30169 (ldexp): Define with declare_mgen_alias.
30170 (scalbn): Likewise.
30171
30172 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30173
30174 * grp/initgroups.c: Include config.h.
30175 (DEFAULT_CONFIG): New macro.
30176 (internal_getgrouplist): Use DEFAULT_CONFIG.
30177 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30178 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30179 (DEFAULT_DEFCONFIG): New macro.
30180 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30181 * nss/grp-lookup.c: Include config.h
30182 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30183 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30184 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30185 * manual/nss.texi: Update default values section.
30186
30187 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30188
30189 [BZ #21967]
30190 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30191 New.
30192 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30193 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30194 Handle MathVec_Prefer_No_AVX512.
30195 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30196 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30197 is set.
30198
30199 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30200
30201 * posix/sched_primax.c (__sched_get_priority_max): Add
30202 libc_hidden_def.
30203 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30204 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30205 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30206 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30207 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30208 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30209 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30210 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30211 Add aliases.
30212
30213 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30214
30215 * sysdeps/generic/libm-alias-float.h: New file.
30216 * sysdeps/generic/math-type-macros-float.h: Include
30217 <libm-alias-float.h>.
30218 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30219
30220 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30221
30222 [BZ #22093]
30223 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30224 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30225 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30226 (HWCAP_IMPORTANT): Likewise.
30227 (HWCAP_X86_64): New enum.
30228 (HWCAP_X86_AVX512_1): Updated.
30229 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30230 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30231 (modules-names): Add x86_64/tst-x86_64mod-1.
30232 (LDFLAGS-tst-x86_64mod-1.so): New.
30233 ($(objpfx)tst-x86_64-1): Likewise.
30234 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30235 (tst-x86_64-1-clean): Likewise.
30236 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30237 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30238
30239 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30240
30241 * po/sv.po: Update translations.
30242 * po/fr.po: Likewise.
30243
30244 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30245
30246 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30247 seconds.
30248 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30249 seconds.
30250 * elf/rtld-Rules: Fix $(error) use.
30251
30252 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30253
30254 [BZ #14925]
30255 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30256 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30257 * localedata/locales/bn_BD: “Bengali” was still used in some
30258 comments. Change it to “Bangla”.
30259
30260 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30261
30262 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30263
30264 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30265
30266 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30267 thunderx2t99p1 to list of cpu names.
30268 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30269 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30270
30271 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30272
30273 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30274 Use strcmp instead of tunable_is_name.
30275
30276 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30277
30278 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30279 (F_GET_RW_HINT): New macro.
30280 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30281 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30282 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30283 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30284 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30285 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30286 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30287 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30288 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30289
30290 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30291 (F_ADD_SEALS): New macro.
30292 [__USE_GNU] (F_GET_SEALS): Likewise.
30293 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30294 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30295 [__USE_GNU] (F_SEAL_GROW): Likewise.
30296 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30297
30298 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30299
30300 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30301 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30302 * posix/glob_internal.h (__glob_pattern_type):
30303 * posix/glob.c (glob):
30304 * posix/glob_pattern_p.c (__glob_pattern_p):
30305 Use them.
30306
30307 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30308 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30309 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30310 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30311 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30313 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30314 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30315 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30316 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30317 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30318 * sysdeps/wordsize-64/glob.c: Likewise.
30319 * sysdeps/wordsize-64/glob64.c: Likewise.
30320 * sysdeps/wordsize-64/globfree.c: Likewise.
30321 * sysdeps/wordsize-64/globfree64.c: Likewise.
30322 * sysdeps/unix/sysv/linux/glob.c: New file.
30323 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30324 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30325 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30326 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30327 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30328 adds !GLOB_NO_OLD_VERSION as an extra condition.
30329 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30330 using relative path instead of absolute one.
30331 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30332 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30333 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30334 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30335 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30336 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30337
30338 [BZ #1062]
30339 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30340 (glob): Use the same scratch buffer for both getlogin_r and
30341 getpwnam_r. Don’t require preallocation of the login name. This
30342 simplifies storage allocation, and corrects the handling of
30343 long login names.
30344
30345 [BZ #1062]
30346 * posix/glob.c (glob): Port recent patches to platforms
30347 lacking getpwnam_r.
30348 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30349 returns an error number rather than setting errno.
30350
30351 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30352 instead of GCC extension.
30353 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30354 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30355 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30356
30357 [BZ #866]
30358 [BZ #1062]
30359 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30360 * posix/bug-glob1.c: Remove file.
30361 * posix/tst-glob_symlinks.c: New file.
30362 * posix/glob.c (__lstat64): New macro.
30363 (is_dir): New function.
30364 (glob, glob_in_dir): Match symlinks even if they are dangling.
30365 (link_stat, link_exists_p): Remove. All uses removed.
30366
30367 [BZ #1062]
30368 [BZ #19971]
30369 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30370 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30371 All uses removed.
30372
30373 [BZ #1062]
30374 CVE-2017-15671
30375 * posix/Makefile (routines): Add globfree, globfree64, and
30376 glob_pattern_p.
30377 * posix/flexmember.h: New file.
30378 * posix/glob_internal.h: Likewise.
30379 * posix/glob_pattern_p.c: Likewise.
30380 * posix/globfree.c: Likewise.
30381 * posix/globfree64.c: Likewise.
30382 * sysdeps/gnu/globfree64.c: Likewise.
30383 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30384 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30385 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30386 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30387 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30388 * sysdeps/wordsize-64/globfree.c: Likewise.
30389 * sysdeps/wordsize-64/globfree64.c: Likewise.
30390 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30391 [NDEBUG): Remove comments.
30392 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30393 (dirent_type): New type. Use uint_fast8_t not
30394 uint8_t, as C99 does not require uint8_t.
30395 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30396 (struct readdir_result): Use dirent_type. Do not define skip_entry
30397 unless it is needed; this saves a byte on platforms lacking d_ino.
30398 (readdir_result_type, readdir_result_skip_entry):
30399 New functions, replacing ...
30400 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30401 these functions, which were removed. This makes the callers
30402 easier to read. All callers changed.
30403 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30404 (size_add_wrapv, glob_use_alloca): New static functions.
30405 (glob, glob_in_dir): Check for size_t overflow in several places,
30406 and fix some size_t checks that were not quite right.
30407 Remove old code using SHELL since Bash no longer
30408 uses this.
30409 (glob, prefix_array): Separate MS code better.
30410 (glob_in_dir): Remove old Amiga and VMS code.
30411 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30412 separate files.
30413 (glob_in_dir): Do not rely on undefined behavior in accessing
30414 struct members beyond their bounds. Use a flexible array member
30415 instead
30416 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30417 0/1. Caller changed.
30418 (glob): Fix memory leaks.
30419 * posix/glob64 (globfree64): Move to separate file.
30420 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30421 (globfree64): Remove hidden alias.
30422 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30423 oldglob.
30424 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30425 separate file.
30426 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30427 define.
30428 Move compat code to separate file.
30429 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30430 separate file.
30431
30432 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30433
30434 * resolv/tst-resolv-qtypes.c (domain): Changed to
30435 "const char domain[] =".
30436
30437 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30438
30439 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30440 version to 3.1.6.
30441
30442 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30443 (TCP_MD5SIG_EXT): Likewise.
30444 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30445 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30446 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30447
30448 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30449
30450 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30451
30452 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30453
30454 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30455
30456 [BZ #22100]
30457 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30458
30459 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30460
30461 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30462 before assuming that the file is empty. Avoid testing buffer content
30463 when nread == 0.
30464
30465 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30466
30467 [BZ #18858]
30468 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30469 Remove define.
30470 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30471 Likewise.
30472 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30473 Likewise.
30474 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30475 Likewise.
30476 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30477 Likewise.
30478 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30479 Likewise.
30480 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30481 Likewise.
30482
30483 2017-09-06 Florian Weimer <fweimer@redhat.com>
30484
30485 * malloc/dynarray_emplace_enlarge.c
30486 (__libc_dynarray_emplace_enlarge): Add missing else.
30487
30488 2017-09-06 Florian Weimer <fweimer@redhat.com>
30489
30490 [BZ #22096]
30491 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30492 case of failure to obtain the global conf object.
30493
30494 2017-09-06 Florian Weimer <fweimer@redhat.com>
30495
30496 [BZ #22095]
30497 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30498 dynarray allocation failure.
30499
30500 2017-09-06 Florian Weimer <fweimer@redhat.com>
30501
30502 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30503 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30504 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30505 New functions.
30506 (response): Call them. Add 'p', '6' flag processing.
30507 (test_reverse): New function.
30508 (test_get2_any): Call it.
30509 (test_no_inet6): Add 'p' test.
30510 (test_inet6): Likewise.
30511
30512 2017-09-06 Florian Weimer <fweimer@redhat.com>
30513
30514 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30515 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30516 the QNAME.
30517 (test_gai): Adjust query names. Add additional tests.
30518 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30519 test_get2. Adjust query names. Add additional tests.
30520 (test_no_inet6): New function, extracted from threadfunc.
30521 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30522 Add additional tests.
30523
30524 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30525
30526 [BZ #22070]
30527 * localedata/unicode-gen/utf8_gen.py: Set the width for
30528 characters with Prepended_Concatenation_Mark property to 1
30529 * localedata/charmaps/UTF-8: Updated using the improved script.
30530
30531 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30532
30533 [BZ #21750]
30534 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30535 use the range notation for all ranges of neighbouring characters
30536 with the same width.
30537
30538 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30539
30540 * sysdeps/generic/math-type-macros-double.h: Include
30541 <math-svid-compat.h>.
30542 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30543 * sysdeps/generic/math-type-macros-float.h: Include
30544 <math-svid-compat.h>.
30545 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30546 * sysdeps/generic/math-type-macros-ldouble.h: Include
30547 <math-svid-compat.h>.
30548 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30549 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30550 condition.
30551 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30552 * math/w_acosf_compat.c: Likewise.
30553 * math/w_acosh_compat.c: Likewise.
30554 * math/w_acoshf_compat.c: Likewise.
30555 * math/w_acoshl_compat.c: Likewise.
30556 * math/w_acosl_compat.c: Likewise.
30557 * math/w_asin_compat.c: Likewise.
30558 * math/w_asinf_compat.c: Likewise.
30559 * math/w_asinl_compat.c: Likewise.
30560 * math/w_atan2_compat.c: Likewise.
30561 * math/w_atan2f_compat.c: Likewise.
30562 * math/w_atan2l_compat.c: Likewise.
30563 * math/w_atanh_compat.c: Likewise.
30564 * math/w_atanhf_compat.c: Likewise.
30565 * math/w_atanhl_compat.c: Likewise.
30566 * math/w_cosh_compat.c: Likewise.
30567 * math/w_coshf_compat.c: Likewise.
30568 * math/w_coshl_compat.c: Likewise.
30569 * math/w_exp10_compat.c: Likewise.
30570 * math/w_exp10f_compat.c: Likewise.
30571 * math/w_exp10l_compat.c: Likewise.
30572 * math/w_exp2_compat.c: Likewise.
30573 * math/w_exp2f_compat.c: Likewise.
30574 * math/w_exp2l_compat.c: Likewise.
30575 * math/w_fmod_compat.c: Likewise.
30576 * math/w_fmodf_compat.c: Likewise.
30577 * math/w_fmodl_compat.c: Likewise.
30578 * math/w_hypot_compat.c: Likewise.
30579 * math/w_hypotf_compat.c: Likewise.
30580 * math/w_hypotl_compat.c: Likewise.
30581 * math/w_j0_compat.c: Likewise.
30582 * math/w_j0f_compat.c: Likewise.
30583 * math/w_j0l_compat.c: Likewise.
30584 * math/w_j1_compat.c: Likewise.
30585 * math/w_j1f_compat.c: Likewise.
30586 * math/w_j1l_compat.c: Likewise.
30587 * math/w_jn_compat.c: Likewise.
30588 * math/w_jnf_compat.c: Likewise.
30589 * math/w_jnl_compat.c: Likewise.
30590 * math/w_lgamma_r_compat.c: Likewise.
30591 * math/w_lgammaf_r_compat.c: Likewise.
30592 * math/w_lgammal_r_compat.c: Likewise.
30593 * math/w_log10_compat.c: Likewise.
30594 * math/w_log10f_compat.c: Likewise.
30595 * math/w_log10l_compat.c: Likewise.
30596 * math/w_log2_compat.c: Likewise.
30597 * math/w_log2f_compat.c: Likewise.
30598 * math/w_log2l_compat.c: Likewise.
30599 * math/w_log_compat.c: Likewise.
30600 * math/w_logf_compat.c: Likewise.
30601 * math/w_logl_compat.c: Likewise.
30602 * math/w_pow_compat.c: Likewise.
30603 * math/w_powf_compat.c: Likewise.
30604 * math/w_powl_compat.c: Likewise.
30605 * math/w_remainder_compat.c: Likewise.
30606 * math/w_remainderf_compat.c: Likewise.
30607 * math/w_remainderl_compat.c: Likewise.
30608 * math/w_sinh_compat.c: Likewise.
30609 * math/w_sinhf_compat.c: Likewise.
30610 * math/w_sinhl_compat.c: Likewise.
30611 * math/w_sqrt_compat.c: Likewise.
30612 * math/w_sqrtf_compat.c: Likewise.
30613 * math/w_sqrtl_compat.c: Likewise.
30614 * math/w_tgamma_compat.c: Likewise.
30615 * math/w_tgammaf_compat.c: Likewise.
30616 * math/w_tgammal_compat.c: Likewise.
30617 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30618 [LIBM_SVID_COMPAT].
30619 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30620 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30621 [LIBM_SVID_COMPAT].
30622 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30623 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30624 [LIBM_SVID_COMPAT].
30625 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30626 * sysdeps/i386/fpu/w_sqrt.c: New file.
30627 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30628 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30629 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30630 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30631 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30632 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30633 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30634 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30635 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30636 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30637 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30638 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30639 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30640 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30641 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30642 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30643 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30644 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30645 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30646 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30647 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30648 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30649 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30650 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30651 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30652 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30653 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30654 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30655 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30656 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30657 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30658 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30659 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30660 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30661 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30662 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30663 * sysdeps/ia64/fpu/w_log.c: Likewise.
30664 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30665 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30666 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30667 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30668 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30669 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30670 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30671 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30672 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30673 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30674 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30675 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30676 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30677 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30678 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30679 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30680 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30681 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30682 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30683 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30684 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30685 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30686 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30687 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30688 [LIBM_SVID_COMPAT].
30689 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30690 * sysdeps/ieee754/k_standard.c: Likewise.
30691 * sysdeps/ieee754/k_standardf.c: Likewise.
30692 * sysdeps/ieee754/k_standardl.c: Likewise.
30693 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30694 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30695 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30696 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30697 long_double_symbol call on [LIBM_SVID_COMPAT].
30698 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30699 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30700 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30701 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30702 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30703 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30704 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30705 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30706 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30707 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30708 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30709 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30710 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30711 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30712 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30713 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30714 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30715 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30716 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30717 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30718 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30719 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30720
30721 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30722
30723 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30724 * malloc/tst-mallocstate.c: Convert from test-skeleton
30725 to test-driver. Ifdef code using TEST_COMPAT macro.
30726 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30727 * math/test-matherr.c: Likewise.
30728
30729 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30730
30731 [BZ #22086]
30732 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30733 comparing word with byte-swapped constant.
30734
30735 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30736
30737 [BZ #20498]
30738 * locale/iso-639.def: add Miskito.
30739 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30740 * localedata/locales/miq_NI: New file.
30741
30742 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30743
30744 [BZ #18822]
30745 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30746 (__mkdir): Likewise.
30747 * io/chmod.c (__chmod): Add libc_hidden_def.
30748 * io/mkdir.c (__mkdir): Likewise.
30749 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30750 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30751 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30752 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30753
30754 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30755
30756 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30757 version to 4.13.
30758
30759 [BZ #22082]
30760 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30761 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30762
30763 2017-09-04 Florian Weimer <fweimer@redhat.com>
30764
30765 * math/math.h: Issue warning if log is defined.
30766
30767 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30768
30769 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30770 kernel version to 4.13.
30771
30772 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30773
30774 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30775 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30776 parameter.
30777 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30778 just <bits/types.h>.
30779 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30780 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30781 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30782 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30783 * misc/preadv2.c: Include <errno.h>.
30784 * misc/preadv64v2.c: Include <errno.h>.
30785 * misc/pwritev2.c: Include <errno.h>.
30786 * misc/pwritev64v2.c: Include <errno.h>.
30787 * sysdeps/posix/preadv2.c: Include <errno.h>.
30788 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30789 Fix <unistd.h> inclusion.
30790 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30791 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30792 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30793 __strtoul_internal): New functions.
30794 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30795 * sysdeps/posix/system.c: Include <sigsetops.h>.
30796 * sysdeps/mach/hurd/i386/Makefile
30797 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30798 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30799 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30800 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30801 __feraiseexcept_renamed to feraiseexcept instead of
30802 __GI_feraiseexcept.
30803 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30804 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30805 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30806 RWF_NOWAIT): Define to 0 if undefined already.
30807 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30808 boils down to 0.
30809 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30810 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30811
30812 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30813
30814 * manual/math.texi (pow10): Do not document.
30815 (pow10f): Likewise.
30816 (pow10l): Likewise.
30817 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30818 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30819 * math/libm-test-exp10.inc (pow10_test): Remove.
30820 (do_test): Do not call pow10.
30821 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30822 [NO_LONG_DOUBLE] (pow10l): Likewise.
30823 * math/w_exp10f_compat.c (pow10f): Likewise.
30824 * math/w_exp10l_compat.c (pow10l): Likewise.
30825 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30826 (pow10): Make into compat symbol.
30827 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30828 (pow10f): Make into compat symbol.
30829 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30830 (pow10l): Make into compat symbol.
30831 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30832 pow10.
30833 (CFLAGS-nldbl-pow10.c): Remove variable..
30834 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30835 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30836 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30837 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30838 Undefine and redefine.
30839 (pow10l): Make into compat symbol.
30840 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30841 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30842 * sysdeps/arm/libm-test-ulps: Likewise.
30843 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30844 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30845 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30846 * sysdeps/microblaze/libm-test-ulps: Likewise.
30847 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30848 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30849 * sysdeps/nios2/libm-test-ulps: Likewise.
30850 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30851 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30852 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30853 * sysdeps/sh/libm-test-ulps: Likewise.
30854 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30855 * sysdeps/tile/libm-test-ulps: Likewise.
30856 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30857
30858 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30859
30860 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30861
30862 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30863
30864 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30865 "../ChangeLog.old/ChangeLog.8".
30866 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30867 "../ChangeLog.old/ChangeLog.14".
30868
30869 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30870
30871 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30872 Threads Library.
30873
30874 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30875
30876 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30877
30878 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30879
30880 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30881 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30882
30883 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30884
30885 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30886 32 atexit handlers.
30887
30888 2017-09-01 Zack Weinberg <zackw@panix.com>
30889
30890 * math/math.h (HUGE_VAL): Improve commentary.
30891
30892 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30893 Andreas Schwab <schwab@suse.de>
30894
30895 [BZ #21530]
30896 * include/stdio.h (__gen_tempfd): New function.
30897 * stdio-common/Makefile (routines): Add gentempfd.
30898 * stdio-common/gentempfd.c: New file.
30899 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30900 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30901 unnamed file first.
30902
30903 2017-09-01 Florian Weimer <fweimer@redhat.com>
30904
30905 [BZ #21915]
30906 [BZ #21922]
30907 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30908 result to determine success or failure, not the errno value.
30909 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30910 (tst-nss-files-hosts-erange): Link with -ldl.
30911 * nss/tst-nss-files-hosts-erange.c: New file.
30912 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30913 (do_test): Add NO_DATA tests.
30914 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30915 (do_test): Call it.
30916
30917 2017-09-01 Florian Weimer <fweimer@redhat.com>
30918
30919 [BZ #21922]
30920 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30921 coming from gethostbyname2_r.
30922
30923 2017-09-01 Florian Weimer <fweimer@redhat.com>
30924
30925 * support/namespace.h (struct support_chroot_configuration): Add
30926 hosts, host_conf.
30927 (struct support_chroot): Add path_hosts, path_host_conf.
30928 * support/support_chroot.c (write_file): New function.
30929 (support_chroot_create): Call it to process /etc/resolv.conf,
30930 /etc/hosts, /etc/host.conf.
30931 (support_chroot_free): Update.
30932
30933 2017-09-01 Florian Weimer <fweimer@redhat.com>
30934
30935 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30936 status indicates it is set.
30937
30938 2017-09-01 Florian Weimer <fweimer@redhat.com>
30939
30940 [BZ #20532]
30941 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30942 function lookup failures more reliable.
30943
30944 2017-09-01 Florian Weimer <fweimer@redhat.com>
30945
30946 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30947 (getcanonname): Likewise.
30948 (gaih_inet): Likewise.
30949
30950 2017-09-01 Florian Weimer <fweimer@redhat.com>
30951
30952 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30953 (getcanonname): Likewise.
30954 (gaih_inet): Likewise.
30955
30956 2017-08-31 Steve Ellcey <sellcey@cavium.com>
30957 Richard Henderson <rth@twiddle.net>
30958
30959 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30960 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30961 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30962 (IREG_SIZE, OREG_SIZE): New macros.
30963 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30964 (IREG_SIZE, OREG_SIZE): New macros.
30965 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30966 (IREG_SIZE): New macro.
30967 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30968 (IREG_SIZE): New macro.
30969 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30970 New includes.
30971 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30972 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30973 (__CONCATX): Handle exceptions correctly on large values that may
30974 set FE_INVALID.
30975 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30976 Initialize if not already set.
30977 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30978
30979 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30980
30981 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30982 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30983 Likewise.
30984 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30987 Likewise.
30988 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30989 Likewise.
30990 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30991 Likewise.
30992 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30993 Likewise.
30994 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30995 Likewise.
30996 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30997 (NO_CANCELLATION): Likewise.
30998 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30999 Likewise.
31000 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31001 Likewise.
31002 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31003 Likewise.
31004 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31005 (NO_CANCELLATION): Likewise.
31006 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31007 (NO_CANCELLATION): Likewise.
31008 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31009 Likewise
31010 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31011 Likewise.
31012 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31013 Likewise.
31014 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31015 Likewise.
31016 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31017 hidden prototype.
31018 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31019 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31020
31021 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31022
31023 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31024 in resolver call.
31025
31026 2017-08-31 Florian Weimer <fweimer@redhat.com>
31027
31028 * include/libc-symbols.h (internal_function): Remove.
31029
31030 2017-08-31 Florian Weimer <fweimer@redhat.com>
31031
31032 * stdlib/fmtmsg.c (internal_addseverity): Remove
31033 internal_function.
31034
31035 2017-08-31 Florian Weimer <fweimer@redhat.com>
31036
31037 * stdio-common/printf_fp.c (group_number): Remove
31038 internal_function.
31039 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31040
31041 2017-08-31 Florian Weimer <fweimer@redhat.com>
31042
31043 * posix/fnmatch.c (internal_function): Remove definition.
31044 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31045 * posix/regcomp.c (peek_token, init_word_char)
31046 (duplicate_node_closure, fetch_token, peek_token)
31047 (peek_token_bracket, build_range_exp, build_collating_symbol):
31048 Likewise.
31049 * posix/regex_internal.c (re_string_construct_common)
31050 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31051 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31052 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31053 (re_string_translate_buffer, re_string_reconstruct)
31054 (re_string_peek_byte_case, re_string_fetch_byte_case)
31055 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31056 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31057 (re_node_set_add_intersect, re_node_set_init_union)
31058 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31059 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31060 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31061 (re_acquire_state_context): Likewise.
31062 * posix/regex_internal.h (internal_function): Remove definition.
31063 (re_string_realloc_buffers, build_wcs_buffer)
31064 (build_wcs_upper_buffer, build_upper_buffer)
31065 (re_string_translate_buffer, re_string_context_at)
31066 (re_string_char_size_at, re_string_wchar_at)
31067 (re_string_elem_size_at): Likewise.
31068 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31069 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31070 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31071 (re_search_internal, re_search_2_stub, re_search_stub)
31072 (re_copy_regs, prune_impossible_nodes, check_matching)
31073 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31074 (free_fail_stack_return, sift_states_iter_mb)
31075 (sift_states_backward, build_sifted_states)
31076 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31077 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31078 (check_subexp_limits, sift_states_bkref, merge_state_array)
31079 (find_recover_state, transit_state, merge_state_with_log)
31080 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31081 (transit_state_mb, transit_state_bkref, get_subexp)
31082 (get_subexp_sub, find_subexp_node, check_arrival)
31083 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31084 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31085 (check_node_accept_bytes, find_collation_sequence_value)
31086 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31087 (acquire_init_state_context, check_halt_node_context)
31088 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31089 (sub_epsilon_src_nodes): Likewise.
31090 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31091 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31092 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31093 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31094 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31095 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31096 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31097 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31098 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31099 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31100 (PREADV): Likewise.
31101 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31102 (PREADV): Likewise.
31103 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31104 (PWRITEV): Likewise.
31105 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31106 (PWRITEV): Likewise.
31107 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31108 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31109
31110 2017-08-31 Florian Weimer <fweimer@redhat.com>
31111
31112 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31113 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31114 Remove internal_function.
31115 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31116 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31117 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31118 (__deallocate_stack, __libc_pthread_init)
31119 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31120 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31121 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31122 Likewise.
31123 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31124 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31125 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31126 Likewise.
31127 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31128 (__pthread_mutex_unlock_usercnt): Likewise.
31129
31130 2017-08-31 Florian Weimer <fweimer@redhat.com>
31131
31132 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31133 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31134 (fts_safe_changedir): Remove internal_function.
31135 * io/ftw.c (internal_function): Remove definition.
31136 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31137
31138 2017-08-31 Florian Weimer <fweimer@redhat.com>
31139
31140 * inet/deadline.c (__deadline_current_time)
31141 (__deadline_from_timeval, __deadline_to_ms): Remove
31142 internal_function.
31143 * inet/getnameinfo.c (nrl_domainname): Likewise.
31144 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31145 * inet/inet6_option.c (add_pad): Likewise.
31146 * inet/net-internal.h (__deadline_current_time)
31147 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31148 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31149 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31150 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31151
31152 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31153
31154 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31155 include <bits/nan.h>.
31156 * math/Makefile (headers): Remove bits/nan.h.
31157 * bits/nan.h: Remove.
31158 * sysdeps/ieee754/bits/nan.h: Likewise.
31159 * sysdeps/mips/bits/nan.h: Likewise.
31160
31161 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31162 not include <bits/inf.h>.
31163 * math/Makefile (headers): Remove bits/inf.h.
31164 * bits/inf.h: Remove.
31165 * sysdeps/ieee754/bits/inf.h: Likewise.
31166
31167 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31168 bits/huge_vall.h or bits/huge_val_flt128.h.
31169 (HUGE_VAL): Define directly here.
31170 [__USE_ISOC99] (HUGE_VALF): Likewise.
31171 [__USE_ISOC99] (HUGE_VALL): Likewise.
31172 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31173 (HUGE_VAL_F128): Likewise.
31174 * math/Makefile (headers): Remove bits/huge_val.h,
31175 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31176 * bits/huge_val.h: Remove.
31177 * bits/huge_val_flt128.h: Likewise.
31178 * bits/huge_valf.h: Likewise.
31179 * bits/huge_vall.h: Likewise.
31180 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31181 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31182 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31183 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31184 * sysdeps/sh/bits/huge_val.h: Likewise.
31185 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31186 * sysdeps/x86/bits/huge_vall.h: Likewise.
31187
31188 2017-08-31 Florian Weimer <fweimer@redhat.com>
31189
31190 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31191 internal_function.
31192 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31193 Likewise.
31194 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31195 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31196 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31197 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31198 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31199 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31200 * elf/dl-libc.c (dlerror_run): Likewise.
31201 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31202 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31203 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31204 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31205 Likewise.
31206 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31207 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31208 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31209 * elf/dl-profile.c (_dl_start_profile): Likewise.
31210 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31211 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31212 Likewise.
31213 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31214 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31215 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31216 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31217 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31218 (_dl_allocate_tls_storage): Likewise.
31219 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31220 (_dl_check_all_versions): Likewise.
31221 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31222 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31223 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31224 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31225 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31226 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31227 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31228 internal_function from __dl_start.
31229 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31230 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31231 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31232 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31233 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31234 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31235 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31236 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31237 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31238 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31239 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31240 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31241 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31242 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31243 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31244 Likewise.
31245 (struct rtld_global_ro): Remove internal_function from the
31246 _dl_lookup_symbol_x member.
31247 (_dl_symbol_value): Remove. No longer defined anywhere.
31248 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31249 internal_function.
31250 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31251 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31252 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31253 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31254 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31255 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31256 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31257 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31258 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31259 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31260 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31261 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31262
31263 2017-08-31 Florian Weimer <fweimer@redhat.com>
31264
31265 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31266 Remove internal_function.
31267 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31268 Likewise.
31269 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31270 Likewise.
31271
31272 2017-08-31 Florian Weimer <fweimer@redhat.com>
31273
31274 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31275 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31276 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31277
31278 2017-08-31 Florian Weimer <fweimer@redhat.com>
31279
31280 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31281 (__gai_enqueue_request): Remove internal_function.
31282 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31283 (__gai_remove_request, __gai_notify, __gai_notify_only)
31284 (__gai_sigqueue): Likewise.
31285 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31286 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31287 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31288 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31289 Likewise.
31290
31291 2017-08-31 Florian Weimer <fweimer@redhat.com>
31292
31293 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31294 * include/dirent.h (__opendirat, __getdents, __getdents64)
31295 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31296 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31297 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31298 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31299 Likewise.
31300 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31301
31302 2017-08-31 Florian Weimer <fweimer@redhat.com>
31303
31304 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31305 internal_function.
31306 (GETCWD_RETURN_TYPE): Likewise.
31307
31308 2017-08-31 Florian Weimer <fweimer@redhat.com>
31309
31310 * include/time.h (__tz_compute, __strptime_internal): Remove
31311 internal_function.
31312 * time/strptime_l.c (__strptime_internal): Likewise.
31313 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31314
31315 2017-08-31 Florian Weimer <fweimer@redhat.com>
31316
31317 * iconv/gconv.c (__gconv): Remove internal_function.
31318 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31319 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31320 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31321 (__gconv_release_cache): Likewise.
31322 * iconv/gconv_close.c (__gconv_close): Likewise.
31323 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31324 (read_conf_file, __gconv_get_path): Likewise.
31325 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31326 (__gconv_release_step, gen_steps, increment_counter)
31327 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31328 (__gconv_close_transform, free_modules_db): Likewise.
31329 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31330 Likewise.
31331 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31332 (__gconv_find_transform, __gconv_lookup_cache)
31333 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31334 (__gconv_close_transform, __gconv_release_cache)
31335 (__gconv_loaded_object, __gconv_release_shlib)
31336 (__gconv_compare_alias): Likewise.
31337 * iconv/gconv_open.c (__gconv_open): Likewise.
31338 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31339 * iconv/iconvconfig.c (add_module): Likewise.
31340 * intl/dcigettext.c (plural_lookup, guess_category_value)
31341 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31342 * intl/eval-plural.h (plural_eval): Likewise.
31343 * intl/finddomain.c (_nl_find_domain): Likewise.
31344 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31345 (_nl_load_domain, _nl_find_msg): Likewise.
31346 (internal_function): Remove definition.
31347 * intl/loadinfo.h (internal_function): Likewise.
31348 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31349 internal_function.
31350 * intl/localealias.c (internal_function): Remove definition.
31351 (read_alias_file): Remove internal_function.
31352 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31353 * intl/plural-exp.h (internal_function): Remove definition.
31354 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31355 internal_function.
31356 * intl/plural.c: Regenerate.
31357 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31358 * locale/coll-lookup.c (__collidx_table_lookup)
31359 (__collseq_table_lookup): Likewise.
31360 * locale/coll-lookup.h (__collidx_table_lookup)
31361 (__collseq_table_lookup): Likewise.
31362 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31363 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31364 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31365 (_nl_unload_locale): Likewise.
31366 * locale/localeinfo.h (struct __locale_data): Remove
31367 internal_function from cleanup member.
31368 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31369 (_nl_remove_locale, _nl_load_locale_from_archive)
31370 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31371 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31372 (_nl_cleanup_time): Remove internal_function.
31373 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31374 (_nl_parse_alt_digit): Likewise.
31375 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31376 (_nl_select_era_entry): Likewise.
31377 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31378 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31379 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31380 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31381 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31382
31383 2017-08-31 Florian Weimer <fweimer@redhat.com>
31384
31385 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31386 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31387 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31388 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31389 Likewise.
31390 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31391 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31392 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31393 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31394 Likewise.
31395 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31396
31397 2017-08-31 Florian Weimer <fweimer@redhat.com>
31398
31399 * misc/getttyent.c (skip, value): Remove internal_function.
31400 * misc/syslog.c (openlog_internal): Likewise.
31401 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31402
31403 2017-08-31 Florian Weimer <fweimer@redhat.com>
31404
31405 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31406 (__nss_rewrite_field): Remove internal_function.
31407 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31408 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31409 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31410 * nss/nsswitch.c (nss_parse_file, nss_getline)
31411 (nss_parse_service_list, nss_new_service): Likewise.
31412 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31413 * nss/valid_field.c (__nss_valid_field): Likewise.
31414 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31415
31416 2017-08-31 Florian Weimer <fweimer@redhat.com>
31417
31418 * malloc/arena.c (__malloc_fork_lock_parent)
31419 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31420 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31421 internal_function from defintions.
31422 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31423 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31424 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31425 internal_function from declarations.
31426 * malloc/malloc.c (internal_function): Do not define.
31427 (mem2mem_check): Remove internal_function from declaration.
31428 (munmap_chunk, mremap_chunk): Remove internal_function.
31429 * malloc/mtrace.c (tr_where): Likewise.
31430
31431 2017-08-31 Florian Weimer <fweimer@redhat.com>
31432
31433 * include/rpc/pmap_clnt.h (__get_socket): Remove
31434 internal_function.
31435 * sunrpc/auth_des.c (synchronize): Likewise.
31436 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31437 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31438 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31439 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31440 (key_call): Likewise.
31441 * sunrpc/pm_getport.c (__get_socket): Likewise.
31442 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31443 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31444 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31445 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31446 (invalidate): Likewise.
31447 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31448 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31449 (set_input_fragment, get_input_bytes): Likewise.
31450
31451 2017-08-31 Florian Weimer <fweimer@redhat.com>
31452
31453 * malloc/malloc.c (_int_free): Remove locked variable and related
31454 asserts.
31455
31456 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31457
31458 [BZ #22051]
31459 * Makerules (build-module-helper-objlist): Filter out
31460 $(elf-objpfx)sofini.os.
31461 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31462 needed.
31463
31464 2017-08-31 Florian Weimer <fweimer@redhat.com>
31465
31466 * libio/fcloseall.c: Assume weak_alias is defined.
31467 * libio/feof.c: Likewise.
31468 * libio/fileno.c: Likewise.
31469 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31470 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31471 definitions.
31472 (_IO_file_open): Call __open directly.
31473 (_IO_new_file_sync): Assume ESPIPE is defined.
31474 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31475 (_IO_new_file_write): Call __write directly.
31476 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31477 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31478 * libio/genops.c: Assume _LIBC is defined.
31479 (save_for_backup): Remove internal_function.
31480 * libio/getc.c: Assume weak_alias is defined.
31481 * libio/getwc.c: Likewise.
31482 * libio/iofclose.c: Assume _LIBC is defined.
31483 * libio/iofdopen.c: Likewise.
31484 (_IO_fcntl): Remove macro definition.
31485 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31486 Call __fcntl directly.
31487 * libio/iofflush.c: Assume weak_alias is defined.
31488 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31489 defined.
31490 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31491 * libio/iofgets.c: Likewise.
31492 * libio/iofopen.c: Assume _LIBC is defined.
31493 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31494 * libio/iofputs.c: Assume weak_alias is defined.
31495 * libio/iofread.c: Likewise.
31496 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31497 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31498 * libio/ioftell.c: Assume weak_alias is defined.
31499 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31500 * libio/iofwide.c: Assume _LIBC is defined.
31501 (_IO_fwide): Drop SHARED conditional because it is implied by
31502 SHLIB_COMPAT.
31503 * libio/iofwrite.c: Assume weak_alias is defined.
31504 * libio/iogetdelim.c: Likewise.
31505 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31506 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31507 (_IO_getwline): Call __wmemcpy directly.
31508 * libio/iopopen.c: Assume _LIBC is defined.
31509 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31510 (_IO_close): Remove macro definitions.
31511 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31512 _exit directly.
31513 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31514 directly.
31515 * libio/ioputs.c: Assume weak_alias is defined.
31516 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31517 * libio/iosetbuffer.c: Assume weak_alias is defined.
31518 * libio/iosetvbuf.c: Likewise.
31519 * libio/ioungetc.c: Likewise.
31520 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31521 libc_hidden_def, libc_hidden_weak, NULL are defined.
31522 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31523 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31524 defined.
31525 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31526 definitions.
31527 (_IO_old_file_init_internal): Drop SHARED conditional because it
31528 is implied by SHLIB_COMPAT.
31529 (_IO_old_file_fopen): Call __open directly.
31530 (_IO_old_file_sync): Assume ESPIPE is defined.
31531 (_IO_old_file_write): Call __write directly.
31532 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31533 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31534 Call __fcntl directly.
31535 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31536 (_IO_old_fgetpos): Assume EIO is defined.
31537 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31538 (_IO_old_fgetpos64): Assume EIO is defined.
31539 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31540 (_IO_old_fsetpos): Assume EIO is defined.
31541 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31542 (_IO_old_fsetpos64): Assume EIO is defined.
31543 * libio/oldiopopen.c: Assume _LIBC is defined.
31544 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31545 (_IO_close): Remove macro definitions.
31546 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31547 directly.
31548 (_IO_old_proc_close): Call __close, __waitpid directly.
31549 * libio/put.c: Assume weak_alias is defined.
31550 * libio/stdfiles.c: Assume _LIBC is defined.
31551 * libio/stdio.c: Likewise.
31552 * libio/wfileops.c: Likewise.
31553 (_IO_wfile_sync): Assume ESPIPE is defined.
31554 * libio/wgenops.c: Assume _LIBC is defined.
31555 (save_for_wbackup): Remove internal_function.
31556
31557 2017-08-31 Florian Weimer <fweimer@redhat.com>
31558
31559 * malloc/malloc.c (top_check): Change return type to void. Remove
31560 internal_function.
31561 * malloc/hooks.c (top_check): Likewise.
31562 (malloc_check, realloc_check, memalign_check): Adjust.
31563
31564 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31565
31566 [BZ #21457]
31567 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31568 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31569 sigcontext and namespace requirements.
31570 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31571 * sysdeps/m68k/sys/ucontext.h: Likewise.
31572 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31573 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31574 <bits/sigcontext.h>.
31575 (__ctx): Define earlier.
31576 (mcontext_t): Define structure contents rather than using struct
31577 sigcontext.
31578 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31579 __glibc_reserved1 instead of __reserved.
31580 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31581 <bits/sigcontext.h>.
31582 (__ctx): Define earlier.
31583 (mcontext_t): Define structure contents rather than using struct
31584 sigcontext.
31585 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31586 mcontext_t instead of struct sigcontext.
31587 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31588 <bits/sigcontext.h>.
31589 (__ctx): Define earlier.
31590 (mcontext_t): Define structure contents rather than using struct
31591 sigcontext.
31592 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31593 <bits/sigcontext.h>.
31594 (__ctx): Define earlier.
31595 (mcontext_t): Define structure contents rather than using struct
31596 sigcontext.
31597 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31598 mcontext_t instead of struct sigcontext.
31599 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31600 mcontext_t instead of struct sigcontext.
31601 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31602 <bits/sigcontext.h>.
31603 (__ctx): New macro.
31604 (struct __ia64_fpreg_mcontext): New type.
31605 (mcontext_t): Define structure contents rather than using struct
31606 sigcontext.
31607 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31608 (uc_sigmask): Define using __ctx.
31609 (uc_stack): Likewise.
31610 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31611 <bits/sigcontext.h>.
31612 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31613 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31614 <bits/sigcontext.h>.
31615 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31616 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31617 <bits/sigcontext.h>.
31618 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31619 <bits/sigcontext.h>.
31620 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31621 <bits/sigcontext.h>.
31622 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31623 <bits/sigcontext.h>.
31624 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31625 <bits/sigcontext.h>.
31626 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31627 <bits/sigcontext.h>.
31628 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31629 <bits/sigcontext.h>.
31630 (__ctx): Define earlier.
31631 (mcontext_t): Define structure contents rather than using struct
31632 sigcontext.
31633 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31634 <bits/sigcontext.h>. Include <bits/types.h>.
31635 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31636 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31637 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31638 (test-xfail-UNIX98/signal.h/conform): Likewise.
31639 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31640 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31641 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31642 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31643 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31644 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31645 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31646 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31647 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31648
31649 2017-08-30 Florian Weimer <fweimer@redhat.com>
31650
31651 * malloc/dynarray_emplace_enlarge.c
31652 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31653 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31654 * malloc/tst-dynarray.c (test_long_overflow): New function.
31655 (do_test): Call it.
31656
31657 2017-08-30 Florian Weimer <fweimer@redhat.com>
31658
31659 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31660 (set_arena_corrupt): Remove definitions.
31661 (mtrim): Do not check for corrupt arena.
31662 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31663 Likewise.
31664
31665 2017-08-30 Florian Weimer <fweimer@redhat.com>
31666
31667 [BZ #21754]
31668 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31669 check_action.
31670 (ptmalloc_init): Do not set or use check_action.
31671 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31672 call to malloc_printerr. Remove return statement.
31673 (free_check): Likewise. Remove arena unlock.
31674 (top_check): Update comment. Adjust call to malloc_printerr.
31675 Remove heap repair code.
31676 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31677 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31678 (sysmalloc): Adjust call to malloc_printerr.
31679 (munmap_chunk, __libc_realloc): Likewise. Remove return
31680 statement.
31681 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31682 Remove errout label and corresponding gotos.
31683 (_int_free): Likewise. Remove arena unlock.
31684 (do_set_mallopt_check): Do not set check_action.
31685 (malloc_printerr): Adjust parameter list. Do not mark arena as
31686 corrupt.
31687 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31688 comment.
31689 * manual/probes.texi (Memory Allocation Probes): Remove
31690 memory_mallopt_check_action.
31691
31692 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31693
31694 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31695 Use pointer to uint64_t instead of long int for sp.
31696
31697 2017-08-30 Florian Weimer <fweimer@redhat.com>
31698
31699 [BZ #21754]
31700 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31701 without printing a backtrace. Do not leak any information in the
31702 error message.
31703 * manual/memory.texi (Heap Consistency Checking): Update.
31704 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31705
31706 2017-08-30 Florian Weimer <fweimer@redhat.com>
31707
31708 Do not scale NPTL tests with available number of CPUs.
31709 * nptl/tst-cond16.c (count): Set to constant value of 8.
31710 * nptl/tst-cond18.c (count): Likewise.
31711
31712 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31713
31714 [BZ #22035]
31715 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31716 Define to take a second argument that is a macro that
31717 concatentates a suffix, not the suffix itself.
31718 (__CONCAT_d): New macro.
31719 (__CONCAT_f): Likewise.
31720 (__CONCAT_l): Likewise.
31721
31722 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31723
31724 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31725 by child.
31726
31727 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31728 Aurelien Jarno <aurelien@aurel32.net>
31729 Maciej W. Rozycki <macro@imgtec.com>
31730
31731 [BZ #21956]
31732 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31733 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31734 `mips16-syscall6' and `mips16-syscall7'.
31735 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31736 (CFLAGS-mips16-syscall7.c): Remove.
31737 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31738 Remove `__mips16_syscall5', `__mips16_syscall6' and
31739 `__mips16_syscall7'.
31740 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31741 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31742 `__mips_syscall_return'.
31743 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31744 (__mips16_syscall1): Likewise.
31745 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31746 (__mips16_syscall2): Likewise.
31747 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31748 (__mips16_syscall3): Likewise.
31749 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31750 (__mips16_syscall4): Likewise.
31751 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31752 Remove.
31753 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31754 Remove.
31755 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31756 Remove.
31757 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31758 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31759 `__mips16_syscall5'. Remove prototype.
31760 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31761 `__mips16_syscall6'. Remove prototype.
31762 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31763 `__mips16_syscall7'. Remove prototype.
31764 (__nomips16, __mips16_syscall_return): Move to...
31765 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31766 (__nomips16, __mips_syscall_return): ... here.
31767 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31768 `__mips16_syscall_return' to `__mips_syscall_return'.
31769 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31770 `internal_syscall##nr'.
31771 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31772 `internal_syscall##nr'.
31773 (FORCE_FRAME_POINTER): Remove.
31774 (__mips_syscall5): New prototype.
31775 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31776 (__mips_syscall6): New prototype.
31777 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31778 (__mips_syscall7): New prototype.
31779 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31780 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31781 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31782 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31783 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31784 (sysdep_routines): Add libc-do-syscall.
31785 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31786 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31787
31788 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31789
31790 [BZ #21672]
31791 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31792 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31793 (advise_stack_range): New function.
31794 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31795 stack non required to advise_stack_range at allocatestack.c
31796
31797 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31798
31799 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31800
31801 2017-08-29 Florian Weimer <fweimer@redhat.com>
31802
31803 [BZ #22026]
31804 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31805 __end_fct. Mangle __end_fct after setting it to NULL.
31806 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31807 (modules-names, modules-names-tests): Add
31808 tst-gconv-init-failure-mod.
31809 (gconv-modules): New target.
31810 (tst-gconv-init-failure-mod.so): Link against libsupport.
31811 (tst-gconv-init-failure): Depend on gconv-modules,
31812 tst-gconv-init-failure-mod.so.
31813 * iconv/tst-gconv-init-failure-mod.c: New file.
31814 * iconv/tst-gconv-init-failure.c: Likewise.
31815 * iconv/test-gconv-modules: Likewise.
31816
31817 2017-08-29 Florian Weimer <fweimer@redhat.com>
31818
31819 [BZ #22025]
31820 * iconv/gconv_db.c (free_derivation): Remove redundant
31821 parentheses.
31822 (gen_steps): Unconditionally mangle __btowc_fct after
31823 initialization.
31824 (increment_counter): Likewise. Do not call init_fct for internal
31825 modules.
31826
31827 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31828
31829 [BZ #22028]
31830 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31831 (_MSUF_): Remove macro.
31832 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31833 Likewise.
31834 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31835 (__REDIRFROM_X): New macro.
31836 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31837 Likewise.
31838 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31839 (__REDIRTO_X): Likewise.
31840 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31841 arguments.
31842 (__MATH_REDIRCALL_2): Likewise.
31843 (__MATH_REDIRCALL_INTERNAL): Likewise.
31844 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31845 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31846 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31847 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31848 * math/test-finite-macros.c: New file.
31849 * math/Makefile (tests): Add test-finite-macros.
31850 (CFLAGS-test-finite-macros.c): New variable.
31851
31852 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31853 Jeff Law <law@redhat.com>
31854
31855 [BZ #22025]
31856 Mangle NULL pointers in iconv/gconv.
31857 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31858 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31859 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31860 is non-NULL before demangling the end_fct. Check for NULL
31861 end_fct after demangling.
31862 (__gconv_release_step): Demangle the end_fct before checking
31863 it for NULL. Remove assert on __shlibc_handle != NULL.
31864 (gen_steps): Don't check btowc_fct for NULL before mangling.
31865 Demangle init_fct before checking for NULL.
31866 (increment_counter): Likewise.
31867 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31868 end_fct for NULL before mangling.
31869 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31870 for NULL.
31871
31872 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31873
31874 [BZ #21971]
31875 * locale/iso-639.def: add Morisyen.
31876
31877 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31878
31879 [BZ #21930]
31880 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31881 (iszero): New C++ implementation that does not use
31882 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31883 signaling nans are enabled, since __builtin_types_compatible_p
31884 is a C-only feature.
31885 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31886 defined, include ieee754_float128.h for access to the union and
31887 member ieee854_float128.ieee.
31888 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31889 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31890 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31891 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31892 options of test-math-zero on powerpc64le.
31893
31894 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31895
31896 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31897 Change double to float.
31898
31899 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31900
31901 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31902 unconditional.
31903 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31904 conditional code; define contents only for [LIBM_SVID_COMPAT].
31905
31906 2017-08-28 Florian Weimer <fweimer@redhat.com>
31907
31908 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31909 (abi-lp64_be-options): Remove.
31910 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31911 (abi-hard-options): Likewise.
31912 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31913 (abi-o32_hard-options, abi-o32_soft_2008-options)
31914 (abi-o32_hard_2008-options, abi-n32_soft-options)
31915 (abi-n32_hard-options, abi-n32_soft_2008-options)
31916 (abi-n32_hard_2008-options, abi-n64_soft-options)
31917 (abi-n64_hard-options, abi-n64_soft_2008-options)
31918 (abi-n64_hard_2008-options): Likewise.
31919 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31920 (abi-64-v1-options, abi-64-v2-options): Likewise.
31921 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31922 (abi-64-options): Likewise.
31923 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31924 (abi-64-options): Likewise.
31925 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31926 (abi-64-options): Likewise.
31927 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31928 (abi-64-options, abi-x32-options): Likewise.
31929
31930 2017-08-28 Florian Weimer <fweimer@redhat.com>
31931
31932 Store supported list of SYS_* system calls in the source tree.
31933 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31934 (bits/syscall.h): Generate from list file.
31935 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31936 [$(subdir) = misc] (tests): Add tst-syscall-list.
31937 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31938 [$(subdir) = misc] (tst-syscall-list-macros.list)
31939 [$(subdir) = misc] (tst-syscall-list-nr.list)
31940 (tst-syscall-list-sys.list): Helper targets for new
31941 tst-syscall-list test.
31942 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31943 tst-syscall-list.sh.
31944 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31945 target. Do not include bits/syscall.d.
31946 [$(subdir) = misc] (generated): Do not update.
31947 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31948 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31949 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31950 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31951
31952 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31953
31954 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31955 (tst-cxa_atexit, tst-on_exit): Likewise.
31956 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31957 tst-cxa_atexit, and tst-on_exit.
31958 * stdlib/tst-atexit-common.c: New file.
31959 * stdlib/tst-atexit.c: New file.
31960 * stdlib/tst-at_quick_exit.c: New file.
31961 * stdlib/tst-cxa_atexit.c: New file.
31962 * stdlib/tst-on_exit.c: New file.
31963
31964 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31965
31966 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
31967 * mach/stack_chk_fail_local.c: New file.
31968 * hurd/stack_chk_fail_local.c: New file.
31969 * mach/Machrules ($(interface-library)-routines): Add
31970 stack_chk_fail_local.
31971 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31972 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31973 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31974 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31975 * hurd/Makefile (CFLAGS-hurdstartup.o,
31976 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
31977
31978 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31979
31980 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31981 (index_cpu_*, index_arch_*): Removed.
31982
31983 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31984
31985 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31986 Use uint64_t instead of unsigned long.
31987
31988 2017-08-25 Joseph Myers <joseph@codesourcery.com>
31989
31990 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31991 [__HAVE_DISTINCT_FLOAT128].
31992
31993 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31994 of <bits/math-finite.h>.
31995 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31996 inclusion of <bits/math-finite.h>.
31997 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31998 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31999 __NO_LONG_DOUBLE_MATH].
32000 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32001 (__MATH_REDIRCALL_2): Likewise.
32002 (__MATH_REDIRCALL_INTERNAL): Likewise.
32003 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32004 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32005 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32006
32007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32008 Remove file.
32009 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32010 Likewise.
32011 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32012 Likewise.
32013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32014 Likewise.
32015 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32016 Likewise.
32017 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32018 Likewise.
32019 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32020 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32021 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32022 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32023 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32024 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32025 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32026 w_sqrtf_compat-ppc32.
32027
32028 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32029
32030 * math/math.h [defined __cplusplus] (issignaling): In the long
32031 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32032 is not defined. Call __issignaling, otherwise.
32033
32034 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32035
32036 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32037 syscall definitions and replace __builtin_expect with __glibc_likely.
32038 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32039 syscall.
32040 (SYSCALL_CANCELLABLE): Removedefinition
32041 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32042 definition.
32043 (PSEUDO_END): Likewise.
32044 [IS_IN (libpthread)] (CENABLE): Likewise.
32045 [IS_IN (libpthread)] (CDISABLE): Likewise.
32046 [IS_IN (libc)] (CENABLE): Likewise.
32047 [IS_IN (libc)] (CENABLE): Likewise.
32048 [IS_IN (librt)] (CDISABLE): Likewise.
32049 [IS_IN (librt)] (CDISABLE): Likewise.
32050 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32051 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32052 definition.
32053 (PSEUDO_END): Likewise.
32054 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32055 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32056 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32057 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32058 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32059 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32060 (CENABLE): Likewise.
32061 (CDISABLE): Likewise.
32062 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32063 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32064 defintion.
32065 (PSEUDO_END): Likewise.
32066 [IS_IN (libpthread)] (CENABLE): Likewise.
32067 [IS_IN (libpthread)] (CDISABLE): Likewise.
32068 [IS_IN (libc)] (CENABLE): Likewise.
32069 [IS_IN (libc)] (CENABLE): Likewise.
32070 [IS_IN (librt)] (CDISABLE): Likewise.
32071 [IS_IN (librt)] (CDISABLE): Likewise.
32072 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32073 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32074 definition.
32075 (PSEUDO_END): Likewise.
32076 [IS_IN (libpthread)] (CENABLE): Likewise.
32077 [IS_IN (libpthread)] (CDISABLE): Likewise.
32078 [IS_IN (libc)] (CENABLE): Likewise.
32079 [IS_IN (libc)] (CENABLE): Likewise.
32080 [IS_IN (librt)] (CDISABLE): Likewise.
32081 [IS_IN (librt)] (CDISABLE): Likewise.
32082 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32083 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32084 definition.
32085 (PSEUDO_END): Likewise.
32086 [IS_IN (libpthread)] (CENABLE): Likewise.
32087 [IS_IN (libpthread)] (CDISABLE): Likewise.
32088 [IS_IN (libc)] (CENABLE): Likewise.
32089 [IS_IN (libc)] (CENABLE): Likewise.
32090 [IS_IN (librt)] (CDISABLE): Likewise.
32091 [IS_IN (librt)] (CDISABLE): Likewise.
32092 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32093 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32094 definition.
32095 (PSEUDO_END): Likewise.
32096 [IS_IN (libpthread)] (CENABLE): Likewise.
32097 [IS_IN (libpthread)] (CDISABLE): Likewise.
32098 [IS_IN (libc)] (CENABLE): Likewise.
32099 [IS_IN (libc)] (CENABLE): Likewise.
32100 [IS_IN (librt)] (CDISABLE): Likewise.
32101 [IS_IN (librt)] (CDISABLE): Likewise.
32102 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32103 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32104 definition.
32105 (PSEUDO_END): Likewise.
32106 [IS_IN (libpthread)] (CENABLE): Likewise.
32107 [IS_IN (libpthread)] (CDISABLE): Likewise.
32108 [IS_IN (libc)] (CENABLE): Likewise.
32109 [IS_IN (libc)] (CENABLE): Likewise.
32110 [IS_IN (librt)] (CDISABLE): Likewise.
32111 [IS_IN (librt)] (CDISABLE): Likewise.
32112 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32113 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32114 definition.
32115 (PSEUDO_END): Likewise.
32116 [IS_IN (libpthread)] (CENABLE): Likewise.
32117 [IS_IN (libpthread)] (CDISABLE): Likewise.
32118 [IS_IN (libc)] (CENABLE): Likewise.
32119 [IS_IN (libc)] (CENABLE): Likewise.
32120 [IS_IN (librt)] (CDISABLE): Likewise.
32121 [IS_IN (librt)] (CDISABLE): Likewise.
32122 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32123 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32124 Remove definition.
32125 (PSEUDO_END): Likewise.
32126 [IS_IN (libpthread)] (CENABLE): Likewise.
32127 [IS_IN (libpthread)] (CDISABLE): Likewise.
32128 [IS_IN (libc)] (CENABLE): Likewise.
32129 [IS_IN (libc)] (CENABLE): Likewise.
32130 [IS_IN (librt)] (CDISABLE): Likewise.
32131 [IS_IN (librt)] (CDISABLE): Likewise.
32132 (SINGLE_THREAD_P): Likewise.
32133 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32134 definition.
32135 (PSEUDO_END): Likewise.
32136 [IS_IN (libpthread)] (CENABLE): Likewise.
32137 [IS_IN (libpthread)] (CDISABLE): Likewise.
32138 [IS_IN (libc)] (CENABLE): Likewise.
32139 [IS_IN (libc)] (CENABLE): Likewise.
32140 [IS_IN (librt)] (CDISABLE): Likewise.
32141 [IS_IN (librt)] (CDISABLE): Likewise.
32142 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32143 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32144 definition.
32145 (PSEUDO_END): Likewise.
32146 [IS_IN (libpthread)] (CENABLE): Likewise.
32147 [IS_IN (libpthread)] (CDISABLE): Likewise.
32148 [IS_IN (libc)] (CENABLE): Likewise.
32149 [IS_IN (libc)] (CENABLE): Likewise.
32150 [IS_IN (librt)] (CDISABLE): Likewise.
32151 [IS_IN (librt)] (CDISABLE): Likewise.
32152 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32153 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32154 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32155 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32156 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32157 definition.
32158 (PSEUDO_END): Likewise.
32159 [IS_IN (libpthread)] (CENABLE): Likewise.
32160 [IS_IN (libpthread)] (CDISABLE): Likewise.
32161 [IS_IN (libc)] (CENABLE): Likewise.
32162 [IS_IN (libc)] (CENABLE): Likewise.
32163 [IS_IN (librt)] (CDISABLE): Likewise.
32164 [IS_IN (librt)] (CDISABLE): Likewise.
32165 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32166 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32167 definition.
32168 (PSEUDO_END): Likewise.
32169 [IS_IN (libpthread)] (CENABLE): Likewise.
32170 [IS_IN (libpthread)] (CDISABLE): Likewise.
32171 [IS_IN (libc)] (CENABLE): Likewise.
32172 [IS_IN (libc)] (CENABLE): Likewise.
32173 [IS_IN (librt)] (CDISABLE): Likewise.
32174 [IS_IN (librt)] (CDISABLE): Likewise.
32175 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32176 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32177 definition.
32178 (PSEUDO_END): Likewise.
32179 [IS_IN (libpthread)] (CENABLE): Likewise.
32180 [IS_IN (libpthread)] (CDISABLE): Likewise.
32181 [IS_IN (libc)] (CENABLE): Likewise.
32182 [IS_IN (libc)] (CENABLE): Likewise.
32183 [IS_IN (librt)] (CDISABLE): Likewise.
32184 [IS_IN (librt)] (CDISABLE): Likewise.
32185 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32186 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32187 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32188 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32189 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32190 definition.
32191 (PSEUDO_END): Likewise.
32192 [IS_IN (libpthread)] (CENABLE): Likewise.
32193 [IS_IN (libpthread)] (CDISABLE): Likewise.
32194 [IS_IN (libc)] (CENABLE): Likewise.
32195 [IS_IN (libc)] (CENABLE): Likewise.
32196 [IS_IN (librt)] (CDISABLE): Likewise.
32197 [IS_IN (librt)] (CDISABLE): Likewise.
32198 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32199 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32200 definition.
32201 (PSEUDO_END): Likewise.
32202 [IS_IN (libpthread)] (CENABLE): Likewise.
32203 [IS_IN (libpthread)] (CDISABLE): Likewise.
32204 [IS_IN (libc)] (CENABLE): Likewise.
32205 [IS_IN (libc)] (CENABLE): Likewise.
32206 [IS_IN (librt)] (CDISABLE): Likewise.
32207 [IS_IN (librt)] (CDISABLE): Likewise.
32208 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32209
32210 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32211
32212 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32213
32214 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32215
32216 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32217
32218 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32219
32220 [BZ #21982]
32221 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32222 middle and outer with size_t instead of int. Repleace %d and
32223 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32224 "MAX (outer, nchars - 64)" to support unsigned outer and
32225 nchars. Also exit loop when outer == 0.
32226
32227 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32228
32229 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32230 * include/signal.h (__sigsuspend_nocancel): Likewise.
32231 * include/time.h (__nanosleep_nocancel): Likewise.
32232 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32233 * login/utmp_file.c: Include non cancellable syscall header.
32234 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32235 prototype.
32236
32237 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32238
32239 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32240 .byte sequences with AVX512F instructions.
32241 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32242 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32243 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32244 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32245 Likewise.
32246 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32247 Likewise.
32248
32249 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32250 Steve Ellcey <sellcey@cavium.com>
32251
32252 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32253 Use PTR_REG macro in cmp instruction.
32254
32255 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32256
32257 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32258 Change the return type of the ifunc resolver to match the return
32259 type of the target function.
32260
32261 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32262
32263 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32264 (preadv64): Likewise.
32265 (pwrite64(: Likewise.
32266 (pwritev64): Likewise.
32267
32268 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32269 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32270 (LOAD_ARGS_0): Likewise.
32271 (LOAD_ARGS_1): Likewise.
32272 (LOAD_ARGS_2): Likewise.
32273 (LOAD_ARGS_3): Likewise.
32274 (LOAD_ARGS_4): Likewise.
32275 (LOAD_ARGS_5): Likewise.
32276 (LOAD_ARGS_6): Likewise.
32277 (LOAD_REGS_0): Likewise.
32278 (LOAD_REGS_1): Likewise.
32279 (LOAD_REGS_2): Likewise.
32280 (LOAD_REGS_3): Likewise.
32281 (LOAD_REGS_4): Likewise.
32282 (LOAD_REGS_5): Likewise.
32283 (LOAD_REGS_6): Likewise.
32284 (ASM_ARGS_0): Likewise.
32285 (ASM_ARGS_1): Likewise.
32286 (ASM_ARGS_2): Likewise.
32287 (ASM_ARGS_3): Likewise.
32288 (ASM_ARGS_4): Likewise.
32289 (ASM_ARGS_5): Likewise.
32290 (ASM_ARGS_6): Likewise.
32291 (LOAD_ARGS_TYPES_1): Likewise.
32292 (LOAD_ARGS_TYPES_2): Likewise.
32293 (LOAD_ARGS_TYPES_3): Likewise.
32294 (LOAD_ARGS_TYPES_4): Likewise.
32295 (LOAD_ARGS_TYPES_5): Likewise.
32296 (LOAD_ARGS_TYPES_6): Likewise.
32297 (LOAD_REGS_TYPES_1): Likewise.
32298 (LOAD_REGS_TYPES_2): Likewise.
32299 (LOAD_REGS_TYPES_3): Likewise.
32300 (LOAD_REGS_TYPES_4): Likewise.
32301 (LOAD_REGS_TYPES_5): Likewise.
32302 (LOAD_REGS_TYPES_6): Likewise.
32303 (TYPEFY): New define.
32304 (ARGIFY): Likewise.
32305 (internal_syscall0): Likewise.
32306 (internal_syscall1): Likewise.
32307 (internal_syscall2): Likewise.
32308 (internal_syscall3): Likewise.
32309 (internal_syscall4): Likewise.
32310 (internal_syscall5): Likewise.
32311 (internal_syscall6): Likewise.
32312 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32313 (INTERNAL_SYSCALL_NCS): Remove define.
32314 (internal_syscall1): Add define.
32315
32316 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32317
32318 * math/w_remainder_compat.c: Remove duplicate inclusion of
32319 math-svid-compat.h.
32320 * math/w_remainderf_compat.c: Likewise.
32321 * math/w_remainderl_compat.c: Likewise.
32322
32323 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32324
32325 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32326
32327 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32328
32329 [BZ #21684]
32330 * math/tgmath.h (__floating_type): Simplify definitions.
32331 (__real_integer_type): New macro.
32332 (__complex_integer_type): Likewise.
32333 (__expr_is_real): Likewise.
32334 (__tgmath_real_type_sub): Update comment to describe handling of
32335 complex types.
32336 (__tgmath_complex_type_sub): New macro.
32337 (__tgmath_complex_type): Likewise.
32338 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32339 (__TGMATH_CF128): Use __expr_is_real.
32340 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32341 __expr_is_real.
32342 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32343 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32344 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32345 integer types.
32346
32347 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32348
32349 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32350 macro.
32351 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32352 alias.
32353 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32354 Likewise.
32355
32356 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32357 nanosleep_not_cancel with __nanosleep_nocancel.
32358 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32359 (__nanosleep_nocancel): New macro.
32360 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32361 function.
32362 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32363 macro.
32364 (__nanosleep_nocancel): New prototype.
32365
32366 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32367 pause_not_cancel with __pause_nocancel.
32368 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32369 (__pause_nocancel): New macro.
32370 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32371 macro.
32372 (__pause_nocancel): New prototype.
32373 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32374
32375 2017-08-22 Martin Sebor <msebor@redhat.com>
32376
32377 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32378 to return a pointer to the same type as the target function.
32379
32380 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32381
32382 [BZ #18822]
32383 [BZ #21986]
32384 * include/printf.h (__printf_fphex): Add attribute_hidden.
32385 (__guess_grouping): New prototype.
32386 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32387 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32388 libc_hidden_proto and libc_hidden_def.
32389 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32390 (__vstrfmon_l): Remove the third argument passed to
32391 __guess_grouping.
32392
32393 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32394
32395 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32396 definition for issignaling that does not rely on __MATH_TG,
32397 since __MATH_TG uses __builtin_types_compatible_p, which is only
32398 available in C mode.
32399 (CFLAGS-test-math-issignaling.cc): New variable.
32400 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32401 * math/test-math-issignaling.cc: New test for C++ implementation
32402 of type-generic issignaling.
32403 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32404 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32405 options of test-math-issignaling on powerpc64le.
32406
32407 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32408
32409 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32410 building libc.a.
32411 (hidden_proto): Likewise.
32412 (hidden_tls_proto): Likewise.
32413 (__hidden_proto): Likewise.
32414
32415 2017-08-22 Florian Weimer <fweimer@redhat.com>
32416
32417 math: Statically link tests of internal functionality.
32418 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32419 atest-exp2.
32420 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32421 (gmp-objs): Remove assignment.
32422 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32423
32424 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32425
32426 [BZ #21987]
32427 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32428 and copy to ...
32429 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32430 ... here.
32431 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32432 ... and here.
32433
32434 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32435 variable definitions above inclusion of ../Rules.
32436
32437 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32438
32439 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32440 case calling __builtin_unreachable.
32441
32442 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32443
32444 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32445 __waitpid_nocancel.
32446 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32447 (__waitpid_nocancel): New macro.
32448 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32449 macro.
32450 (__waitpid_nocancel): Replace macro with a function.
32451 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32452 function.
32453
32454 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32455 __fcntl_nocancel.
32456 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32457 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32458
32459 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32460 __writev_nocancel_nostatus.
32461 (write_call_graph): Likewise.
32462 (write_bb_counts): Likewise.
32463 * resolv/herror.c (herror): Likewise.
32464 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32465 macro.
32466 (__writev_nocancel_nostatus): New macro.
32467 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32468 Remove macro.
32469 (__writev_nocancel_nostatus): New function.
32470
32471 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32472
32473 Revert:
32474 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32475
32476 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32477 building libc.a.
32478 (hidden_proto): Likewise.
32479 (hidden_tls_proto): Likewise.
32480 (__hidden_proto): Likewise.
32481
32482 [BZ #21973]
32483 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32484 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32486 Likewise.
32487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32488 Likewise.
32489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32490 Likewise.
32491 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32492 Likewise.
32493 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32494 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32495 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32496 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32497 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32498 GLIBC_2.0 sqrtl symbol.
32499
32500 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32501 [__USE_MISC] (_LIB_VERSION): Likewise.
32502 [__USE_MISC] (struct exception): Likewise.
32503 [__USE_MISC] (matherr): Likewise.
32504 [__USE_MISC] (DOMAIN): Likewise.
32505 [__USE_MISC] (SING): Likewise.
32506 [__USE_MISC] (OVERFLOW): Likewise.
32507 [__USE_MISC] (UNDERFLOW): Likewise.
32508 [__USE_MISC] (TLOSS): Likewise.
32509 [__USE_MISC] (PLOSS): Likewise.
32510 [__USE_MISC] (HUGE): Likewise.
32511 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32512 * math/math-svid-compat.h: New file.
32513 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32514 and matherrl.
32515 * include/math.h [!_ISOMAC] (__matherr): Remove.
32516 * manual/arith.texi (FP Exceptions): Do not document matherr.
32517 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32518 (tests-internal): New variable.
32519 (install-lib): Do not add libieee.a.
32520 (non-lib.a): Likewise.
32521 (extra-objs): Do not add libieee.a and ieee-math.o.
32522 (CPPFLAGS-s_lib_version.c): Remove variable.
32523 ($(objpfx)libieee.a): Remove rule.
32524 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32525 * math/ieee-math.c: Remove.
32526 * math/libm-test-support.c (matherr): Remove.
32527 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32528 and license notices. Include <math-svid-compat.h> and
32529 <shlib-compat.h>.
32530 (matherr): Undefine as macro. Use compat_symbol_reference.
32531 (_LIB_VERSION): Likewise.
32532 * math/test-matherr-2.c: New file.
32533 * math/test-matherr-3.c: Likewise.
32534 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32535 declaration.
32536 (__kernel_standard_f): Likewise.
32537 (__kernel_standard_l): Likewise.
32538 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32539 <math_private.h>. Include <math-svid-compat.h>.
32540 (_LIB_VERSION): Undefine as macro.
32541 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32542 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32543 [LIBM_SVID_COMPAT], use compat_symbol.
32544 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32545 <math_private.h>. Include <math-svid-compat.h>.
32546 (matherr): Undefine as macro.
32547 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32548 compat_symbol.
32549 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32550 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32551 compat_symbol_reference.
32552 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32553 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32554 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32555 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32556 (MATHERR_D): Remove declaration.
32557 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32558 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32559 [LIBM_BUILD] (pmatherrf): Likewise.
32560 [LIBM_BUILD] (pmatherr): Likewise.
32561 [LIBM_BUILD] (pmatherrl): Likewise.
32562 (DOMAIN): Likewise.
32563 (SING): Likewise.
32564 (OVERFLOW): Likewise.
32565 (UNDERFLOW): Likewise.
32566 (TLOSS): Likewise.
32567 (PLOSS): Likewise.
32568 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32569 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32570 compat_symbol.
32571 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32572 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32573 compat_symbol.
32574 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32575 * math/w_acos_compat.c: Likewise.
32576 * math/w_acosf_compat.c: Likewise.
32577 * math/w_acosh_compat.c: Likewise.
32578 * math/w_acoshf_compat.c: Likewise.
32579 * math/w_acoshl_compat.c: Likewise.
32580 * math/w_acosl_compat.c: Likewise.
32581 * math/w_asin_compat.c: Likewise.
32582 * math/w_asinf_compat.c: Likewise.
32583 * math/w_asinl_compat.c: Likewise.
32584 * math/w_atan2_compat.c: Likewise.
32585 * math/w_atan2f_compat.c: Likewise.
32586 * math/w_atan2l_compat.c: Likewise.
32587 * math/w_atanh_compat.c: Likewise.
32588 * math/w_atanhf_compat.c: Likewise.
32589 * math/w_atanhl_compat.c: Likewise.
32590 * math/w_cosh_compat.c: Likewise.
32591 * math/w_coshf_compat.c: Likewise.
32592 * math/w_coshl_compat.c: Likewise.
32593 * math/w_exp10_compat.c: Likewise.
32594 * math/w_exp10f_compat.c: Likewise.
32595 * math/w_exp10l_compat.c: Likewise.
32596 * math/w_exp2_compat.c: Likewise.
32597 * math/w_exp2f_compat.c: Likewise.
32598 * math/w_exp2l_compat.c: Likewise.
32599 * math/w_fmod_compat.c: Likewise.
32600 * math/w_fmodf_compat.c: Likewise.
32601 * math/w_fmodl_compat.c: Likewise.
32602 * math/w_hypot_compat.c: Likewise.
32603 * math/w_hypotf_compat.c: Likewise.
32604 * math/w_hypotl_compat.c: Likewise.
32605 * math/w_j0_compat.c: Likewise.
32606 * math/w_j0f_compat.c: Likewise.
32607 * math/w_j0l_compat.c: Likewise.
32608 * math/w_j1_compat.c: Likewise.
32609 * math/w_j1f_compat.c: Likewise.
32610 * math/w_j1l_compat.c: Likewise.
32611 * math/w_jn_compat.c: Likewise.
32612 * math/w_jnf_compat.c: Likewise.
32613 * math/w_jnl_compat.c: Likewise.
32614 * math/w_lgamma_main.c: Likewise.
32615 * math/w_lgamma_r_compat.c: Likewise.
32616 * math/w_lgammaf_main.c: Likewise.
32617 * math/w_lgammaf_r_compat.c: Likewise.
32618 * math/w_lgammal_main.c: Likewise.
32619 * math/w_lgammal_r_compat.c: Likewise.
32620 * math/w_log10_compat.c: Likewise.
32621 * math/w_log10f_compat.c: Likewise.
32622 * math/w_log10l_compat.c: Likewise.
32623 * math/w_log2_compat.c: Likewise.
32624 * math/w_log2f_compat.c: Likewise.
32625 * math/w_log2l_compat.c: Likewise.
32626 * math/w_log_compat.c: Likewise.
32627 * math/w_logf_compat.c: Likewise.
32628 * math/w_logl_compat.c: Likewise.
32629 * math/w_pow_compat.c: Likewise.
32630 * math/w_powf_compat.c: Likewise.
32631 * math/w_powl_compat.c: Likewise.
32632 * math/w_remainder_compat.c: Likewise.
32633 * math/w_remainderf_compat.c: Likewise.
32634 * math/w_remainderl_compat.c: Likewise.
32635 * math/w_scalb_compat.c: Likewise.
32636 * math/w_scalbf_compat.c: Likewise.
32637 * math/w_scalbl_compat.c: Likewise.
32638 * math/w_sinh_compat.c: Likewise.
32639 * math/w_sinhf_compat.c: Likewise.
32640 * math/w_sinhl_compat.c: Likewise.
32641 * math/w_sqrt_compat.c: Likewise.
32642 * math/w_sqrtf_compat.c: Likewise.
32643 * math/w_sqrtl_compat.c: Likewise.
32644 * math/w_tgamma_compat.c: Likewise.
32645 * math/w_tgammaf_compat.c: Likewise.
32646 * math/w_tgammal_compat.c: Likewise.
32647 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32648 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32649 * sysdeps/ieee754/k_standard.c: Likewise.
32650 * sysdeps/ieee754/k_standardf.c: Likewise.
32651 * sysdeps/ieee754/k_standardl.c: Likewise.
32652 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32653 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32654 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32655 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32656 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32657 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32658 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32659 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32660 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32661 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32662 Likewise.
32663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32664 Likewise.
32665 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32666 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32667 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32668 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32669
32670 2017-08-21 Florian Weimer <fweimer@redhat.com>
32671
32672 [BZ #21864]
32673 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32674 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32675 Move before inclusion of ../Rules.
32676
32677 2017-08-21 Florian Weimer <fweimer@redhat.com>
32678
32679 [BZ #21972]
32680 * assert/assert.h (assert): Use static_cast (bool) for C++.
32681 Use the ternary operator in the warning branch for GNU C.
32682 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32683 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32684 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32685 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32686 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32687
32688 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32689
32690 [BZ #18822]
32691 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32692 (__syscall_clock_gettime): Add attribute_hidden.
32693 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32694 (__start_context): Likewise.
32695
32696 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32697
32698 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32699 building libc.a.
32700 (hidden_proto): Likewise.
32701 (hidden_tls_proto): Likewise.
32702 (__hidden_proto): Likewise.
32703
32704 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32705
32706 * include/libc-symbols.h (attribute_hidden): Enable hidden
32707 visibility in libc.a compiled with PIE.
32708
32709 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32710
32711 [BZ #18822]
32712 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32713 Add attribute_hidden.
32714
32715 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32716
32717 [BZ #21864]
32718 * Makerules (all-nonlib): Add $(others-extras).
32719 * catgets/Makefile (others-extras): New.
32720 * elf/Makefile (others-extras): Likewise.
32721 * nss/Makefile (others-extras): Likewise.
32722
32723 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32724
32725 [BZ #18822]
32726 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32727 * elf/dl-open.c: Include <libc-internal.h>.
32728 (__libc_multiple_libcs): Removed.
32729 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32730 <hp-timing.h>.
32731 * include/libc-internal.h (__libc_multiple_libcs): New.
32732 * misc/sbrk.c: Include <libc-internal.h>.
32733 (__libc_multiple_libcs): Removed.
32734
32735 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32736
32737 [BZ #18822]
32738 * grp/initgroups.c (__nss_group_database): Removed.
32739 (__nss_initgroups_database): Likewise.
32740 * nscd/gai.c (__nss_hosts_database): Likewise.
32741 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32742 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32743 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32744 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32745 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32746 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32747 attribute_hidden.
32748 * nss/nsswitch.c (__nss_database_custom): Define only if
32749 USE_NSCD is defined.
32750 (__nss_configure_lookup): Use __nss_database_custom only if
32751 USE_NSCD is defined.
32752 * nss/nsswitch.h (__nss_database_custom): Declare only if
32753 USE_NSCD is defined. Add attribute_hidden.
32754 (__nss_setent): Add attribute_hidden.
32755 (__nss_endent): Likewise.
32756 (__nss_getent_r): Likewise.
32757 (__nss_getent): Likewise.
32758 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32759
32760 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32761
32762 [BZ #18822]
32763 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32764 libc_hidden_proto and libc_hidden_def.
32765
32766 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32767
32768 [BZ #18822]
32769 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32770 Add libc_hidden_proto.
32771 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32772 Add libc_hidden_def.
32773
32774 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32775
32776 [BZ #21974]
32777 * gmon/Makefile (routines): Remove bb_init_func and
32778 bb_exit_func.
32779 (elide-routines.os): Removed.
32780 * gmon/bb_exit_func.c: Likewise.
32781 * gmon/bb_init_func.c: Likewise.
32782 * include/sys/gmon.h (__bb): Likewise.
32783 (__bb_init_func): Likewise.
32784 (__bb_exit_func): Likewise.
32785 * sysdeps/alpha/bb_init_func.S: Likewise.
32786
32787 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32788
32789 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32790 * include/setjmp.h (____longjmp_chk): Here. Add
32791 attribute_hidden.
32792
32793 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32794
32795 [BZ #18822]
32796 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32797 attribute_hidden.
32798 (__strspn_sse2): Likewise.
32799
32800 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32801
32802 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32803 (close_not_cancel_no_status): Likewise.
32804 (__close_nocancel): New macro.
32805 (__close_nocancel_nostatus): Likewise.
32806 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32807 macro.
32808 (close_not_cancel): Likewise.
32809 (close_not_cancel_no_status): Likewise.
32810 (__close_nocancel): New prototype.
32811 (__close_nocancel_nostatus): New function.
32812 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32813 * catgets/open_catalog.c (__open_catalog): Replace
32814 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32815 * gmon/gmon.c (write_gmon): Likewise.
32816 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32817 * intl/loadmsgcat.c (close): Likewise.
32818 * io/ftw.c (open_dir_stream): Likewise.
32819 (ftw_startup): Likewise.
32820 * libio/fileops.c (_IO_file_open): Likewise.
32821 (_IO_file_close_mmap): Likewise.
32822 (_IO_file_close): Likewise.
32823 * libio/iopopen.c (_IO_dup2): Likewise.
32824 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32825 * locale/loadlocale.c (_nl_load_locale): Likewise.
32826 * login/utmp_file.c (pututline_file): Likewise.
32827 (endutent_file): Likewise.
32828 * misc/daemon.c (daemon): Likewise.
32829 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32830 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32831 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32832 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32833 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32834 * nscd/nscd_helper.c (open_socket): Likewise.
32835 (__nscd_open_socket): Likewise.
32836 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32837 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32838 (__nscd_innetgr): Likewise.
32839 * nss/nss_db/db-open.c (internal_setent): Likewise.
32840 * resolv/res-close.c (__res_iclose): Likewise.
32841 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32842 * sysdeps/posix/closedir.c (__closedir): Likewise.
32843 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32844 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32845 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32846 (opendir_tail): Likewise.
32847 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32848 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32849 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32850 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32851 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32852 (gethostid): Likewise.
32853 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32854 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32855 Likewise.
32856 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32857 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32858 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32859 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32860 Likewise.
32861 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32862 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32863 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32864 Likewise.
32865 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32866 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32867 Likewise.
32868 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32869 Likewise.
32870 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32871 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32872 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32873 __close_nocancel.
32874
32875 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32876 (openat_not_cancel_3): Likewise.
32877 (openat64_not_cancel_3): Likewise).
32878 (openat_not_cancel_3): Likewise).
32879 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32880 macro.
32881 (openat_not_cancel_3): Likewise.
32882 (openat64_not_cancel): Likewise.
32883 (openat64_not_cancel_3): Likewise.
32884 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32885 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32886 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32887 __open{64}_nocancel.
32888 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32889 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32890 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32891
32892 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32893
32894 [BZ #18822]
32895 * include/argz.h (__argz_create_sep): New function prototype.
32896 (__argz_append): Likewise.
32897 (__argz_add): Likewise.
32898 (__argz_add_sep): Likewise.
32899 (__argz_delete): Likewise.
32900 (__argz_insert): Likewise.
32901 (__argz_replace): Likewise.
32902 * string/argz.h (__argz_create_sep): Removed.
32903 (__argz_append): Likewise.
32904 (__argz_add): Likewise.
32905 (__argz_add_sep): Likewise.
32906 (__argz_delete): Likewise.
32907 (__argz_insert): Likewise.
32908 (__argz_replace): Likewise.
32909
32910 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32911
32912 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32913 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32914 (GNU_PROPERTY_STACK_SIZE): Likewie.
32915 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32916 (GNU_PROPERTY_LOPROC): Likewise.
32917 (GNU_PROPERTY_HIPROC): Likewise.
32918 (GNU_PROPERTY_LOUSER): Likewise.
32919 (GNU_PROPERTY_HIUSER): Likewise.
32920 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32921 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32922 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32923 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32924 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32925 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32926 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32927 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32928 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32929 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32930 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32931 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32932 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32933 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32934 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32935 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32936 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32937 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32938 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32939 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32940 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32941 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32942 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32943
32944 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32945
32946 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32947 in C++ mode.
32948
32949 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32950
32951 [BZ #21930]
32952 * math/math.h (isinf): Check if in C or C++ mode before using
32953 __builtin_types_compatible_p, since this is a C mode feature.
32954
32955 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32956
32957 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32958 (__write_nocancel): New macro.
32959 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32960 Rewrite as a function prototype.
32961 (write_not_cancel): Remove macro.
32962 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32963 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32964 (write_gmon): Likewise.
32965 * libio/fileops.c (_IO_new_file_write): Likewise.
32966 * login/utmp_file.c (pututline_file): Likewise.
32967 (updwtmp_file): Likewise.
32968 * stdio-common/psiginfo.c (psiginfo): Likewise.
32969 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32970 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32971 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32972 Likewise.
32973 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32974 Likewise.
32975
32976 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32977 (__read_nocancel): New macro.
32978 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32979 __read_nocancel.
32980 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32981 macro.
32982 (__read_nocancel): New prototype.
32983 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32984 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32985 with __read_nocancel.
32986 * intl/loadmsgcat.c (read): Likewise.
32987 * libio/fileops.c (_IO_file_read): Likewise.
32988 * locale/loadlocale.c (_nl_load_locale): Likewise.
32989 * login/utmp_file.c (getutent_r_file): Likewise.
32990 (internal_getut_r): Likewise.
32991 (getutline_r_file): Likewise.
32992 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32993 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32994 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32995 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32996 Likewise.
32997 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32998 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32999 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33000 Likewise.
33001 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33002 Likewise.
33003 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33004 Likewise.
33005 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33006 Likewise.
33007 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33008
33009 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33010
33011 [BZ #21966]
33012 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33013 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33014 usable.
33015
33016 2017-08-17 DJ Delorie <dj@redhat.com>
33017
33018 * bug17079.c: Update to new test harness.
33019 * test-digits-dots.c: Likewise.
33020 * test-netdb.c: Likewise.
33021 * tst-field.c: Likewise.
33022 * tst-nss-getpwent.c: Likewise.
33023 * tst-nss-static.c: Likewise.
33024 * tst-nss-test1.c: Likewise.
33025 * tst-nss-test2.c: Likewise.
33026 * tst-nss-test3.c: Likewise.
33027 * tst-nss-test4.c: Likewise.
33028 * tst-nss-test5.c: Likewise.
33029
33030 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33031
33032 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33033 (open_not_cancel_2): Likewise.
33034 (open_nocancel): New macro.
33035 (open64_nocancel): Likewise.
33036 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33037 (open_not_cancel_2): Likewise.
33038 (__open_nocancel): New prototype.
33039 (__open64_nocancel): Likewise.
33040 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33041 __open_nocancel.
33042 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33043 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33044 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33045 with __open_nocancel.
33046 * csu/check_fds.c (check_one_fd): Likewise.
33047 * gmon/gmon.c (write_gmon): Likewise.
33048 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33049 * intl/loadmsgcat.c (open): Likewise.
33050 * libio/fileops.c (_IO_file_open): Likewise.
33051 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33052 * locale/loadlocale.c (_nl_load_locale): Likewise.
33053 * login/utmp_file.c (setutent_file): Likewise.
33054 * misc/daemon.c (daemon): Likewise.
33055 * nss/nss_db/db-open.c (internal_setent): Likewise.
33056 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33057 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33058 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33059 (__opendir): Likewise.
33060 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33061 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33062 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33063 (gethostid): Likewise.
33064 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33065 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33066 Likewise.
33067 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33068 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33069 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33070 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33071 Likewise.
33072 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33073 Likewise.
33074 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33075 Likewise.
33076 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33077 Likewise.
33078 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33079 Likewise.
33080 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33081 Likewise.
33082 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33083 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33084
33085 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33086
33087 * benchtests/bench-skeleton.c (main): Add support for
33088 latency benchmarking.
33089 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33090
33091 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33092
33093 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33094 the startup object.
33095
33096 2017-08-17 Florian Weimer <fweimer@redhat.com>
33097
33098 * include/sys/socket.h (__opensock): Remove internal_function.
33099 * socket/opensock.c (__opensock): Likewise.
33100 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33101
33102 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33103
33104 [BZ #21944]
33105 * signal/bits/types/__sigval_t.h: New file.
33106 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33107 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33108 and define sigval_t using __sigval_t.
33109 * include/bits/types/__sigval_t.h: New file.
33110 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33111 instead of <bits/types/__sigval_t.h>.
33112 (struct sigevent): Use __sigval_t instead of sigval_t.
33113 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33114 instead of <bits/types/__sigval_t.h>.
33115 (siginfo_t): Use __sigval_t instead of sigval_t.
33116 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33117 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33118 (struct sigevent): Use __sigval_t instead of sigval_t.
33119 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33120 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33121 (siginfo_t): Use __sigval_t instead of sigval_t.
33122 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33123
33124 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33125
33126 * NEWS: Remove "[Add new features here]" for 2.27.
33127
33128 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33129
33130 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33131 libc.so.
33132
33133 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33134
33135 * NEWS: Mention x86-64 FMA optimization.
33136
33137 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33138
33139 [BZ #21912]
33140 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33141 Add e_expf-fma.
33142 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33143 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33144 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33145
33146 2017-08-16 Andreas Schwab <schwab@suse.de>
33147
33148 [BZ #16750]
33149 CVE-2009-5064
33150 * elf/ldd.bash.in: Never run file directly.
33151
33152 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33153
33154 [BZ #21955]
33155 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33156 (L(SP_INF_0)): Likewise.
33157
33158 2017-08-15 Florian Weimer <fweimer@redhat.com>
33159
33160 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33161 run-built-tests.
33162
33163 2017-08-15 Florian Weimer <fweimer@redhat.com>
33164
33165 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33166 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33167 BROKEN_THREAD_SIGNALS code.
33168 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33169 request_list): Remove caller_pid member used for
33170 BROKEN_THREAD_SIGNALS.
33171 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33172 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33173 Remove BROKEN_THREAD_SIGNALS support.
33174 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33175 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33176
33177 2017-08-15 Florian Weimer <fweimer@redhat.com>
33178
33179 * gmon/Makefile (tests): Add tst-gmon.
33180 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33181 Set.
33182 (tests-special): Add tst-gmon-prof.out.
33183 (tst-gmon.out): Depend on clean-tst-gmon-data.
33184 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33185 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33186 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33187 startup object.
33188 * aclocal.m4 (GPROF): Set and substitute.
33189 * config.amke.in (GPROF): Set.
33190 * configure: Regenerate.
33191
33192 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33193
33194 * elf/elf.h A (NT_PPC_TAR): New macro.
33195 (NT_PPC_PPR): Likewise.
33196 (NT_PPC_DSCR): Likewise.
33197 (NT_PPC_EBB): Likewise.
33198 (NT_PPC_PMU): Likewise.
33199 (NT_PPC_TM_CGPR): Likewise.
33200 (NT_PPC_TM_CFPR): Likewise.
33201 (NT_PPC_TM_CVMX): Likewise.
33202 (NT_PPC_TM_CVSX): Likewise.
33203 (NT_PPC_TM_SPR): Likewise.
33204 (NT_PPC_TM_CTAR): Likewise.
33205 (NT_PPC_TM_CPPR): Likewise.
33206 (NT_PPC_TM_CDSCR): Likewise.
33207
33208 2017-08-15 Florian Weimer <fweimer@redhat.com>
33209
33210 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33211 regparm (2) instead of internal_function.
33212 (_MCOUNT_DECL): Adjust.
33213
33214 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33215
33216 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33217 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33218
33219 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33220
33221 * conform/data/sys/wait.h-data (si_value): Do not expect for
33222 XPG42.
33223
33224 2017-08-14 Florian Weimer <fweimer@redhat.com>
33225
33226 [BZ #21962]
33227 NSS: Create stubs for accidentally exported lookup functions.
33228 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33229 Remove declaration.
33230 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33231 (ether_hostton): Call __nss_ethers_lookup2 instead.
33232 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33233 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33234 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33235 (setup): Call __nss_netgroup_lookup2 instead.
33236 * nss/Makefile (routines): Add compat-lookup.
33237 * nss/Versions (GLIBC_2.27): Add symbol version.
33238 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33239 (DB_COMPAT_FCT): Remove.
33240 * nss/compat-lookup.c: New file.
33241 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33242 from databases.def.
33243 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33244 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33245 (netname2user): Call __nss_publickey_lookup2 instead.
33246 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33247 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33248 instead.
33249
33250 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33251 Sergei Trofimovich <slyfox@inbox.ru>
33252
33253 [BZ #21908]
33254 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33255 Rename to MMAP2_PAGE_UNIT.
33256 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33257 __OFF_T_MATCHES_OFF64_T is not defined.
33258 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33259 uint64_t.
33260 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33261 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33262
33263 2017-08-14 Florian Weimer <fweimer@redhat.com>
33264
33265 i386: Do not set internal_function.
33266 * config.h.in (USE_REGPARMS, internal_function): Remove.
33267 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33268 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33269
33270 2017-08-14 Florian Weimer <fweimer@redhat.com>
33271
33272 * elf/dl-init.c (_dl_init): Remove internal_function.
33273 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33274 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33275
33276 2017-08-14 Florian Weimer <fweimer@redhat.com>
33277
33278 * elf/rtld.c (_dl_start): Remove internal_function.
33279 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33280 _dl_start.
33281
33282 2017-08-14 Florian Weimer <fweimer@redhat.com>
33283
33284 * elf/dl-fini.c (_dl_fini): Remove internal_function
33285 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33286
33287 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33288
33289 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33290 (bit_cpu_SHSTK): Likewise.
33291 (index_cpu_IBT): Likewise.
33292 (index_cpu_SHSTK): Likewise.
33293 (reg_IBT): Likewise.
33294 (reg_SHSTK): Likewise.
33295 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33296 Handle index_cpu_IBT and index_cpu_SHSTK.
33297
33298 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33299
33300 [BZ #19982]
33301 * po/fr.po: Fix spelling mistake.
33302
33303 2017-08-13 Florian Weimer <fweimer@redhat.com>
33304
33305 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33306 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33307 (_dl_catch_error, _dl_receive_error): Likewise.
33308 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33309 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33310 (_dl_deallocate_tls): Likewise.
33311 * include/dlfcn.h (_dl_addr): Likewise.
33312 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33313 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33314 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33315 Likewise.
33316
33317 2017-08-13 Florian Weimer <fweimer@redhat.com>
33318
33319 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33320 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33321 internal_function.
33322 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33323
33324 2017-08-13 Florian Weimer <fweimer@redhat.com>
33325
33326 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33327 internal_function.
33328 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33329 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33330 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33331 internal_function from _dl_make_stack_executable_hook member.
33332 (_dl_make_stack_executable): Remove internal_function.
33333 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33334 Likewise.
33335 * sysdeps/unix/sysv/linux/dl-execstack.c
33336 (_dl_make_stack_executable): Likewise.
33337
33338 2017-08-13 Florian Weimer <fweimer@redhat.com>
33339
33340 * sysdeps/unix/sysv/linux/netlinkaccess.h
33341 (__netlink_assert_response): Remove internal_function.
33342 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33343 (__netlink_assert_response): Likewise.
33344
33345 2017-08-13 Florian Weimer <fweimer@redhat.com>
33346
33347 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33348 internal_function.
33349 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33350
33351 2017-08-13 Florian Weimer <fweimer@redhat.com>
33352
33353 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33354 internal_function.
33355 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33356 * inet/netgroup.h (__internal_setnetgrent)
33357 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33358 * inet/getnetgrent_r.c (__internal_setnetgrent)
33359 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33360 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33361 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33362 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33363 * nss/nsswitch.h (db_lookup_function): Likewise.
33364
33365 2017-08-13 Florian Weimer <fweimer@redhat.com>
33366
33367 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33368 Remove internal_function.
33369 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33370 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33371 message argument on the stack.
33372 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33373 Likeweise.
33374
33375 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33376
33377 Adapt test case data to the changes in the thousands
33378 separators.
33379
33380 [BZ #20756]
33381 * localedata/tst-langinfo.sh: Adapt test case data.
33382 * stdlib/tst-strfmon_l.c: Likewise.
33383 * stdlib/tst-strtod4.c: Likewise.
33384 * stdlib/tst-strtod5i.c: Likewise.
33385
33386 2017-08-11 Florian Weimer <fweimer@redhat.com>
33387
33388 [BZ #21242]
33389 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33390 Suppress pedantic warning resulting from statement expression.
33391 (__ASSERT_FUNCTION): Add missing __extension__.
33392
33393 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33394
33395 * benchtests/bench-memmove-large.c: Print output in JSON
33396 format.
33397 * benchtests/bench-memmove.c: Likewise.
33398
33399 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33400 * benchtests/bench-memchr.c (do_one_test): Likewise.
33401 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33402 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33403 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33404 * benchtests/bench-memmove.c (do_one_test): Likewise.
33405 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33406 * benchtests/bench-memset.c (do_one_test): Likewise.
33407 * benchtests/bench-string.h (test_init): Remove memsets.
33408
33409 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33410
33411 * manual/lang.texi
33412 (Computing the Width of an Integer Data Type): Rename section to
33413 "Width of an Integer Type". Remove inaccurate statement regarding
33414 lack of C language facilities for determining width of integer
33415 types, and reorder content to improve flow and context of
33416 discussion.
33417
33418 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33419
33420 * lang.texi (va_copy): Change standard from ISO to C99.
33421 (__va_copy): Add standard and header annotation.
33422 Update description for clarity of origins and current use.
33423
33424 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33425
33426 [BZ #21941]
33427 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33428 xssqrtqp requires operands to be in Vector Registers
33429 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33430 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33431 (__ieee754_sqrtf128): Likewise.
33432
33433 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33434
33435 * sysdeps/aarch64/memcmp.S (memcmp):
33436 Rewrite of optimized memcmp.
33437
33438 2017-08-10 Florian Weimer <fweimer@redhat.com>
33439
33440 Introduce ld.so exceptions.
33441 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33442 (_dl_exception_create, _dl_exception_create_format)
33443 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33444 (_dl_catch_exception): Declare.
33445 (_dl_catch_error): Update comment.
33446 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33447 errstring, malloced members with exception member.
33448 (_dl_out_of_memory): Remove.
33449 (fatal_error): New function, extracted from _dl_signal_error.
33450 (_dl_signal_exception, _dl_signal_cexception): New functions.
33451 (_dl_signal_error): Call _dl_exception_create to allocate an
33452 exception object.
33453 (_dl_catch_exception): New function, based on _dl_catch_error.
33454 (_dl_catch_error): Implement using _dl_catch_exception.
33455 * elf/dl-exception.c: New file.
33456 * elf/Makefile (dl-routines): Add dl-exception.
33457 (elide-routines.os): Likewise.
33458 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33459 _dl_exception_create_format, _dl_exception_free.
33460 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33461 _dl_signal_exception.
33462 * elf/dl-lookup.c (make_string): Remove.
33463 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33464 _dl_signal_cexception, _dl_exception_free.
33465 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33466 _dl_signal_exception.
33467 * elf/dl-sym.c (do_sym): Likewise.
33468 * elf/dl-version.c (make_string): Remove.
33469 (match_symbol): Use _dl_exception_create_format,
33470 _dl_signal_cexception, _dl_exception_free.
33471 (_dl_check_map_versions): Likewise.
33472 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33473 _dl_catch_exception.
33474 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33475 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33476 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33477 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33478 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33479 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33480 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33481 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33482 Likewise.
33483 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33485 (ld.so): Likewise.
33486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33487 (ld.so): Likewise.
33488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33489 Likewise.
33490 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33491 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33492 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33493 Likewise.
33494 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33495 Likewise.
33496 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33497
33498 2017-08-10 Florian Weimer <fweimer@redhat.com>
33499
33500 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33501 attribute_hidden, internal_function.
33502 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33503 internal_function.
33504
33505 2017-08-10 Florian Weimer <fweimer@redhat.com>
33506
33507 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33508 function which calls __builtin_unreachable.
33509
33510 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33511
33512 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33513 Indian monetary formatting
33514 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33515 test cases.
33516
33517 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33518
33519 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33520 Fix typo in comment.
33521
33522 [BZ #21928]
33523 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33524 PTRACE_SEIZE_DEVEL): Remove.
33525 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33526 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33527 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33528 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33529 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33530
33531 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33532
33533 * posix/bits/types.h (__qaddr_t): Remove.
33534
33535 [BZ #21457]
33536 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33537 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33538 __glibc_reserved1.
33539 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33540 (ucontext_t): Use __ctx with uc_flags.
33541 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33542 (__ctxt): Likewise.
33543 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33544 __glibc_reserved1.
33545 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33546 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33547 __glibc_reserved1.
33548 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33549 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33550 __glibc_reserved1.
33551 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33552 macro.
33553 (ucontext_t): Use __ctx with uc_flags.
33554 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33555 (ucontext_t): Use __ctx with uc_flags.
33556 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33557 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33558 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33559 (ucontext_t): Use __ctx with uc_flags.
33560 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33561 undefine further down.
33562 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33563 __glibc_reserved1.
33564 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33565 undefine further down.
33566 (ucontext_t): Use __ctx with uc_flags.
33567 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33568 undefine further down.
33569 (ucontext_t): Use __ctx with uc_flags.
33570 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33571 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33572 Rename uc_pad to __glibc_reserved1.
33573 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33574 undefine further down.
33575 (ucontext_t): Use __ctx with uc_flags.
33576 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33577 further down.
33578 (ucontext_t): Use __ctx with uc_flags.
33579 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33580 __ctx with uc_flags.
33581 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33582 (ucontext_t): Use __ctx with uc_flags.
33583 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33584 __ctx with uc_flags.
33585
33586 2017-08-09 Florian Weimer <fweimer@redhat.com>
33587
33588 [BZ #21932]
33589 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33590 before early return.
33591
33592 2017-08-09 Andreas Schwab <schwab@suse.de>
33593
33594 [BZ #21041]
33595 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33596 renamed alias.
33597
33598 [BZ #21041]
33599 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33600 tst-compat-forwarder.
33601 (modules-names): Add tst-compat-forwarder-mod.
33602 ($(objpfx)tst-compat-forwarder): Depend on
33603 $(objpfx)tst-compat-forwarder-mod.so.
33604 * nptl/tst-compat-forwarder.c: New file.
33605 * nptl/tst-compat-forwarder-mod.c: New file.
33606
33607 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33608
33609 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33610 comments.
33611
33612 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33613 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33614 memcpy_falkor.
33615 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33616 Bump.
33617 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33618 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33619 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33620 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33621 Add falkor.
33622 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33623 New macro.
33624
33625 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33626
33627 [BZ #759]
33628 * manual/setjmp.texi (getcontex): Document uc_stack value
33629 compatibility differences.
33630
33631 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33632
33633 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33634 (old_malloc_hook): Likewise.
33635 (old_memalign_hook): Likewise.
33636 (old_realloc_hook): Likewise.
33637 (struct hdr): Likewise.
33638 (flood): Likewise.
33639 (freehook): Likewise.
33640 (mallochook): Likewise.
33641 (memalignhook): Likewise.
33642 (reallochook): Likewise.
33643 (mprobe): Likewise.
33644 * malloc/mtrace.c (mallwatch): Likewise.
33645 (tr_old_free_hook): Likewise.
33646 (tr_old_malloc_hook): Likewise.
33647 (tr_old_realloc_hook): Likewise.
33648 (tr_old_memalign_hook): Likewise.
33649 (tr_where): Likewise.
33650 (lock_and_info): Likewise.
33651 (tr_freehook): Likewise.
33652 (tr_mallochook): Likewise.
33653 (tr_reallochook): Likewise.
33654 (tr_memalignhook): Likewise.
33655 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33656 * misc/mmap.c (__mmap): Likewise.
33657 * misc/mmap64.c (__mmap64): Likewise.
33658 * misc/mprotect.c (__mprotect): Likewise.
33659 * misc/msync.c (msync): Likewise.
33660 * misc/munmap.c (__munmap): Likewise.
33661 * posix/posix_madvise.c (posix_madvise): Likewise.
33662 * socket/send.c (__send): Likewise.
33663 * socket/sendto.c (__sendto): Likewise.
33664 * socket/setsockopt.c (__setsockopt): Likewise.
33665 * string/memcmp.c (__ptr_t): Remove macro.
33666 (MEMCMP): Use void * instead of ptr_t.
33667 * string/memrchr.c (__ptr_t): Remove macro.
33668 (__memrchr): Use void * instead of ptr_t.
33669 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33670 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33671 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33672 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33673 * sysdeps/mach/msync.c (msync): Likewise.
33674 * sysdeps/mach/munmap.c (__munmap): Likewise.
33675 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33676 Likewise.
33677 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33678 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33679 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33680 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33681 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33682 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33683 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33684 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33685 Likewise.
33686 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33687 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33688 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33689 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33690 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33691 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33692 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33693 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33694 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33695 Likewise.
33696 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33697 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33698 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33699 (MEMCMP): Use void * instead of ptr_t.
33700 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33701 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33702
33703 2017-08-08 Florian Weimer <fweimer@redhat.com>
33704
33705 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33706 return statement.
33707
33708 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33709
33710 [BZ #21913]
33711 * csu/libc-tls.c: Include <startup.h> first.
33712 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33713 * elf/dl-tunables.c: Include <startup.h> first.
33714 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33715 * sysdeps/generic/startup.h: New file.
33716 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33717 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33718 (I386_USE_SYSENTER): New. Defined to 0.
33719
33720 2017-08-08 Andreas Schwab <schwab@suse.de>
33721
33722 [BZ #21041]
33723 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33724 * nptl/pt-system.c (system): Likewise.
33725
33726 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33727
33728 [BZ #21780]
33729 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33730 EOPNOTSUPP.
33731 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33732 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33733 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33734 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33735 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33736 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33737 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33738
33739 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33740
33741 [BZ #21899]
33742 * bits/sigaction.h (struct sigaction): Define sa_handler and
33743 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33744 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33745 [__USE_XOPEN_EXTENDED].
33746 (SA_RESTART): Likewise.
33747 (SA_NODEFER): Likewise.
33748 (SA_RESETHAND): Likewise.
33749 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33750 (struct sigaction): Define sa_handler and sa_sigaction using union
33751 also for [__USE_XOPEN_EXTENDED].
33752 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33753 [__USE_XOPEN_EXTENDED].
33754 (SA_RESTART): Likewise.
33755 (SA_NODEFER): Likewise.
33756 (SA_RESETHAND): Likewise.
33757 * sysdeps/unix/sysv/linux/bits/sigaction.h
33758 (struct sigaction): Define sa_handler and sa_sigaction using union
33759 also for [__USE_XOPEN_EXTENDED].
33760 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33761 [__USE_XOPEN_EXTENDED].
33762 (SA_RESTART): Likewise.
33763 (SA_NODEFER): Likewise.
33764 (SA_RESETHAND): Likewise.
33765 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33766 (struct sigaction): Define sa_handler and sa_sigaction using union
33767 also for [__USE_XOPEN_EXTENDED].
33768 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33769 [__USE_XOPEN_EXTENDED].
33770 (SA_RESTART): Likewise.
33771 (SA_NODEFER): Likewise.
33772 (SA_RESETHAND): Likewise.
33773 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33774 (struct sigaction): Define sa_handler and sa_sigaction using union
33775 also for [__USE_XOPEN_EXTENDED].
33776 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33777 [__USE_XOPEN_EXTENDED].
33778 (SA_RESTART): Likewise.
33779 (SA_NODEFER): Likewise.
33780 (SA_RESETHAND): Likewise.
33781 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33782 (struct sigaction): Define sa_handler and sa_sigaction using union
33783 also for [__USE_XOPEN_EXTENDED].
33784 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33785 [__USE_XOPEN_EXTENDED].
33786 (SA_RESTART): Likewise.
33787 (SA_NODEFER): Likewise.
33788 (SA_RESETHAND): Likewise.
33789 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33790 (struct sigaction): Define sa_handler and sa_sigaction using union
33791 also for [__USE_XOPEN_EXTENDED].
33792 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33793 [__USE_XOPEN_EXTENDED].
33794 (SA_RESTART): Likewise.
33795 (SA_NODEFER): Likewise.
33796 (SA_RESETHAND): Likewise.
33797 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33798 (struct sigaction): Define sa_handler and sa_sigaction using union
33799 also for [__USE_XOPEN_EXTENDED].
33800 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33801 [__USE_XOPEN_EXTENDED].
33802 (SA_RESTART): Likewise.
33803 (SA_NODEFER): Likewise. Define directly rather than as alias.
33804 (SA_RESETHAND): Likewise.
33805 (SA_INTERRUPT): Define only for [__USE_MISC].
33806 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33807 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33808 [__USE_MISC].
33809 (SA_STACK): Define only for [__USE_MISC].
33810 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33811 (struct sigaction): Define sa_handler and sa_sigaction using union
33812 also for [__USE_XOPEN_EXTENDED].
33813 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33814 [__USE_XOPEN_EXTENDED].
33815 (SA_RESTART): Likewise.
33816 (SA_NODEFER): Likewise.
33817 (SA_RESETHAND): Likewise.
33818 (SA_NOPTRACE): Define only for [__USE_MISC].
33819
33820 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33821 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33822 (struct catalog_info): Likewise.
33823 * inet/htontest.c (lo): Likewise.
33824 (foo): Likewise.
33825 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33826 * inet/inet_net.c (inet_network): Likewise.
33827 * inet/inet_netof.c (inet_netof): Likewise.
33828 * inet/rcmd.c (__ivaliduser): Likewise.
33829 (iruserok): Likewise.
33830 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33831 * locale/programs/locale-spec.c (locale_special): Likewise.
33832 * nis/nis_findserv.c (struct findserv_req): Likewise.
33833 (__nis_findfastest_with_timeout): Likewise.
33834 * nss/test-netdb.c (test_network): Likewise.
33835 * resolv/inet_neta.c (inet_neta): Likewise.
33836 * resolv/ns_date.c (ns_datetosecs): Likewise.
33837 (SECS_PER_DAY): Likewise.
33838 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33839 Likewise.
33840 * resolv/res_comp.c (__putlong): Likewise.
33841 (__putshort): Likewise.
33842 (_getlong): Likewise.
33843 (_getshort): Likewise.
33844 * resolv/res_debug.c (p_time): Likewise.
33845 (precsize_ntoa): Likewise.
33846 (precsize_aton): Likewise.
33847 (latlon2ul): Likewise.
33848 (loc_aton): Likewise.
33849 (loc_ntoa): Likewise.
33850 * resolv/res_hconf.c (struct netaddr): Likewise.
33851 (_res_hconf_reorder_addrs): Likewise.
33852 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33853 (clnttcp_control): Likewise.
33854 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33855 (clntudp_control): Likewise.
33856 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33857 (clntunix_control): Likewise.
33858 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33859 * sunrpc/rpc/auth.h (union des_block): Likewise.
33860 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33861 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33862 (xdrrec_create): Likewise.
33863 (xdrrec_endofrecord): Likewise.
33864 (flush_out): Likewise.
33865 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33866 (xdrstdio_putlong): Likewise.
33867 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33868 Likewise.
33869
33870 * misc/sys/cdefs.h (__long_double_t): Remove.
33871 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33872 instead of __long_double_t,
33873 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33874
33875 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33876
33877 * benchtests/scripts/compare_strings.py: Avoid display error when
33878 running on a text terminal.
33879
33880 * benchtests/scripts/compare_strings.py (main): Add an
33881 optional -base option.
33882 (process_results): New argument base_func.
33883
33884 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33885 hardcoding memcpy.
33886 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33887 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33888
33889 2017-08-07 Andreas Schwab <schwab@suse.de>
33890
33891 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33892 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33893 * intl/Makefile ($(objpfx)tst-gettext.out)
33894 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33895 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33896 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33897 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33898 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33899 * posix/Makefile ($(objpfx)globtest.out)
33900 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33901 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33902 ($(objpfx)tst-printf.out): Likewise.
33903 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33904 ($(objpfx)tst-setcontext3.out): Likewise.
33905
33906 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33907
33908 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33909 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33910 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33911 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33912 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33913 and mptan-fma.
33914 (CFLAGS-doasin-fma.c): New.
33915 (CFLAGS-dosincos-fma.c): Likewise.
33916 (CFLAGS-e_asin-fma.c): Likewise.
33917 (CFLAGS-e_atan2-fma.c): Likewise.
33918 (CFLAGS-e_exp-fma.c): Likewise.
33919 (CFLAGS-e_log-fma.c): Likewise.
33920 (CFLAGS-e_pow-fma.c): Likewise.
33921 (CFLAGS-halfulp-fma.c): Likewise.
33922 (CFLAGS-mpa-fma.c): Likewise.
33923 (CFLAGS-mpatan-fma.c): Likewise.
33924 (CFLAGS-mpatan2-fma.c): Likewise.
33925 (CFLAGS-mpexp-fma.c): Likewise.
33926 (CFLAGS-mplog-fma.c): Likewise.
33927 (CFLAGS-mpsqrt-fma.c): Likewise.
33928 (CFLAGS-mptan-fma.c): Likewise.
33929 (CFLAGS-s_atan-fma.c): Likewise.
33930 (CFLAGS-sincos32-fma.c): Likewise.
33931 (CFLAGS-slowexp-fma.c): Likewise.
33932 (CFLAGS-slowpow-fma.c): Likewise.
33933 (CFLAGS-s_sin-fma.c): Likewise.
33934 (CFLAGS-s_tan-fma.c): Likewise.
33935 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33936 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33937 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33938 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33939 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33940 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33941 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33942 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33943 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33944 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33945 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33946 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33947 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33948 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33949 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33950 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33951 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33952 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33953 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33954 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33955 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33956 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33957 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33958 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33959 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33960 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33961 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33962 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33963 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33964 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33965 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33966
33967 2017-08-04 Joseph Myers <joseph@codesourcery.com>
33968
33969 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33970 (min_of_type_f): New macro.
33971 (min_of_type_): Likewise.
33972 (min_of_type_l): Likewise.
33973 (min_of_type_f128): Likewise.
33974 (min_of_type): Define using __MATH_TG and taking an expression
33975 argument.
33976 (math_check_force_underflow): Pass expression instead of type to
33977 min_of_type.
33978 (math_check_force_underflow_nonneg): Likewise.
33979
33980 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33981
33982 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33983 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33984 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33985
33986 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33987
33988 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33989 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33990 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33991 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33992 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33993 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33994 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33995 memmove_chk-nonshared and memset_chk-nonshared
33996 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33997 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33998 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33999 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34000 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34001 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34002 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34003 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34004 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34005 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34006 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34007 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34008 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34009 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34010 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34011 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34012 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34013 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34014 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34015 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34016 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34017 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34018 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34019 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34020 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34021 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34022 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34023 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34024 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34025 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34026 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34027 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34028 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34029 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34030 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34031 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34032 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34033 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34034 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34035 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34036 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34037 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34038 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34039 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34040 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34041 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34042 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34043 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34044 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34045 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34046 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34047 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34048 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34049 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34050 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34051 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34052 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34053 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34054 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34055 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34056 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34057 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34058 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34059 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34060 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34061 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34062 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34063 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34064 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34065 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34066 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34067 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34068 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34069 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34070 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34071 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34072 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34073 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34074 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34075 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34076 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34077 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34078 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34079 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34080 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34081 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34082 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34083 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34084 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34085 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34086 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34087 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34088 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34089 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34090 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34091 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34092 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34093 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34094 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34095 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34096 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34097 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34098 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34099 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34100 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34101 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34102 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34103 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34104
34105 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34106
34107 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34108 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34109 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34110 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34111 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34112 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34113 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34114 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34115 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34116 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34117 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34118 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34119 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34120 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34121 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34122 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34123 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34124 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34125 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34126 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34127 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34128 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34129 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34130 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34131 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34132 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34133 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34134 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34135 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34136 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34137 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34138 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34139 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34140 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34141 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34142 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34143 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34144 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34145 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34146 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34147 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34148 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34149 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34150 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34151 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34152 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34153 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34154 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34155 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34156 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34157 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34158 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34159 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34160 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34161 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34162 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34163 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34164 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34165 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34166 ...
34167 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34168 Don't include <sysdep.h> nor <init-arch.h>.
34169 (_ZGVbN2v_cos): Removed.
34170 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34171 ...
34172 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34173 Don't include <sysdep.h> nor <init-arch.h>.
34174 (_ZGVdN4v_cos): Removed.
34175 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34176 ...
34177 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34178 Don't include <sysdep.h> nor <init-arch.h>.
34179 (_ZGVeN8v_cos): Removed.
34180 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34181 ...
34182 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34183 Don't include <sysdep.h> nor <init-arch.h>.
34184 (_ZGVbN2v_exp): Removed.
34185 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34186 ...
34187 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34188 Don't include <sysdep.h> nor <init-arch.h>.
34189 (_ZGVdN4v_exp): Removed.
34190 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34191 ...
34192 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34193 Don't include <sysdep.h> nor <init-arch.h>.
34194 (_ZGVeN8v_exp): Removed.
34195 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34196 ...
34197 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34198 Don't include <sysdep.h> nor <init-arch.h>.
34199 (_ZGVbN2v_log): Removed.
34200 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34201 ...
34202 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34203 Don't include <sysdep.h> nor <init-arch.h>.
34204 (_ZGVdN4v_log): Removed.
34205 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34206 ...
34207 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34208 Don't include <sysdep.h> nor <init-arch.h>.
34209 (_ZGVeN8v_log): Removed.
34210 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34211 ...
34212 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34213 Don't include <sysdep.h> nor <init-arch.h>.
34214 (_ZGVbN2vv_pow): Removed.
34215 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34216 ...
34217 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34218 Don't include <sysdep.h> nor <init-arch.h>.
34219 (_ZGVdN4vv_pow): Removed.
34220 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34221 ...
34222 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34223 Don't include <sysdep.h> nor <init-arch.h>.
34224 (_ZGVeN8vv_pow): Removed.
34225 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34226 ...
34227 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34228 Don't include <sysdep.h> nor <init-arch.h>.
34229 (_ZGVbN2v_sin): Removed.
34230 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34231 ...
34232 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34233 Don't include <sysdep.h> nor <init-arch.h>.
34234 (_ZGVbN4v_sin): Removed.
34235 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34236 ...
34237 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34238 Don't include <sysdep.h> nor <init-arch.h>.
34239 (_ZGVbN8v_sin): Removed.
34240 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34241 ...
34242 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34243 Don't include <sysdep.h> nor <init-arch.h>.
34244 (_ZGVbN2vvv_sincos): Removed.
34245 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34246 ...
34247 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34248 Don't include <sysdep.h> nor <init-arch.h>.
34249 (_ZGVdN4vvv_sincos): Removed.
34250 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34251 ...
34252 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34253 Don't include <sysdep.h> nor <init-arch.h>.
34254 (_ZGVeN8vvv_sincos): Removed.
34255 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34256 ...
34257 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34258 Don't include <sysdep.h> nor <init-arch.h>.
34259 (_ZGVeN16v_cosf): Removed.
34260 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34261 ...
34262 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34263 Don't include <sysdep.h> nor <init-arch.h>.
34264 (_ZGVbN4v_cosf): Removed.
34265 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34266 ...
34267 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34268 Don't include <sysdep.h> nor <init-arch.h>.
34269 (_ZGVdN8v_cosf): Removed.
34270 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34271 ...
34272 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34273 Don't include <sysdep.h> nor <init-arch.h>.
34274 (_ZGVeN16v_expf): Removed.
34275 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34276 ...
34277 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34278 Don't include <sysdep.h> nor <init-arch.h>.
34279 (_ZGVbN4v_expf): Removed.
34280 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34281 ...
34282 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34283 Don't include <sysdep.h> nor <init-arch.h>.
34284 (_ZGVdN8v_expf): Removed.
34285 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34286 ...
34287 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34288 Don't include <sysdep.h> nor <init-arch.h>.
34289 (_ZGVeN16v_logf): Removed.
34290 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34291 ...
34292 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34293 Don't include <sysdep.h> nor <init-arch.h>.
34294 (_ZGVbN4v_logf): Removed.
34295 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34296 ...
34297 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34298 Don't include <sysdep.h> nor <init-arch.h>.
34299 (_ZGVdN8v_logf): Removed.
34300 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34301 ...
34302 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34303 Don't include <sysdep.h> nor <init-arch.h>.
34304 (_ZGVeN16vv_powf): Removed.
34305 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34306 ...
34307 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34308 Don't include <sysdep.h> nor <init-arch.h>.
34309 (_ZGVbN4vv_powf): Removed.
34310 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34311 ...
34312 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34313 Don't include <sysdep.h> nor <init-arch.h>.
34314 (_ZGVdN8vv_powf): Removed.
34315 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34316 ...
34317 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34318 Don't include <sysdep.h> nor <init-arch.h>.
34319 (_ZGVeN16vvv_sincosf): Removed.
34320 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34321 ...
34322 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34323 Don't include <sysdep.h> nor <init-arch.h>.
34324 (_ZGVbN4vvv_sincosf): Removed.
34325 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34326 ...
34327 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34328 Don't include <sysdep.h> nor <init-arch.h>.
34329 (_ZGVdN8vvv_sincosf): Removed.
34330 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34331 ...
34332 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34333 Don't include <sysdep.h> nor <init-arch.h>.
34334 (_ZGVeN16v_sinf): Removed.
34335 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34336 ...
34337 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34338 Don't include <sysdep.h> nor <init-arch.h>.
34339 (_ZGVbN4v_sinf): Removed.
34340 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34341 ...
34342 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34343 Don't include <sysdep.h> nor <init-arch.h>.
34344 (_ZGVdN8v_sinf): Removed.
34345
34346 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34347
34348 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34349 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34350 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34351 s_rint-sse4_1 and s_rintf-sse4_1.
34352 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34353 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34354 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34355 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34356 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34357 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34358 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34359 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34360 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34361 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34362 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34363 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34364 (__ceil): Removed.
34365 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34366 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34367 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34368 (__ceilf): Removed.
34369 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34370 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34371 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34372 (__floor): Removed.
34373 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34374 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34375 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34376 (__floorf): Removed.
34377 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34378 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34379 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34380 (__nearbyint): Removed.
34381 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34382 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34383 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34384 (__nearbyintf): Removed.
34385 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34386 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34387 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34388 (__rint): Removed.
34389 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34390 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34391 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34392 (__rintf): Removed.
34393
34394 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34395
34396 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34397 SHARED. Avoid dynamic relocation against main in static PIE.
34398
34399 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34400
34401 [BZ #21815]
34402 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34403 (LDFLAGS-tst-prelink): Likewise.
34404
34405 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34406
34407 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34408 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34409 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34410 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34411 (INTERNAL_SYSCALL_NCS): Likewise.
34412 (LOADARGS_1): Likewise.
34413 (LOADARGS_5): Likewise.
34414 (RESTOREARGS_1): Likewise.
34415 (RESTOREARGS_5): Likewise.
34416
34417 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34418
34419 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34420 (MEMPCPY_SYMBOL): Likewise.
34421 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34422 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34423 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34424 in libc.a.
34425 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34426 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34427 Likewise.
34428 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34429 (__hidden_ver1): Don't use in libc.a.
34430 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34431 (__mempcpy): Don't create a weak alias in libc.a.
34432 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34433 libc.a.
34434 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34435 (__hidden_ver1): Don't use in libc.a.
34436
34437 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34438
34439 * config.make.in (have-insert): New.
34440 * configure.ac (libc_cv_insert): New. Set to yes if linker
34441 supports INSERT in linker script.
34442 (AC_SUBST(libc_cv_insert): New.
34443 * configure: Regenerated.
34444 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34445 if $(have-insert) == yes.
34446
34447 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34448
34449 * elf/Makefile (tests): Add vismain only if
34450 $(have-protected-data) == yes.
34451 (tests-pie): Likewise.
34452
34453 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34454
34455 [BZ #21871]
34456 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34457 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34458
34459 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34460
34461 [BZ #21790]
34462 * sysdeps/i386/i586/memset.S
34463 (__memset_zero_constant_len_parameter): Removed.
34464 * sysdeps/i386/i686/memset.S
34465 (__memset_zero_constant_len_parameter): Likewise.
34466 * sysdeps/i386/i686/multiarch/memset_chk.S
34467 (__memset_zero_constant_len_parameter): Likewise.
34468 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34469 Likewise.
34470
34471 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34472
34473 * stdlib/getentropy.c (getentropy): Change return type to int.
34474
34475 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34476
34477 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34478
34479 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34480
34481 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34482 u_intN_t.
34483 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34484 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34485 Likewise.
34486 (ieee_float_shape_type): Likewise.
34487 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34488 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34489 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34490 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34491 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34492 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34493 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34494 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34495 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34496 Likewise.
34497 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34498 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34499 (__ieee754_yn): Likewise.
34500 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34501 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34502 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34503 Likewise.
34504 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34505 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34506 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34507 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34508 (__erfc): Likewise.
34509 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34510 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34511 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34512 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34513 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34514 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34515 Likewise.
34516 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34517 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34518 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34519 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34520 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34521 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34522 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34523 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34524 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34525 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34526 (__issignaling): Likewise.
34527 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34528 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34529 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34530 Likewise.
34531 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34532 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34533 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34534 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34535 Likewise.
34536 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34537 Likewise.
34538 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34539 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34540 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34541 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34542 (__erfcf): Likewise.
34543 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34544 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34545 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34546 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34547 Likewise.
34548 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34549 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34550 Likewise.
34551 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34552 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34553 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34554 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34555 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34556 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34557 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34558 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34559 Likewise.
34560 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34561 Likewise.
34562 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34563 Likewise.
34564 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34565 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34566 Likewise.
34567 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34568 Likewise.
34569 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34570 (__ieee754_ynl): Likewise.
34571 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34572 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34573 Likewise.
34574 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34575 Likewise.
34576 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34577 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34578 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34579 Likewise.
34580 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34581 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34582 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34583 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34584 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34585 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34586 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34587 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34588 Likewise.
34589 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34590 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34591 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34592 Likewise.
34593 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34594 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34595 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34596 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34597 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34598 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34599 Likewise.
34600 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34601 Likewise.
34602 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34603 Likewise.
34604 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34605 Likewise.
34606 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34607 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34608 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34609 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34610 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34611 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34612 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34613 Likewise.
34614 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34615 Likewise.
34616 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34617 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34618 Likewise.
34619 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34620 (__ieee754_remainderl): Likewise.
34621 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34622 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34623 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34624 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34625 Likewise.
34626 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34627 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34628 Likewise.
34629 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34630 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34631 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34632 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34633 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34634 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34635 Likewise.
34636 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34637 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34638 (__ieee754_y0l): Likewise.
34639 (pzero): Likewise.
34640 (qzero): Likewise.
34641 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34642 (__ieee754_y1l): Likewise.
34643 (pone): Likewise.
34644 (qone): Likewise.
34645 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34646 (__ieee754_ynl): Likewise.
34647 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34648 (__ieee754_lgammal_r): Likewise.
34649 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34650 Likewise.
34651 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34652 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34653 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34654 (__erfcl): Likewise.
34655 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34656 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34657 Likewise.
34658 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34659 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34660 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34661 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34662 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34663 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34664 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34665 Likewise.
34666 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34667 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34668 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34669 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34670 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34671 Likewise.
34672 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34673 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34674 Likewise.
34675 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34676 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34677 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34678 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34679 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34680
34681 2017-08-03 Florian Weimer <fweimer@redhat.com>
34682
34683 [BZ #21885]
34684 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34685 on memory allocation failure.
34686
34687 2017-08-03 Alan Modra <amodra@gmail.com>
34688
34689 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34690 tst-tlsopt-powerpc.c with function name change and no test harness.
34691 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34692 Call tls_get_addr_opt_test.
34693 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34694 (modules-names): Add mod-tlsopt-powerpc.
34695 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34696 (tst-tlsopt-powerpc): Depend on .so.
34697 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34698 define. Expand use in TLS_GD and TLS_LD.
34699
34700 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34701
34702 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34703 function.
34704 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34705
34706 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34707
34708 [BZ #21686]
34709 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34710 comparing size with that of double.
34711 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34712 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34713 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34714 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34715 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34716 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34717 unsigned __int128 types.
34718
34719 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34720
34721 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34722 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34723 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34724 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34725 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34726
34727 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34728
34729 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34730
34731 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34732
34733 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34734 of SHARED.
34735 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34736 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34737 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34738 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34739 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34740 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34741 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34742
34743 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34744
34745 [BZ #21685]
34746 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34747 bit-field expressions passed to sizeof or typeof.
34748 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34749 (__TGMATH_F128): Likewise.
34750 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34751 (__TGMATH_CF128): Likewise.
34752 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34753 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34754 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34755 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34756 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34757 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34758 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34759 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34760 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34761 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34762 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34763 (__TGMATH_UNARY_IMAG): Likewise.
34764 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34765 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34766 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34767 type.
34768 (define_vars_for_type): Handle bit_field type specially.
34769 (Tests.__init__): Declare structure with bit-field element.
34770
34771 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34772
34773 [BZ #21791]
34774 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34775 (MEMCPY_CHK): Define only if SHARED is defined.
34776 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34777 Likewise.
34778 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34779 Likewise.
34780
34781 See ChangeLog.18 for earlier changes.