]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
libio: Fix gconv-related memory leak [BZ #24583]
[thirdparty/glibc.git] / ChangeLog
CommitLineData
7e740ab2
FW
12019-05-21 Florian Weimer <fweimer@redhat.com>
2
3 [BZ #24583]
4 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
5 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
6 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
7 instead of __gconv_release_step.
8 * libio/Makefile (tests): Add tst-wfile-gconv.
9 (tests-container): Add tst-wfile-ascii.
10 (tst-wfile-gconv-ENV): Enable mtrace.
11 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
12 (tests-special): Add tst-wfile-gconv-mem.out.
13 (tst-wfile-gconv.out): Depend on locales.
14 (tst-wfile-gconv-mem.out): Add mtrace rule.
15 * libio/tst-wfile-ascii.c: New file.
16 * libio/tst-wfile-gconv.c: Likewise.
17
09e1b0e3
FW
182019-05-20 Florian Weimer <fweimer@redhat.com>
19
20 [BZ #24588]
21 libio: Remove codecvt vtable.
22 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
23 __libio_codecvt.
24 * libio/iofgetpos.c (_IO_new_fgetpos): Call
25 __libio_codecvt_encoding.
26 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
27 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
28 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
29 * libio/iofwide.c (__libio_codecvt): Remove variable.
30 (_IO_fwide): Do not copy __libio_codecvt.
31 (__libio_codecvt_out): Rename from do_out and export.
32 (do_unshift): Remove function.
33 (__libio_codecvt_in): Rename from do_in and export.
34 (__libio_codecvt_encoding): Rename from do_encoding and export.
35 (do_always_noconv): Remove function.
36 (__libio_codecvt_length): Rename from do_length and export.
37 (do_max_length): Remove function.
38 * libio/libio.h (enum __codecvt_result): Remove definition; moved
39 to libioP.h.
40 (struct _IO_codecvt): Remove fields __codecvt_destr,
41 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
42 __codecvt_do_encoding, __codecvt_do_always_noconv,
43 __codecvt_do_length, __codecvt_do_max_length.
44 * libio/libioP.h (enum __codecvt_result): Define; moved from
45 libio.h.
46 (__libio_codecvt_out, __libio_codecvt_in)
47 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
48 functions.
49 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
50 (_IO_wfile_underflow): Call __libio_codecvt_in.
51 (_IO_wfile_underflow): Likewise.
52 (_IO_wfile_underflow_mmap): Likewise.
53 (_IO_wfile_sync): Call __libio_codecvt_encoding,
54 __libio_codecvt_length.
55 (adjust_wide_data): Call __libio_codecvt_encoding,
56 __libio_codecvt_in.
57 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
58 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
59 __libio_codecvt_length.
60
75c51570
FW
612019-05-20 Florian Weimer <fweimer@redhat.com>
62
63 * support/support.h (support_sbindir_prefix): Declare.
64 (support_install_rootsbindir): Update comment.
65 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
66 * support/support_paths.c (support_sbindir_prefix): Define.
67
ff6bec7d
MC
682019-05-20 Mike Crowe <mac@mcrowe.com>
69
b62bb3bc
MC
70 * support/timespec.c: Add backslash to correct newline in failure
71 message.
72
ff6bec7d
MC
73 * support/timespec.h: Correct confusing comment.
74
dfba907f
AZ
752019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
76
236c18e5
AZ
77 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
78 define.
79 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
80 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
81 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
82 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
83
dfba907f
AZ
84 [BZ #24570]
85 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
86 usage.
87
13886008
JM
882019-05-20 Joseph Myers <joseph@codesourcery.com>
89
90 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
91 (NT_ARM_PACG_KEYS): Likewise.
92
1f50f2ad
WD
932019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
94
95 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
96 (tcache_put): Remove redundant assert.
97 (tcache_get): Remove redundant asserts.
98 (__libc_malloc): Check tcache count is not zero.
99 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
100
fef7c63c
FW
1012019-05-17 Florian Weimer <fweimer@redhat.com>
102
103 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
104
5f161b23
JM
1052019-05-16 Joseph Myers <joseph@codesourcery.com>
106
107 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
108 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
109 0x050100].
110 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
111 Likewise.
112 * sysdeps/unix/sysv/linux/sh/kernel-features.h
113 (__ASSUME_STATX): Likewise.
114
ec255a97
FW
1152019-05-16 Florian Weimer <fweimer@redhat.com>
116
117 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
118 flags argument.
119 (LINE_PARSER): Do not map IPv4 addresses.
120 (internal_nis_gethostent_r): Remove flags argument. Adjust call
121 to parse_line.
122 (_nss_nis_gethostent_r): Always pass AF_INET to
123 internal_nis_gethostent_r.
124 (internal_gethostbyname2_r): Remove flags argument. Adjust call
125 to parse_line.
126 (_nss_nis_gethostbyname2_r): Adjust call to
127 internal_nis_gethostent_r.
128 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
129 call to internal_nis_gethostent_r.
130 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
131 from parse_line.
132 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
133 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
134 Remove flags argument. Do not map IPv4 addresses.
135 (internal_nisplus_gethostent_r): Adjust call to
136 _nss_nisplus_parse_hostent.
137 (internal_gethostbyname2_r): Remove flags argument. Adjust call
138 to _nss_nisplus_parse_hostent.
139 (_nss_nisplus_gethostbyname2_r): Adjust call to
140 internal_gethostbyname2_r.
141 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
142 Adjust call to internal_gethostbyname2_r.
143 (_nss_nisplus_gethostbyaddr_r): Adjust call to
144 _nss_nisplus_parse_hostent.
145 (_nss_nisplus_gethostbyname4_r): Adjust call to
146 internal_gethostbyname2_r.
147
9c02d078
FW
1482019-05-16 Florian Weimer <fweimer@redhat.com>
149
150 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
151 Remove flags.
152 (LINE_PARSER): Remove address mapping.
153 (EXTRA_ARGS_VALUE): Remove flags argument.
154 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
155 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
156 gethostbyname3_multi.
157 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
158 _nss_files_gethostbyname3_r.
159 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
160
85b0e1e8
FW
1612019-05-16 Florian Weimer <fweimer@redhat.com>
162
163 * support/support_test_compare_blob.c (report_blob): Report
164 incorrect NULL blobs.
165
11b451c8
MW
1662019-05-15 Mark Wielaard <mark@klomp.org>
167
168 [BZ# 24476]
169 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
170 __libc_once_get (once) and static_buf == NULL.
171 (__dlerror): Check we have a valid key, set result to static_buf
172 otherwise.
173
32ff3975
AS
1742019-05-15 Andreas Schwab <schwab@suse.de>
175
176 [BZ #20568]
177 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
178 __codecvt_do_length.
179 * libio/Makefile (tests): Add tst-wfile-sync.
180 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
181 * libio/tst-wfile-sync.c: New file.
182 * libio/tst-wfile-sync.input: New file.
183
a9368c34
FW
1842019-05-15 Florian Weimer <fweimer@redhat.com>
185
186 nss: Turn __nss_database_lookup into a compatibility symbol.
187 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
188 __nss_database_lookup.
189 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
190 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
191 __nss_database_lookup.
192 (__nss_next): Move to …
193 * nss/compat-lookup.c (nss_next): … here. Change it to fail
194 unconditionally.
195 (__nss_database_lookup): New function.
196 * nss/Versions (GLIBC_2.0): Update comment.
197 (GLIBC_PRIVATE): Export __nss_database_lookup2.
198 * grp/initgroups.c (internal_getgrouplist): Call
199 __nss_database_lookup2 instead of __nss_database_lookup.
200 * nscd/aicache.c (addhstaiX): Likewise.
201 * nscd/initgrcache.c (addinitgroupsX): Likewise.
202 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
203 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
204 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
205 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
206 Likewise.
207 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
208 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
209 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
210
d50f0918 2112019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
32ff3975 212
d50f0918
AH
213 * support/support.h (support_install_rootsbindir): New variable.
214 * support/support_paths.c: Likewise.
215 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
216
7ac6fad9
FW
2172019-05-15 Florian Weimer <fweimer@redhat.com>
218
219 * iconv/gconv.h (__gconv_transliterate): Move declaration …
220 * iconv/gconv_int.h (__gconv_transliterate): … here.
221 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
222 * iconv/skeleton.c: Likewise.
223
04b261bd
FW
2242019-05-14 Florian Weimer <fweimer@redhat.com>
225
226 Linux: Add the tgkill function.
227 * bits/signal_ext.h: New file.
228 * manual/signal.texi (Signaling Another Process): Document tgkill.
229 * signal/Makefile (headers): Add bits/signal_ext.h.
230 * signal/signal.h: Include <bits/signal_ext.h>.
231 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
232 (tst-tgkill): Link with libpthread.
233 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
234 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
235 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
236 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
237 tgkill.
238 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
239 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
240 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
241 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
242 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
243 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
244 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
245 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
246 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
247 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
248 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
249 Likewise.
250 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
251 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
252 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
254 Likewise.
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
256 Likewise.
257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
258 Likewise.
259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
260 Likewise.
261 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
262 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
263 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
264 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
265 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
266 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
267 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
268 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
269
6807f47b
CD
2702019-05-14 Carlos O'Donell <carlos@redhat.com>
271
272 * manual/search.texi (Tree Search Function): Adjust twalk_r
273 documentation.
274
fdb8a0be
AZ
2752019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
276
da2b83ef
AZ
277 [BZ #24544]
278 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
279 pre-defined value.
280
c7ac9caa
AZ
281 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
282 * support/support.h (support_bindir_prefix): New variable.
283 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
284
91f043ae
AZ
285 * config.make.in (bindir): New variable.
286
c50e1c26
AZ
287 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
288 (lll_trylock): Call __lll_trylock.
289 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
290 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
291 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
292 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
293 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
294 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
295 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
296 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
297 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
298 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
299 lowlevellock-futex.h.
300
959aff9f
AZ
301 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
302 initialization for LLL_LOCK_INITIALIZER different than 0.
303 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
304 Assume LLL_LOCK_INITIALIZER being 0.
305 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
306 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
307 Likewise.
308 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
309 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
310
d7e4c642
AZ
311 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
312 Optimize futex call and add systemtap probe.
313
fdb8a0be
AZ
314 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
315 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
316 __libc_disable_asynccancel, __librt_enable_asynccancel,
317 __libc_disable_asynccancel, __librt_enable_asynccancel,
318 __librt_disable_asynccancel): Move to ...
319 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
320 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
321 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
322 * sysdeps/generic/single-thread.h: New file.
323 * sysdeps/unix/sysdep.h: Include single-thread.h.
324 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
325 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
326
f6efec90
MF
3272019-05-08 Mike FABIAN <mfabian@redhat.com>
328
329 [BZ #24535]
330 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
331 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
332 Unicode 12.1.0.
333 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
334 * localedata/unicode-gen/PropList.txt: Likewise.
335 * localedata/unicode-gen/UnicodeData.txt: Likewise.
336 * localedata/charmaps/UTF-8: Regenerate.
337 * localedata/locales/i18n_ctype: Likewise.
338 * localedata/locales/tr_TR: Likewise.
339 * localedata/locales/translit_circle: Likewise.
340 * localedata/locales/translit_cjk_compat: Likewise.
341 * localedata/locales/translit_combining: Likewise.
342 * localedata/locales/translit_compat: Likewise.
343 * localedata/locales/translit_font: Likewise.
344 * localedata/locales/translit_fraction: Likewise.
345
5ad533e8
WD
3462019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
347
348 [BZ #24531]
349 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
350 (do_set_tcache_count): Only update if count is small enough.
351 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
352
4aee85f9
FW
3532019-05-10 Florian Weimer <fweimer@redhat.com>
354
355 * nptl/sem_close.c (struct walk_closure): Define.
356 (walker): Adjust for __twalk_r.
357 (sem_close): Call __twalk_r.
358
eb669ff5
AZ
3592019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
360
361 * support/timespec.c (test_timespec_before_impl,
362 test_timespec_equal_or_after_impl): print timespec member as intmax_t
363 insted of long int.
364
51983996
MC
3652019-05-09 Mike Crowe <mac@mcrowe.com>
366
44ac6ee9
MC
367 * nptl/tst-abstime.c: Use libsupport.
368
495514ee
MC
369 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
370 small bug where only tv.tv_usec was checked which could cause an
371 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
372 than a second.
373
374 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
375 libsupport.
376
40d0816f
MC
377 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
378 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
379
d8e0b901
MC
380 * nptl/tst-cond11.c: Use libsupport.
381
51983996
MC
382 * support/timespec.h: New file. Provide timespec helper functions
383 along with macros in the style of those in check.h.
384 * support/timespec.c: New file. Implement check functions declared
385 in support/timespec.h.
386 * support/timespec-add.c: New file from gnulib containing
387 timespec_add implementation that handles overflow.
388 * support/timespec-sub.c: New file from gnulib containing
389 timespec_sub implementation that handles overflow.
390 * support/README: Mention timespec.h.
391
18aa51ee
SN
3922019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
393
394 [BZ #24537]
395 * nptl/Makefile: Move tst-eintr1 to xtests.
396
252296c6
AZ
3972019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
398
ae45cf84
AZ
399 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
400 TRUNC handling.
401 (round_mode): Add definition for TRUNC.
402 * sysdeps/powerpc/fpu/s_trunc.c: New file.
403 * sysdeps/powerpc/fpu/s_truncf.c: New file.
404 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
405 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
406 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
407 Likewise.
408 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
409 Likewise.
410 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
411 Likewise.
412 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
413 Likewise.
414 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
415 file.
416 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
417 Likewise.
418 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
419 Likewise.
420 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
421 Likewise.
422 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
423 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
424 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
425 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
426 s_truncf-power5+, and s_truncf-ppc64.
427 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
428 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
429 file.
430 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
432 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
433 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
434 file.
435 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
436 Likewise.
437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
438 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
439 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
440 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
441 s_truncf-power5+, and s_truncf-ppc64.
442 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
443 file.
444 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
445 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
446 Likewise.
447 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
448 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
449 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
450 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
451 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
452
a1cb1888
AZ
453 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
454 ROUND handling.
455 (round_mode): Add definition for ROUND.
456 (round_to_integer_float): Likewise.
457 * sysdeps/powerpc/fpu/s_round.c: New file.
458 * sysdeps/powerpc/fpu/s_roundf.c: New file.
459 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
460 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
461 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
462 Likewise.
463 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
464 Likewise.
465 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
466 Likewise.
467 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
468 Likewise.
469 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
470 file.
471 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
472 Likewise.
473 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
474 Likewise.
475 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
476 Likewise.
477 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
478 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
479 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
480 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
481 s_roundf-power5+, and s_roundf-ppc64.
482 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
483 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
484 file.
485 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
487 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
488 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
489 file.
490 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
491 Likewise.
492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
493 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
494 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
495 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
496 s_roundf-power5+, and s_roundf-ppc64.
497 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
498 file.
499 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
500 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
501 Likewise.
502 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
503 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
504 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
505 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
506 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
507
252296c6
AZ
508 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
509 Add FLOOR option.
510 (round_mode): Add definition for FLOOR.
511 * sysdeps/powerpc/fpu/s_floor.c: New file.
512 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
513 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
514 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
515 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
516 Remove file.
517 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
518 Likewise
519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
520 Likewise.
521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
522 Likewise.
523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
524 New file.
525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
526 Likewise.
527 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
528 Likewise.
529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
530 Likewise.
531 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
532 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
533 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
534 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
535 s_floorf-power5+, and s_floorf-ppc64.
536 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
537 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
538 file.
539 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
541 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
542 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
543 file.
544 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
545 Likewise.
546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
547 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
548 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
549 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
550 s_floorf-power5+, and s_floorf-ppc64.
551 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
552 file.
553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
554 file.
555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
556 Likewise.
557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
558 Likewise.
559 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
560 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
561 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
562 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
563
33647a72
MC
5642019-05-08 Mike Crowe <mac@mcrowe.com>
565
566 * support/xclock_gettime.c (xclock_gettime): New file. Provide
567 clock_gettime wrapper for use in tests that fails the test rather
568 than returning failure.
569
570 * support/xtime.h: New file to declare xclock_gettime.
571
572 * support/Makefile: Add xclock_gettime.c.
573
574 * support/README: Mention xtime.h.
575
b2f601ba
FW
5762019-05-08 Florian Weimer <fweimer@redhat.com>
577
578 malloc/tst-mallocfork2: Use process-shared barriers.
579 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
580 (signal_count, sigusr1_sender_pid): Remove.
581 (iterations): Define constant.
582 (shared): New variable.
583 (sigusr1_received): Update comment.
584 (sigusr1_handler): Do not send SIGSTOP to the sender process.
585 (signal_sender): Optional use barriers to avoid sending signals
586 during irrelevant times.
587 (do_it): Initialize variable shared. Use xfork for error
588 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
589 the iteration count, independent of signal delivery. Check for
590 deadlocks in fork. Introduce barriers for reducing signal
591 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
592 replaced by the barriers. Count signals during fork/free/malloc
593 and report them.
594 * malloc/Makefile (tst-mallocfork): Link with libpthread.
595
c4a392cf
JM
5962019-05-07 Joseph Myers <joseph@codesourcery.com>
597
7621676f
JM
598 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
599 version to 5.1.
600 (clock_adjtime64) New syscall.
601 (clock_getres_time64) Likewise.
602 (clock_gettime64) Likewise.
603 (clock_nanosleep_time64) Likewise.
604 (clock_settime64) Likewise.
605 (futex_time64) Likewise.
606 (io_pgetevents_time64) Likewise.
607 (io_uring_enter) Likewise.
608 (io_uring_register) Likewise.
609 (io_uring_setup) Likewise.
610 (mq_timedreceive_time64) Likewise.
611 (mq_timedsend_time64) Likewise.
612 (pidfd_send_signal) Likewise.
613 (ppoll_time64) Likewise.
614 (pselect6_time64) Likewise.
615 (recvmmsg_time64) Likewise.
616 (rt_sigtimedwait_time64) Likewise.
617 (sched_rr_get_interval_time64) Likewise.
618 (semtimedop_time64) Likewise.
619 (timer_gettime64) Likewise.
620 (timer_settime64) Likewise.
621 (timerfd_gettime64) Likewise.
622 (timerfd_settime64) Likewise.
623 (utimensat_time64) Likewise.
624
c4a392cf
JM
625 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
626 version to 9 branch.
627
32e902a9
AY
6282019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
629
630 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
631 __memmove_thunderx2 to the list of implementations
632 * sysdeps/aarch64/multiarch/memmove.c: Likewise
633 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
634 (__memmove_thunderx2): Rewritten using SIMD ld/st
635 (__memcpy_thunderx2): Fixed handling overlapping cases.
636 Used ldp/stp instead of ldr/str if possible. Made loops
637 tails branchless.
638
ac3da35d
FW
6392019-05-03 Florian Weimer <fweimer@redhat.com>
640
641 * misc/tst-tsearch.c (walk_tree): Add more error checking.
642
b2af6fb2
AZ
6432019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
644
7dfde28a 645 [BZ #24506]
b2af6fb2
AZ
646 * elf/tst-pldd.c (in_str_list): New function.
647 (do_test): Add default names for ld and libc as one option.
648
7b807a35
FW
6492019-05-02 Florian Weimer <fweimer@redhat.com>
650
651 misc: Add twalk_r function.
652 * include/search.h (__twalk_r): Declare.
653 * manual/examples/twalk.c: New file.
654 * manual/search.texi (Tree Search Function): Document twalk_r.
655 * misc/Versions (2.30): Export twalk_r.
656 (GLIBC_PRIVATE): Export __twalk_r.
657 * misc/search.h [__USE_GNU] (twalk_r): Declare.
658 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
659 (twalk_r): Add weak alias.
660 * misc/tst-tsearch.c (struct walk_trace_element): Define.
661 (walk_trace): New variable.
662 (struct twalk_with_twalk_r_closure): Define.
663 (twalk_with_twalk_r_action): New function.
664 (twalk_with_twalk_r): Likewise.
665 (walk_action): Call walk_trace_add.
666 (walk_tree_with): Rename from walk_tree. Add walk argument.
667 (walk_tree): New function.
668 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
669 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
670 Likewise.
671 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
672 Likewise.
673 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
674 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
675 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
676 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
677 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
678 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
679 Likewise.
680 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
681 Likewise.
682 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
683 Likewise.
684 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
685 (GLIBC_2.30): Likewise.
686 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
687 (GLIBC_2.30): Likewise.
688 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
689 (GLIBC_2.30): Likewise.
690 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
691 (GLIBC_2.30): Likewise.
692 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
693 Likewise.
694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
695 (GLIBC_2.30): Likewise.
696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
697 (GLIBC_2.30): Likewise.
698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
699 (GLIBC_2.30): Likewise.
700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
701 (GLIBC_2.30): Likewise.
702 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
703 Likewise.
704 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
705 Likewise.
706 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
707 Likewise.
708 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
709 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
710 Likewise.
711 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
712 Likewise.
713 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
714 Likewise.
715 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
716 Likewise.
717
20aa5819
PE
7182019-04-30 Paul Eggert <eggert@cs.ucla.edu>
719
720 Make mktime etc. compatible with __time64_t
721 Keep these functions compatible with Gnulib while adding
722 __time64_t support. The basic idea is to move private API
723 declarations from include/time.h to time/mktime-internal.h, since
724 the former file cannot easily be shared with Gnulib whereas the
725 latter can.
726 Also, do some other minor cleanup while in the neighborhood.
727 * include/time.h: Include stdbool.h, time/mktime-internal.h.
728 (__mktime_internal): Move this prototype to time/mktime-internal.h,
729 since Gnulib needs it.
730 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
731 Move these macros to time/mktime-internal.h, since Gnulib needs them.
732 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
733 (in_time_t_range): New static function.
734 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
735 so that glibc users are not tempted to use __time64_t.
736 * time/mktime-internal.h: Rewrite so that it does both glibc
737 and Gnulib work. Include time.h if not _LIBC.
738 (mktime_offset_t) [!_LIBC]: Define for gnulib.
739 (__time64_t): New type or macro, moved here from
740 posix/bits/types.h.
741 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
742 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
743 from include/time.h.
744 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
745 New macros, taken from GNulib.
746 (__mktime_internal): New prototype, moved here from include/time.h.
747 * time/mktime.c (mktime_min, mktime_max, convert_time)
748 (ranged_convert, __mktime_internal, __mktime64):
749 * time/timegm.c (__timegm64):
750 Use __time64_t, not time_t.
751 * time/mktime.c: Stop worrying about whether time_t is floating-point.
752 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
753 Rename from mktime.
754 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
755 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
756 for libc_hidden_def.
757 Include errno.h.
758 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
759 Rename from timegm.
760 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
761
87c266d7
MR
7622019-04-30 Maciej W. Rozycki <macro@wdc.com>
763
764 [BZ #19444]
765 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
766 from `-Wmaybe-uninitialized'.
767 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
768
c4c0848b
AZ
7692019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
770
6cac323c
AZ
771 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
772 function.
773 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
774 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
775 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
776 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
777 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
778 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
779 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
780 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
781 Remove file.
782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
783 Likewise.
784 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
785 Likewise.
786 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
787 Likewise.
788 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
789 New file.
790 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
791 Likewise.
792 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
793 Likewise.
794 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
795 Likewise.
796 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
797 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
798 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
799 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
800 Likewise.
801 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
802 Likewise.
803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
804 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
805 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
806 file.
807 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
808 Likewise.
809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
810 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
811 * here.
812 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
813 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
814 s_ceilf-power5+, and s_ceilf-ppc64.
815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
816 file.
817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
820 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
821 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
822 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
823 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
824
c4c0848b
AZ
825 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
826 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
827 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
828
f492fc99
YD
8292019-04-29 Yann Droneaud <ydroneaud@opteya.com>
830
831 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
832 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
833 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
834 (sem_getvalue): Likewise.
835
c57afec0
FW
8362019-04-26 Florian Weimer <fweimer@redhat.com>
837
838 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
839 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
840
a8ff215e
FW
8412019-04-26 Florian Weimer <fweimer@redhat.com>
842
843 Makeconfig: Move -Wl,-rpath-link options before library references.
844 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
845 (link-libc): Remove $(link-libc-rpath-link).
846
8472019-04-25 Florian Weimer <fweimer@redhat.com>
848
849 * Makeconfig (+link-pie-before-libc): Remove $(CC).
850 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
851 (+link-static-before-libc): Remove $(CC).
852 (+link-static, +link-static-tests): Add $(CC).
853 (+link-before-libc): Remove $(CC).
854 (+link, +link-pie, +link-pie-printers): Add $(CC).
855
e30fb31c
FW
8562019-04-26 Florian Weimer <fweimer@redhat.com>
857
858 * Makeconfig (+link-pie-before-libc): Remove $(CC).
859 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
860 (+link-static-before-libc): Remove $(CC).
861 (+link-static, +link-static-tests): Add $(CC).
862 (+link-before-libc): Remove $(CC).
863 (+link, +link-pie, +link-pie-printers): Add $(CC).
864
deacca00
DA
8652019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
866
867 [BZ#24484]
868 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
869
b5ffdc48
FW
8702019-04-25 Florian Weimer <fweimer@redhat.com>
871
872 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
873 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
874 (bench-link-targets): New variable.
875 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
876
94a4e9e4
FW
8772019-04-25 Florian Weimer <fweimer@redhat.com>
878
879 Also enable BIND_NOW for programs if --enable-bind-now.
880 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
881 (+link-pie): Use $(link-extra-flags).
882 (+link-static): Likewise.
883 [! $(build-pie-default)] (+link): Likewise.
884 * manual/install.texi (Configuring and compiling): Update
885 --enable-bind-now description.
886 * INSTALL: Regenerated.
887
fe92a91f
WD
8882019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
889
890 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
891 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
892
f9b645b4
MF
8932019-04-24 Mike Frysinger <vapier@gentoo.org>
894
895 [BZ #18465]
896 * malloc/Makefile (others): Add memusagestat.
897 ($(objpfx)memusagestat): Delete rule.
898 (LDLIBS-memusagestat): New variable.
899
439bf534
FW
9002019-04-24 Florian Weimer <fweimer@redhat.com>
901
902 * locale/Makefile (tests-special): Guard setting by
903 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
904 to run while cross-compiling.
905
1a4c2735
AZ
9062019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
907
908 [BZ #18035]
909 * elf/Makefile (tests-container): Add tst-pldd.
910 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
911 (E(find_maps)): Avoid use alloca, use default read file operations
912 instead of explicit LFS names, and fix infinite loop.
913 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
914 (get_process_info): Use _Static_assert instead of assert, use default
915 directory operations instead of explicit LFS names, and free some
916 leadek pointers.
917 * elf/tst-pldd.c: New file.
918
2d398aa2
L
9192019-04-23 H.J. Lu <hongjiu.lu@intel.com>
920
921 * malloc/arena.c (do_set_mallopt_check): Removed.
922
e485b2b6
FW
9232019-04-23 Florian Weimer <fweimer@redhat.com>
924
925 locale: Add LOCPATH diagnostics to the locale program.
926 * locale/programs/locale.c (setlocale_failed): New variable.
927 (try_setlocale): New function.
928 (quote_string): Likewise.
929 (setlocale_diagnostics): Likewise.
930 (main): Call try_setlocale instead of setlocale. Call
931 setlocale_diagnostics.
932 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
933 (tst-locale-locpath.out): New target.
934 * locale/tst-locale-locpath.sh: New file.
935
25f7a3c9
AZ
9362019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
937
938 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
939 to 2.30 notes.
940
9bf8e29c
AZ
9412019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
942
943 [BZ #23741]
944 * malloc/hooks.c (malloc_check, realloc_check): Use
945 __builtin_add_overflow on overflow check and adapt to
946 checked_request2size change.
947 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
948 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
949 allocation size to PTRDIFF_MAX.
950 (REQUEST_OUT_OF_RANGE): Remove macro.
951 (checked_request2size): Change to inline function and limit maximum
952 requested size to PTRDIFF_MAX.
953 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
954 maximum allocation size to PTRDIFF_MAX.
955 (_mid_memalign): Use _int_memalign call for overflow check.
956 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
957 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
958 limit maximum requested size to PTRDIFF_MAX.
959 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
960 valloc, pvalloc): Add __attribute_alloc_size__.
961 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
962 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
963 larger than PTRDIFF_MAX.
964 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
965 around tests of malloc with negative sizes.
966 * malloc/tst-posix_memalign.c (do_test): Likewise.
967 * malloc/tst-pvalloc.c (do_test): Likewise.
968 * malloc/tst-valloc.c (do_test): Likewise.
969 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
970 with resulting size allocation larger than PTRDIFF_MAX with
971 reallocarray_nowarn.
972 (reallocarray_nowarn): New function.
973 * NEWS: Mention the malloc function semantic change.
974
0e169691
AZ
9752019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
976
52faba65
AZ
977 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
978 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
979
3a16dd78
AZ
980 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
981 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
982 * sysdeps/powerpc/fpu/s_fma.c: New file.
983 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
984
1dac8bd6
AZ
985 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
986 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
987
a3ae315a
AZ
988 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
989 the magic flag store.
990 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
991 Likewise.
992 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
993 Likewise.
994 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
995 Remove rt_sigreturn call.
996
ffe8a9a8
AZ
997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
998 Remove rt_sigreturn call.
999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1000 Likewise.
1001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1003
0e169691
AZ
1004 * support/Makefile (libsupport-routines): Add support_subprocess,
1005 xposix_spawn, xposix_spawn_file_actions_addclose, and
1006 xposix_spawn_file_actions_adddup2.
1007 (tst-support_capture_subprocess-ARGS): New rule.
1008 * support/capture_subprocess.h (support_capture_subprogram): New
1009 prototype.
1010 * support/support_capture_subprocess.c (support_capture_subprocess):
1011 Refactor to use support_subprocess and support_capture_poll.
1012 (support_capture_subprogram): New function.
1013 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1014 str_to_write_mode, test_common, parse_int, handle_restart,
1015 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1016 (do_test): Add support_capture_subprogram tests.
1017 * support/subprocess.h: New file.
1018 * support/support_subprocess.c: Likewise.
1019 * support/xposix_spawn.c: Likewise.
1020 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1021 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1022 * support/xspawn.h: Likewise.
1023
bae8cf0e
MG
10242019-04-17 Mike Gerow <gerow@google.com>
1025
1026 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1027 groups limit.
1028
e3f454ba
FW
10292019-04-11 Florian Weimer <fweimer@redhat.com>
1030
1031 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1032 domain with empty string.
1033 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1034
32d85c11
FW
10352019-04-11 Florian Weimer <fweimer@redhat.com>
1036
1037 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1038 comment.
1039 (alloc_buffer_next): Change return type to non-const. Update
1040 comment.
1041
221710af
FW
10422019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1043
1044 * manual/time.texi (Formatting Calendar Time): Add missing percent
1045 sign to conversion specifier.
1046
e621246e
CD
10472019-04-09 Carlos O'Donell <carlos@redhat.com>
1048 Kwok Cheung Yeung <kcy@codesourcery.com>
1049
1050 [BZ #16573]
1051 * malloc/mtrace.c: Define prototypes for all hooks.
1052 (set_default_hooks): New function.
1053 (set_trace_hooks): Likewise.
1054 (save_default_hooks): Likewise.
1055 (tr_freehook): Use new s*_hooks functions.
1056 (tr_mallochook): Likewise.
1057 (tr_reallochook): Likewise.
1058 (tr_memalignhook): Likewise.
1059 (mtrace): Likewise.
1060 (muntrace): Likewise.
1061
648279f4
WD
10622019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1063
1064 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1065 (generic_stpcpy): New function.
1066 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1067 (generic_stpncpy): New function.
1068 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1069 (generic_strcat): New function.
1070 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1071 (generic_strcpy): New function.
1072 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1073 (STUPID_STRNCAT): Remove function.
1074 (generic_strncat): New function.
1075 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1076 (STUPID_STRNCPY): Remove function.
1077 (generic_strncpy): New function.
1078 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1079 (generic_strnlen): New function.
1080 (memchr_strnlen): New function.
1081 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1082 (memchr_strlen): Likewise.
1083
93eebae5
WD
10842019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1085
1086 * benchtests/bench-strstr.c (input): Add realistic input text.
1087 (stupid_strstr): Remove function.
1088 (basic_strstr): Add function.
1089 (twoway_strstr): Add function.
1090 (do_one_test): Add result checking.
1091 (do_test): Use new input text. Remove accidental early matches.
1092 (test_main): Improve range of tests, reduce unaligned cases.
1093
a173d09f
WD
10942019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1095
1096 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1097 (basic_memmem): Add function.
1098 (twoway_memmem): Add function.
1099
6103c0a8
WD
11002019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1101
1102 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1103 * benchtests/bench-malloc-thread.c: Likewise.
1104 * benchtests/bench-skeleton.c: Likewise.
1105 * benchtests/bench-strtod.c: Likewise.
1106 * benchtests/bench-timing.h: Likewise.
1107
33322186
FW
11082019-04-08 Florian Weimer <fweimer@redhat.com>
1109
1110 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1111 definitions.
1112 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1113 RES_INSECURE2 security checks.
1114 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1115 RES_INSECURE2 handling.
1116
3f8b44be
FW
11172019-04-08 Florian Weimer <fweimer@redhat.com>
1118
1119 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1120 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1121 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1122 GETHOSTBYNAME.
1123 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1124 (tests-internal): Update justification for tst-resolv-res_init,
1125 tst-resolv-res_init-thread.
1126 (tst-res_use_inet6): Remove target.
1127 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1128 * resolv/res_debug.c (p_option): Remove "inet6" support.
1129 * resolv/res_init.c (res_setoptions): Likewise.
1130 * resolv/res_use_inet6.h: Remove file.
1131 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1132 definition.
1133 (res_use_inet6): Always return false.
1134 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1135 * resolv/resolv_context.h: Adjust file comment.
1136 (struct resolv_context): Update comment on __next field.
1137 (__resolv_context_put): Update comment.
1138 * resolv/tst-res_use_inet6.c: Remove file.
1139 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1140 "inet6" support.
1141 (test_cases): Adjust test case.
1142 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1143 (thread_byname2_af_inet6): Use old byname_inet6 code.
1144 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1145 (gai): Remove do_inet6 argument.
1146 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1147 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1148 (thread_gai_unspec_inet6): Remove functions.
1149 (do_test): Adjust thread_funcs.
1150 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1151 RES_USE_INET6 flag.
1152 (gaih_inet): Do not disable RES_USE_INET6 flag.
1153
6b5c8607 11542019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
94e358f6
AY
1155
1156 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1157 and remove redundant code.
1158
e3fd0b0e
AZ
11592019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1160
f82ed45d
AZ
1161 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1162 New rule.
1163 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1164 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1165 Likewise.
1166 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1167 Likewise.
1168 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1169 Likewise.
1170 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1171 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1172 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1173 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1174 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1175 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1176 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1177 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1178 wcsrchr-power7.
1179 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1180 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1181 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1182 Remove wcsrchr optimizations.
1183 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1184
662c2cc4
AZ
1185 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1186 the loop unroll.
1187
421e3005
AZ
1188 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1189 New rule.
1190 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1191 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1192 Likewise.
1193 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1194 Likewise.
1195 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1196 Likewise.
1197 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1198 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1199 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1200 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1201 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1202 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1203 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1204 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1205 wcschr-power7.
1206 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1207 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1208 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1209 Remove wcschr optimizations.
1210 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1211
7ba0100c
AZ
1212 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1213 the loop unroll.
1214
447a1306
AZ
1215 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1216 New rule.
1217 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1218 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1219 Likewise.
1220 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1221 Likewise.
1222 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1223 Likewise.
1224 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1225 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1226 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1227 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1228 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1229 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1230 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1231 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1232 wcscpy-power7.
1233 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1234 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1235 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1236 Remove wcscpy optimizations.
1237 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1238
e3fd0b0e
AZ
1239 * include/loop_unroll.h: New file.
1240 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1241 besides generic implementation.
1242
8260f236
DD
12432019-04-03 DJ Delorie <dj@redhat.com>
1244
1245 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1246 snprintf truncating output.
1247
0bd545ee
DD
12482019-04-02 DJ Delorie <dj@redhat.com>
1249
1250 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1251 warning.
1252
466afec3
TS
12532019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1254
1255 [BZ #22964]
1256 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1257 era.
1258 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1259 (mkreftable): Add rules for the new Japanese era and the new dates.
1260
2f1d6155
TS
12612019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1262 Rafal Luzynski <digitalfreak@lingonborough.com>
1263
1264 * time/tst-strftime2.c (date_t): Explicitly define the type.
1265 (dates): Use natural month and year numbers to express a date.
1266 (is_before): New function to compare dates.
1267 (mkreftable): Minor improvements to simplify maintenance.
1268 (do_test): Reflect the changes in dates array.
1269
84aea169
TS
1270 [BZ #24293]
1271 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1272 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1273 * time/tst-strftime2.c (locales): Likewise.
1274 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1275 2010-04-01, and 2011-04-01.
1276 (mkreftable): Add rules for the new locales and the new dates.
1277
62449176
CD
12782019-04-01 Carlos O'Donell <carlos@redhat.com>
1279
1280 * localedata/locales/ja_JP: Add comments to era entries.
1281
e0e4c321
DD
12822019-04-01 DJ Delorie <dj@redhat.com>
1283
1284 [BZ #24394]
1285 * time/strptime_l.c (%Ey): Fix fencepost error.
1286 * time/tst-strftime3.c: New.
1287 * time/Makefile (tests): Add tst-strftime3.
1288
6b5c8607 12892019-04-01 Uros Bizjak <ubizjak@gmail.com>
993e3107
UB
1290
1291 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1292 conditional branch to DIVBYZERO. Fix unwind info.
1293 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1294 excb after conditional branch to $powerof2. Add missing unop
1295 instructions and .align directives and reorder instructions to
1296 match __divqu.
1297
d5ecee82
RH
12982019-04-01 Richard Henderson <rth@twiddle.net>
1299
1300 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1301 Do not redefine.
1302 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1303 Do not redefine.
1304
656dd306
MR
13052019-03-30 Maciej W. Rozycki <macro@wdc.com>
1306
1307 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1308 $libc_cv_riscv_float_abi in `test' invocation.
1309 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1310
10cce669
PC
13112019-03-29 Paul A. Clarke <pc@us.ibm.com>
1312
1313 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1314 asm with builtin.
1315 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1316 Likewise.
1317 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1318 (_GET_SI_FPSCR): Likewise.
1319 (_SET_SI_FPSCR): Likewise.
1320
5e67e4bf 13212019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4997e8f3
AZ
1322
1323 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1324 clang 2.8.
1325 (signbit): Use builtin for clang 3.3.
1326 (isinf): Use builtin for clang 3.7.
1327
01963891
AZ
13282019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1329
1330 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1331
67112f7a
AH
13322019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1333
1334 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1335 quote in printf.
1336
7a773abf
MC
13372019-03-25 Mike Crowe <mac@mcrowe.com>
1338
82849fde
MC
1339 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1340 pthread_rwlock_timedrdlock with calls to
1341 pthread_rwlock_timedwrlock to ensure that the latter is tested
1342 too. Use new function name in diagnostic messages too.
1343
7a773abf
MC
1344 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1345 (do_test) Use libsupport test macros rather than hand-coded
1346 conditionals and error messages. Ensure that sem_init returns zero
1347 rather than not -1. Use <support/test-driver.c> rather than
1348 test-skeleton.c.
1349
1350 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1351 test macros rather than hand-coded conditionals and error messages.
1352 Use <support/test-driver.c> rather than test-skeleton.c.
1353
9ac2de69
JM
13542019-03-25 Joseph Myers <joseph@codesourcery.com>
1355
d7563e62
JM
1356 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1357
9ac2de69
JM
1358 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1359 (NT_MIPS_MSA): Likewise.
1360
38cc11da
AZ
13612019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1362
7621e38b
WD
1363 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1364 * benchtests/README: Update description.
1365 * benchtests/bench-timing.h: Default to hp-timing.
1366 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1367 HP_TIMING_PRINT): Remove.
1368 (HP_TIMING_NOW): Add generic implementation.
1369 (hp_timing_t): Change to uint64_t.
1370
1e372ded
AZ
1371 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1372 HP_TIMING_INLINE.
1373 * nptl/descr.h: Likewise.
1374 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1375 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1376 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1377 Abstract hp-timing usage with RTLD_* macros.
1378 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1379 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1380 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1381 HP_TIMING_NONAVAIL): Likewise.
1382 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1383 Likewise.
1384 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1385 HP_SMALL_TIMING_AVAIL): Likewise.
1386 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1387 HP_SMALL_TIMING_AVAIL): Likewise.
1388 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1389 HP_SMALL_TIMING_AVAIL): Likewise.
1390 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1391 HP_SMALL_TIMING_AVAIL): Likewise.
1392 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1393 Likewise.
1394 * sysdeps/generic/hp-timing-common.h: Update comment with
1395 HP_TIMING_AVAIL removal.
1396
359653aa
AZ
1397 * include/random-bits.h: New file.
1398 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1399 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1400 random_bits.
1401 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1402 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1403 Likewise.
1404
6e8ba7fd
AZ
1405 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1406 * rt/Makefile (clock-routines): Remove get_clockfreq.
1407 * rt/get_clockfreq.c: Remove file.
1408 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1409 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1410 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1411 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1412 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1413
77b6f553
AZ
1414 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1415 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1416 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1417 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1418 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1419
38cc11da
AZ
1420 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1421 pthread_clock_settime.
1422 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1423 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1424 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1425 * elf/rtld.c (_dl_start_final): Likewise.
1426 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1427 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1428 Remove.
1429 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1430 (_dl_cpuclock_offset): Remove.
1431 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1432 cpuclock_offset_ununsed.
1433 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1434 cpuclock_offset set.
1435 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1436 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1437 * nptl/pthread_clock_gettime.c: Remove file.
1438 * nptl/pthread_clock_settime.c: Likewise.
1439 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1440 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1441 and CLOCK_PROCESS_CPUTIME_ID support.
1442 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1443 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1444 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1445 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1446 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1447 Likewise.
1448 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1449
421749d6
SL
14502019-03-22 Stefan Liebler <stli@linux.ibm.com>
1451
1452 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1453 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1454 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1455 New defines.
1456 * sysdeps/s390/memmem-arch13.S: New file.
1457 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1458 if it is only used as fallback.
1459 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1460 * sysdeps/s390/multiarch/ifunc-impl-list.c
1461 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1462
6f47401b
SL
14632019-03-22 Stefan Liebler <stli@linux.ibm.com>
1464
1465 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1466 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1467 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1468 New defines.
1469 * sysdeps/s390/multiarch/ifunc-impl-list.c
1470 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1471 * sysdeps/s390/strstr-arch13.S: New file.
1472 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1473 if it is only used as fallback.
1474 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1475
96fbb9a3
SL
14762019-03-22 Stefan Liebler <stli@linux.ibm.com>
1477
1478 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1479 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1480 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1481 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1482 ifunc selector.
1483 * sysdeps/s390/multiarch/ifunc-impl-list.c
1484 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1485 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1486 S390_IS_ARCH13_MIE3): New defines.
1487
a899a551
SL
14882019-03-22 Stefan Liebler <stli@linux.ibm.com>
1489
1490 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1491 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1492 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1493 * sysdeps/s390/configure: Regenerated.
1494
1a7df49c
SL
14952019-03-22 Stefan Liebler <stli@linux.ibm.com>
1496
1497 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1498 Add vxe2, vxp, dflt, sort flags.
1499 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1500 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1501 capabilities.
1502 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1503 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1504 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1505 HWCAP_S390_DFLT): Define.
1506
5e67e4bf 15072019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5abcddd7
GG
1508
1509 [BZ #24372]
1510 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1511 of compiler warning.
1512 * locale/programs/ld-collate.c (collate_output): Likewise.
1513
ac64195c
DD
15142019-03-21 DJ Delorie <dj@redhat.com>
1515
1516 [BZ #24372]
1517 * iconv/iconvconfig.c (write_output): Replace floating point math
1518 with integer math to avoid imprecise results.
1519 * locale/programs/ld-collate.c (collate_output): Likewise.
1520
61f5e947
SL
15212019-03-21 Stefan Liebler <stli@linux.ibm.com>
1522
1523 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1524 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1525
57ada43c 15262019-03-20 mansayk <6688000@gmail.com>
1527
1528 [BZ #24296]
1529 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1530 (abday): Likewise, but remove the trailing dots.
1531
a2e57f89
JM
15322019-03-19 Joseph Myers <joseph@codesourcery.com>
1533
1534 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1535 macro.
1536 (HWCAP_PACA): Likewise.
1537 (HWCAP_PACG): Likewise.
1538 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1539 Increase to 32.
1540 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1541
e87d8ada
ST
15422019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1543
1544 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1545 should be handled.
1546
477e739b
JM
15472019-03-15 Joseph Myers <joseph@codesourcery.com>
1548
1549 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1550 version to 5.0.
1551 (old_getpagesize): New syscall.
1552
238d60a1
FY
15532019-03-15 Felix Yan <felixonmars@archlinux.org>
1554
1555 [BZ #24293]
1556 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1557 * localedata/locales/cmn_TW (era): Likewise.
1558 * localedata/locales/hak_TW (era): Likewise.
1559 * localedata/locales/lzh_TW (era): Likewise.
1560 * localedata/locales/nan_TW (era): Likewise.
1561
5dde9ef7
DD
15622019-03-14 Adam Maris <amaris@redhat.com>
1563
1564 * malloc/malloc.c (_int_malloc): Check for large bin list
1565 corruption when inserting unsorted chunk.
1566
a0a0dc83
FW
15672019-03-14 Florian Weimer <fweimer@redhat.com>
1568
1569 Remove obsolete, never-implemented XSI STREAMS declarations.
1570 * manual/terminal.texi (Allocation): Remove portability note and
1571 adjust example.
1572 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1573 _SC_STREAMS.
1574 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1575 * sysdeps/unix/inet/Subdirs (streams): Remove.
1576 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1577 (conformtest-headers-UNIX98): Likewise.
1578 (conformtest-headers-XOPEN2K): Likewise.
1579 (conformtest-headers-POSIX2008): Likewise.
1580 * posix/compat-streams.c: New file.
1581 * posix/Makefile (routines): Add it.
1582 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1583 getpmsg, isastream, putmsg, putpmsg.
1584 (GLIBC_2.30): New section.
1585 * bits/stropts.h: Remove file.
1586 * bits/xtitypes.h: Likewise.
1587 * conform/data/stropts.h-data: Likewise.
1588 * include/stropts.h: Likewise.
1589 * include/sys/stropts.h: Likewise.
1590 * include/xtitypes.h: Likewise.
1591 * streams/Makefile: Likewise.
1592 * streams/fattach.c: Likewise.
1593 * streams/fdetach.c: Likewise.
1594 * streams/getmsg.c: Likewise.
1595 * streams/getpmsg.c: Likewise.
1596 * streams/isastream.c: Likewise.
1597 * streams/putmsg.c: Likewise.
1598 * streams/putpmsg.c: Likewise.
1599 * streams/stropts.h: Likewise.
1600 * streams/sys/stropts.h: Likewise.
1601 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1602 * sysdeps/s390/bits/xtitypes.h: Likewise.
1603 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1604 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1605 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1606 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1607 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1608 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1609 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1610 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1611 * sysdeps/x86/bits/xtitypes.h: Likewise.
1612
081bdf94
FW
16132019-03-14 Florian Weimer <fweimer@redhat.com>
1614
1615 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1616 libnss_files.
1617 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1618 but not with libnss_files.
1619 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1620
97f8225d
ZW
16212019-03-14 Zack Weinberg <zackw@panix.com>
1622
1623 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1624 Specify encoding="utf-8" when opening headers to check.
1625
0c1041ee
JM
16262019-03-13 Joseph Myers <joseph@codesourcery.com>
1627
1628 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1629 version to 5.0.
1630 (Context.checkout_tar): Handle variable major version for Linux
1631 kernel.
1632
043440e7
FW
16332019-03-13 Florian Weimer <fweimer@redhat.com>
1634
1635 [BZ #24047]
1636 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1637
29218b26
ZW
16382019-03-13 Zack Weinberg <zackw@panix.com>
1639
1640 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1641 Move to stdlib.
1642 * include/inttypes.h: Adjust to match.
1643 * include/stdint.h: New wrapper.
1644
711a322a
ZW
16452019-03-13 Zack Weinberg <zackw@panix.com>
1646
1647 * scripts/check-obsolete-constructs.py: New test script.
1648 * scripts/check-installed-headers.sh: Remove tests for
1649 obsolete typedefs, superseded by check-obsolete-constructs.py.
1650 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1651 as a special test. Update commentary.
1652 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1653 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1654 Update commentary.
1655 * posix/sys/types.h (__u_intN_t): Remove.
1656 (u_int8_t): Typedef using __uint8_t.
1657 (u_int16_t): Typedef using __uint16_t.
1658 (u_int32_t): Typedef using __uint32_t.
1659 (u_int64_t): Typedef using __uint64_t.
1660
7c651308
SL
16612019-03-13 Stefan Liebler <stli@linux.ibm.com>
1662
1663 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1664 call _dl_procinfo.
1665 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1666 Ignore types other than AT_HWCAP.
1667 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1668 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1669 Likewise.
1670 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1671 in the case of falling back to generic output mechanism.
1672 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1673 Likewise.
1674
38b52865
FW
16752019-03-12 Florian Weimer <fweimer@redhat.com>
1676
1677 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1678
08504de7
FW
16792019-03-12 Florian Weimer <fweimer@redhat.com>
1680
1681 [BZ #24047]
1682 resolv: Enable full ICMP errors for UDP DNS sockets
1683 * resolv/res_enable_icmp.c: New file.
1684 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1685 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1686 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1687 socket.
1688
5fbcd763
MH
16892019-03-11 Mao Han <han_mao@c-sky.com>
1690
1691 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1692 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1693
c4e5f34b
MH
16942019-03-11 Mao Han <han_mao@c-sky.com>
1695
1696 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1697 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1698 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1699
827e30f3
MH
17002019-03-11 Mao Han <han_mao@c-sky.com>
1701
1702 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1703 directly.
1704 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1705 definition.
1706
6229c9bf
MH
17072019-03-11 Mao Han <han_mao@c-sky.com>
1708
1709 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1710 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1711 in mcontext_t
1712
86bdd49d
MF
17132019-03-08 Mike FABIAN <mfabian@redhat.com>
1714
1715 [BZ #24307]
1716 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1717 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1718 Unicode 12.0.0.
1719 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1720 * localedata/unicode-gen/PropList.txt: Likewise.
1721 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1722 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1723 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1724 * localedata/charmaps/UTF-8: Regenerate.
1725 * localedata/locales/i18n_ctype: Likewise.
1726 * localedata/locales/tr_TR: Likewise.
1727 * localedata/locales/translit_circle: Likewise.
1728 * localedata/locales/translit_cjk_compat: Likewise.
1729 * localedata/locales/translit_combining: Likewise.
1730 * localedata/locales/translit_compat: Likewise.
1731 * localedata/locales/translit_font: Likewise.
1732 * localedata/locales/translit_fraction: Likewise.
1733
c5f65462
JM
17342019-03-07 Joseph Myers <joseph@codesourcery.com>
1735
1736 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1737 than after operators.
1738 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1739 (setitimer_locked): Likewise.
1740 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1741 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1742 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1743 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1744 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1745 (PPC_CPU_SUPPORTED): Likewise.
1746 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1747 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1748 (stat_overflow): Likewise.
1749 (statfs_overflow): Likewise.
1750 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1751 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1752 (eq_ttyname_r): Likewise.
1753 (run_chroot_tests): Likewise.
1754
27a2f2f3
FW
17552019-03-07 Florian Weimer <fweimer@redhat.com>
1756
1757 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1758 header check.
1759
ae514971 17602019-03-07 Martin Liska <mliska@suse.cz>
1761
1762 * math/Makefile: Change location where math-vector-fortran.h is
1763 installed.
1764 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1765 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1766 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1767 * scripts/check-installed-headers.sh: Skip Fortran header files.
1768 * scripts/check-wrapper-headers.py: Likewise.
1769
0ddb7ea8
AZ
17702019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1771
1772 * nptl/nptl-init.c (__have_futex_clock_realtime,
1773 __have_futex_clock_realtime): Remove definition.
1774 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1775 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1776 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1777 __ASSUME_FUTEX_CLOCK_REALTIME support.
1778 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1779 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1780 * sysdeps/unix/sysv/linux/kernel-features.h
1781 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1782 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1783 Adjust comment.
1784
590675c0
GG
17852019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1786
1787 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1788 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1789 __GI___wcscpy and wcscpy.
1790
de71ee7b
FW
17912019-03-04 Florian Weimer <fweimer@redhat.com>
1792
1793 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1794 declaration.
1795 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1796 defined.
1797
ce6ddae0
SL
17982019-03-04 Stefan Liebler <stli@linux.ibm.com>
1799
1800 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1801 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1802
31efface
TS
18032019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1804
1805 [BZ #24162]
1806 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1807 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1808
f0eaf862
GG
18092019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1810
1811 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1812 tests.
1813 (do_test): Likewise.
1814 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1815 (do_test_call_varg): Likewise.
1816 (do_test_call_rarg): Likewise.
1817 * sysdeps/ieee754/ldbl-opt/Makefile
1818 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1819 tst-nldbl-error.
1820 ($(objpfx)tst-nldbl-warn.c): New rule.
1821 ($(objpfx)tst-nldbl-error.c): Likewise.
1822 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1823 New variables.
1824
d11086a9
GG
18252019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1826
1827 [BZ #23984]
1828 * include/bits/error-ldbl.h: New file.
1829 * include/error.h: Include stdarg.h. Declare internal functions
1830 __error_internal and __error_at_line_internal.
1831 * misc/Makefile (headers): Add bits/error-ldbl.h.
1832 * misc/bits/error-ldbl.h: New file.
1833 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1834 avoid the inclusion of bits/error.h.
1835 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1836 and __nldbl_error_at_line.
1837 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1838 (__nldbl_error, __ndlbl_error_at_line): New functions.
1839 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1840 Redirect error and error_at_line.
1841 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1843 Likewise.
1844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1845 Likewise.
1846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1847 Likewise.
1848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1849 Likewise.
1850 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1851 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1852 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1853
90188e7d
GG
18542019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1855
1856 [BZ #23984]
1857 * include/bits/err-ldbl.h: New file.
1858 * include/err.h: Add prototypes for the internal functions:
1859 __vwarnx_internal and __vwarn_internal.
1860 * misc/Makefile (headers): Add bits/err-ldbl.h.
1861 * misc/bits/err-ldbl.h: New file.
1862 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1863 defined, i.e.: when -mlong-double-64 is in use.
1864 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1865 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1866 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1867 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1868 (VA_CALL): New macro.
1869 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1870 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1871 functions.
1872 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1873 declare prototypes for the new functions.
1874 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1876 Likewise.
1877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1878 Likewise.
1879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1880 Likewise.
1881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1882 Likewise.
1883 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1884 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1885 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1886
ea2d89d0
GG
18872019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1888
1889 * sysdeps/ieee754/ldbl-opt/Makefile
1890 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1891 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1892 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1893
6e1f6440
GG
18942019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1895
1896 [BZ #23983]
1897 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1898 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1899 * argp/bits/argp-ldbl.h: New file.
1900 * include/argp.h: Include stdarg.h. Add prototypes for internal
1901 functions: __argp_error_internal and __argp_failure_internal.
1902 * include/bits/argp-ldbl.h: New file.
1903 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1904 __nldbl_argp_error and __nldbl_argp_failure.
1905 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1906 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1907 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1908 Redirect argp_error and argp_failure calls.
1909 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1911 Likewise.
1912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1913 Likewise.
1914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1915 Likewise.
1916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1917 Likewise.
1918 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1919 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1920 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1921
c259196b
FW
19222019-03-01 Florian Weimer <fweimer@redhat.com>
1923
1924 [BZ #20419]
1925 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1926 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1927 code, to avoid creating an ABI tag note.
1928 (modules-names-nobuild): Add tst-big-note-lib.
1929
928b305d
SL
19302019-03-01 Stefan Liebler <stli@linux.ibm.com>
1931
1932 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1933 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1934
36f30c10
FW
19352019-03-01 Florian Weimer <fweimer@redhat.com>
1936
1937 [BZ #20271]
1938 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1939 (__netlink_assert_response): Add additional missing newlines.
1940
462e83a4
JM
19412019-02-28 Joseph Myers <joseph@codesourcery.com>
1942
1943 * sysdeps/powerpc/powerpc32/dl-machine.c
1944 (__elf_machine_fixup_plt): Use space before '('.
1945 (__process_machine_rela): Likewise.
1946 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
1947 Likewise.
1948 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
1949 Likewise.
1950 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
1951 Likewise.
1952 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
1953 (pattern): Likewise.
1954 (delta): Likewise.
1955 (check_result): Likewise.
1956 (check_excepts): Likewise.
1957 (check_op): Likewise.
1958 (fail_xr): Likewise.
1959 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
1960 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
1961 (SCNHSZ): Likewise.
1962 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
1963 Likewise.
1964 (ARGS): Likewise.
1965 (__makecontext): Likewise.
1966 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
1967 Likewise.
1968
cc3e573c
FW
19692019-02-28 Florian Weimer <fweimer@redhat.com>
1970
1971 [BZ #23937]
1972 elf: Add test with a local IFUNC resolver.
1973 * elf/ifuncmain9.c: New file.
1974 * elf/ifuncmain9pic.c: Likewise.
1975 * elf/ifuncmain9picstatic.c: Likewise.
1976 * elf/ifuncmain9pie.c: Likewise.
1977 * elf/ifuncmain9static.c: Likewise.
1978 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
1979 ifuncmain9static, ifuncmain9picstatic.
1980 * elf/Makefile [multi-arch && build-shared] (tests-internal):
1981 Add ifuncmain9, ifuncmain9pic.
1982 * elf/Makefile [multi-arch && build-shared && have-fpie]
1983 (ifunc-pie-tests): Add ifuncmain9pie.
1984 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
1985 (CFLAGS-ifuncmain9picstatic.c): Likewise.
1986 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
1987
92ad88fe
L
19882019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
1991 * configure: Regenerated.
1992 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
1993
6bd4d02e
AZ
19942019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1995
1996 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
1997 symbol as __wcspcy instead of wcscpy.
1998
1b218417
ST
19992019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2000
2001 * include/stdio.h (__renameat2): New hidden prototype.
2002 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2003 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2004 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2005 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2006
c4f50205
JM
20072019-02-27 Joseph Myers <joseph@codesourcery.com>
2008
f627dd4d
JM
2009 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2010 if statement.
2011
c4f50205
JM
2012 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2013 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2014 * benchtests/bench-strlen.c (do_test): Likewise.
2015 (test_main): Likewise.
2016 * catgets/gencat.c (read_old): Likewise.
2017 * elf/cache.c (load_aux_cache): Likewise.
2018 * iconvdata/bug-iconv8.c (do_test): Likewise.
2019 * math/test-tgmath-ret.c (do_test): Likewise.
2020 * nis/nis_call.c (rec_dirsearch): Likewise.
2021 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2022 * nptl/tst-audit-threads.c (do_test): Likewise.
2023 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2024 * nss/nss_test1.c (init): Likewise.
2025 * nss/test-netdb.c (test_hosts): Likewise.
2026 * posix/execvpe.c (maybe_script_execute): Likewise.
2027 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2028 * stdio-common/tst-printf.c (do_test): Likewise.
2029 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2030 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2031 * stdlib/qsort.c (STACK_SIZE): Likewise.
2032 * stdlib/test-canon.c (do_test): Likewise.
2033 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2034 * string/memcmp.c (OPSIZ): Likewise.
2035 * string/test-strcpy.c (do_test): Likewise.
2036 (do_random_tests): Likewise.
2037 * string/test-strlen.c (do_test): Likewise.
2038 (test_main): Likewise.
2039 * string/test-strrchr.c (do_test): Likewise.
2040 (do_random_tests): Likewise.
2041 * string/tester.c (test_memrchr): Likewise.
2042 (test_memchr): Likewise.
2043 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2044 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2045 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2046 (read_encoded_value_with_base): Likewise.
2047 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2048 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2049 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2050 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2051 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2052 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2053 Likewise.
2054 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2055 Likewise.
2056 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2057 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2058 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2059 Likewise.
2060 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2061 Likewise.
2062 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2063 Likewise.
2064 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2065 Likewise.
2066 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2067 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2068 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2069 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2070 * time/test_time.c (main): Likewise.
2071
7b3fb620
AZ
20722019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2073
457208b1
AZ
2074 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2075
30a7e208
AZ
2076 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2077 wmemcpy.
2078
ddf21ec7
AZ
2079 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2080 wmemcpy.
2081
4d801563
AZ
2082 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2083
81a14439
AZ
2084 * include/wchar.h (__wcscpy): New prototype.
2085 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2086 (__wcscpy): Route internal symbol to generic implementation.
2087 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2088 Add internal __wcscpy alias.
2089 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2090 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2091 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2092 * wcsmbs/wcscpy.c (wcscpy): Add
2093 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2094 use generic implementation.
2095 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2096
39ef0744
AZ
2097 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2098 wmemset.
2099
7b3fb620
AZ
2100 * sysdeps/m68k/wcpcpy.c: Remove file.
2101 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2102
e0cb7b61
JM
21032019-02-26 Joseph Myers <joseph@codesourcery.com>
2104
aa0e4663
JM
2105 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2106 than after operators.
2107 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2108 * sysdeps/mach/hurd/getcwd.c
2109 (__hurd_canonicalize_directory_name_internal): Likewise.
2110 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2111 (pthread_mutex_consistent): Likewise.
2112 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2113 Likewise.
2114 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2115 (__pthread_mutex_transfer_np): Likewise.
2116 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2117 (__pthread_mutex_unlock): Likewise.
2118 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2119 (mtx_owned_p): Likewise.
2120 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2121 (pthread_mutexattr_getrobust): Likewise.
2122 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2123 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2124 Likewise.
2125 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2126 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2127 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2128 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2129 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2130 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2131 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2132 Likewise.
2133 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2134 Likewise.
2135 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2136 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2137 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2138 (____longjmp_chk): Likewise.
2139 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2140 Likewise.
2141 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2142 (INTERNAL_SYSCALL): Likewise.
2143 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2144 (INTERNAL_SYSCALL): Likewise.
2145 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2146 (__get_clockfreq_via_cpuinfo): Likewise.
2147
e0cb7b61
JM
2148 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2149 comments.
2150 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2151 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2152 (WORD_COPY_BWD): Likewise.
2153 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2154 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2155 Likewise.
2156 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2157 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2158 comment.
2159 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2160
a04549c1
JM
21612019-02-25 Joseph Myers <joseph@codesourcery.com>
2162
2163 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2164 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2165 rather than after operators.
2166 * elf/cache.c (print_cache): Likewise.
2167 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2168 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2169 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2170 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2171 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2172 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2173 (reauth_proc): Likewise.
2174 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2175 (__file_name_split_at): Likewise.
2176 (__directory_name_split_at): Likewise.
2177 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2178 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2179 * iconv/gconv_dl.c (do_print): Likewise.
2180 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2181 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2182 * locale/setlocale.c (new_composite_name): Likewise.
2183 * malloc/memusagestat.c (main): Likewise.
2184 * misc/fstab.c (fstab_convert): Likewise.
2185 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2186 Likewise.
2187 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2188 (getgrent_next_file): Likewise.
2189 (internal_getgrnam_r): Likewise.
2190 (internal_getgrgid_r): Likewise.
2191 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2192 Likewise.
2193 (internal_getgrent_r): Likewise.
2194 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2195 (getpwent_next_nss): Likewise.
2196 (getpwent_next_file): Likewise.
2197 (internal_getpwnam_r): Likewise.
2198 (internal_getpwuid_r): Likewise.
2199 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2200 Likewise.
2201 (getspent_next_nss): Likewise.
2202 (internal_getspnam_r): Likewise.
2203 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2204 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2205 * string/strchr.c (STRCHR): Likewise.
2206 * string/strchrnul.c (STRCHRNUL): Likewise.
2207 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2208 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2209 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2210 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2211 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2212 Likewise.
2213 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2214 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2215 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2216 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2217 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2218 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2219 (open_file): Likewise.
2220 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2221 (pthread_mutexattr_setprotocol): Likewise.
2222 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2223 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2224 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2225 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2226 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2227 Likewise.
2228 (elf_machine_rela): Likewise.
2229 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2230 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2231 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2232 * sysdeps/posix/rename.c (rename): Likewise.
2233 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2234 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2235 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2236 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2237 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2238 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2239 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2240 Likewise.
2241 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2242 Likewise.
2243 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2244 * time/tzfile.c (__tzfile_compute): Likewise.
2245
34a5a146
JM
22462019-02-22 Joseph Myers <joseph@codesourcery.com>
2247
2248 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2249 rather than after operators.
2250 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2251 * crypt/md5.c (md5_finish_ctx): Likewise.
2252 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2253 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2254 * elf/cache.c (load_aux_cache): Likewise.
2255 * elf/dl-load.c (open_verify): Likewise.
2256 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2257 * elf/readelflib.c (process_elf_file): Likewise.
2258 * elf/rtld.c (dl_main): Likewise.
2259 * elf/sprof.c (generate_call_graph): Likewise.
2260 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2261 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2262 * hurd/dtable.c (reauth_dtable): Likewise.
2263 * hurd/getdport.c (__getdport): Likewise.
2264 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2265 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2266 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2267 Likewise.
2268 * hurd/hurdioctl.c (fioctl): Likewise.
2269 * hurd/hurdselect.c (_hurd_select): Likewise.
2270 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2271 (STOPSIGS): Likewise.
2272 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2273 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2274 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2275 * hurd/msgportdemux.c (msgport_server): Likewise.
2276 * hurd/setauth.c (_hurd_setauth): Likewise.
2277 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2278 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2279 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2280 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2281 * login/tst-utmp.c (do_check): Likewise.
2282 (simulate_login): Likewise.
2283 * mach/lowlevellock.h (lll_lock): Likewise.
2284 (lll_trylock): Likewise.
2285 * math/test-fenv.c (ALL_EXC): Likewise.
2286 * math/test-fenvinline.c (ALL_EXC): Likewise.
2287 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2288 * nis/nis_call.c (__do_niscall3): Likewise.
2289 * nis/nis_callback.c (cb_prog_1): Likewise.
2290 * nis/nis_defaults.c (searchaccess): Likewise.
2291 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2292 * nis/nis_ismember.c (internal_ismember): Likewise.
2293 * nis/nis_local_names.c (nis_local_principal): Likewise.
2294 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2295 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2296 Likewise.
2297 * nis/ypclnt.c (yp_match): Likewise.
2298 (yp_first): Likewise.
2299 (yp_next): Likewise.
2300 (yp_master): Likewise.
2301 (yp_order): Likewise.
2302 * nscd/hstcache.c (cache_addhst): Likewise.
2303 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2304 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2305 (internal_getpwuid_r): Likewise.
2306 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2307 * posix/glob.h (__GLOB_FLAGS): Likewise.
2308 * posix/regcomp.c (peek_token): Likewise.
2309 (peek_token_bracket): Likewise.
2310 (parse_expression): Likewise.
2311 * posix/regexec.c (sift_states_iter_mb): Likewise.
2312 (check_node_accept_bytes): Likewise.
2313 * posix/tst-spawn3.c (do_test): Likewise.
2314 * posix/wordexp-test.c (testit): Likewise.
2315 * posix/wordexp.c (parse_tilde): Likewise.
2316 (exec_comm): Likewise.
2317 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2318 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2319 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2320 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2321 * stdio-common/tst-fileno.c (do_test): Likewise.
2322 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2323 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2324 * stdlib/strtod_l.c (round_and_return): Likewise.
2325 (____STRTOF_INTERNAL): Likewise.
2326 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2327 * string/strcspn.c (STRCSPN): Likewise.
2328 * string/test-memmem.c (simple_memmem): Likewise.
2329 * termios/tcsetattr.c (tcsetattr): Likewise.
2330 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2331 * time/asctime.c (asctime_internal): Likewise.
2332 * time/strptime_l.c (__strptime_internal): Likewise.
2333 * time/sys/time.h (timercmp): Likewise.
2334 * time/tzfile.c (__tzfile_compute): Likewise.
2335
b0b50fe0
PF
23362019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2337
b39d961c
TS
2338 [BZ #21915]
2339 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
b0b50fe0 2340
f43b8dd5
GG
23412019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2342
2343 * argp/argp-help.c (__argp_error_internal): New function,
2344 renamed from __argp_error, but that takes a 'mode_flags'
2345 parameter to control the format of long double parameters.
2346 (__argp_error): Converted into a call __argp_error_internal.
2347 (__argp_failure_internal): New function, renamed from
2348 __argp_failure, but that takes a 'mode_flags' parameter.
2349 (__argp_failure): Converted into a call __argp_failure_internal.
2350 * misc/err.c (__vwarnx_internal): New function, renamed from
2351 vwarnx, but that takes a 'mode_flags' parameter.
2352 (vwarnx): Converted into a call to __vwarnx_internal.
2353 (__vwarn_internal): New function, renamed from vwarn, but that
2354 takes a 'mode_flags' parameter.
2355 (vwarn): Converted into a call to __vwarn_internal.
2356 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2357 call to __vfxprintf with 'mode_flags'.
2358 (__error_internal): New function, renamed from error, but that
2359 takes a 'mode_flags' parameter.
2360 (error): Converted into a call to __error_internal.
2361 (__error_at_line_internal): New function, renamed from
2362 error_at_line, but that takes a 'mode_flags' parameter.
2363 (error_at_line): Converted into a call to
2364 __error_at_line_internal.
2365 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2366 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2367 Likewise.
2368
dc0afac3 23692019-02-20 Martin Liska <mliska@suse.cz>
2370
2371 * math/Makefile: Install math-vector-fortran.h.
2372 * bits/math-vector-fortran.h: New file.
2373 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2374
4a2dd41c
GG
23752019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2376
2377 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2378 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2379
04de9302
WS
23802019-02-19 Wolfram Sang <wsa@the-dreams.de>
2381
2382 * nptl/pthread_mutex_trylock.c: Fix comment.
2383
b026ce1e
CD
23842019-02-19 Carlos O'Donell <carlos@redhat.com>
2385
2386 * nptl/pthread_tryjoin.c: Fix comment.
2387
8c9289b6
JM
23882019-02-18 Joseph Myers <joseph@codesourcery.com>
2389
2390 [BZ #24231]
2391 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2392 after R_SPARC_H34 case.
2393
308e022f
FW
23942019-02-18 Florian Weimer <fweimer@redhat.com>
2395
2396 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2397 (getanswer): Do not call Dprintf.
2398 (res_gethostbyname2_context): Likewise.
2399 (res_gethostbyaddr_context): Likewise.
2400
a5406364
FW
24012019-02-18 Florian Weimer <fweimer@redhat.com>
2402
2403 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2404 declaration.
2405 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2406 Remove definitions.
2407 * libio/stdfiles.c: Update comment.
2408 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2409 set _IO_stdin, _IO_stdout, _IO_stderr.
2410 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2411 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2412 inline function.
2413 (_IO_deallocate_file): New inline function.
2414 * libio/iolibio.h (_IO_vprintf): Remove definition.
2415 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2416 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2417 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2418 _IO_legacy_file.
2419 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2420 __builtin_expect. Use _IO_legacy_file.
2421
6c29942c
SL
24222019-02-18 Stefan Liebler <stli@linux.ibm.com>
2423
2424 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2425 Initialize ctid with a known value and remove update of ctid
2426 after clone.
2427 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2428 as assumed current value of ctid_ptr.
2429
225d9445 24302019-02-16 Florian Weimer <fweimer@redhat.com>
ad18dade
FW
2431
2432 Check that non-sysdeps headers have wrapper headers.
2433 * scripts/check-wrapper-headers.py: New file.
2434 * Makefile (tests-special): Add check-wrapper-headers.out.
2435 (check-wrapper-headers.out): New target.
2436 * Rules (tests-special): Add check-wrapper-headers.out.
2437 (check-wrapper-headers.out): New target.
2438
225d9445 24392019-02-16 Florian Weimer <fweimer@redhat.com>
ebd32784
FW
2440
2441 Add missing header wrappers under include/.
2442 * include/ar.h: New file.
2443 * include/bits/mqueue2.h: Likewise.
2444 * include/bits/stdio.h: Likewise.
2445 * include/bits/stdio2.h: Likewise.
2446 * include/fstab.h: Likewise.
2447 * include/fts.h: Likewise.
2448 * include/lastlog.h: Likewise.
2449 * include/netinet/icmp6.h: Likewise.
2450 * include/netinet/igmp.h: Likewise.
2451 * include/netinet/ip6.h: Likewise.
2452 * include/re_comp.h: Likewise.
2453 * include/regexp.h: Likewise.
2454 * include/rpcsvc/bootparam.h: Likewise.
2455 * include/rpcsvc/yp_prot.h: Likewise.
2456 * include/sys/random.h: Likewise.
2457 * include/sys/stropts.h: Likewise.
2458 * include/sys/ttychars.h: Likewise.
2459 * include/sys/vfs.h: Likewise.
2460 * include/wait.h: Likewise.
2461
225d9445 24622019-02-16 Florian Weimer <fweimer@redhat.com>
a198d37a
FW
2463
2464 * nptl_db/proc_service.h: Move to ...
2465 * sysdeps/nptl/proc_service.h: ... here.
2466 * nptl_db/thread_db.h: Move to ...
2467 * sysdeps/nptl/thread_db.h: ... here.
2468 * nptl/descr.h: Include <thread_db.h>.
2469
e442e40d
AZ
24702019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2471
2472 * io/Makefile (tests): Add tst-lockf.
2473 * io/lockf.c (lockf): Use __fcntl and only define for
2474 !__OFF_T_MATCHES_OFF64_T.
2475 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2476 __OFF_T_MATCHES_OFF64_T case.
2477 * io/tst-lockf.c: New file.
2478 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2479 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2480 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2481 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2482 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2484 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2485 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2486 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2487
bc10e22c
FW
24882019-02-15 Florian Weimer <fweimer@redhat.com>
2489
2490 [BZ #24211]
2491 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2492 pd->result after the thread descriptor has been freed.
2493
365f05c7
JM
24942019-02-15 Joseph Myers <joseph@codesourcery.com>
2495
8a11f970
JM
2496 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2497 from function return type.
2498
365f05c7
JM
2499 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2500
6b5c8607 25012019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
56a731d4
JK
2502
2503 * scripts/test_printers_common.py: Set TERM to a known harmless
2504 value.
2505
712182c8
JM
25062019-02-14 Joseph Myers <joseph@codesourcery.com>
2507
2508 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2509 (xdr_u_int): Likewise.
2510 (xdr_enum): Likewise.
2511 (xdr_bytes): Reword fall-through comment.
2512 (xdr_string): Likewise.
2513
eb76e5b4
AZ
25142019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2515
2516 [BZ #2421]
2517 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2518 (tests): Add tst-join8 tst-join9.
2519 * nptl/lll_timedwait_tid.c: Remove file.
2520 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2521 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2522 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2523 * nptl/pthread_join_common.c (timedwait_tid): New function.
2524 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2525 is set.
2526 * nptl/tst-join5.c (thread_join): New function.
2527 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2528 check.
2529 * nptl/tst-join8.c: New file.
2530 * nptl/tst-join9.c: Likewise.
2531 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2532 lll_futex_timed_wait_cancel): Add generic macros.
2533 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2534 Remove definitions.
2535 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2536 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2537 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2538 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2539 Remove function.
2540 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2541 Likewise.
2542 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2543 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2544 (lll_futex_timed_wait_cancel): New macro.
2545
3904fd85
WD
25462019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2547
2548 * benchtests/Makefile: Add malloc-simple benchmark.
2549 * benchtests/bench-malloc-simple.c: New benchmark.
2550
24ca04fe
SP
25512019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2552
2553 * benchtests/bench-memmove.c (do_one_test): Remove unused
2554 ORIG_SRC.
2555 (do_test): Adjust.
2556 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2557 ORIG_SRC.
2558 (do_test): Adjust.
2559
85bd1ddb
JW
25602019-01-13 Jim Wilson <jimw@sifive.com>
2561
2562 [BZ #24040]
2563 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2564 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2565 (func): New.
2566 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2567 call func directly.
2568 * nptl/Makefile (tests): Add tst-unwind-thread.
2569 (CFLAGS-tst-unwind-thread.c): Define.
2570 * nptl/tst-unwind-thread.c: New file.
2571 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2572 as undefined.
2573
86140c62
JM
25742019-02-13 Joseph Myers <joseph@codesourcery.com>
2575
10756268
JM
2576 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2577 comment wording.
2578 * nis/nis_call.c (__do_niscall3): Likewise.
2579
05383720
JM
2580 * catgets/gencat.c (normalize_line): Use braces around empty
2581 'else' body.
2582 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2583 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2584 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2585 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2586 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2587 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2588 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2589 definition.
2590
86140c62
JM
2591 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2592 execlp returns.
2593
16f87cfd
WD
25942019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2595
2596 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2597 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2598 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2599 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2600 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2601 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2602 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2603 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2604 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2605 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2606 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2607 * benchtests/bench-bcopy.c: Delete file.
2608 * benchtests/bench-bzero.c: Likewise.
2609 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2610 (simple_memccpy): Remove.
2611 (generic_memccpy): Add function.
2612 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2613 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2614 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2615 (generic_mempcpy): Add new function.
2616 * benchtests/bench-memset.c (simple_bzero): Remove.
2617 (builtin_bzero): Remove.
2618 (builtin_memset): Remove.
2619 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2620 (generic_rawmemchr): Add new function.
2621
0c6d82e9
FW
26222019-02-12 Florian Weimer <fweimer@redhat.com>
2623
2624 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2625
b3fbfe81
AZ
26262019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2627
2628 [BZ #24122]
2629 * elf/Makefile (tests): Add tst-audit13.
2630 (modules-names): Add tst-audit13mod1.
2631 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2632 rule.
2633 * elf/tst-audit13.c: New file.
2634 * elf/tst-audit13mod1.c: Likewise.
2635
3b856d09
FW
26362019-02-12 Florian Weimer <fweimer@redhat.com>
2637
2638 [BZ #24122]
2639 * elf/rtld.c (unload_audit_module): New function.
2640 (report_audit_module_load_error): Likewise.
2641 (load_audit_module): Likewise. Extracted from dl_main. Call
2642 _dl_close if the laversion symbol cannot be found. Use early
2643 returns for error handling. Add malloc error check. Check for a
2644 zero return value from la_version. Remove spurious comment about
2645 static TLS initialization. Remove useless casts.
2646 (notify_audit_modules_of_loaded_object): New function. Extracted
2647 from dl_main.
2648 (load_audit_module): Likewise.
2649 (dl_main): Call load_audit_modules.
2650
32db86d5
JM
26512019-02-12 Joseph Myers <joseph@codesourcery.com>
2652
2653 * elf/dl-exception.c (_dl_exception_create_format): Add
2654 fall-through comments.
2655 * elf/ldconfig.c (parse_conf_include): Likewise.
2656 * elf/rtld.c (print_statistics): Likewise.
2657 * locale/programs/charmap.c (parse_charmap): Likewise.
2658 * misc/mntent_r.c (__getmntent_r): Likewise.
2659 * posix/wordexp.c (parse_arith): Likewise.
2660 (parse_backtick): Likewise.
2661 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2662 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2663 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2664
a51bc4fe
PC
26652019-02-11 Paul A. Clarke <pc@us.ibm.com>
2666
2667 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2668 Use float instead of double.
2669
fb25b135
TS
26702019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2671
2672 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2673
32ea7299
JM
26742019-02-08 Joseph Myers <joseph@codesourcery.com>
2675
2676 * sysdeps/powerpc/bits/mathinline.h: Remove.
2677
eef4d4f8
FW
26782019-02-08 Florian Weimer <fweimer@redhat.com>
2679
2680 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2681 * math/bits/math-finite.h: Move to ...
2682 * bits/math-finite.h: ... here.
2683
fdfbd47d
FW
26842019-02-08 Florian Weimer <fweimer@redhat.com>
2685
2686 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2687 * bits/unistd_ext.h: here.
2688
11eb21c4
PF
26892019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2690
2691 [BZ #21915]
2692 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2693 * nss/tst-nss-files-hosts-long.c: New file.
2694 * nss/tst-nss-files-hosts-long.root: New directory.
2695 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2696 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2697
e47d82c9
FW
26982019-02-08 Florian Weimer <fweimer@redhat.com>
2699
2700 * include/bits/unistd_ext.h: Remove file.
2701 * posix/bits/unistd_ext.h: Move to ...
2702 * sysdeps/generic/bits/unistd_ext.h: ... here.
2703
8f89ab21
FW
27042019-02-08 Florian Weimer <fweimer@redhat.com>
2705
2706 * include/bits/unistd_ext.h: New file.
2707
144a794e
TS
27082019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2709
2710 * time/tst-strftime2.c: Use array_length macros instead of magic
2711 numbers.
2712
669ff911
FW
27132019-02-08 Florian Weimer <fweimer@redhat.com>
2714
2715 [BZ #24161]
2716 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2717 argument.
2718 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2719 locking if the new do_locking argument is true.
2720 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2721 __run_fork_handlers.
2722
d0bd87d4 27232019-02-08 Florian Weimer <fweimer@redhat.com>
1d0fc213
FW
2724
2725 [BZ #6399]
2726 Linux: Add gettid system call wrapper.
2727 * posix/Makefile (headers): Add bits/unistd_ext.h.
2728 * posix/bits/unistd_ext.h: New file.
2729 * posix/unistd.h: Include it.
2730 * manual/process.texi (Process Identification): Document gettid.
2731 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2732 tst-gettid, tst-gettid-kill.
2733 (tst-gettid): Link with $(shared-thread-library).
2734 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2735 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2736 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2737 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2738 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2739 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2740 Add gettid.
2741 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2742 Likewise.
2743 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2744 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2745 Likewise.
2746 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2747 Likewise.
2748 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2749 Likewise.
2750 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2751 Likewise.
2752 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2753 Likewise.
2754 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2755 Likewise.
2756 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2757 Likewise.
2758 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2759 (GLIBC_2.30): Likewise.
2760 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2761 (GLIBC_2.30): Likewise.
2762 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2763 (GLIBC_2.30): Likewise.
2764 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2765 (GLIBC_2.30): Likewise.
2766 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2767 Likewise.
2768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2769 (GLIBC_2.30): Likewise.
2770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2771 (GLIBC_2.30): Likewise.
2772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2773 (GLIBC_2.30): Likewise.
2774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2775 (GLIBC_2.30): Likewise.
2776 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2777 Likewise.
2778 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2779 Likewise.
2780 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2781 Likewise.
2782 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2783 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2784 Likewise.
2785 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2786 Likewise.
2787 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2788 Likewise.
2789 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2790 Likewise.
2791 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2792
225d9445 27932019-02-08 Florian Weimer <fweimer@redhat.com>
f289e656
FW
2794
2795 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2796 compatibility symbols.
2797
823624bd
SL
27982019-02-07 Stefan Liebler <stli@linux.ibm.com>
2799
2800 [BZ #24180]
2801 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2802 Add compiler barriers and comments.
2803
8311c83f
FW
28042019-02-07 Florian Weimer <fweimer@redhat.com>
2805
2806 * include/array_length.h (array_length): Do not use a statement
2807 expression and _Static_assert, so that array_length can be used at
2808 file scope and as a constant expression.
2809
94b63e66
FW
28102019-02-07 Florian Weimer <fweimer@redhat.com>
2811
2812 * support/xdlfcn.h (xdlmopen): Declare.
2813 * support/xdlmopen.c: New file.
2814 * support/Makefile (libsupport-routines): Add xdlmopen.
2815
c2d8f0b7
JM
28162019-02-06 Joseph Myers <joseph@codesourcery.com>
2817
2818 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2819 before return type, without separate inline.
2820 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2821 * elf/dl-tunables.h (tunable_is_name): Likewise.
2822 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2823 (do_set_top_pad): Likewise.
2824 (do_set_mmap_threshold): Likewise.
2825 (do_set_mmaps_max): Likewise.
2826 (do_set_mallopt_check): Likewise.
2827 (do_set_perturb_byte): Likewise.
2828 (do_set_arena_test): Likewise.
2829 (do_set_arena_max): Likewise.
2830 (do_set_tcache_max): Likewise.
2831 (do_set_tcache_count): Likewise.
2832 (do_set_tcache_unsorted_limit): Likewise.
2833 * nis/nis_subr.c (count_dots): Likewise.
2834 * nptl/allocatestack.c (advise_stack_range): Likewise.
2835 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2836 (do_sin): Likewise.
2837 (reduce_sincos): Likewise.
2838 (do_sincos): Likewise.
2839 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2840 (do_set_elision_enable): Likewise.
2841 (TUNABLE_CALLBACK_FNDECL): Likewise.
2842
3b935595
FW
28432019-02-06 Florian Weimer <fweimer@redhat.com>
2844
2845 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2846 (xdlsym): Use dlerror to detect a NULL symbol.
2847
b4333340
FW
28482019-02-06 Florian Weimer <fweimer@redhat.com>
2849
2850 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2851 <stap-probe.h>.
2852 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2853
b6d8a999
SL
28542019-02-06 Stefan Liebler <stli@linux.ibm.com>
2855
2856 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2857
94eeeec0
SL
28582019-02-06 Stefan Liebler <stli@linux.ibm.com>
2859
2860 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2861 __wmemcmp and weak alias to wmemcmp.
2862
bc79db3f
SL
28632019-02-06 Stefan Liebler <stli@linux.ibm.com>
2864
2865 [BZ #23403]
2866 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2867 TLS_TCB_AT_TP tls variant.
2868 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2869 Add alignment checks.
2870 * support/Makefile (libsupport-routines): Add xposix_memalign and
2871 xpthread_setstack.
2872 * support/support.h: Add xposix_memalign.
2873 * support/xthread.h: Add xpthread_attr_setstack.
2874 * support/xposix_memalign.c: New File.
2875 * support/xpthread_attr_setstack.c: Likewise.
2876
f1ac7455
FW
28772019-02-05 Florian Weimer <fweimer@redhat.com>
2878
2879 [BZ #24164]
2880 arm: Use "nr" constraint for Systemtap probes, to avoid the
2881 compiler using memory operands for constants, due to the "o"
2882 alternative in the default "nor" constraint.
2883 * include/stap-probe.h [USE_STAP_PROBE]: Include
2884 <stap-probe-machine.h>
2885 * sysdeps/generic/stap-probe-machine.h: New file.
2886 * sysdeps/arm/stap-probe-machine.h: Likewise.
2887
7a0dcfc6
JM
28882019-02-04 Joseph Myers <joseph@codesourcery.com>
2889
77dc0d86
JM
2890 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2891 with 0, not tcache->entries[tc_idx].
2892
7a0dcfc6
JM
2893 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2894 once.
2895
65f7767a
AS
28962019-02-04 Andreas Schwab <schwab@suse.de>
2897
2898 [BZ #16976]
2899 [BZ #17396]
2900 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2901 looking up collating elements match against (wide) character
2902 sequence instead of name. Correct alignment adjustment.
2903 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2904 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2905 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2906 (LOCALES): Add cs_CZ.ISO-8859-2.
2907 * posix/tst-fnmatch4.c: New file.
2908 * posix/tst-fnmatch5.c: New file.
2909 * include/wchar.h (__wmemcmp): Declare.
2910 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2911 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2912 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2913 * sysdeps/s390/wmemcmp.c: Likewise.
2914
3f635fb4
L
29152019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2916
2917 [BZ #24155]
2918 CVE-2019-7309
2919 * NEWS: Updated for CVE-2019-7309.
2920 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2921 upper 32 bits of RDX register for x32. Use unsigned Jcc
2922 instructions, instead of signed.
2923 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2924 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2925
2ab5741b
FW
29262019-02-04 Florian Weimer <fweimer@redhat.com>
2927
2928 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2929 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2930 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2931 Likewise.
2932 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2933 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2934 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2935 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2936 Likewise.
2937 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
2938 Likewise.
2939 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
2940 Likewise.
2941 (posix_spawn_file_actions_addopen): Likewise.
2942 (posix_spawn_file_actions_addclose): Likewise.
2943 (posix_spawn_file_actions_adddup2): Likewise.
2944 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
2945 qualifiers.
2946 (posix_spawn_file_actions_addfchdir_np): Likewise.
2947
8692ebdb
DN
29482019-02-04 David Newall <glibc@davidnewall.com>
2949
2950 elf: Implement --preload option for the dynamic linker.
2951 * elf/rtld.c (preloadarg): New variable.
2952 (handle_preload_list): Pass through “where” argument to
2953 do_preload.
2954 (dl_main): Handle "--preload" and add second call to
2955 handle_preload_list.
2956 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
2957 (tst-rtld-preload-OBJS): Set variable.
2958 (tst-rtld-preload.out): New target.
2959 * elf/tst-rtld-preload.sh: New file.
2960
5e10136b
MM
29612019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
2962
2963 * Makefile (testrun.sh): Exit in case of incorrect argument.
2964
221baae0
FW
29652019-02-04 Florian Weimer <fweimer@redhat.com>
2966
2967 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
2968 alignment gaps.
2969
b8c72381
FW
29702019-02-03 Florian Weimer <fweimer@redhat.com>
2971
2972 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
2973 implicit overflow checks.
2974
11f382ee
AJ
29752019-02-03 Aurelien Jarno <aurelien@aurel32.net>
2976
2977 * stdlib/isomac.c: Include <unistd.h>.
2978
77c7d55e
FW
29792019-02-03 Florian Weimer <fweimer@redhat.com>
2980
2981 * include/time.h (__tzfile_default): Use int, not long int, for
2982 the GMT offsets.
2983 * time/tzfile.c (struct ttinfo): Change type of the offset member
2984 to int.
2985 (__tzfile_read): Remove useless cast.
2986 (__tzfile_default): Adjust prototype.
2987 * time/tzset.c (tz_rule): Change type of the offset member to int.
2988 (parse_offset): Change the type of the sign variable to int.
2989
ee9941f9
FW
29902019-02-03 Florian Weimer <fweimer@redhat.com>
2991
2992 [BZ #24153]
2993 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
2994 * libio/getchar.c (getchar): Likewise.
2995 * libio/getchar_u.c (getchar_unlocked): Likewise.
2996 * libio/getwchar.c (getwchar): Likewise.
2997 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2998 * libio/iogets.c (_IO_gets): Likewise.
2999 * libio/vscanf.c (_IO_vscanf): Likewise.
3000 * libio/vwscanf.c (__vwscanf): Likewise.
3001 * libio/tst-bz24153.c: New file.
3002 * libio/Makefile (tests): Add it.
3003
c70824b9
FW
30042019-02-02 Florian Weimer <fweimer@redhat.com>
3005
3006 [BZ #14829]
3007 * manual/resource.texi (Basic Scheduling Functions): Add
3008 portability note. Change process to task throughout the section.
3009 Remove incorrect comment about sched_yield as it affects
3010 tasks/threads, not entire processes.
3011 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3012 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3013
4dcbbc3b
JM
30142019-02-01 Joseph Myers <joseph@codesourcery.com>
3015
3016 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3017 * configure: Regenerated.
3018 * manual/install.texi (Tools for Compilation): Update minimum GCC
3019 version.
3020 * INSTALL: Regenerated.
3021
6175507c
FW
30222019-02-01 Florian Weimer <fweimer@redhat.com>
3023
3024 * support/support_test_compare_string.c
3025 (support_test_compare_string): Use "string" in error message.
3026 * support/tst-test_compare_string.c (do_test): Adjust.
3027
baef1943
FW
30282019-02-01 Florian Weimer <fweimer@redhat.com>
3029
3030 * support/support_format_address_family.c
3031 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3032
395599f0
FW
30332019-02-01 Florian Weimer <fweimer@redhat.com>
3034
3035 * manual/socket.texi (Internet Address Formats): Clarify the byte
3036 order of struct sockaddr_in, struct sockaddr_in6. Document
3037 sin6_flowinfo and sin6_scope_id.
3038
b06f4c00
WD
30392019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3040
3041 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3042 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3043 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3044 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3045 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3046 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3047
83d1cc42
FX
30482019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3049
3050 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3051 [!MEMCHR](MEMCHR): Set to __memchr.
3052 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3053 Add memchr_generic and memchr_nosimd.
3054 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3055 (__libc_ifunc_impl_list): Add memchr ifuncs.
3056 * sysdeps/aarch64/multiarch/memchr.c: New file.
3057 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3058 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3059
c7d3890f
FX
30602019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3061
3062 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3063 Add memset_emag.
3064 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3065 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3066 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3067 Add IS_EMAG check for ifunc dispatch.
3068 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3069 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3070
07c3d1ec
FX
30712019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3072
3073 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3074 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3075 Add emag.
3076 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3077 New macro.
3078
114f792e
SL
30792019-02-01 Stefan Liebler <stli@linux.ibm.com>
3080
3081 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3082
d5627550
VG
30832019-01-31 Vineet Gupta <vgupta@synopsys.com>
3084
3085 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3086 syscall-template file.
3087
5fc9ed4c
CD
30882019-01-31 Carlos O'Donell <carlos@redhat.com>
3089 Torvald Riegel <triegel@redhat.com>
3090 Rik Prohaska <prohaska7@gmail.com>
3091
3092 [BZ# 23844]
3093 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3094 tst-rwlock-trywrlock-stall.
3095 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3096 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3097 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3098 Set __wrphase_fute to 1 only if we started the write phase.
3099 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3100 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3101 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3102 * support/xpthread_rwlock_destroy.c: New file.
3103 * support/xthread.h: Declare xpthread_rwlock_destroy.
3104
932329a5
JM
31052019-02-01 Joseph Myers <joseph@codesourcery.com>
3106
3107 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3108 version to 4.0.2.
3109
5f10701f
PP
31102019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3111
3112 [BZ #24051]
3113 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3114 * libio/fileops.c (_IO_new_file_underflow): Likewise
3115 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3116 * libio/putchar.c (putchar): Likewise.
3117 * libio/putchar_u.c (putchar_unlocked): Likewise.
3118 * libio/putwchar.c (putchar): Likewise.
3119 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3120 * libio/tst-bz24051.c: New test.
3121 * libio/Makefile (tests): Add tst-bz24051
3122
583dd860
PE
31232019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3124
b626c5aa 3125 CVE-2019-9169
583dd860
PE
3126 regex: fix read overrun [BZ #24114]
3127 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3128 https://debbugs.gnu.org/34140
3129 * posix/regexec.c (proceed_next_node):
3130 Do not read past end of input buffer.
3131
2bac7daa
FW
31322019-01-31 Florian Weimer <fweimer@redhat.com>
3133
3134 [BZ #24059]
3135 * nss/nss_files/files-alias.c (get_next_alias): Handle
3136 continuation line without newline at the end.
3137 * nss/tst-nss-files-alias-truncated.c: New file.
3138 * nss/Makefile [$(build-shared)] (tests): Add
3139 tst-nss-files-alias-truncated.
3140 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3141 * support/namespace.h (struct support_chroot_configuration): Add
3142 aliases member.
3143 (struct support_chroot): Add path_aliases member.
3144 * support/support_chroot.c (support_chroot_create): Handle
3145 aliases.
3146 (support_chroot_free): Free path_aliases.
3147
330c9d0d
SP
31482019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3149
de44ab67
SP
3150 * version.h (RELEASE): Set to "development".
3151 (VERSION): Set to "2.29.9000".
3152 * NEWS: Add section for 2.30.
3153
56c86f5d
SP
3154 * version.h (RELEASE): Set to "stable".
3155 (VERSION): Set to "2.29".
3156 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3157
330c9d0d
SP
3158 * NEWS: Add the list of bugs fixed in 2.29.
3159 * manual/contrib.texi: Update contributors list with some more
3160 names.
3161 * manual/install.texi: Update latest versions of packages
3162 tested.
3163 * INSTALL: Regenerated.
3164
e1e47c91
SP
31652019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3166
3167 * po/be.po: Update translations.
3168 * po/bg.po: Likewise.
3169 * po/ca.po: Likewise.
3170 * po/cs.po: Likewise.
3171 * po/da.po: Likewise.
3172 * po/de.po: Likewise.
3173 * po/el.po: Likewise.
3174 * po/eo.po: Likewise.
3175 * po/es.po: Likewise.
3176 * po/fi.po: Likewise.
3177 * po/fr.po: Likewise.
3178 * po/gl.po: Likewise.
3179 * po/hr.po: Likewise.
3180 * po/hu.po: Likewise.
3181 * po/ia.po: Likewise.
3182 * po/id.po: Likewise.
3183 * po/it.po: Likewise.
3184 * po/ja.po: Likewise.
3185 * po/ko.po: Likewise.
3186 * po/lt.po: Likewise.
3187 * po/nb.po: Likewise.
3188 * po/nl.po: Likewise.
3189 * po/pl.po: Likewise.
3190 * po/pt_BR.po: Likewise.
3191 * po/ru.po: Likewise.
3192 * po/rw.po: Likewise.
3193 * po/sk.po: Likewise.
3194 * po/sl.po: Likewise.
3195 * po/sv.po: Likewise.
3196 * po/tr.po: Likewise.
3197 * po/uk.po: Likewise.
3198 * po/vi.po: Likewise.
3199 * po/zh_CN.po: Likewise.
3200 * po/zh_TW.po: Likewise.
3201
8d016826
UB
32022019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3203
3204 [BZ #24130]
3205 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3206 of $f3 register on $y_is_neg path.
3207
a0bb5abd
ST
32082019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3209
b96e22d0 3210 [BZ #24110]
a0bb5abd
ST
3211 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3212 sigaltstack.ss_flags.
3213
b22eed37
TS
32142019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3215
3216 [BZ #23758]
3217 * manual/time.texi (strftime): Document "%Ey".
3218 * time/strftime_l.c (__strftime_internal): Set the default width
3219 padding with zero of "%Ey" to 2.
3220
32f600a2
TS
3221 [BZ #24096]
3222 * manual/time.texi (strftime): Document "%EC" and "%EY".
3223 * time/Makefile (tests): Add tst-strftime2.
3224 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3225 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3226 override padding for "%Ey".
3227 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3228 "%Ey" in the subformat as if decorated with that flag.
3229 * time/tst-strftime2.c: New file.
3230
8e889c5d
AZ
32312019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3232
3367acdb
AZ
3233 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3234 are not defined.
3235
8e889c5d
AZ
3236 [BZ #24122]
3237 * elf/Makefile (tests): Add tst-audit13.
3238 (modules-names): Add tst-audit13mod1.
3239 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3240 rule.
3241 * elf/rtld.c (dl_main): Handle invalid audit module version.
3242 * elf/tst-audit13.c: New file.
3243 * elf/tst-audit13mod1.c: Likewise.
3244
a95dc01c
ST
32452019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3246
3247 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3248 returned by __hurd_at_flags.
ee4d7902
ST
3249 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3250 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3251 directly instead of __hurd_file_name_lookup.
a95dc01c 3252
712f1167
JM
32532019-01-21 Joseph Myers <joseph@codesourcery.com>
3254
3255 * scripts/build-many-glibcs.py (Context.checkout): Default
3256 binutils version to 2.32 branch.
3257
108bc404
FW
32582019-01-21 Florian Weimer <fweimer@redhat.com>
3259
3260 [BZ #20018]
3261 CVE-2016-10739
3262 resolv: Reject trailing characters in host names
3263 * include/arpa/inet.h (__inet_aton_exact): Declare.
3264 (inet_aton): Remove hidden prototype. No longer used internally.
3265 * nscd/gai.c (__inet_aton): Do not define.
3266 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3267 * nss/digits_dots.c (__inet_aton): Likewise.
3268 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3269 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3270 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3271 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3272 (tst-resolv-trailing): Likewise.
3273 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3274 libc.
3275 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3276 Make static. Add endp parameter.
3277 (__inet_aton_exact): New function.
3278 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3279 (__inet_addr): Call inet_aton_end.
3280 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3281 not just IPv6. Call __inet_aton_exact.
3282 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3283 (tests): Make const. Add additional test cases with trailing
3284 characters.
3285 (do_test): Use array_length.
3286 * resolv/tst-inet_aton_exact.c: New file.
3287 * resolv/tst-resolv-trailing.c: Likewise.
3288 * resolv/tst-resolv-nondecimal.c: Likewise.
3289 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3290
5165de69
L
32912019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3292
3293 [BZ# 24097]
3294 CVE-2019-6488
3295 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3296 Clear the upper 32 bits of RSI register.
3297 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3298 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3299 and tst-size_t-wcsnlen.
3300 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3301 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3302
c7c54f65
L
33032019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3304
3305 [BZ# 24097]
3306 CVE-2019-6488
3307 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3308 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3309 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3310 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3311 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3312
ee915088
L
33132019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3314
3315 [BZ# 24097]
3316 CVE-2019-6488
3317 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3318 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3319 * sysdeps/x86_64/strcmp.S: Likewise.
3320 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3321 tst-size_t-strncmp and tst-size_t-wcsncmp.
3322 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3323 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3324 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3325
82d0b4a4
L
33262019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3327
3328 [BZ# 24097]
3329 CVE-2019-6488
3330 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3331 RDX_LP for length. Clear the upper 32 bits of RDX register.
3332 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3333 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3334 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3335 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3336
ecd8b842
L
33372019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3338
3339 [BZ# 24097]
3340 CVE-2019-6488
3341 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3342 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3343 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3344 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3345
231c5676
L
33462019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3347
3348 [BZ# 24097]
3349 CVE-2019-6488
3350 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3351 length. Clear the upper 32 bits of RDX register.
3352 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3353 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3354 Likewise.
3355 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3356 Likewise.
3357 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3358 tst-size_t-wmemchr.
3359 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3360
b304fc20
L
33612019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3362
3363 [BZ# 24097]
3364 CVE-2019-6488
3365 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3366 length. Clear the upper 32 bits of RDX register.
3367 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3368 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3369 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3370 tst-size_t-wmemcmp.
3371 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3372 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3373
97700a34
L
33742019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3375
3376 [BZ# 24097]
3377 CVE-2019-6488
3378 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3379 upper 32 bits of RDX register.
3380 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3381 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3382 tst-size_t-wmemchr.
3383 * sysdeps/x86_64/x32/test-size_t.h: New file.
3384 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3385 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3386
6ca53a24
FW
33872019-01-18 Florian Weimer <fweimer@redhat.com>
3388
3389 [BZ #24112]
3390 resolv: Do not send queries for non-host-names in nss_dns.
3391 * resolv/nss_dns/dns-host.c (check_name): New function.
3392 (_nss_dns_gethostbyname2_r): Use it.
3393 (_nss_dns_gethostbyname_r): Likewise.
3394 (_nss_dns_gethostbyname4_r): Likewise.
3395
5e30b8ef
FW
33962019-01-21 Florian Weimer <fweimer@redhat.com>
3397
3398 * resolv/inet_addr.c: Reformat to GNU style.
3399 (__inet_addr, __inet_aton): Update comment.
3400
71effcea
FW
34012019-01-18 Florian Weimer <fweimer@redhat.com>
3402
3403 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3404 ("malloc: Use current (C11-style) atomics for fastbin access").
3405 This commit introduces a substantial performance regression on
3406 POWER and Aarch64.
3407 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3408 (REMOVE_FB): Define.
3409 (_int_malloc): Use it and reindent.
3410 (_int_free): Use CAS loop with
3411 catomic_compare_and_exchange_val_rel.
3412 (malloc_consolidate): Use atomic_exchange_acq.
3413
3414
562f4362
L
34152019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3416
3417 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3418 -Wl,-z,now.
3419 (LDFLAGS-tst-minsigstksz-2): Likewise.
3420 (LDFLAGS-tst-minsigstksz-3): Likewise.
3421 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3422 (LDFLAGS-tst-minsigstksz-4): Likewise.
3423
80dfa298
TS
34242019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3425
3426 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3427 than "alternate".
3428
008b598e
PC
34292019-01-16 Paul A. Clarke <pc@us.ibm.com>
3430
3431 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3432
fbbc9a4e
ZW
34332019-01-16 Zack Weinberg <zackw@panix.com>
3434
6b5c8607
TS
3435 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3436 (xget_sigstack_location): New test support functions.
3437 * support/xsigstack.c: New file, implementing them.
3438 * support/tst-xsigstack.c: New test for them.
3439 * support/Makefile: Update.
fbbc9a4e 3440
6b5c8607
TS
3441 * signal/tst-minsigstksz-1.c
3442 * signal/tst-minsigstksz-2.c
3443 * signal/tst-minsigstksz-3.c
3444 * signal/tst-minsigstksz-3a.c
3445 * signal/tst-minsigstksz-4.c: New tests.
3446 * signal/Makefile: Run them.
fbbc9a4e 3447
5f1135e4
SP
34482019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3449
3450 * po/libc.pot: Regenerate.
3451
ecdacd34
TMQMF
34522019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3453
3454 * math/libm-test-fma.inc (fma_test_data): Set
3455 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3456
56054664
RA
34572019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3458
3459 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3460 (do_test): Changed __vector __int128_t to __vector unsigned int.
3461
1a153e47
LS
34622019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3463
3464 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3465 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3466 stpcpy-avx2 and stpncpy-avx2.
3467 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3468 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3469 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3470 and __stpncpy_avx2.
3471 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3472 ifunc-strcpy.h}: rename header for a more generic name.
3473 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3474 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3475 AVX unaligned load is fast and vzeroupper is preferred.
3476 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3477 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3478 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3479 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3480 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3481 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3482
a1b02ae7
DL
34832019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3484
3485 * argp/argp-help.c: Fix typo in comment.
3486 * misc/sys/cdefs.h: Likewise.
3487 * posix/regexec.c (sift_states_iter_mb): Likewise.
3488 * socket/sockatmark.c: Likewise.
3489 * socket/sys/socket.h: Likewise.
3490 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3491 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3492 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3493 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3494 * sysdeps/unix/sockatmark.c: Likewise.
3495 * time/strptime_l.c: Likewise.
3496
5cbbf01e
TS
34972019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3498
3499 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3500 missing space after the cast of "_NL_CURRENT".
3501
0bc9bdf1
RA
35022019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3503
3504 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3505 ifdef to fix read of VSCR.
3506 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3507 tst-ucontext-ppc64-vscr.c to test list.
3508 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3509
5494af04
AH
35102019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3511
3512 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3513 fall-through.
3514
e17f63ff
JW
35152019-01-09 Jim Wilson <jimw@sifive.com>
3516
3517 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3518
02f440c1
WD
35192019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3520
3521 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3522 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3523 __memcpy_falkor for ares.
3524 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3525 Add new define.
3526 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3527 Add ares cpu.
3528
69da3c9e
L
35292019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3530
3531 [BZ #24066]
3532 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3533 4_FP_W_TYPEs are used for IEEE quad precision.
3534 * soft-fp/extendhftf2.c: Likewise.
3535 * soft-fp/extendsftf2.c: Likewise.
3536 * soft-fp/extendxftf2.c: Likewise.
3537 * soft-fp/trunctfdf2.c: Likewise.
3538 * soft-fp/trunctfhf2.c: Likewise.
3539 * soft-fp/trunctfsf2.c: Likewise.
3540 * soft-fp/trunctfxf2.c: Likewise.
3541 * sysdeps/alpha/ots_cvttx.c: Likewise.
3542 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3543 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3544 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3545 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3546 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3547 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3548 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3549 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3550 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3551 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3552 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3553 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3554 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3555 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3556 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3557 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3558 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3559
2ef42716
AJ
35602019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3561
3562 [BZ #24024]
3563 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3564 code with -fmath-errno.
3565 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3566 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3567 * string/test-strerror-errno.c: New file.
3568
7395f3a0
AJ
35692019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3570
3571 [BZ #24046]
3572 * localedata/locales/en_US (date_fmt): Add, set to
3573 "%a %d %b %Y %r %Z".
3574
010fe231
FW
35752019-01-07 Florian Weimer <fweimer@redhat.com>
3576
3577 [BZ #24063]
3578 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3579 instead of @var{errno}.
3580 (Parsing of Integers): Likewise.
3581 (Parsing of Floats): Likewise.
3582 * manual/filesys.texi (Working with Directory Trees): Likewise.
3583 (Temporary Files): Likewise.
3584 * manual/job.texi (Terminal Access Functions): Likewise.
3585 * manual/llio.texi (Synchronizing I/O): Likewise.
3586 * manual/math.texi (SVID Random): Likewise.
3587 * manual/message.texi (The catgets Functions): Likewise.
3588 (Translation with gettext): Likewise.
3589 (Locating gettext catalog): Likewise.
3590 (Charset conversion in gettext): Likewise.
3591 * manual/nss.texi (NSS Module Function Internals): Likewise.
3592 * manual/search.texi (Hash Search Function): Likewise.
3593 * manual/setjmp.texi (System V contexts): Likewise.
3594 * manual/time.texi (Sleeping): Likewise.
3595 * manual/users.texi (Lookup User): Likewise.
3596 (Lookup Group): Likewise.
3597
b79dc8d0
AZ
35982019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3599
3600 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3601 fix typo.
3602
890461fe 36032019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
27c5e756
MJ
3604
3605 [BZ #19444]
3606 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3607 __builtin_unreachable for default case in switch.
3608 (__ieee754_yn): Likewise.
3609 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3610 (__ieee754_ynl): Likewise.
3611 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3612 (__ieee754_ynl): Likewise.
3613 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3614 (__ieee754_ynl): Likewise.
3615
8b18d418
SN
36162019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3617
3618 * manual/maint.texi: Use @{ and @}.
3619
4392898d
FW
36202019-01-04 Florian Weimer <fweimer@redhat.com>
3621
3622 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3623 function.
3624 (do_in_chroot_1): Call it.
3625 (run_chroot_tests):
3626 Improve error reporting in case it is not possible to create a
3627 collision for the PTY name required by the test.
3628
17cc27d5
AZ
36292019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3630
ce7eb0e9
AZ
3631 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3632 lll_wait_tid with timeout.
3633 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3634 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3635 futex_reltimed_wait_cancelable for cancelabla mode.
3636 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3637 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3638 macros.
3639 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3640 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3641 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3642 SYSCALL_CANCEL_NCS): New macro.
3643 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3644 (lll_timedwait_tid): Remove macro.
3645 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3646 Likewise.
3647 (lll_timedwait_tid): Likewise.
3648 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3649 Likewise.
3650 (lll_timedwait_tid): Likewise.
3651 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3652 Likewise.
3653 (lll_timedwait_tid): Likewise.
3654 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3655 Use INTERNAL_SYSCALL_CANCEL.
3656 * sysdeps/unix/sysv/linux/futex-internal.h
3657 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3658 instead of __pthread_{enable,disable}_asynccancel.
3659 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3660 (lll_futex_wait_cancel): New macro.
3661
0b13e255
AZ
3662 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3663 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3664
85c828a4
AZ
3665 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3666 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3667
d0d7f85f
AZ
3668 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3669 in backtrace analysis.
3670 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3671 side-effects.
3672 (tf_send): Likewise.
3673
17cc27d5
AZ
3674 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3675 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3676 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3677 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3678 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3679 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3680 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3681 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3682 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3683 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3684 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3685 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3686 Likewise.
3687 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3688 tst-cancel-wrappers.sh.
3689 (generated): Remove tst-cancel-wrappers.out.
3690 (tst-cancel-wrappers.out): Remove rule.
3691 * nptl/tst-cancel-wrappers.sh: Remove file.
3692
7d7af8f1
SN
36932019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3694
3695 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3696 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3697 Update.
3698
805334b2
AZ
36992019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3700
3701 [BZ #23640]
3702 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3703 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3704 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3705 close-on-exec reset for adddup2 file action.
3706 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3707
03992356
ZW
37082019-01-03 Zack Weinberg <zackw@panix.com>
3709
3710 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3711 parameter. Only use deprecated scanf when __USE_GNU is defined
3712 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3713 than 201103L, whichever is relevant for the language being compiled.
3714
3715 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3716 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3717 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3718 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3719 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3720
3721 * libio/iovsscanf.c
3722 * libio/fwscanf.c
3723 * libio/iovswscanf.c
3724 * libio/swscanf.c
3725 * libio/vscanf.c
3726 * libio/vwscanf.c
3727 * libio/wscanf.c
3728 * stdio-common/fscanf.c
3729 * stdio-common/scanf.c
3730 * stdio-common/vfscanf.c
3731 * stdio-common/vfwscanf.c
3732 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3733 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3734 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3735 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3736 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3737 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3738 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3739 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3740 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3741 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3742 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3743 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3744 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3745 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3746 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3747
3748 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3749 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3750 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3751 not sscanf.
3752 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3753 with a preprocessor macro.
3754
3755 * stdio-common/bug21.c, stdio-common/scanf14.c:
3756 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3757 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3758 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3759 to xscanf, xfscanf, xsscanf.
3760
3761 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3762 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3763 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3764 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3765 xfscanf, xsscanf.
3766 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3767 override feature selection macros or provide definitions of u_char etc.
3768 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3769 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3770 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3771 with -std=gnu89.
3772
8083afa5
AZ
37732019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3774
6f343c1f
AZ
3775 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3776 bits/termios-misc.h.
3777 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3778 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3779 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3780 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3781 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3782 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3783
51f4beb0
AZ
3784 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3785 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3786 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3787 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3788 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3789 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3790 termios-misc.h.
3791 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3792 (sysdep_headers): Add termios-misc.h.
3793
f69c5cb2
AZ
3794 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3795 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3796 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3797
3aa4a07e
AZ
3798 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3799 termios-tcflow.h.
3800 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3801 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3802 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3803 TCSAFLUSH): Move to termios-tcflow.h.
3804 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3805 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3806 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3807 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3808
22679ddf
AZ
3809 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3810 termios-c_lflag.h.
3811 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3812 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3813 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3814 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3815 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3816 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3817 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3818 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3819 Likewise.
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
72eb6ecc
AZ
3825 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3826 termios-c_cflag.h.
3827 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3828 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3829 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3830 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3831 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3832 termios-c_cflag.h.
3833 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3834 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3835 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3836 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3837
9c5d0d02
AZ
3838 [BZ #23783]
3839 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3840 termios-baud.h.
3841 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3842 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3843 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3844 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3845 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3846 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3847 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3848 __MAX_BAUD): Move to termios-baud.h.
3849 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3850 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3851 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3852 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3853 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3854
7b832018
AZ
3855 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3856 termios-c_oflag.h.
3857 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3858 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3859 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3860 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3861 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3862 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3863 termios-c_oflag.h.
3864 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3865 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3866 FFR1): Likewise.
3867 [USE_MISC] (XTABS): Likewise.
3868 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3869 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3870 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3871 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3872
3127003e
AZ
3873 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3874 termios-c_iflag.h.
3875 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3876 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3877 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3878 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3879 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3880 IUTF8): Move to termios-c_iflag.h.
3881 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3882 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3883 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3884 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3885
48c1dd96
AZ
3886 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3887 termios-cc.h.
3888 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3889 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3890 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3891 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3892 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3893 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3894 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3895 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3896 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3897 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3898 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3899 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3900
e5a50db3
AZ
3901 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3902 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3903 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3904 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3905 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3906 termios-struct.h.
3907 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3908 termios-struct.h.
3909 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3910 Likewise.
3911 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3912 Likewise.
3913 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3914 Likewise.
3915 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3916 Likewise.
3917 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3918 _HAVE_C_OSPEED): Define.
3919 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3920 _HAVE_C_OSPEED): Likewise.
3921 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3922 _HAVE_C_OSPEED): Likewise.
3923 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3924 (cfsetospeed): Check for define value instead of existence.
3925 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3926 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3927 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3928 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3929 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3930
8083afa5
AZ
3931 [BZ #17783]
3932 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3933 Define.
3934 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3935 (TIOCSER_TEMT): Likewise.
3936 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3937 (TEOCSER_TEMT): Likewise.
3938
4d7d7dc6
P
39392019-01-02 PanderMusubi <pander@users.sourceforge.net>
3940
3941 [BZ #24011]
3942 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
3943
8e291a29
JM
39442019-01-02 Joseph Myers <joseph@codesourcery.com>
3945
3946 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3947
55137f7d
ST
39482019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3949
3950 * sysdeps/htl/pt-barrierattr-setpshared.c
3951 (pthread_barrierattr_setpshared): Add stub warning.
3952 * sysdeps/htl/pt-condattr-setpshared.c
3953 (pthread_condattr_setpshared): Likewise.
3954 * sysdeps/htl/pt-mutexattr-setpshared.c
3955 (pthread_mutexattr_setpshared): Likewise.
3956 * sysdeps/htl/pt-rwlockattr-setpshared.c
3957 (pthread_rwlockattr_setpshared): Likewise.
3958 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
3959 (pthread_mutexattr_setpshared): Likewise.
3960
2ce09e01
JM
39612019-01-02 Joseph Myers <joseph@codesourcery.com>
3962
acb55dcb
JM
3963 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
3964 constants to match with Linux 4.20.
3965
2ce09e01
JM
3966 * sysdeps/mips/mips32/libm-test-ulps: Update.
3967 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3968
fe20bb1d
AJ
39692019-01-02 Aurelien Jarno <aurelien@aurel32.net>
3970
3971 [BZ #24034]
3972 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
3973 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
3974 than __typeof (...) for the a_ptr variable.
3975
2d9837c1
GG
39762019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3977
3978 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
3979 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
3980 * libio/Makefile (tests): Add tst-sprintf-ub and
3981 tst-sprintf-chk-ub.
3982 (CFLAGS-tst-sprintf-ub.c): New variable.
3983 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
3984 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
3985 destination buffer and check for overflows in fortified mode.
3986 * libio/libioP.h (PRINTF_CHK): New macro.
3987 * libio/tst-sprintf-chk-ub.c: New file.
3988 * libio/tst-sprintf-ub.c: Likewise.
3989
d5c6df0b 39902019-01-02 Florian Weimer <fweimer@redhat.com>
8c1aafc1
FW
3991
3992 [BZ #24018]
3993 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
3994 failure.
3995
66081e38
FW
39962019-01-02 Florian Weimer <fweimer@redhat.com>
3997
3998 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
3999
04277e02
JM
40002019-01-01 Joseph Myers <joseph@codesourcery.com>
4001
6ef3d225
JM
4002 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4003 macro.
4004
e3d4e292
JM
4005 * sysdeps/unix/sysv/linux/netpacket/packet.h
4006 (PACKET_IGNORE_OUTGOING): New macro.
4007
f4507797
JM
4008 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4009 macro.
4010
47ad5e1a
JM
4011 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4012 version to 4.20.
4013 (riscv_flush_icache): New syscall.
4014
7628a1b0
JM
4015 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4016 trailing whitespace removed.
4017 * scripts/config.guess: Update to version 2019-01-01.
4018 * scripts/config.sub: Update to version 2019-01-01.
4019 * scripts/move-if-change: Update from gnulib.
4020
c9123888
JM
4021 * NEWS: Update copyright dates.
4022 * catgets/gencat.c (print_version): Likewise.
4023 * csu/version.c (banner): Likewise.
4024 * debug/catchsegv.sh: Likewise.
4025 * debug/pcprofiledump.c (print_version): Likewise.
4026 * debug/xtrace.sh (do_version): Likewise.
4027 * elf/ldconfig.c (print_version): Likewise.
4028 * elf/ldd.bash.in: Likewise.
4029 * elf/pldd.c (print_version): Likewise.
4030 * elf/sotruss.sh: Likewise.
4031 * elf/sprof.c (print_version): Likewise.
4032 * iconv/iconv_prog.c (print_version): Likewise.
4033 * iconv/iconvconfig.c (print_version): Likewise.
4034 * locale/programs/locale.c (print_version): Likewise.
4035 * locale/programs/localedef.c (print_version): Likewise.
4036 * login/programs/pt_chown.c (print_version): Likewise.
4037 * malloc/memusage.sh (do_version): Likewise.
4038 * malloc/memusagestat.c (print_version): Likewise.
4039 * malloc/mtrace.pl: Likewise.
4040 * manual/libc.texinfo: Likewise.
4041 * nptl/version.c (banner): Likewise.
4042 * nscd/nscd.c (print_version): Likewise.
4043 * nss/getent.c (print_version): Likewise.
4044 * nss/makedb.c (print_version): Likewise.
4045 * posix/getconf.c (main): Likewise.
4046 * scripts/test-installation.pl: Likewise.
4047 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4048
04277e02
JM
4049 * All files with FSF copyright notices: Update copyright dates
4050 using scripts/update-copyrights.
4051 * locale/programs/charmap-kw.h: Regenerated.
4052 * locale/programs/locfile-kw.h: Likewise.
4053
e740e5b1
JM
40542018-12-31 Joseph Myers <joseph@codesourcery.com>
4055
4056 * timezone/zdump.c: Update from tzcode 2018i.
4057 * timezone/zic.c: Likewise.
4058
9b7f98b3
PE
40592018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4060
4061 regex: improve Gnulib port to AIX
4062 From the glibc point of view, this removes duplicate macro
4063 definitions and is obviously safe.
4064 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4065 * posix/regex_internal.h:
4066 (__attribute__, __attribute_warn_unused_result__):
4067 Remove; already defined elsewhere.
4068
b50dd3bc
FW
40692018-12-31 Florian Weimer <fw@deneb.enyo.de>
4070
4071 [BZ #24027]
4072 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4073 copying operation. (ncopies had the wrong type, resulting in an
4074 integer wraparound and too few elements being copied.)
4075
0b9c8490
L
40762018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4077
4078 [BZ #24022]
4079 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4080 <asm/syscalls.h> exists with __has_include__ before including it.
4081
01047fa6
JM
40822018-12-31 Joseph Myers <joseph@codesourcery.com>
4083
4084 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4085 version to 4.20.
4086
6b5c8607 40872018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
065957a3
JW
4088
4089 * hurd/lookup-retry: Include <unistd.h>.
4090 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4091 Release it on return. Handle "pid" magical lookup retry.
4092
989182c4
RL
40932018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4094
4095 [BZ #10496]
4096 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4097 (t_fmt_ampm): Likewise.
4098 * localedata/locales/aa_ER (t_fmt): Likewise.
4099 (t_fmt_ampm): Likewise.
4100 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4101 (t_fmt_ampm): Likewise.
4102 * localedata/locales/aa_ET (t_fmt): Likewise.
4103 (t_fmt_ampm): Likewise.
4104 * localedata/locales/am_ET (t_fmt): Likewise.
4105 (t_fmt_ampm): Likewise.
4106 * localedata/locales/byn_ER (t_fmt): Likewise.
4107 (t_fmt_ampm): Likewise.
4108 * localedata/locales/om_ET (t_fmt): Likewise.
4109 (t_fmt_ampm): Likewise.
4110 * localedata/locales/sid_ET (t_fmt): Likewise.
4111 (t_fmt_ampm): Likewise.
4112 * localedata/locales/so_DJ (t_fmt): Likewise.
4113 (t_fmt_ampm): Likewise.
4114 * localedata/locales/so_ET (t_fmt): Likewise.
4115 (t_fmt_ampm): Likewise.
4116 * localedata/locales/so_SO (t_fmt): Likewise.
4117 (t_fmt_ampm): Likewise.
4118 * localedata/locales/ti_ER (t_fmt): Likewise.
4119 (t_fmt_ampm): Likewise.
4120 * localedata/locales/ti_ET (t_fmt): Likewise.
4121 (t_fmt_ampm): Likewise.
4122 * localedata/locales/tig_ER (t_fmt): Likewise.
4123 (t_fmt_ampm): Likewise.
4124 * localedata/locales/wal_ET (t_fmt): Likewise.
4125 (t_fmt_ampm): Likewise.
4126
4127 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4128 * localedata/locales/ar_IN (t_fmt): Likewise.
4129 * localedata/locales/bhb_IN (t_fmt): Likewise.
4130 * localedata/locales/bho_IN (t_fmt): Likewise.
4131 * localedata/locales/bi_VU (t_fmt): Likewise.
4132 * localedata/locales/bn_BD (t_fmt): Likewise.
4133 * localedata/locales/bn_IN (t_fmt): Likewise.
4134 * localedata/locales/brx_IN (t_fmt): Likewise.
4135 * localedata/locales/doi_IN (t_fmt): Likewise.
4136 * localedata/locales/en_HK (t_fmt): Likewise.
4137 (t_fmt_ampm): Likewise.
4138 * localedata/locales/en_IN (t_fmt): Likewise.
4139 * localedata/locales/en_PH (t_fmt): Likewise.
4140 * localedata/locales/gu_IN (t_fmt): Likewise.
4141 * localedata/locales/hi_IN (t_fmt): Likewise.
4142 * localedata/locales/hif_FJ (t_fmt): Likewise.
4143 * localedata/locales/hne_IN (t_fmt): Likewise.
4144 * localedata/locales/kn_IN (t_fmt): Likewise.
4145 * localedata/locales/kok_IN (t_fmt): Likewise.
4146 * localedata/locales/ks_IN (t_fmt): Likewise.
4147 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4148 * localedata/locales/mag_IN (t_fmt): Likewise.
4149 * localedata/locales/mai_IN (t_fmt): Likewise.
4150 * localedata/locales/mjw_IN (t_fmt): Likewise.
4151 * localedata/locales/ml_IN (t_fmt): Likewise.
4152 * localedata/locales/mni_IN (t_fmt): Likewise.
4153 * localedata/locales/mr_IN (t_fmt): Likewise.
4154 * localedata/locales/ms_MY (t_fmt): Likewise.
4155 * localedata/locales/pa_IN (t_fmt): Likewise.
4156 * localedata/locales/raj_IN (t_fmt): Likewise.
4157 * localedata/locales/sa_IN (t_fmt): Likewise.
4158 * localedata/locales/sat_IN (t_fmt): Likewise.
4159 * localedata/locales/sd_IN (t_fmt): Likewise.
4160 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4161 * localedata/locales/tcy_IN (t_fmt): Likewise.
4162 * localedata/locales/the_NP (t_fmt): Likewise.
4163 * localedata/locales/to_TO (t_fmt): Likewise.
4164 * localedata/locales/ur_IN (t_fmt): Likewise.
4165
4166 * localedata/locales/hif_FJ (d_t_fmt): Set to
4167 "%A %d %b %Y %I:%M:%S %p".
4168 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4169
4170 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4171 * localedata/locales/ar_BH (t_fmt): Likewise.
4172 * localedata/locales/ar_DZ (t_fmt): Likewise.
4173 * localedata/locales/ar_EG (t_fmt): Likewise.
4174 * localedata/locales/ar_IQ (t_fmt): Likewise.
4175 * localedata/locales/ar_JO (t_fmt): Likewise.
4176 * localedata/locales/ar_KW (t_fmt): Likewise.
4177 * localedata/locales/ar_LB (t_fmt): Likewise.
4178 * localedata/locales/ar_LY (t_fmt): Likewise.
4179 * localedata/locales/ar_OM (t_fmt): Likewise.
4180 * localedata/locales/ar_QA (t_fmt): Likewise.
4181 * localedata/locales/ar_SD (t_fmt): Likewise.
4182 * localedata/locales/ar_SS (t_fmt): Likewise.
4183 * localedata/locales/ar_SY (t_fmt): Likewise.
4184 * localedata/locales/ar_TN (t_fmt): Likewise.
4185 * localedata/locales/ar_YE (t_fmt): Likewise.
4186
4187 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4188 (t_fmt_ampm): Likewise.
4189 * localedata/locales/gez_ET (t_fmt): Likewise.
4190 (t_fmt_ampm): Likewise.
4191
4192 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4193 (t_fmt_ampm): Likewise.
4194 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4195
4196 * localedata/locales/zh_HK (t_fmt):
4197 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4198
4199 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4200 because this locale does not use the 12-hour clock.
4201 (t_fmt): Set to "%Z %H:%M:%S".
4202 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4203
4204 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4205 because this locale does not use the 12-hour clock.
4206 (t_fmt): Set to "%H:%M:%S %Z".
4207 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4208
4209 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4210 because this locale does not use the 12-hour clock.
4211 (t_fmt): Set to "%T".
4212 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4213 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4214
4215 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4216 because this locale does not use the 12-hour clock.
4217 (t_fmt): Set to "%H:%M:%S %Z".
4218 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4219
4220 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4221 because this locale does not use the 12-hour clock.
4222 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4223 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4224
27841a7d
RL
42252018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4226
4227 [BZ #10496]
4228 [BZ #23724]
4229 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4230 (t_fmt_ampm): Likewise.
4231 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4232 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4233 (d_fmt): Set to "%-d.%-m.%y".
4234
0253580a
AZ
42352018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4236
4237 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4238 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4239 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4240 Likewise.
4241 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4242 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4243 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4244 function.
4245 * support/blob_repeat.c (check_mul_overflow_size_t,
4246 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4247
09104e5b
AJ
42482018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4249
4250 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4251
c0feb731
PE
42522018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4253
4254 regex: simplify Gnulib port
4255 This simplifies the code, by removing stuff intended for porting
4256 to Gnulib but no longer needed there.
4257 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4258 uses of libc_hidden_def, weak_alias.
4259 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4260 _Restrict_ except for public-facing headers.
4261 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4262 Remove; already defined elsewhere.
4263 * posix/regex.c, posix/regex_internal.h:
4264 Use __GNUC_PREREQ instead of rolling our own.
4265 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4266
5289f1f5
WD
42672018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4268
4269 * benchtests/bench-strlen.c (generic_strlen): New function.
6b5c8607 4270 (memchr_strlen): New function.
5289f1f5 4271
ba4b8fab
L
42722018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4273
4274 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4275 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4276 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4277
9412979a
L
42782018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4279
4280 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4281
8700a785
L
42822018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4283
4284 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4285 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4286 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4287 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4288 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4289 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4290 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4291
57b3ff8e
JM
42922018-12-21 Joseph Myers <joseph@codesourcery.com>
4293
4294 [BZ #24023]
4295 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4296 PLT reference in libc.so.
4297 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4298 _Q_lltoq and _Q_qtod PLT references in libc.so.
4299
90d3320d
WD
43002018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4301
4302 * benchtests/bench-memchr.c: Cleanup defines.
4303 * benchtests/bench-memcmp.c: Likewise.
4304 * benchtests/bench-memset.c: Likewise.
4305 * benchtests/bench-memset-large.c: Likewise.
4306 * benchtests/bench-memset-walk.c: Likewise.
4307 * benchtests/bench-stpcpy.c: Likewise.
4308 * benchtests/bench-stpncpy.c: Likewise.
4309 * benchtests/bench-strcat.c: Likewise.
4310 * benchtests/bench-strchr.c: Likewise.
4311 * benchtests/bench-strcmp.c: Likewise.
4312 * benchtests/bench-strcpy.c: Likewise.
4313 * benchtests/bench-strcspn.c: Likewise.
4314 * benchtests/bench-string.h: Likewise.
4315 * benchtests/bench-strlen.c: Likewise.
4316 * benchtests/bench-strncat.c: Likewise.
4317 * benchtests/bench-strncmp.c: Likewise.
4318 * benchtests/bench-strncpy.c: Likewise.
4319 * benchtests/bench-strnlen.c: Likewise.
4320 * benchtests/bench-strpbrk.c: Likewise.
4321 * benchtests/bench-strrchr.c: Likewise.
4322 * benchtests/bench-strspn.c: Likewise.
4323
192963be
JM
43242018-12-21 Joseph Myers <joseph@codesourcery.com>
4325
5d025ea6
JM
4326 * stdlib/longlong.h: Update from GCC.
4327
192963be
JM
4328 [BZ #23993]
4329 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4330 * configure: Regenerated.
4331 * manual/install.texi (Tools for Compilation): Update minimum GCC
4332 version.
4333 * INSTALL: Regenerated.
4334
6b5c8607 43352018-12-21 Istvan Kurucsai <pistukem@gmail.com>
c0e82f11
IK
4336
4337 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4338
6b5c8607 43392018-12-20 Istvan Kurucsai <pistukem@gmail.com>
ebe544bf
IK
4340
4341 * malloc/malloc.c (mremap_chunk): Additional checks.
4342
5f72b005
MH
43432018-12-21 Mao Han <han_mao@c-sky.com>
4344
4345 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4346 * scripts/build-many-glibcs.py: Add C-SKY targets.
4347 * sysdeps/csky/Implies: New file.
4348 * sysdeps/csky/Makefile: Likewise.
4349 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4350 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4351 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4352 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4353 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4354 * sysdeps/csky/abiv2/memmove.S: Likewise.
4355 * sysdeps/csky/abiv2/memset.S: Likewise.
4356 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4357 * sysdeps/csky/abiv2/start.S: Likewise.
4358 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4359 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4360 * sysdeps/csky/abiv2/strlen.S: Likewise.
4361 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4362 * sysdeps/csky/abort-instr.h: Likewise.
4363 * sysdeps/csky/atomic-machine.h: Likewise.
4364 * sysdeps/csky/bits/endian.h: Likewise.
4365 * sysdeps/csky/bits/fenv.h: Likewise.
4366 * sysdeps/csky/bits/link.h: Likewise.
4367 * sysdeps/csky/bits/setjmp.h: Likewise.
4368 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4369 * sysdeps/csky/bsd-setjmp.S: Likewise.
4370 * sysdeps/csky/configure: Likewise.
4371 * sysdeps/csky/configure.ac: Likewise.
4372 * sysdeps/csky/dl-machine.h: Likewise.
4373 * sysdeps/csky/dl-procinfo.c: Likewise.
4374 * sysdeps/csky/dl-procinfo.h: Likewise.
4375 * sysdeps/csky/dl-sysdep.h: Likewise.
4376 * sysdeps/csky/dl-tls.h: Likewise.
4377 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4378 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4379 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4380 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4381 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4382 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4383 * sysdeps/csky/fpu/fegetround.c: Likewise.
4384 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4385 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4386 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4387 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4388 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4389 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4390 * sysdeps/csky/fpu/fesetround.c: Likewise.
4391 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4392 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4393 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4394 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4395 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4396 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4397 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4398 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4399 * sysdeps/csky/fpu_control.h: Likewise.
4400 * sysdeps/csky/gccframe.h: Likewise.
4401 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4402 * sysdeps/csky/ldsodefs.h: Likewise.
4403 * sysdeps/csky/libc-tls.c: Likewise.
4404 * sysdeps/csky/linkmap.h: Likewise.
4405 * sysdeps/csky/machine-gmon.h: Likewise.
4406 * sysdeps/csky/memusage.h: Likewise.
4407 * sysdeps/csky/nofpu/Implies: Likewise.
4408 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4409 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4410 * sysdeps/csky/nptl/Makefile: Likewise.
4411 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4412 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4413 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4414 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4415 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4416 * sysdeps/csky/nptl/tls.h: Likewise.
4417 * sysdeps/csky/preconfigure: Likewise.
4418 * sysdeps/csky/sfp-machine.h: Likewise.
4419 * sysdeps/csky/sotruss-lib.c: Likewise.
4420 * sysdeps/csky/stackinfo.h: Likewise.
4421 * sysdeps/csky/sysdep.h: Likewise.
4422 * sysdeps/csky/tininess.h: Likewise.
4423 * sysdeps/csky/tst-audit.h: Likewise.
4424 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4425 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4426 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4427 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4428 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4429 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4430 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4431 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4432 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4433 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4434 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4435 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4436 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4437 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4438 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4439 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4440 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4441 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4442 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4443 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4444 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4445 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4446 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4447 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4448 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4449 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4450 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4451 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4452 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4453 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4454 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4455 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4456 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4457 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4458 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4459 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4460 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4461 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4462 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4463 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4464 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4465 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4466 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4467 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4468
6b5c8607 44692018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
ac253355
AA
4470
4471 * include/time.h (__difftime64): Add.
4472 * time/difftime.c (subtract): convert to 64-bit time.
4473 * time/difftime.c (__difftime64): Add.
4474 * time/difftime.c (__difftime): Wrap around __difftime64.
4475
ab416931
L
44762018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4477
4478 * manual/examples/add.c: Remove redundant "if not".
4479 * manual/examples/argp-ex1.c: Likewise.
4480 * manual/examples/argp-ex2.c: Likewise.
4481 * manual/examples/argp-ex3.c: Likewise.
4482 * manual/examples/argp-ex4.c: Likewise.
4483 * manual/examples/atexit.c: Likewise.
4484 * manual/examples/db.c: Likewise.
4485 * manual/examples/dir.c: Likewise.
4486 * manual/examples/dir2.c: Likewise.
4487 * manual/examples/execinfo.c: Likewise.
4488 * manual/examples/filecli.c: Likewise.
4489 * manual/examples/filesrv.c: Likewise.
4490 * manual/examples/fmtmsgexpl.c: Likewise.
4491 * manual/examples/genpass.c: Likewise.
4492 * manual/examples/inetcli.c: Likewise.
4493 * manual/examples/inetsrv.c: Likewise.
4494 * manual/examples/isockad.c: Likewise.
4495 * manual/examples/longopt.c: Likewise.
4496 * manual/examples/memopen.c: Likewise.
4497 * manual/examples/memstrm.c: Likewise.
4498 * manual/examples/mkdirent.c: Likewise.
4499 * manual/examples/mkfsock.c: Likewise.
4500 * manual/examples/mkisock.c: Likewise.
4501 * manual/examples/mygetpass.c: Likewise.
4502 * manual/examples/pipe.c: Likewise.
4503 * manual/examples/popen.c: Likewise.
4504 * manual/examples/rprintf.c: Likewise.
4505 * manual/examples/search.c: Likewise.
4506 * manual/examples/select.c: Likewise.
4507 * manual/examples/setjmp.c: Likewise.
4508 * manual/examples/sigh1.c: Likewise.
4509 * manual/examples/sigusr.c: Likewise.
4510 * manual/examples/stpcpy.c: Likewise.
4511 * manual/examples/strdupa.c: Likewise.
4512 * manual/examples/strftim.c: Likewise.
4513 * manual/examples/subopt.c: Likewise.
4514 * manual/examples/swapcontext.c: Likewise.
4515 * manual/examples/termios.c: Likewise.
4516 * manual/examples/testopt.c: Likewise.
4517 * manual/examples/testpass.c: Likewise.
4518 * manual/examples/timeval_subtract.c: Likewise.
4519
515f463f
JM
45202018-12-19 Joseph Myers <joseph@codesourcery.com>
4521
da75c1b1
JM
4522 * sysdeps/x86/fpu/math_private.h: New file.
4523 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4524
515f463f
JM
4525 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4526 definition.
4527 (cosh): Likewise.
4528 (tanh): Likewise.
4529
1616d034
TMQMF
45302018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4531
4532 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4533 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4534 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4535 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4536 fields.
4537 (_dl_show_auxv): Give a special treatment to
4538 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4539 and AT_L3_CACHEGEOMETRY.
4540 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4541 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4542 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4543 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4544
61595e3d
AS
45452018-12-19 Andreas Schwab <schwab@suse.de>
4546
4547 * nscd/connections.c (check_use): Don't abort on invalid len.
4548
bbb7dc84
ST
45492018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4550
4551 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4552 values in the 64bit value cases.
4553
6b5c8607 45542018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
64c2277d 4555
c4c2836a
AA
4556 * include/time.h
4557 (__ctime64_r): Add.
4558 * time/ctime_r.c
4559 (__ctime64_r): Add.
4560 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4561
7755e504
AA
4562 * include/time.h
4563 (__ctime64): Add.
4564 * time/gmtime.c
4565 (__ctime64): Add.
4566 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4567
a1d346ce
AA
4568 * include/time.h
4569 (__gmtime64_r): Add.
4570 * time/gmtime.c
4571 (__gmtime64_r): Add.
4572 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4573
131db8b0
AA
4574 * include/time.h
4575 (__gmtime64): Add.
4576 * time/gmtime.c
4577 (__gmtime64): Add.
4578 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4579
64c2277d
AA
4580 * include/time.h
4581 (__localtime64_r): Add.
4582 * time/localtime.c
4583 (__localtime64_r): Add.
4584 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4585
56b98bf1
AZ
45862018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4587
64dd7a16
AZ
4588 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4589 kernel_sigction definition.
4590
8b1d5da5
AZ
4591 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4592
f9eabb19
AZ
4593 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4594
56b98bf1
AZ
4595 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4596 __syscall_rt_sigaction.
4597 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4598 (kernel_sigaction): Use Linux generic defintion.
4599 (STUB): Define.
4600 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4601 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4602 (__syscall_rt_sigaction): Remove implementation.
4603 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4604 hidden.
4605 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4606 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4607 INTERNAL_SYSCALL): Remove definitions.
4608 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4609 action and signal set size.
4610 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4611 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4612
43a45c2d
AZ
46132018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4614 James Clarke <jrtc27@jrtc27.com>
4615
dfa6216f 4616 [BZ #23967]
43a45c2d
AZ
4617 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4618 Define if SA_RESTORER is defined.
4619 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4620 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4621 already defined.
4622 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4623 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4624 definitions.
4625 (HAS_SA_RESTORER): Define.
4626 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4627 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4628 (HAS_SA_RESTORER): Define.
4629 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4630 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4631 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4632 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4633 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4634
646ce7e0
JM
46352018-12-18 Joseph Myers <joseph@codesourcery.com>
4636
4637 * sysdeps/unix/sysv/linux/kernel-features.h
4638 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4639 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4640 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4641 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4642 (__ASSUME_ST_INO_64_BIT): Likewise.
4643 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4644 <kernel-features.h>.
4645 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4646 Remove conditional code.
4647 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4648 <kernel-features.h>.
4649 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4650 Remove conditional code.
4651 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4652 <kernel-features.h>.
4653 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4654 Remove conditional code.
4655 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4656 <kernel-features.h>.
4657 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4658 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4659
80190d2b
SL
46602018-12-18 Stefan Liebler <stli@linux.ibm.com>
4661
4662 * sysdeps/s390/multiarch/ifunc-resolve.h
4663 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4664 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4665 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4666 Delete macro definition.
4667 (s390_libc_ifunc_init): Rename to
4668 s390_libc_ifunc_expr_stfle_init.
4669 * sysdeps/s390/bzero: Use
4670 s390_libc_ifunc_expr_stfle_init instead of
4671 s390_libc_ifunc_init.
4672 * sysdeps/s390/memcmp.c: Likewise.
4673 * sysdeps/s390/memcpy.c: Likewise.
4674 * sysdeps/s390/mempcpy.c: Likewise.
4675 * sysdeps/s390/memset.c: Likewise.
4676
12f0dcb8
SL
46772018-12-18 Stefan Liebler <stli@linux.ibm.com>
4678
4679 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4680 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4681
25654a8c
SL
46822018-12-18 Stefan Liebler <stli@linux.ibm.com>
4683
4684 * sysdeps/s390/multiarch/Makefile
4685 (sysdep_routines): Remove wmemcmp variants.
4686 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4687 * sysdeps/s390/multiarch/ifunc-impl-list.c
4688 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4689 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4690 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4691 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4692 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4693 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4694 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4695 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4696
d2a7436c
SL
46972018-12-18 Stefan Liebler <stli@linux.ibm.com>
4698
4699 * sysdeps/s390/multiarch/Makefile
4700 (sysdep_routines): Remove wmemset variants.
4701 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4702 * sysdeps/s390/multiarch/ifunc-impl-list.c
4703 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4704 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4705 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4706 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4707 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4708 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4709 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4710 * sysdeps/s390/ifunc-wmemset.h: New file.
4711
c62534ae
SL
47122018-12-18 Stefan Liebler <stli@linux.ibm.com>
4713
4714 * sysdeps/s390/multiarch/Makefile
4715 (sysdep_routines): Remove wmemchr variants.
4716 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4717 * sysdeps/s390/multiarch/ifunc-impl-list.c
4718 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4719 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4720 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4721 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4722 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4723 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4724 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4725 * sysdeps/s390/ifunc-wmemchr.h: New file.
4726
79b44cf6
SL
47272018-12-18 Stefan Liebler <stli@linux.ibm.com>
4728
4729 * sysdeps/s390/multiarch/Makefile
4730 (sysdep_routines): Remove wcscspn variants.
4731 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4732 * sysdeps/s390/multiarch/ifunc-impl-list.c
4733 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4734 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4735 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4736 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4737 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4738 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4739 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4740 * sysdeps/s390/ifunc-wcscspn.h: New file.
4741
8e87c1f6
SL
47422018-12-18 Stefan Liebler <stli@linux.ibm.com>
4743
4744 * sysdeps/s390/multiarch/Makefile
4745 (sysdep_routines): Remove wcspbrk variants.
4746 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4747 * sysdeps/s390/multiarch/ifunc-impl-list.c
4748 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4749 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4750 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4751 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4752 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4753 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4754 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4755 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4756
8507e831
SL
47572018-12-18 Stefan Liebler <stli@linux.ibm.com>
4758
4759 * sysdeps/s390/multiarch/Makefile
4760 (sysdep_routines): Remove wcsspn variants.
4761 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4762 * sysdeps/s390/multiarch/ifunc-impl-list.c
4763 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4764 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4765 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4766 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4767 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4768 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4769 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4770 * sysdeps/s390/ifunc-wcsspn.h: New file.
4771
4753713a
SL
47722018-12-18 Stefan Liebler <stli@linux.ibm.com>
4773
4774 * sysdeps/s390/multiarch/Makefile
4775 (sysdep_routines): Remove wcsrchr variants.
4776 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4777 * sysdeps/s390/multiarch/ifunc-impl-list.c
4778 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4779 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4780 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4781 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4782 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4783 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4784 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4785 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4786
c09c1b6f
SL
47872018-12-18 Stefan Liebler <stli@linux.ibm.com>
4788
4789 * sysdeps/s390/multiarch/Makefile
4790 (sysdep_routines): Remove wcschrnul variants.
4791 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4792 * sysdeps/s390/multiarch/ifunc-impl-list.c
4793 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4794 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4795 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4796 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4797 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4798 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4799 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4800 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4801
cf3ccc31
SL
48022018-12-18 Stefan Liebler <stli@linux.ibm.com>
4803
4804 * sysdeps/s390/multiarch/Makefile
4805 (sysdep_routines): Remove wcschr variants.
4806 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4807 * sysdeps/s390/multiarch/ifunc-impl-list.c
4808 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4809 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4810 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4811 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4812 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4813 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4814 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4815 * sysdeps/s390/ifunc-wcschr.h: New file.
4816
e9873e1d
SL
48172018-12-18 Stefan Liebler <stli@linux.ibm.com>
4818
4819 * sysdeps/s390/multiarch/Makefile
4820 (sysdep_routines): Remove wcsncmp variants.
4821 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4822 * sysdeps/s390/multiarch/ifunc-impl-list.c
4823 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4824 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4825 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4826 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4827 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4828 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4829 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4830 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4831
3459e23d
SL
48322018-12-18 Stefan Liebler <stli@linux.ibm.com>
4833
4834 * sysdeps/s390/multiarch/Makefile
4835 (sysdep_routines): Remove wcscmp variants.
4836 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4837 * sysdeps/s390/multiarch/ifunc-impl-list.c
4838 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4839 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4840 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4841 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4842 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4843 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4844 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4845 * sysdeps/s390/ifunc-wcscmp.h: New file.
4846
814a76e1
SL
48472018-12-18 Stefan Liebler <stli@linux.ibm.com>
4848
4849 * sysdeps/s390/multiarch/Makefile
4850 (sysdep_routines): Remove wcsncat variants.
4851 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4852 * sysdeps/s390/multiarch/ifunc-impl-list.c
4853 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4854 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4855 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4856 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4857 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4858 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4859 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4860 * sysdeps/s390/ifunc-wcsncat.h: New file.
4861
3389cae4
SL
48622018-12-18 Stefan Liebler <stli@linux.ibm.com>
4863
4864 * sysdeps/s390/multiarch/Makefile
4865 (sysdep_routines): Remove wcscat variants.
4866 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4867 * sysdeps/s390/multiarch/ifunc-impl-list.c
4868 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4869 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4870 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4871 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4872 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4873 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4874 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4875 * sysdeps/s390/ifunc-wcscat.h: New file.
4876
c3081bcb
SL
48772018-12-18 Stefan Liebler <stli@linux.ibm.com>
4878
4879 * sysdeps/s390/multiarch/Makefile
4880 (sysdep_routines): Remove wcpncpy variants.
4881 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4882 * sysdeps/s390/multiarch/ifunc-impl-list.c
4883 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4884 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4885 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4886 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4887 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4888 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4889 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4890 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4891
0966dd86
SL
48922018-12-18 Stefan Liebler <stli@linux.ibm.com>
4893
4894 * sysdeps/s390/multiarch/Makefile
4895 (sysdep_routines): Remove wcsncpy variants.
4896 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4897 * sysdeps/s390/multiarch/ifunc-impl-list.c
4898 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4899 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4900 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4901 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4902 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4903 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4904 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4905 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4906
0582e428
SL
49072018-12-18 Stefan Liebler <stli@linux.ibm.com>
4908
4909 * sysdeps/s390/multiarch/Makefile
4910 (sysdep_routines): Remove wcpcpy variants.
4911 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4912 * sysdeps/s390/multiarch/ifunc-impl-list.c
4913 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4914 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4915 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4916 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4917 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4918 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4919 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4920 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4921
804f2e5c
SL
49222018-12-18 Stefan Liebler <stli@linux.ibm.com>
4923
4924 * sysdeps/s390/multiarch/Makefile
4925 (sysdep_routines): Remove wcscpy variants.
4926 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4927 * sysdeps/s390/multiarch/ifunc-impl-list.c
4928 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4929 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4930 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4931 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4932 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4933 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4934 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4935 * sysdeps/s390/ifunc-wcscpy.h: New file.
4936
c7e7cd26
SL
49372018-12-18 Stefan Liebler <stli@linux.ibm.com>
4938
4939 * sysdeps/s390/multiarch/Makefile
4940 (sysdep_routines): Remove wcsnlen variants.
4941 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
4942 * sysdeps/s390/multiarch/ifunc-impl-list.c
4943 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
4944 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
4945 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
4946 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
4947 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
4948 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
4949 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
4950 * sysdeps/s390/ifunc-wcsnlen.h: New file.
4951
2e02d0b7
SL
49522018-12-18 Stefan Liebler <stli@linux.ibm.com>
4953
4954 * sysdeps/s390/multiarch/Makefile
4955 (sysdep_routines): Remove wcslen variants.
4956 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
4957 * sysdeps/s390/multiarch/ifunc-impl-list.c
4958 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
4959 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
4960 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
4961 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
4962 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
4963 * sysdeps/s390/multiarch/wcslen.c: Move to ...
4964 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
4965 * sysdeps/s390/ifunc-wcslen.h: New file.
4966
89bfcbdf
SL
49672018-12-18 Stefan Liebler <stli@linux.ibm.com>
4968
4969 * sysdeps/s390/multiarch/Makefile
4970 (sysdep_routines): Remove memrchr variants.
4971 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
4972 * sysdeps/s390/multiarch/ifunc-impl-list.c
4973 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
4974 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
4975 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
4976 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
4977 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
4978 * sysdeps/s390/multiarch/memrchr.c: Move to ...
4979 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
4980 * sysdeps/s390/ifunc-memrchr.h: New file.
4981
196655ba
SL
49822018-12-18 Stefan Liebler <stli@linux.ibm.com>
4983
4984 * sysdeps/s390/multiarch/Makefile
4985 (sysdep_routines): Remove memccpy variants.
4986 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
4987 * sysdeps/s390/multiarch/ifunc-impl-list.c
4988 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
4989 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
4990 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
4991 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
4992 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
4993 * sysdeps/s390/multiarch/memccpy.c: Move to ...
4994 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
4995 * sysdeps/s390/ifunc-memccpy.h: New file.
4996
4c7b3cec
SL
49972018-12-18 Stefan Liebler <stli@linux.ibm.com>
4998
4999 * sysdeps/s390/multiarch/Makefile
5000 (sysdep_routines): Remove rawmemchr variants.
5001 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5002 * sysdeps/s390/multiarch/ifunc-impl-list.c
5003 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5004 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5005 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5006 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5007 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5008 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5009 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5010 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5011
581a051c
SL
50122018-12-18 Stefan Liebler <stli@linux.ibm.com>
5013
5014 * sysdeps/s390/multiarch/Makefile
5015 (sysdep_routines): Remove memchr variants.
5016 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5017 * sysdeps/s390/multiarch/ifunc-impl-list.c
5018 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5019 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5020 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5021 * sysdeps/s390/multiarch/memchr.c: Move to ...
5022 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5023 * sysdeps/s390/ifunc-memchr.h: New file.
5024 * sysdeps/s390/s390-64/memchr.S: Move to ...
5025 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5026 for 31/64bit and ifunc handling.
5027 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5028 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5029 * sysdeps/s390/s390-32/memchr.S: Likewise.
5030
5d2ec20a
SL
50312018-12-18 Stefan Liebler <stli@linux.ibm.com>
5032
5033 * sysdeps/s390/multiarch/Makefile
5034 (sysdep_routines): Remove strcspn variants.
5035 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5036 * sysdeps/s390/multiarch/ifunc-impl-list.c
5037 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5038 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5039 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5040 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5041 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5042 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5043 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5044 * sysdeps/s390/ifunc-strcspn.h: New file.
5045
572cca93
SL
50462018-12-18 Stefan Liebler <stli@linux.ibm.com>
5047
5048 * sysdeps/s390/multiarch/Makefile
5049 (sysdep_routines): Remove strpbrk variants.
5050 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5051 * sysdeps/s390/multiarch/ifunc-impl-list.c
5052 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5053 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5054 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5055 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5056 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5057 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5058 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5059 * sysdeps/s390/ifunc-strpbrk.h: New file.
5060
483fc569
SL
50612018-12-18 Stefan Liebler <stli@linux.ibm.com>
5062
5063 * sysdeps/s390/multiarch/Makefile
5064 (sysdep_routines): Remove strspn variants.
5065 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5066 * sysdeps/s390/multiarch/ifunc-impl-list.c
5067 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5068 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5069 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5070 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5071 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5072 * sysdeps/s390/multiarch/strspn.c: Move to ...
5073 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5074 * sysdeps/s390/ifunc-strspn.h: New file.
5075
26ea8760
SL
50762018-12-18 Stefan Liebler <stli@linux.ibm.com>
5077
5078 * sysdeps/s390/multiarch/Makefile
5079 (sysdep_routines): Remove strrchr variants.
5080 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5081 * sysdeps/s390/multiarch/ifunc-impl-list.c
5082 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5083 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5084 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5085 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5086 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5087 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5088 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5089 * sysdeps/s390/ifunc-strrchr.h: New file.
5090
a1361e65
SL
50912018-12-18 Stefan Liebler <stli@linux.ibm.com>
5092
5093 * sysdeps/s390/multiarch/Makefile
5094 (sysdep_routines): Remove strchrnul variants.
5095 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5096 * sysdeps/s390/multiarch/ifunc-impl-list.c
5097 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5098 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5099 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5100 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5101 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5102 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5103 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5104 * sysdeps/s390/ifunc-strchrnul.h: New file.
5105
32f12653
SL
51062018-12-18 Stefan Liebler <stli@linux.ibm.com>
5107
5108 * sysdeps/s390/multiarch/Makefile
5109 (sysdep_routines): Remove strchr variants.
5110 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5111 * sysdeps/s390/multiarch/ifunc-impl-list.c
5112 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5113 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5114 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5115 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5116 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5117 * sysdeps/s390/multiarch/strchr.c: Move to ...
5118 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5119 * sysdeps/s390/ifunc-strchr.h: New file.
5120
316b8842
SL
51212018-12-18 Stefan Liebler <stli@linux.ibm.com>
5122
5123 * sysdeps/s390/multiarch/Makefile
5124 (sysdep_routines): Remove strncmp variants.
5125 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5126 * sysdeps/s390/multiarch/ifunc-impl-list.c
5127 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5128 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5129 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5130 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5131 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5132 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5133 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5134 * sysdeps/s390/ifunc-strncmp.h: New file.
5135
cdab85fe
SL
51362018-12-18 Stefan Liebler <stli@linux.ibm.com>
5137
5138 * sysdeps/s390/multiarch/Makefile
5139 (sysdep_routines): Remove strcmp variants.
5140 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5141 * sysdeps/s390/multiarch/ifunc-impl-list.c
5142 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5143 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5144 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5145 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5146 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5147 * sysdeps/s390/ifunc-strcmp.h: New file.
5148 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5149 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5150 for 31/64bit and ifunc handling.
5151 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5152 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5153 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5154
b9353351
SL
51552018-12-18 Stefan Liebler <stli@linux.ibm.com>
5156
5157 * sysdeps/s390/multiarch/Makefile
5158 (sysdep_routines): Remove strncat variants.
5159 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5160 * sysdeps/s390/multiarch/ifunc-impl-list.c
5161 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5162 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5163 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5164 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5165 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5166 * sysdeps/s390/multiarch/strncat.c: Move to ...
5167 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5168 * sysdeps/s390/ifunc-strncat.h: New file.
5169
8e5a0afb
SL
51702018-12-18 Stefan Liebler <stli@linux.ibm.com>
5171
5172 * sysdeps/s390/multiarch/Makefile
5173 (sysdep_routines): Remove strcat variants.
5174 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5175 * sysdeps/s390/multiarch/ifunc-impl-list.c
5176 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5177 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5178 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5179 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5180 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5181 * sysdeps/s390/multiarch/strcat.c: Move to ...
5182 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5183 * sysdeps/s390/ifunc-strcat.h: New file.
5184
25218822
SL
51852018-12-18 Stefan Liebler <stli@linux.ibm.com>
5186
5187 * sysdeps/s390/multiarch/Makefile
5188 (sysdep_routines): Remove stpncpy variants.
5189 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5190 * sysdeps/s390/multiarch/ifunc-impl-list.c
5191 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5192 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5193 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5194 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5195 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5196 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5197 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5198 * sysdeps/s390/ifunc-stpncpy.h: New file.
5199
d1bdbf38
SL
52002018-12-18 Stefan Liebler <stli@linux.ibm.com>
5201
5202 * sysdeps/s390/multiarch/Makefile
5203 (sysdep_routines): Remove strncpy variants.
5204 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5205 * sysdeps/s390/multiarch/ifunc-impl-list.c
5206 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5207 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5208 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5209 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5210 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5211 * sysdeps/s390/ifunc-strncpy.h: New file.
5212 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5213 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5214 and adjust ifunc handling.
5215 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5216 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5217 and adjust ifunc handling.
5218 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5219 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5220
97044931
SL
52212018-12-18 Stefan Liebler <stli@linux.ibm.com>
5222
5223 * sysdeps/s390/multiarch/Makefile
5224 (sysdep_routines): Remove stpcpy variants.
5225 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5226 * sysdeps/s390/multiarch/ifunc-impl-list.c
5227 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5228 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5229 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5230 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5231 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5232 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5233 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5234 * sysdeps/s390/ifunc-stpcpy.h: New file.
5235
914a4e05
SL
52362018-12-18 Stefan Liebler <stli@linux.ibm.com>
5237
5238 * sysdeps/s390/multiarch/Makefile
5239 (sysdep_routines): Remove strcpy variants.
5240 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5241 * sysdeps/s390/multiarch/ifunc-impl-list.c
5242 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5243 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5244 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5245 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5246 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5247 * sysdeps/s390/ifunc-strcpy.h: New file.
5248 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5249 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5250 for 31/64bit and ifunc handling.
5251 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5252 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5253 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5254
de10e44d
SL
52552018-12-18 Stefan Liebler <stli@linux.ibm.com>
5256
5257 * sysdeps/s390/multiarch/Makefile
5258 (sysdep_routines): Remove strnlen variants.
5259 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5260 * sysdeps/s390/multiarch/ifunc-impl-list.c
5261 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5262 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5263 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5264 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5265 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5266 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5267 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5268 * sysdeps/s390/ifunc-strnlen.h: New file.
5269
ff3ca374
SL
52702018-12-18 Stefan Liebler <stli@linux.ibm.com>
5271
5272 * sysdeps/s390/multiarch/Makefile
5273 (sysdep_routines): Remove strlen variants.
5274 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5275 * sysdeps/s390/multiarch/ifunc-impl-list.c
5276 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5277 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5278 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5279 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5280 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5281 * sysdeps/s390/multiarch/strlen.c: Move to ...
5282 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5283 * sysdeps/s390/ifunc-strlen.h: New file.
5284
d2c4c403
SL
52852018-12-18 Stefan Liebler <stli@linux.ibm.com>
5286
5287 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5288 * sysdeps/s390/multiarch/ifunc-impl-list.c
5289 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5290 * sysdeps/s390/ifunc-memmem.h: New file.
5291 * sysdeps/s390/memmem.c: Likewise.
5292 * sysdeps/s390/memmem-c.c: Likewise.
5293 * sysdeps/s390/memmem-vx.c: Likewise.
5294
8c25dddd
SL
52952018-12-18 Stefan Liebler <stli@linux.ibm.com>
5296
5297 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5298 * sysdeps/s390/multiarch/ifunc-impl-list.c
5299 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5300 * sysdeps/s390/ifunc-strstr.h: New file.
5301 * sysdeps/s390/strstr.c: Likewise.
5302 * sysdeps/s390/strstr-c.c: Likewise.
5303 * sysdeps/s390/strstr-vx.c: Likewise.
5304
cdd927d9
SL
53052018-12-18 Stefan Liebler <stli@linux.ibm.com>
5306
5307 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5308 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5309 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5310 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5311 New defines.
5312 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5313 * sysdeps/s390/memmove-c.c: New file.
5314 * sysdeps/s390/memmove.c: Likewise.
5315 * sysdeps/s390/multiarch/ifunc-impl-list.c
5316 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5317
2ee1bc57
SL
53182018-12-18 Stefan Liebler <stli@linux.ibm.com>
5319
5320 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5321 * sysdeps/s390/configure.ac: Add check for z13 support.
5322 * sysdeps/s390/configure: Regenerated.
5323
d097d976
SL
53242018-12-18 Stefan Liebler <stli@linux.ibm.com>
5325
5326 * sysdeps/s390/memcopy.h: New file.
5327
e099aab0
SL
53282018-12-18 Stefan Liebler <stli@linux.ibm.com>
5329
5330 * sysdeps/s390/s390-32/bcopy.S: Remove.
5331 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5332
18eb862d
SL
53332018-12-18 Stefan Liebler <stli@linux.ibm.com>
5334
5335 * sysdeps/s390/ifunc-memcpy.h: New File.
5336 * sysdeps/s390/memcpy.S: Move to ...
5337 * sysdeps/s390/memcpy-z900.S ... here.
5338 Move implementations from memcpy-s390x.s to here.
5339 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5340 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5341 Remove memcpy/mempcpy variants.
5342 * sysdeps/s390/Makefile (sysdep_routines):
5343 Add memcpy/mempcpy variants.
5344 * sysdeps/s390/multiarch/ifunc-impl-list.c
5345 (__libc_ifunc_impl_list): Adjust ifunc variants for
5346 memcpy and mempcpy.
5347 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5348 to ...
5349 * sysdeps/s390/memcpy.c: ... here.
5350 Adjust ifunc variants for memcpy.
5351 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5352 * sysdeps/s390/mempcpy.c: ... here.
5353 Adjust ifunc variants for mempcpy.
5354 * sysdeps/s390/mempcpy.S: Delete file.
5355
df3eb8de
SL
53562018-12-18 Stefan Liebler <stli@linux.ibm.com>
5357
5358 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5359 * sysdeps/s390/memcpy.S: ... here.
5360 Adjust to be usable for 31/64bit.
5361 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5362 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5363 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5364 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5365 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5366 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5367 Adjust to be usable for 31/64bit.
5368 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5369 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5370 * sysdeps/s390/multiarch/memcpy.c: ... here.
5371 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5372
b7e024a8
SL
53732018-12-18 Stefan Liebler <stli@linux.ibm.com>
5374
5375 * sysdeps/s390/ifunc-memcmp.h: New File.
5376 * sysdeps/s390/memcmp.S: Move to ...
5377 * sysdeps/s390/memcmp-z900.S ... here.
5378 Move implementations from memcmp-s390x.s to here.
5379 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5380 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5381 Remove memcmp variants.
5382 * sysdeps/s390/Makefile (sysdep_routines):
5383 Add memcmp variants.
5384 * sysdeps/s390/multiarch/ifunc-impl-list.c
5385 (__libc_ifunc_impl_list): Adjust ifunc variants for
5386 memcmp.
5387 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5388 to ...
5389 * sysdeps/s390/memcmp.c: ... here.
5390 Adjust ifunc variants for memcmp.
5391
6c6b8c74
SL
53922018-12-18 Stefan Liebler <stli@linux.ibm.com>
5393
5394 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5395 * sysdeps/s390/memcmp.S: ... here.
5396 Adjust to be usable for 31/64bit.
5397 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5398 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5399 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5400 Remove memcmp.
5401 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5402 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5403 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5404 Adjust to be usable for 31/64bit.
5405 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5406 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5407 * sysdeps/s390/multiarch/memcmp.c: ... here.
5408 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5409
07be3928
SL
54102018-12-18 Stefan Liebler <stli@linux.ibm.com>
5411
5412 * sysdeps/s390/s390-32/bzero.S: Delete file.
5413 * sysdeps/s390/s390-64/bzero.S: Likewise.
5414 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5415 * sysdeps/s390/bzero.c: New file.
5416 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5417 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5418 * sysdeps/s390/multiarch/ifunc-impl-list.c
5419 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5420
712a254a
SL
54212018-12-18 Stefan Liebler <stli@linux.ibm.com>
5422
5423 * sysdeps/s390/ifunc-memset.h: New File.
5424 * sysdeps/s390/memset.S: Move to ...
5425 * sysdeps/s390/memset-z900.S ... here.
5426 Move implementations from memset-s390x.s to here.
5427 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5428 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5429 Remove memset variants.
5430 * sysdeps/s390/Makefile (sysdep_routines):
5431 Add memset variants.
5432 * sysdeps/s390/multiarch/ifunc-impl-list.c
5433 (__libc_ifunc_impl_list): Adjust ifunc variants for
5434 memset.
5435 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5436 to ...
5437 * sysdeps/s390/memset.c: ... here.
5438 Adjust ifunc variants for memset.
5439
5f1743d1
SL
54402018-12-18 Stefan Liebler <stli@linux.ibm.com>
5441
5442 * sysdeps/s390/s390-64/memset.S: Move to ...
5443 * sysdeps/s390/memset.S: ... here.
5444 Adjust to be usable for 31/64bit.
5445 * sysdeps/s390/s390-32/memset.S: Delete File.
5446 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5447 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5448 Remove memset.
5449 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5450 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5451 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5452 Adjust to be usable for 31/64bit.
5453 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5454 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5455 * sysdeps/s390/multiarch/memset.c: ... here.
5456 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5457
e8023f26
SL
54582018-12-18 Stefan Liebler <stli@linux.ibm.com>
5459
5460 * sysdeps/s390/multiarch/ifunc-resolve.h
5461 (s390_libc_ifunc_init, s390_libc_ifunc,
5462 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5463
b8686c0d
SL
54642018-12-18 Stefan Liebler <stli@linux.ibm.com>
5465
5466 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5467 * sysdeps/s390/configure.ac: Add check for z10 support.
5468 * sysdeps/s390/configure: Regenerated.
5469
cd815050
L
54702018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5471
5472 * sysdeps/i386/atomic-machine.h: Merged with ...
5473 * sysdeps/x86_64/atomic-machine.h: To ...
5474 * sysdeps/x86/atomic-machine.h: This. New file.
5475
053c52b1
FW
54762018-12-18 Florian Weimer <fweimer@redhat.com>
5477
5478 Rewrite locale/gen-translit.pl in Python.
5479 * locale/Makefile (generated): Add C-translit.h.
5480 (before-compile): Add $(objpfx)C-translit.h.
5481 (C-translit.h): Move to $(objpfx). Create target directory.
5482 Build using Python script.
5483 * locale/gen-translit.py: New file.
5484 * locale/gen-translit.pl: Remove file.
5485 * locale/C-translit.h.in: Change comment character to '#' for
5486 easier parsing without a C preprocessor.
5487 * locale/C-translit.h: Remove generated file.
5488 * manual/install.texi (Tools for Compilation): Do not mention
5489 C-translit.h.
5490 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5491 Remove locale/C-translit.h.
5492 * scripts/update-copyrights: Likewise.
5493 * INSTALL: Regenerate.
5494
40e6c1ec
FW
54952018-12-18 Florian Weimer <fweimer@redhat.com>
5496
5497 [BZ #23995]
5498 * localedata/locales/bi_VU: Remove executable bit from file.
5499
6b5c8607 55002018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6e15f3e2
AA
5501
5502 * include/time.h
5503 (__localtime64): Add.
5504 * manual/maint.texi: Document Y2038 symbol handling.
5505 * time/localtime.c
5506 (__localtime64): Add.
bfb79db4 5507 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6e15f3e2 5508
df648905
JM
55092018-12-17 Joseph Myers <joseph@codesourcery.com>
5510
551e81d9
JM
5511 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5512 Do not clobber r12.
5513
df648905
JM
5514 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5515 to allow extra macros from first or second sources.
5516 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5517 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5518 (tests-special): Add $(objpfx)tst-mman-consts.out.
5519 ($(objpfx)tst-mman-consts.out): New makefile target.
5520
6bbfc5c0
MH
55212018-12-17 Mao Han <han_mao@c-sky.com>
5522
5523 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5524 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5525 without stat64 system call support.
5526 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5527 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5528 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5529 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5530 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5531 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5532 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5533 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5534 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5535 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5536 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5537
ef202e53
PE
55382018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5539
5540 regex: fix storage-exhaustion error
5541 [BZ #18040]
5542 * posix/regexec.c (get_subexp):
5543 Do not continue if storage is exhausted.
5544
077caf61
AG
55452018-12-15 Assaf Gordon <assafgordon@gmail.com>
5546
5547 regex: fix heap-use-after-free error
5548 [BZ #18040]
5549 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5550 https://debbugs.gnu.org/32592
5551 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5552 call extend_buffers which reallocates the re_string_t internal buffer.
5553 Local variable 'buf' was not updated in such case, resulting in
5554 use-after-free.
5555 * posix/regexec.c (get_subexp): Update 'buf' after call to
5556 get_subexp_sub.
5557
0c1719e6
FW
55582018-12-15 Florian Weimer <fweimer@redhat.com>
5559
5560 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5561 (minimum_stride_size): Use it.
5562 (support_blob_repeat_allocate): Likewise.
5563
033a2c0a
JM
55642018-12-14 Joseph Myers <joseph@codesourcery.com>
5565
5566 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5567 definition.
5568 (acosh): Likewise.
5569 (atanh): Likewise.
5570
e361dc04
FW
55712018-12-14 Florian Weimer <fweimer@redhat.com>
5572
5573 * manual/process.texi (Process Creation Concepts): Remove
5574 documentation of process (ID) lifetime. List more process
5575 creation functions. Reference Process Identification section.
5576 (Process Identification): Add information about process ID
5577 lifetime. Describe Linux thread/task IDs.
5578 * manual/signal.texi (Signaling Another Process): Mention that the
5579 signal is always sent to the process.
5580
bd51ff5e
GG
55812018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5582
5583 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5584 and tst-ldbl-efgcvt.
5585 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5586 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5587 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5588 (fcvt_tests, output_error, output_r_error, do_test): Use the
5589 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5590 select the type of floating-point variables and arguments; to
5591 produce extra tests for double and conversion specifiers for
5592 printf; and to set the names of called functions.
5593 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5594 in tst-efgcvt-template.c.
5595 * misc/tst-ldbl-efgcvt.c: Likewise.
5596
268bb71e
SL
55972018-12-14 Stefan Liebler <stli@linux.ibm.com>
5598
5599 * nss/Makefile (tst-nss-test3.out): New rule.
5600
db6df070
JM
56012018-12-13 Joseph Myers <joseph@codesourcery.com>
5602
5603 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5604 clobber sp.
5605
ade8b817
CD
56062018-12-13 fanjinke <fanjinke@hygon.cn>
5607
5608 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5609 "HygonGenuine".
5610
3d265911
AS
56112018-12-13 Andreas Schwab <schwab@suse.de>
5612
f21e8f8c 5613 [BZ #23861]
3d265911 5614 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
f21e8f8c
AS
5615 (__pthread_rwlock_rdlock_full): Update expected value for
5616 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5617 * nptl/tst-rwlock-pwn.c: New file.
5618 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3d265911 5619
bf8ae8c0
JM
56202018-12-12 Joseph Myers <joseph@codesourcery.com>
5621
5622 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5623 definition.
5624
de099757
LS
56252018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5626
5627 * benchtests/scripts/compare_bench.py (do_compare): write to
5628 stderr in casestat is not present.
5629 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5630 stderr in case timings field is not present. Also string showing
5631 the output filename goes into the stderr.
5632
1990185f
LS
56332018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5634
5635 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5636 and ZeroDivisorError exceptions.
5637 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5638 argument to loop through user provided statistics.
5639 * benchtests/scripts/compare_bench.py (main): Include the --stats
5640 argument.
5641
587426d4
LS
56422018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5643
5644 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5645 instead of return.
5646
46703efa
FW
56472018-12-12 Florian Weimer <fweimer@redhat.com>
5648
5649 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5650 clause to copyright header.
5651
1d880d4a
TMQMF
56522018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5653
5654 [BZ #23614]
5655 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5656 registers saved in the stack frame.
5657 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5658 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5659
1a502f52
GG
56602018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5661
5662 * include/bits/monetary-ldbl.h: New file.
5663 * include/bits/printf-ldbl.h: Likewise.
5664 * include/bits/stdio-ldbl.h: Likewise.
5665 * include/bits/stdlib-ldbl.h: Likewise.
5666 * include/bits/syslog-ldbl.h: Likewise.
5667 * include/bits/wchar-ldbl.h: Likewise.
5668
df682d1d
GG
56692018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5670
5671 * libio/libio.h: Remove redirection for _IO_vfprintf.
5672
c2c082c1
AS
56732018-12-11 Andreas Schwab <schwab@suse.de>
5674
5675 * Makerules: Remove all references to abilist-pattern.
5676 (update-all-abi): Simplify find expression.
5677
505b5b29
SN
56782018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5679
5680 [BZ #23961]
5681 * math/auto-libm-test-in: Add new test case.
5682 * math/auto-libm-test-out-pow: Regenerated.
5683 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5684
304c61a2
DD
56852018-12-10 DJ Delorie <dj@redhat.com>
5686
5687 [BZ #23948]
5688 * support/test-container.c: Move postclean step to before we
5689 change namespaces.
5690
a8110b72
JM
56912018-12-10 Joseph Myers <joseph@codesourcery.com>
5692
cb7be159
JM
5693 * scripts/gen-as-const.py (main): Handle --python option.
5694 * scripts/gen-py-const.awk: Remove.
5695 * Makerules (py-const-script): Use gen-as-const.py.
5696 ($(py-const)): Likewise.
5697 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5698 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5699 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5700 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5701 ~PTHREAD_MUTEX_NO_ELISION_NP.
5702 * manual/README.pretty-printers: Update reference to
5703 gen-py-const.awk.
5704
a8110b72
JM
5705 * scripts/glibcextract.py: New file.
5706 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5707 or tempfile. Import glibcexctract.
5708 (compute_c_consts): Remove. Moved to glibcextract.py.
5709 (gen_test): Update reference to compute_c_consts.
5710 (main): Likewise.
5711 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5712 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5713 * sysdeps/unix/sysv/linux/Makefile
5714 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5715 Redirect stderr as well as stdout.
5716
f9ba9eb8
RÁE
57172018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5718
5719 [BZ #19767]
5720 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
b39d961c
TS
5721 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5722 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
f9ba9eb8 5723 ALWAYS_USE_VSYSCALL.
b39d961c 5724 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
f9ba9eb8
RÁE
5725 ALWAYS_USE_VSYSCALL.
5726 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5727 ALWAYS_USE_VSYSCALL.
5728
8d20a2f4
FW
57292018-12-10 Florian Weimer <fweimer@redhat.com>
5730
5731 [BZ #23972]
5732 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5733 offset instead of count for clarity. Fix typo in comment.
5734 (__old_getdents64): Keep track of previous offset. Use it to call
5735 handle_overflow.
5736 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5737 that d_off is never zero.
5738
80472e2f
AS
57392018-12-10 Andreas Schwab <schwab@suse.de>
5740
5741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5742 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5744 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5745 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5746
0afcb29d
JM
57472018-12-10 Joseph Myers <joseph@codesourcery.com>
5748
5749 * timezone/private.h: Update from tzcode 2018g.
5750 * timezone/tzfile.h: Likewise.
5751 * timezone/tzselect.ksh: Likewise.
5752 * timezone/zdump.c: Likewise.
5753 * timezone/zic.c: Likewise.
5754
b93f4052
PP
57552018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5756
5757 [BZ #23490]
5758 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5759 (do_test): Adjust buffer size and fix format.
5760
7c9a7c68
DD
57612018-12-07 DJ Delorie <dj@redhat.com>
5762
5763 [BZ #23907]
5764 * malloc/tst-tcfree3.c: New.
5765 * malloc/Makefile: Add it.
5766
37caec3a
L
57672018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5768
5769 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5770
10446f5d
GG
57712018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5772
5773 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5774 used as a mask for the mode argument of __vfscanf_internal and
5775 __vfwscanf_internal.
5776 * stdio-common/vfscanf-internal.c
5777 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5778 (__strtof128_internal): Define to __wcstof128_internal.
5779 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5780 __strtof128_internal or __wcstof128_internal when the format of
5781 long double is the same as _Float128.
5782
45f33aac
ST
57832018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5784
5785 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5786 * posix/confstr.c (confstr): Rename to __confstr.
5787 (__confstr): Add hidden def.
5788 (confstr): Add weak alias for __confstr.
5789 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5790 confstr.
5791
a092ca94
L
57922018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5793
5794 * NEWS: Mention getcpu.
5795 * include/sched.h (__getcpu): New libc_hidden_proto.
5796 * manual/resource.texi: Document getcpu.
5797 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5798 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5799 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5800 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5801 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5802 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5803 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5804 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5805 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5806 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5807 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5808 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5809 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5810 Likewise.
5811 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5812 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5813 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5815 Likewise.
5816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5817 Likewise.
5818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5819 Likewise.
5820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5821 Likewise.
5822 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5823 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5824 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5825 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5826 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5827 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5828 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5829 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5830 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5831 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5832 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5833 Also check getcpu.
5834
7c857b6f
ST
58352018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5836
5837 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5838 functions.
5839 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5840
3a3fb755
FW
58412018-12-07 Florian Weimer <fweimer@redhat.com>
5842
5843 [BZ #17405]
5844 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5845 * posix/Versions (GLIBC_2.29): Export
5846 posix_spawn_file_actions_addfchdir_np.
5847 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5848 * posix/spawn_faction_destroy.c
5849 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5850 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5851 and the field action.fchdir_action.
5852 * posix/tst-spawn-chdir.c (add_chdir): New function.
5853 (do_test): Add do_fchdir loop. Call add_chdir.
5854 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5855 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5856 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5857 posix_spawn_file_actions_addfchdir_np.
5858 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5859 Likewise.
5860 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5861 Likewise.
5862 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5863 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5864 Likewise.
5865 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5866 Likewise.
5867 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5868 Likewise.
5869 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5870 Likewise.
5871 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5872 Likewise.
5873 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5874 Likewise.
5875 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5876 (GLIBC_2.29): Likewise.
5877 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5878 (GLIBC_2.29): Likewise.
5879 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5880 (GLIBC_2.29): Likewise.
5881 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5882 (GLIBC_2.29): Likewise.
5883 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5884 Likewise.
5885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5886 (GLIBC_2.29): Likewise.
5887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5888 (GLIBC_2.29): Likewise.
5889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5890 (GLIBC_2.29): Likewise.
5891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5892 (GLIBC_2.29): Likewise.
5893 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5894 Likewise.
5895 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5896 Likewise.
5897 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5898 Likewise.
5899 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5900 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5901 Likewise.
5902 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5903 Likewise.
5904 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5905 Likewise.
5906 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5907 Likewise.
5908
c37cd439
JM
59092018-12-06 Joseph Myers <joseph@codesourcery.com>
5910
5911 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5912 trailing whitespace removed.
5913 * scripts/config.guess: Update to version 2018-11-28.
5914 * scripts/config.sub: Update to version 2018-11-28.
5915 * scripts/install-sh: Update to version 2018-03-11.20.
5916 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5917 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5918
899478c2
FW
59192018-12-07 Florian Weimer <fweimer@redhat.com>
5920
5921 [BZ #23927]
5922 CVE-2018-19591
5923 * inet/tst-if_index-long.c: New file.
5924 * inet/Makefile (tests): Add tst-if_index-long.
5925
f255336a
FW
59262018-12-07 Florian Weimer <fweimer@redhat.com>
5927
5928 * support/check.h (support_record_failure_is_failed): Declare.
5929 * support/descriptors.h: New file.
5930 * support/support_descriptors.c: Likewise.
5931 * support/tst-support_descriptors.c: Likewise.
5932 * support/support_record_failure.c
5933 (support_record_failure_is_failed): New function.
5934 * support/Makefile (libsupport-routines): Add support_descriptors.
5935 (tests): Add tst-support_descriptors.
5936
35caceb1
ZW
59372018-12-05 Zack Weinberg <zackw@panix.com>
5938 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5939
5940 * stdio-common/vfprintf-internal.c
5941 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
5942 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
5943 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
5944 and __no_long_double.
5945 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
5946 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
5947 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
5948 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
5949 and __nldbl_*syslog* functions.
5950 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
5951 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
5952 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
5953 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
5954 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
5955 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
5956 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
5957 (__nldbl_vwprintf, __nldbl_wprintf):
5958 Directly call the appropriate __v*printf_internal routine, passing
5959 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
5960 variable names.
5961 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
5962 (__nldbl___printf_chk, __nldbl___snprintf_chk)
5963 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
5964 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
5965 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
5966 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
5967 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
5968 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
5969 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
5970 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
5971 Likewise, and also pass PRINTF_FORTIFY when appropriate.
5972 (__nldbl_syslog, __nldbl_vsyslog):
5973 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
5974 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5975 appropriate.
5976 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
5977 appropriate.
5978
4e2f43f8
ZW
59792018-12-05 Zack Weinberg <zackw@panix.com>
5980 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5981
5982 [BZ #11319]
5983 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
5984 Moved here from debug/vsprintf_chk.c.
5985 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
5986 and completion logic for the strfile to match exactly what
5987 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
5988 _IO_str_init_static_internal instead of maxlen-1.
5989 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
5990 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
5991 __vsprintf_internal.
5992
5993 * debug/vsprintf_chk.c (__vsprintf_chk)
5994 * debug/sprintf_chk.c (__sprintf_chk):
5995 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
5996 'flags' argument is positive, and slen as maxlen. No need to lock
5997 the FILE and/or construct a temporary FILE. Minimize and normalize
5998 header inclusions and variable names. Do not libc_hidden_def anything.
5999
6000 * debug/asprintf_chk.c (__asprintf_chk)
6001 * debug/dprintf_chk.c (__dprintf_chk)
6002 * debug/fprintf_chk.c (__fprintf_chk)
6003 * debug/fwprintf_chk.c (__fwprintf_chk)
6004 * debug/printf_chk.c (__printf_chk)
6005 * debug/snprintf_chk.c (__snprintf_chk)
6006 * debug/swprintf_chk.c (__swprintf_chk)
6007 * debug/vasprintf_chk.c (__vasprintf_chk)
6008 * debug/vdprintf_chk.c (__vdprintf_chk)
6009 * debug/vfprintf_chk.c (__vfprintf_chk)
6010 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6011 * debug/vprintf_chk.c (__vprintf_chk)
6012 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6013 * debug/vswprintf_chk.c (__vswprintf_chk)
6014 * debug/vwprintf_chk.c (__vwprintf_chk)
6015 * debug/wprintf_chk.c (__wprintf_chk):
6016 Directly call the corresponding vxxprintf_internal function, passing
6017 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6018 the FILE and/or construct a temporary FILE. Minimize and normalize
6019 header inclusions and variable names. Do not libc_hidden_def anything.
6020
6021 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6022 __obstack_vprintf_internal.
6023 (__obstack_vprintf_chk): Convert into a wrapper that calls
6024 __obstack_vprintf_internal (these two functions already had the
6025 same code) and move to new file...
6026 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6027 file.
6028 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6029 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6030 * debug/Makefile (routines): Add vobprintf_chk.
6031
6032 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6033 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6034 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6035 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6036 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6037 (__nldbl___obstack_vfprintf_chk):
6038 Directly call the corresponding vxxprintf_internal function,
6039 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6040 duplicate comparison of slen with 0 or maxlen from the corresponding
6041 non-__nldbl function.
6042
6043 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6044 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6045 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6046 Remove libc_hidden_proto.
6047
6048 * stdio-common/vfprintf-internal.c
6049 (__vfprintf_internal, __vfwprintf_internal):
6050 Do not check _IO_FLAGS2_FORTIFY.
6051 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6052 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6053 a comment explaining why it has the maxlen argument.
6054 (_IO_acquire_lock_clear_flags2_fct): Remove.
6055 (_IO_acquire_lock_clear_flags2): Remove.
6056 (_IO_release_lock): Remove conditional statement which will
6057 now never execute.
6058 (_IO_acquire_lock): Remove variable which is now unused.
6059 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6060 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6061
6062 * stdio-common/Makefile (tests): Add tst-bz11319 and
6063 tst-bz11319-fortify2.
6064 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6065 * stdio-common/tst-bz11319-fortify2.c: New file.
6066 * stdio-common/tst-bz11319.c: Likewise.
6067
124fc732
ZW
60682018-12-05 Zack Weinberg <zackw@panix.com>
6069 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6070
6071 * misc/syslog.c: Include libioP.h, not iolibio.h.
6072 (__vsyslog_internal): New function with the former body of
6073 __vsyslog_chk; takes mode_flags argument same as
6074 __v*printf_internal. Call __vfprintf_internal directly.
6075
6076 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6077 Remove libc_hidden_def.
6078 (__syslog, __syslog_chk): Use __vsyslog_internal.
6079 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6080
6081 * include/sys/syslog.h: Add multiple inclusion guard.
6082 Add prototype for __vsyslog_internal.
6083 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6084
6085 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6086 Use __vsyslog_internal.
6087
698fb75b
ZW
60882018-12-05 Zack Weinberg <zackw@panix.com>
6089 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6090
6091 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6092 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6093 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6094 New functions.
6095 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6096 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6097
6098 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6099 Include wctype.h here if COMPILE_WPRINTF is defined.
6100 Define __vfprintf_internal or __vfwprintf_internal, depending
6101 on COMPILE_WPRINTF.
6102 Temporarily, on entry to this function, update mode_flags
6103 according to the environmental settings corresponding to
6104 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6105 Throughout, check mode_flags instead of __ldbl_is_dbl and
6106 _IO_FLAGS2_FORTIFY on the destination FILE.
6107 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6108 Include vfprintf-internal.c. Don't include wctype.h.
6109 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6110 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6111 and vfprintf.
6112 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6113 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6114 and vfwprintf.
6115 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6116
6117 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6118 and add mode_flags argument; use __vfprintf_internal.
6119 (__vdprintf): New function. Alias vdprintf to this.
6120 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6121 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6122 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6123 (__obstack_printf): Use __obstack_printf_internal.
6124 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6125 public aliases __vsnprintf and vsnprintf.
6126 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6127 called internally.
6128 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6129 public aliases _IO_vsprintf and vsprintf.
6130 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6131 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6132 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6133 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6134 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6135
6136 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6137 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6138 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6139 * stdio-common/printf.c: Use __vfprintf_internal.
6140
6141 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6142 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6143 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6144
6145 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6146 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6147 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6148 __vfwprintf_internal.
6149
6150 * libio/libio.h: Remove libc_hidden_proto and declaration for
6151 _IO_vfprintf.
6152 Remove declaration of _IO_vfwprintf.
6153 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6154 _IO_vsprintf.
6155 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6156 _IO_obstack_printf.
6157 * include/stdio.h: Add prototype for __vasprintf.
6158 (__vsnprintf): Remove declaration, because there are no more
6159 internal calls.
6160 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6161 declaration, because there are no more internal calls.
6162
6163 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6164 __vsnprintf_internal, instead of _IO_vsnprintf.
6165 * argp/argp-help.c (__argp_error, __argp_failure): Use
6166 __vasprintf_internal, instead of _IO_vasprintf.
6167 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6168 redefine, because there are no more internal calls.
6169
d91798b3
ZW
61702018-12-05 Zack Weinberg <zackw@panix.com>
6171 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6172
6173 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6174 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6175 Include libio/strfile.h instead of libioP.h.
6176 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6177 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6178 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6179 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6180 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6181 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6182 necessary. Do not set __no_long_double. Normalize variable names.
6183 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6184 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6185 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6186 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6187 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6188 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6189 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6190 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6191 Do not set __no_long_double. Normalize variable names.
6192
b87eb3f8
ZW
61932018-12-05 Zack Weinberg <zackw@panix.com>
6194 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6195
6196 * stdio-common/isoc99_scanf.c
6197 * stdio-common/isoc99_fscanf.c
6198 * stdio-common/isoc99_sscanf.c
6199 * stdio-common/isoc99_vscanf.c
6200 * stdio-common/isoc99_vfscanf.c
6201 * stdio-common/isoc99_vsscanf.c
6202 * wcsmbs/isoc99_wscanf.c
6203 * wcsmbs/isoc99_fwscanf.c
6204 * wcsmbs/isoc99_swscanf.c
6205 * wcsmbs/isoc99_vwscanf.c
6206 * wcsmbs/isoc99_vfwscanf.c
6207 * wcsmbs/isoc99_vswscanf.c:
6208 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6209 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6210 No need to lock and unlock the FILE passed to that function.
6211
6212 * stdio-common/vfscanf-internal.c
6213 (__vfscanf_internal, __vfwscanf_internal):
6214 Don't look at _IO_FLAGS2_SCANF_STD.
6215 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6216 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6217 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6218
349718d4
ZW
62192018-12-05 Zack Weinberg <zackw@panix.com>
6220 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6221
6222 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6223 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6224 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6225 * libio/strfile.h: Add multiple inclusion guard.
6226 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6227
6228 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6229 consistency with the other version of this file.
6230 (ldbl_compat_symbol): New macro.
6231 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6232 New macro.
6233
6234 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6235 Define __vfscanf_internal or __vfwscanf_internal, depending on
6236 COMPILE_WSCANF; don't define any other public symbols.
6237 Remove errval and code to set errp.
6238 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6239 as the mode_flags argument.
6240 (encode_error, conv_error, input_error): Don't set errval.
6241 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6242 Include vfscanf-internal.c.
6243 * stdio-common/vfscanf.c: New file defining the public entry
6244 point vfscanf, which calls __vfscanf_internal.
6245 * stdio-common/vfwscanf.c: New file defining the public entry
6246 point vfwscanf, which calls __vfwscanf_internal.
6247
6248 * stdio-common/iovfscanf.c: New file.
6249 * stdio-common/iovfwscanf.c: Likewise.
6250
6251 * stdio-common/Makefile (routines): Add vfscanf-internal,
6252 vfwscanf-internal, iovfscanf, iovfwscanf.
6253 * stdio-common/Versions: Mention GLIBC_2.29, so that
6254 it can be used in SHLIB_COMPAT expressions.
6255 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6256 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6257 Call __vfscanf_internal, instead of _IO_vfscanf.
6258 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6259 _IO_vfscanf.
6260 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6261 _IO_vfwscanf.
6262
6263 * libio/iovsscanf.c: Clean up includes, when possible. Use
6264 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6265 __vfscanf_internal or __vfwscanf_internal directly.
6266 * libio/iovswscanf.c: Likewise.
6267 * libio/swscanf.c: Likewise.
6268 * libio/vscanf.c: Likewise.
6269 * libio/vwscanf.c: Likewise.
6270 * libio/wscanf.c: Likewise.
6271 * stdio-common/isoc99_fscanf.c: Likewise.
6272 * stdio-common/isoc99_scanf.c: Likewise.
6273 * stdio-common/isoc99_sscanf.c: Likewise.
6274 * stdio-common/isoc99_vfscanf.c: Likewise.
6275 * stdio-common/isoc99_vscanf.c: Likewise.
6276 * stdio-common/isoc99_vsscanf.c: Likewise.
6277 * stdio-common/scanf.c: Likewise.
6278 * stdio-common/sscanf.c: Likewise.
6279 * wcsmbs/isoc99_fwscanf.c: Likewise.
6280 * wcsmbs/isoc99_swscanf.c: Likewise.
6281 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6282 * wcsmbs/isoc99_vswscanf.c: Likewise.
6283 * wcsmbs/isoc99_vwscanf.c: Likewise.
6284 * wcsmbs/isoc99_wscanf.c: Likewise.
6285
6b5c8607 62862018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
72b8692d
AA
6287
6288 * include/time.h
6289 (__tz_compute): Replace time_t with __time64_t.
6290 (__tz_convert): Replace time_t* with __time64_t.
6291 (__offtime): Replace time_t* with __time64_t.
6292 * time/gmtime.c
6293 (__gmtime_r): Adjust call to __tz_convert.
6294 (gmtime): Likewise.
6295 * time/localtime.c
6296 (__localtime_r): Likewise.
6297 (localtime): Likewise.
6298 * time/offtime.c: Replace time_t with __time64_t.
6299 * time/tzset.c: Likewise.
6300
bd598da9
JM
63012018-12-04 Joseph Myers <joseph@codesourcery.com>
6302
6303 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6304 dynamic linker unless [$(run-built-tests) = yes].
6305
b2e93de0
DD
63062018-12-03 DJ Delorie <dj@delorie.com>
6307
6308 * support/test-container.c (check_for_unshare_hints): New.
6309 (main): Call it if unshare fails. Add support for "su" scriptlet
6310 command.
6311
477a02f6
JM
63122018-12-03 Joseph Myers <joseph@codesourcery.com>
6313
6314 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6315 'START' to indicate that start text should be output.
6316 (gen_test): Likewise.
6317 (main): Generate 'START' for first symbol or '--' line, or at end
6318 of input if not previously generated.
6319
6af956e5
RÁE
63202018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6321
6322 [BZ #19767]
6323 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6324 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6325 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6326 ALWAYS_USE_VSYSCALL.
6327
f5ec0ea9
AZ
63282018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6329
6330 [BZ #23913]
6331 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6332 new_argv by one.
6333
8cebd4ff
CD
63342018-12-03 Carlos O'Donell <carlos@redhat.com>
6335
6336 [BZ #23923]
6337 * locale/programs/localedef.c: Declare boolean hard_links default true.
6338 (options): Add --no-hard-links option.
6339 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6340 * locale/programs/localedef.h: Declare prototype for hard_links.
6341 * locale/programs/locfile.c (write_locale_data): Don't use hard
6342 links if hard_links is false.
6343
c22e4c2a
L
63442018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6345
6346 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6347 cpu_features_basic.
6348 (__cache_sysconf): Likewise.
6349 (init_cacheinfo): Likewise.
6350 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6351 populate COMMON_CPUID_INDEX_80000007 and
6352 COMMON_CPUID_INDEX_80000008.
6353 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6354 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6355 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6356 (init_cpu_features): Use _Static_assert on
6357 index_arch_Fast_Unaligned_Load.
6358 __get_cpuid_registers and __get_arch_feature. Updated for
6359 cpu_features_basic. Set stepping in cpu_features.
6360 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6361 (FEATURE_INDEX_2): New.
6362 (FEATURE_INDEX_MAX): Changed to enum.
6363 (COMMON_CPUID_INDEX_D_ECX_1): New.
6364 (COMMON_CPUID_INDEX_80000007): Likewise.
6365 (COMMON_CPUID_INDEX_80000008): Likewise.
6366 (cpuid_registers): Likewise.
6367 (cpu_features_basic): Likewise.
6368 (CPU_FEATURE_USABLE): Likewise.
6369 (bit_arch_XXX_Usable): Likewise.
6370 (cpu_features): Use cpuid_registers and cpu_features_basic.
6371 (bit_arch_XXX): Reweritten.
6372 (bit_cpu_XXX): Likewise.
6373 (index_cpu_XXX): Likewise.
6374 (reg_XXX): Likewise.
6375 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6376 <support/check.h>.
6377 (CHECK_CPU_FEATURE): New.
6378 (CHECK_CPU_FEATURE_USABLE): Likewise.
6379 (cpu_kinds): Likewise.
6380 (do_test): Print vendor, family, model and stepping. Check
6381 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6382 (TEST_FUNCTION): Removed.
6383 Include <support/test-driver.c> instead of
6384 "../../test-skeleton.c".
6385 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6386 Check POPCNT instead of POPCOUNT.
6387 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6388
7b36d26b
ST
63892018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6390
6391 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6392 there is no element in `consts'.
6393
02cd5c1a
FW
63942018-12-01 Florian Weimer <fweimer@redhat.com>
6395
6396 * support/support_capture_subprocess.c
6397 (support_capture_subprocess): Check that pipe descriptors have
6398 expected values. Close original pipe descriptors in subprocess.
6399
fc493bc9
ST
64002018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6401
6402 [BZ #23032]
6403 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6404 attr with __pthread_default_barrierattr.
6405 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6406 attr with __pthread_default_condattr.
6407 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6408 attr with __pthread_default_mutexattr.
6409 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6410 attr with __pthread_default_rwlockattr.
6411
6310e6be
KW
64122018-12-01 Kemi Wang <kemi.wang@intel.com>
6413
6414 * manual/tunables.texi (POSIX Thread Tunables): New node.
6415 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6416 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6417 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6418 __pthread_tunables_init.
6419 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6420 (max_adaptive_count): Define.
6421 * nptl/pthread_mutex_conf.c: New file.
6422 * nptl/pthread_mutex_conf.h: New file.
6423 * sysdeps/generic/adaptive_spin_count.h: New file.
6424 * sysdeps/nptl/dl-tunables.list: New file.
6425 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6426 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6427 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6428 Likewise.
6429
8e67b39e
PP
64302018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6431
6432 [BZ #20544]
6433 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6434 * stdlib/on_exit.c (__on_exit): Likewise.
6435 * stdlib/Makefile (tests): Add tst-bz20544.
6436 * stdlib/tst-bz20544.c: New test.
6437
15b8d67e
RÁE
64382018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6439
6440 [BZ #19767]
6441 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6442 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6443 New.
6444
5e63c240
FW
64452018-11-30 Florian Weimer <fweimer@redhat.com>
6446
6447 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6448 Extend error logging.
6449 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6450 symbol.
6451
71058602 64522018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14d0e87d 6453
5fb7fc96
AZ
6454 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6455 __sigismember instead of sigismember.
6456 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6457 cancel_handler): New definitions.
6458 (do_system): Use posix_spawn instead of fork and execl and remove
6459 reentracy code.
6460 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6461 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6462 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6463 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6464 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6465 * sysdeps/unix/sysv/linux/system.c: Likewise.
6466
14d0e87d
AZ
6467 [BZ #22834]
6468 [BZ #17490]
6469 * NEWS: Add new semantic for atfork with popen and system.
6470 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6471 fork and execl.
6472
e5d262ef
TMQMF
64732018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6474
6475 [BZ #23690]
6476 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6477 modification order when accessing reloc_result->addr.
6478 * include/link.h (reloc_result): Add field init.
6479 * nptl/Makefile (tests): Add tst-audit-threads.
6480 (modules-names): Add tst-audit-threads-mod1 and
6481 tst-audit-threads-mod2.
6482 Add rules to build tst-audit-threads.
6483 * nptl/tst-audit-threads-mod1.c: New file.
6484 * nptl/tst-audit-threads-mod2.c: Likewise.
6485 * nptl/tst-audit-threads.c: Likewise.
6486 * nptl/tst-audit-threads.h: Likewise.
6487
7e1d4240
JM
64882018-11-30 Joseph Myers <joseph@codesourcery.com>
6489
6490 * scripts/gen-as-const.py: New file.
6491 * scripts/gen-as-const.awk: Remove.
6492 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6493 gen-as-const.py.
6494 ($(objpfx)test-as-const-%.c): Likewise.
6495
ce7387cc
L
64962018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6497
6498 * elf/dl-exception.c: Include <_itoa.h>.
6499
c6a5bdc1
ST
65002018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6501
6502 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6503 returned by __f_setlk.
6504
a5275ba5
L
65052018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6506 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6507
6508 * elf/Makefile (tests-internal): Add tst-create_format1.
6509 * elf/dl-exception.c (_dl_exception_create_format): Support
6510 %x, %lx and %zx.
6511 * elf/tst-create_format1.c: New file.
6512
3a67e81d
CAC
65132018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6514
6515 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6516 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6517 gnulib.)
6518 * argp/argp-help.c (__argp_failure): Likewise.
6519
4975f0c3
MH
65202018-11-29 Mao Han <han_mao@c-sky.com>
6521
6522 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6523 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6524 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6525 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6526 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6527 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6528 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6529 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6530 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6531 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6532 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6533 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6534 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6535 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6536 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6537 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6538 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6539 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6540 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6541 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6542 (R_CKCORE_TLS_TPOFF32): New defines.
6543
250102c8
FW
65442018-11-29 Florian Weimer <fweimer@redhat.com>
6545
6546 * posix/Makefile (before-compile): Remove testcases.h and
6547 ptestcases.h.
6548 (generated): Add testcases.h and ptestcases.h.
6549 (testcases.h, ptestcases.h): Move to $(objpfx).
6550 (runtests.o): Add dependency on testcases.h.
6551 (runptests.o): Add dependency on ptestcases.h.
6552 * posix/testcases.h, posix/ptestcases.h: Remove files.
6553 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6554 not touch posix/testcases.h and posix/ptestcases.h.
6555
96cd0558
FW
65562018-11-28 Florian Weimer <fweimer@redhat.com>
6557
6558 support: Add signal support to support_capture_subprocess_check.
6559 * support/capture_subprocess.h (support_capture_subprocess_check):
6560 Adjust comment and rename parameter.
6561 * support/support_capture_subprocess_check.c
6562 (print_actual_status): New function.
6563 (support_capture_subprocess_check): Support negative
6564 status_or_signal. Call print_actual_status.
6565 * support/tst-support_capture_subprocess.c (do_test): Call
6566 support_capture_subprocess_check.
6567 * libio/tst-vtables-common.c (termination_status)
6568 (init_termination_status): Remove.
6569 (check_for_termination): Adjust support_capture_subprocess_check
6570 call.
6571 (do_test): Remove call to init_termination_status.
6572
530504e3
JM
65732018-11-28 Joseph Myers <joseph@codesourcery.com>
6574
6575 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6576 source directory instead of a copy.
6577 (CommandList.create_copy_dir): Remove.
6578
9a0b6970
SL
65792018-11-28 Stefan Liebler <stli@linux.ibm.com>
6580
6581 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6582
47d8d9a2
FW
65832018-11-28 Florian Weimer <fweimer@redhat.com>
6584
6585 * support/support.h (support_quote_string): Do not use str
6586 parameter name.
6587
b473b7d8
JM
65882018-11-27 Joseph Myers <joseph@codesourcery.com>
6589
6590 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6591 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6592
c74a91de
FW
65932018-11-27 Florian Weimer <fweimer@redhat.com>
6594
6595 * support/support.h (support_quote_string): Declare.
6596 * support/support_quote_string.c: New file.
6597 * support/tst-support_quote_string.c: Likewise.
6598 * support/Makefile (libsupport-routines): Add
6599 support_quote_string.
6600 (tests): Add tst-support_quote_string.
6601
d527c860
FW
66022018-11-27 Florian Weimer <fweimer@redhat.com>
6603
6604 [BZ #23927]
6605 CVE-2018-19591
6606 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6607 descriptor leak in case of ENODEV error.
6608
979cfed0
RÁE
66092018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6610
6611 [BZ #19767]
6612 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6613 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6614 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6615
ce035c6e
CD
66162018-11-26 Carlos O'Donell <carlos@redhat.com>
6617
6618 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6619 Error for unknown lines.
6620
2bd0bfcc
JM
66212018-11-26 Joseph Myers <joseph@codesourcery.com>
6622
6623 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6624 Touch additional files.
6625
affec03b
FW
66262018-11-26 Florian Weimer <fweimer@redhat.com>
6627
6628 [BZ #23907]
6629 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6630 double-frees.
6631
8ae74ead
RÁE
66322018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6633
6634 [BZ #19767]
6635 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6636 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6637 SHARED. Include sysdep.h.
6638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6639 ALWAYS_USE_VSYSCALL.
6640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6641 ALWAYS_USE_VSYSCALL.
6642
1e8bdc3a
RÁE
66432018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6644
6645 [BZ #19767]
6646 * nptl/Makefile (tests-static): Add tst-cond11-static.
6647 (tests): Likewise.
6648 * nptl/tst-cond11-static.c: New File.
6649 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6650 tst-affinity-static.
6651 (tests): Likewise.
6652 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6653 instead of SHARED.
6654 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6655 (USE_VSYSCALL): Likewise.
6656 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6657 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6658 instead of SHARED.
6659 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6660 SHARED.
6661 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6662 New.
6663
1283c478
JM
66642018-11-23 Joseph Myers <joseph@codesourcery.com>
6665
6666 [BZ #23915]
6667 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6668 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6669 Undefine.
6670
c089fd80
L
66712018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6672
6673 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6674 (tst-cet-legacy-1a-ARGS): New.
6675 ($(objpfx)tst-cet-legacy-1a): New target.
6676 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6677
cc6c89fa
JM
66782018-11-22 Joseph Myers <joseph@codesourcery.com>
6679
95edd05c
JM
6680 * conform/conformtest.py (CompileSubTest.__init__): Set
6681 self.run_early to False.
6682 (ExecuteSubTest.__init__): Likewise.
6683 (HeaderTests.run): Try running all non-optional, non-XFAILed
6684 compilation tests in a single execution of the compiler.
6685
cc6c89fa
JM
6686 * conform/conformtest.py (CompileSubTest): New class.
6687 (ExecuteSubTest): Likewise.
6688 (ElementTest.run): Rename to gen_subtests. Append tests to
6689 self.subtests instead of running them.
6690 (ConstantTest.run): Likewise.
6691 (SymbolTest.run): Likewise.
6692 (TypeTest.run): Likewise.
6693 (TagTest.run): Likewise.
6694 (FunctionTest.run): Likewise.
6695 (VariableTest.run): Likewise.
6696 (MacroFunctionTest.run): Likewise.
6697 (MacroStrTest.run): Likewise.
6698 (HeaderTests.handle_test_line): Generate subtests for tests.
6699 (HeaderTests.run): Run subtests for tests.
6700
a502c529
SN
67012018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6702
6703 * math/Versions (GLIBC_2.29): Add pow.
6704 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6705 symbol.
6706 * math/w_pow.c: New file.
6707 * sysdeps/i386/fpu/w_pow.c: New file.
6708 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6709 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6710 and add necessary aliases.
6711 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6712 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6713 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6714 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6715 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6716 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6717 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6718 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6719 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6720 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6721 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6722 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6723 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6724 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6725 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6730 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6731 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6732 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6733 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6734 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6735 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6736 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6737 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6738 __pow.
6739 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6740 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6741 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6742
718d6542
SN
67432018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6744
6745 * math/Versions (GLIBC_2.29): Add log2.
6746 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6747 symbol.
6748 * math/w_log2.c: New file.
6749 * sysdeps/i386/fpu/w_log2.c: New file.
6750 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6751 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6752 and add necessary aliases.
6753 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6754 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6755 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6756 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6757 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6758 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6759 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6760 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6761 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6762 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6763 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6764 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6765 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6766 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6767 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6772 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6773 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6774 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6775 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6776 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6777 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6778 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6779
f29b7c49
SN
67802018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6781
6782 * math/Versions (GLIBC_2.29): Add log.
6783 * math/w_log_compat.c (__log_compat): Change to versioned compat
6784 symbol.
6785 * math/w_log.c: New file.
6786 * sysdeps/i386/fpu/w_log.c: New file.
6787 * sysdeps/ia64/fpu/e_log.S: Update.
6788 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6789 and add necessary aliases.
6790 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6791 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6792 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6793 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6794 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6795 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6796 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6797 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6798 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6799 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6800 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6801 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6802 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6803 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6804 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6809 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6810 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6811 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6812 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6813 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6814 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6815 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6816 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6817 __log.
6818 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6819 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6820 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6821 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6822
c20a1056
SN
68232018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6824
6825 * math/Versions (GLIBC_2.29): Add exp and exp2.
6826 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6827 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6828 * math/w_exp_compat.c (__exp_compat): Likewise.
6829 * math/w_exp.c: New file.
6830 * math/w_exp2.c: New file.
6831 * sysdeps/i386/fpu/w_exp.c: New file.
6832 * sysdeps/i386/fpu/w_exp2.c: New file.
6833 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6834 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6835 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6836 and add necessary aliases.
6837 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6838 and add necessary aliases.
6839 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6840 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6841 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6842 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6843 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6844 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6845 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6846 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6847 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6848 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6849 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6850 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6851 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6852 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6853 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6854 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6855 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6860 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6861 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6862 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6863 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6864 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6865 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6866 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6867 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6868 (__ieee754_exp): Rename to __exp.
6869 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6870 (__ieee754_exp): Rename to __exp.
6871 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6872 (__ieee754_exp): Rename to __exp.
6873 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6874 __exp.
6875 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6876
bcdaad21
DD
68772018-11-20 DJ Delorie <dj@redhat.com>
6878
6879 * malloc/malloc.c (tcache_entry): Add key field.
6880 (tcache_put): Set it.
6881 (tcache_get): Likewise.
6882 (_int_free): Check for double free in tcache.
6883 * malloc/tst-tcfree1.c: New.
6884 * malloc/tst-tcfree2.c: New.
6885 * malloc/Makefile: Run the new tests.
6886 * manual/probes.texi: Document memory_tcache_double_free probe.
6887
6888 * dlfcn/dlerror.c (check_free): Prevent double frees.
6889
5770c0ad
WD
68902018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6891
6892 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6893
9a62a939
JM
68942018-11-20 Joseph Myers <joseph@codesourcery.com>
6895
6896 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6897 in tests. Use names for format arguments.
6898 (ConstantTest.run): Likewise.
6899 (SymbolTest.run): Likewise.
6900 (TypeTest.run): Likewise.
6901 (TagTest.run): Likewise.
6902 (FunctionTest.run): Likewise.
6903 (VariableTest.run): Likewise.
6904 (MacroFunctionTest.run): Likewise.
6905 (MacroStrTest.run): Likewise.
6906 (HeaderTests.__init__): Set self.num_tests.
6907 (HeaderTests.handle_test_line): Set test.num. Increment
6908 self.num_tests.
6909
b15b1a95
ST
69102018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6911
6912 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6913 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6914 SEEK_SET.
6915
0c7f97ae
MH
69162018-11-19 Mao Han <han_mao@c-sky.com>
6917
6918 * scripts/config.guess: Update to version 2018-08-29.
6919 * scripts/config.sub: Update to version 2018-08-29.
6920
35e3fbc4
FW
69212018-11-19 Florian Weimer <fweimer@redhat.com>
6922
6923 support: Print timestamps in timeout handler.
6924 * support/support_test_main.c (print_timestamp): New function.
6925 (signal_handler): Use it to print the termination time and the
6926 time of the last write to standard output.
6927
c75772e3
ZW
69282018-11-16 Zack Weinberg <zackw@panix.com>
6929 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6930
6931 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6932 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6933 argument.
6934 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6935 and add flags argument. Check flags instead of __ldbl_is_dbl when
6936 deciding whether to set is_long_double.
6937 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
6938 passing zero for flags argument.
6939 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
6940
6941 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6942 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
6943 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
6944 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
6945 variable names. Remove libc_hidden_def/libc_hidden_proto from
6946 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
6947 longer called from within the library.
6948 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
6949 for __nldbl___vstrfmon_l, declare it explicitly.
6950
6951 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
6952
346ef23f
ST
69532018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6954
6955 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
6956 macros
6957 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
6958 F_SETLK64, F_SETLKW64, respectively.
6959 * sysdeps/mach/hurd/f_setlk.c: New file.
6960 * sysdeps/mach/hurd/f_setlk.h: New file.
6961 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
6962 f_setlk.
6963 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
6964 (__libc_fcntl): Move non-flock operations to...
6965 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
6966 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
6967
de20b81a
PE
69682018-11-15 Paul Eggert <eggert@cs.ucla.edu>
6969
5d8af156
PE
6970 mktime: DEBUG_MKTIME cleanup
6971 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
6972 And it’s no longer needed now that glibc and Gnulib both have
6973 their own testing mechanisms for mktime.
6974 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
6975
86aece3b
PE
6976 mktime: fix non-EOVERFLOW errno handling
6977 [BZ#23789]
6978 mktime was not properly reporting failures when the underlying
6979 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
6980 them like EOVERFLOW failures, and set errno to EOVERFLOW.
6981 The problem could happen on non-glibc platforms, with Gnulib.
6982 * time/mktime.c (guess_time_tm): Remove, replacing with ...
6983 (tm_diff): ... this simpler function, which does not change errno.
6984 All callers changed to deal with errno themselves.
6985 (ranged_convert, __mktime_internal): Return failure immediately if
6986 the underlying function reports any failure other than EOVERFLOW.
6987 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
6988 gap code fails.
6989
f6b3331b
PE
6990 mktime: fix bug with Y2038 DST transition
6991 [BZ#23789]
6992 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
6993 mishandle a DST transition that jumps over the Y2038 boundary.
6994 No such DST transitions are known so this is only a theoretical
6995 bug, but we might as well do things right.
6996
efbdddc3
PE
6997 mktime: make more room for overflow
6998 [BZ#23789]
6999 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7000 This is so that we can add tm_diff results to a previous guess,
7001 which will be useful in a later patch.
7002
6c90d759
PE
7003 mktime: simplify offset guess
7004 [BZ#23789]
7005 * time/mktime.c (__mktime_internal): Omit excess precision.
7006
32c12f3f
PE
7007 mktime: new test for mktime failure
7008 [BZ#23789]
7009 Based on a test suggested by Albert Aribaud in:
7010 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7011 * time/Makefile (tests): Add bug-mktime4.
7012 * time/bug-mktime4.c: New file.
7013
de20b81a
PE
7014 mktime: fix EOVERFLOW bug
7015 [BZ#23789]
7016 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7017 Include libc-config.h, not config.h, for __set_errno.
7018 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7019
8c6c3fb0
ST
70202018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7021
7022 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7023 __attribute_copy__ to copy attributes from name. Drop static qualifier
7024 to avoid warnings about leaf attribute not having effect on static
7025 functions.
7026
6923f6db
FW
70272018-11-13 Florian Weimer <fweimer@redhat.com>
7028
7029 * malloc/malloc.c (fastbin_push_entry): New function.
7030 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7031 (REMOVE_FB): Remove macro.
7032 (_int_malloc): Use fastbin_pop_entry and reindent.
7033 (_int_free): Use fastbin_push_entry.
7034 (malloc_consolidate): Use atomic_exchange_acquire.
7035
53f5c659
JM
70362018-11-13 Joseph Myers <joseph@codesourcery.com>
7037
0c096dcf
JM
7038 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7039 alias attribute, not with strong_alias.
7040
9c4b457e
JM
7041 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7042 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7043 with additional parameter thread.
7044 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7045 in terms of __hidden_ver2.
7046 (hidden_tls_def): New macro.
7047 (libc_hidden_tls_def): Likewise.
7048 (rtld_hidden_tls_def): Likewise.
7049 (libm_hidden_tls_def): Likewise.
7050 (libmvec_hidden_tls_def): Likewise.
7051 (libresolv_hidden_tls_def): Likewise.
7052 (librt_hidden_tls_def): Likewise.
7053 (libdl_hidden_tls_def): Likewise.
7054 (libnss_files_hidden_tls_def): Likewise.
7055 (libnsl_hidden_tls_def): Likewise.
7056 (libnss_nisplus_hidden_tls_def): Likewise.
7057 (libutil_hidden_tls_def): Likewise.
7058 (libutil_hidden_tls_def): Likweise.
7059 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7060 libc_hidden_tls_def.
7061 (__sim_disabled_exceptions_thread): Likewise.
7062 (__sim_round_mode_thread): Likewise.
7063
53f5c659
JM
7064 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7065 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7066 copy attributes from name.
7067
092dfde6
JM
70682018-11-12 Joseph Myers <joseph@codesourcery.com>
7069
f578f97b
JM
7070 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7071 Use __attribute_copy__ to copy attributes from name.
7072
9a7c643a
JM
7073 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7074 with __hidden_ver1 call.
7075 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7076 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7077 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7078 (__cosf): Do not declare here.
7079 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7080 (__sincosf): Do not declare here.
7081 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7082 (__sinf): Do not declare here.
7083
092dfde6
JM
7084 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7085 (__BIG_ENDIAN): Likewise.
7086 (__BYTE_ORDER): Likewise.
7087 (strong_alias): Likewise.
7088 (_strong_alias): Likewise.
7089
1ecba1fa
FW
70902018-11-12 Florian Weimer <fweimer@redhat.com>
7091
7092 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7093 function. Move after the definition of in_smallbin_range. Do not
7094 use __builtin_expect for paths that lead to a noreturn function.
7095 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7096 because it is unclear whether this is in fact an unlikely
7097 condition.
7098 (_int_malloc, _int_free): Adjust.
7099 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7100 variables.
7101 * malloc/arena.c (heap_trim): Likewise.
7102
434c34bd
ST
71032018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7104
7105 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7106 it, free it if needed.
7107 (reauthenticate): Test and use ccwdir.
7108 (child_init_port): In non-resetids case, test and use ccwdir.
7109 (child_chdir): New nested function to set ccwdir.
7fa495cd
ST
7110 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7111 * hurd/hurd/port.h (_hurd_port_move): New function.
7112 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7113 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
88b26b7e
ST
7114 * hurd/Versions (_hurd_port_move): Export function.
7115 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7116 symbol.
58bb655a
ST
7117 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7118 of dtablesize for allocating dtable_cloexec.
434c34bd 7119
1626a1cf
MS
71202018-11-09 Martin Sebor <msebor@redhat.com>
7121
7122 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7123 it's already defined.
7124 (_strong_alias): Use __attribute_copy__.
7125 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7126 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7127 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7128 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7129 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7130 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7131 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7132 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7133 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7134 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7135 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7136 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7137 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7138 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7139 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7140 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7141 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7142 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7143 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7144
968ed530
GG
71452018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7146
7147 * misc/tst-efgcvt.c: Include support/check.h and
7148 support/test-driver.c. Do not include test-skeleton.c.
7149 (error_count): Remove.
7150 (output_error): Replace increments to error_count with calls to
7151 support_record_failure.
7152 (output_r_error): Likewise.
7153 (special): Likewise.
7154 (do_test): Unconditionally return zero.
7155 (TEST_FUNCTION): Remove.
7156
c3ec0972
JM
71572018-11-09 Joseph Myers <joseph@codesourcery.com>
7158
91faaa93
JM
7159 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7160 not $(@D)/scratch.
7161 ($(linknamespace-header-tests)): Likewise.
7162
c3ec0972
JM
7163 * conform/conformtest.py: New file.
7164 * conform/conformtest.pl: Remove.
7165 * conform/GlibcConform.pm: Likewise.
7166 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7167 (KEYWORDS_C99): Likewise.
7168 (KEYWORDS): Likewise.
7169 * conform/Makefile ($(conformtest-header-tests)): Use
7170 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7171 option. Use --header instead of --headers.
7172 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7173 function entries.
7174 * conform/data/spawn.h-data: Likewise.
7175 * conform/data/fcntl.h-data (openat): Add space after function
7176 name.
7177 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7178 (wcscasecmp_l): Likewise.
7179 * conform/data/termios.h-data (c_cc): Add space after element
7180 name.
7181
43257c33
GG
71822018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7183
7184 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7185 instead of manually comparing and reporting mismatching strings.
7186 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7187 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7188
e5de3b5b
JM
71892018-11-08 Joseph Myers <joseph@codesourcery.com>
7190
7191 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7192 __ASSUME_SOCKETCALL.
7193 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7194 (__ASSUME_SOCKETCALL): Remove.
7195 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7196 (__ASSUME_SOCKETCALL): Likewise.
7197 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7198 (__ASSUME_SOCKETCALL): Likewise.
7199 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7200 (__ASSUME_SOCKETCALL): Likewise.
7201 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7202 (__ASSUME_SOCKETCALL): Likewise.
7203 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7204 (__ASSUME_SOCKETCALL): Likewise.
7205 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7206 (__ASSUME_SOCKETCALL): Likewise.
7207
d524fa6c
L
72082018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 [BZ #23509]
7211 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7212 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7213 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7214 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7215 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7216 lc_unknown.
7217
ac806026
AH
72182018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7219
7220 [BZ #17630]
7221 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7222
596cc360
JM
72232018-11-07 Joseph Myers <joseph@codesourcery.com>
7224
7225 [BZ #23867]
7226 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7227 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7228 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7229 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7230
00c86a37
AZ
72312018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7232
7233 * support/support_test_compare_string.c
7234 (support_test_compare_string): Fix printf format.
7235
1df872fd
FW
72362018-11-07 Florian Weimer <fweimer@redhat.com>
7237
7238 Implement TEST_COMPARE_STRING.
7239 * support/check.h (TEST_COMPARE_STRING): Define.
7240 (support_test_compare_string): Declare.
7241 * support/Makefile (libsupport-routines): Add
7242 support_test_compare_string.
7243 (tests): Add tst-test_compare_string.
7244 * support/support_test_compare_string.c: New file.
7245 * support/tst-test_compare_string.c: Likewise.
7246
295132ff
AS
72472018-11-07 Andreas Schwab <schwab@suse.de>
7248
7249 [BZ #23864]
7250 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7251 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7252 Undef.
7253
e143ceba
JM
72542018-11-06 Joseph Myers <joseph@codesourcery.com>
7255
7256 [BZ #23862]
7257 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7258 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7259 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7260 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7261 Likewise.
7262
4a938cb2
FW
72632018-11-06 Florian Weimer <fweimer@redhat.com>
7264
7265 [BZ #17405]
7266 * posix/Makefile (routines): Add spawn_faction_addchdir.
7267 (tests): Add tst-spawn-chdir.
7268 * posix/Versions (GLIBC_2.29): Add
7269 posix_spawn_file_actions_addchdir_np.
7270 * posix/spawn_faction_addchdir.c: New file.
7271 * posix/spawn_faction_destroy.c
7272 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7273 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7274 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7275 chdir_action.
7276 * posix/tst-spawn-chdir.c: New file.
7277 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7278 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7279 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7280 posix_spawn_file_actions_addchdir_np.
7281 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7282 Likewise.
7283 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7284 Likewise.
7285 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7286 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7287 Likewise.
7288 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7289 Likewise.
7290 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7291 Likewise.
7292 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7293 Likewise.
7294 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7295 Likewise.
7296 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7297 Likewise.
7298 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7299 (GLIBC_2.29): Likewise.
7300 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7301 (GLIBC_2.29): Likewise.
7302 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7303 (GLIBC_2.29): Likewise.
7304 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7305 (GLIBC_2.29): Likewise.
7306 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7307 Likewise.
7308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7309 (GLIBC_2.29): Likewise.
7310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7311 (GLIBC_2.29): Likewise.
7312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7313 (GLIBC_2.29): Likewise.
7314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7315 (GLIBC_2.29): Likewise.
7316 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7317 Likewise.
7318 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7319 Likewise.
7320 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7321 Likewise.
7322 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7323 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7324 Likewise.
7325 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7326 Likewise.
7327 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7328 Likewise.
7329 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7330 Likewise.
7331
7597b0c7
GG
73322018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7333
7334 * misc/Makefile (tests): Add tst-ldbl-error.
7335 * misc/tst-ldbl-error.c: New file.
7336
9771e6cb
GG
73372018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7338
7339 * misc/Makefile (tests): Add tst-ldbl-warn.
7340 * misc/tst-ldbl-warn.c: New file.
7341
2c03961f
GG
73422018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7343
7344 * argp/Makefile (tests): Add tst-ldbl-argp.
7345 * argp/tst-ldbl-argp.c: New file.
7346
6d6ee046
AS
73472018-11-05 Arjun Shankar <arjun@redhat.com>
7348
7349 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7350 __gconv_path_elem and call __gconv_get_path unconditionally.
7351
bd3b0fba
AS
73522018-11-05 Andreas Schwab <schwab@suse.de>
7353
7354 [BZ #22927]
7355 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7356 creating the first helper thread failed.
7357
2e96e980
ST
73582018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7359
7360 * sysdeps/mach/hurd/msync.c: New file.
7361
6e36266c
FW
73622018-11-02 Florian Weimer <fweimer@redhat.com>
7363
7364 * support/shell-container.c (copy_func): Call
7365 support_copy_file_range instead of copy_file_range to support
7366 cross-device copies.
7367
599f7bee
FW
73682018-11-02 Florian Weimer <fweimer@redhat.com>
7369
7370 * support/test-container.c: Include <libc-pointer-arith.h> for
7371 ALIGN_UP.
7372
ff48ea67
ZL
73732018-11-01 Zong Li <zong@andestech.com>
7374
af1d5782
ZL
7375 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7376 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7377 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7378 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7379
ff48ea67
ZL
7380 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7381 variable to avoid overlap arguments.
7382
daea71c2
JM
73832018-11-01 Joseph Myers <joseph@codesourcery.com>
7384
eac4405a
JM
7385 * posix/bug-regex22.c (main): Use puts with distinct error
7386 messages for unexpected success of re_compile_pattern, not printf
7387 with NULL argument to %s.
7388
6f30e59f
JM
7389 * stdio-common/bug22.c: Include <libc-diag.h>.
7390 (do_test): Disable -Wformat-overflow= warnings around fprintf
7391 calls outputting more than INT_MAX characters.
7392 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7393 around printf call with NULL %s argument.
7394
daea71c2
JM
7395 [BZ #23848]
7396 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7397 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7398 Undefine.
7399 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7400 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7401 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7402 (__ASSUME_SENDTO_SYSCALL): Likewise.
7403 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7404 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7405 [!__arch64__].
7406 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7407 (__ASSUME_CONNECT_SYSCALL): Likewise.
7408 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7409 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7410 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7411 Define.
7412 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7413 Likewise.
7414 [__LINUX_KERNEL_VERSION >= 0x040400]
7415 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7416 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7417 Remove.
7418 (listen): Likewise.
7419 (setsockopt): Likewise.
7420
8e3c00db
FN
74212018-11-01 Fredrik Noring <noring@nocrew.org>
7422
7423 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7424 with the ISA override.
7425
9c3dbdbe
RAE
74262018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7427
7428 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7429 #endif.
7430
e3a88b3e
ST
74312018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7432
a67377e7 7433 * manual/errno.texi (EIEIO): Document how translators should
e3a88b3e 7434 translate the error message.
a67377e7
ST
7435 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7436 printing trailing whitespaces refused by git.
7437 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7438 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fc783076 7439 * hurd/Makefile (user-interfaces): Add pci.
e3a88b3e 7440
3ca235ed
JM
74412018-10-30 Joseph Myers <joseph@codesourcery.com>
7442
7443 * conform/linknamespace.py: New file.
7444 * conform/linknamespace.pl: Remove file.
7445 * conform/Makefile ($(linknamespace-header-tests)): Use
7446 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7447 option.
7448
60708030
FW
74492018-10-30 Florian Weimer <fweimer@redhat.com>
7450
7451 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7452 memory leaks.
7453
a91e9301
FW
74542018-10-30 Florian Weimer <fweimer@redhat.com>
7455
7456 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7457
07da99aa
FW
74582018-10-30 Florian Weimer <fweimer@redhat.com>
7459
7460 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7461 support_blob_repeat.
7462
f5e7e959
FW
74632018-10-30 Florian Weimer <fweimer@redhat.com>
7464
7465 Avoid spurious test failures in stdlib/test-bz22786.
7466 * support/Makefile (libsupport-routines): Add blob_repeat.
7467 (tests): Add tst-support_blob_repeat.
7468 * support/blob_repeat.h: New file.
7469 * support/blob_repeat.c: Likewise.
7470 * support/tst-support_blob_repeat.c: Likewise.
7471 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7472 support_blob_repeat_allocate.
7473
2dd12baa
AS
74742018-10-30 Andreas Schwab <schwab@suse.de>
7475
7476 [BZ #23125]
7477 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7478 Don't use tail call.
7479 * elf/tst-unwind-main.c: New file.
7480 * elf/Makefile (tests): Add tst-unwind-main.
7481 (CFLAGS-tst-unwind-main.c): Define.
7482
6b5c8607 74832018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
fec8bb7c
SAA
7484
7485 [BZ #23791]
7486 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7487 n_cs_precedes to 0.
7488 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7489
c6982f7e
JM
74902018-10-29 Joseph Myers <joseph@codesourcery.com>
7491
954cf3c2
JM
7492 * conform/glibcconform.py: Do not import shutil.
7493 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7494 of mkdtemp.
7495
c6982f7e
JM
7496 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7497 critic_missing for versions before 3.4.
7498 * configure: Regenerated.
7499 * manual/install.texi (Tools for Compilation): Document
7500 requirement for Python to build glibc.
7501 * INSTALL: Regenerated.
7502 * Rules [PYTHON]: Make code unconditional.
7503 * benchtests/Makefile [PYTHON]: Likewise.
7504 * conform/Makefile [PYTHON]: Likewise.
7505 * manual/Makefile [PYTHON]: Likewise.
7506 * math/Makefile [PYTHON]: Likewise.
7507
46a7f24c
ST
75082018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7509
7510 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2d0d1d38 7511 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
b6e7c449 7512 answer to interrupt_operation, return EIEIO instead of EINTR.
5c81be53
ST
7513 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7514 _hurd_intr_rpc_msg_about_to global point to start of controlled
7515 assembly snippet. Make it check canceled flag.
7516 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7517 the _hurd_intr_rpc_msg_about_to point.
7518 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7519 issue, remove cancel flag check.
46a7f24c 7520
e5b8756d
JM
75212018-10-26 Joseph Myers <joseph@codesourcery.com>
7522
7523 * scripts/build-many-glibcs.py: Remove compatibility for missing
7524 os.cpu_count and re.fullmatch.
7525
ba5b14c7
SN
75262018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7527
7528 [BZ #23822]
7529 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7530 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7531 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7532
fe61f17c
JM
75332018-10-25 Joseph Myers <joseph@codesourcery.com>
7534
7535 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7536 macro.
7537
7c5e34d7
FW
75382018-10-25 Florian Weimer <fweimer@redhat.com>
7539
7540 [BZ #23562]
7541 [BZ #23821]
7542 XFAIL siginfo_t si_band conform test on sparc64.
7543 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7544 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7545 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7546 (conformtest-xfail-conds): Add sparc64-linux.
7547 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7548 sparc64.
7549 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7550
5b784e88
JM
75512018-10-25 Joseph Myers <joseph@codesourcery.com>
7552
7553 * elf/elf.h (NT_MIPS_DSP): New macro.
7554 (NT_MIPS_FP_MODE): Likewise.
7555
41432ebe
ZL
75562018-10-25 Zong Li <zong@andestech.com>
7557
7558 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7559 name by adding the file extension (.so).
7560
d026efea
ST
75612018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7562
7563 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7564 (test-xfail-ISO11/threads.h/linknamespace,
7565 test-xfail-ISO11/threads.h/conform): Add.
7566
b71ac2b9
JM
75672018-10-24 Joseph Myers <joseph@codesourcery.com>
7568
7569 * math/gen-libm-test.py: Import os.
7570 (ALL_FLOATS_MANUAL): New constant.
7571 (ALL_FLOATS_SUFFIX): Likewise.
7572 (Ulps.all_functions): New function.
7573 (real_all_ulps): Likewise.
7574 (generate_err_table_sub): Likewise.
7575 (generate_err_table): Likewise.
7576 (main): Handle -s and -m options.
7577 * manual/libm-err-tab.pl: Remove.
7578 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7579 instead of libm-err-tab.pl.
7580 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7581 != no].
7582 * manual/install.texi (Tools for Compilation): Document
7583 requirement for Python to build manual.
7584 * INSTALL: Regenerated.
7585
6b5c8607 75862018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
d51f99ce
AA
7587
7588 * bits/time64.h: New file.
7589 * include/time.h: Replace internal_time_t with __time64_t.
7590 * posix/bits/types (__time64_t): Add.
7591 * stdlib/Makefile: Add bits/time64.h to includes.
7592 * time/tzfile.c: Replace internal_time_t with __time64_t.
7593
97d91fcc 75942018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2a973ab7
AZ
7595
7596 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7597 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7598 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7599 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7600 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7601 prototype.
7602 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7603 * posix/spawn_faction_addclose.c
7604 (__posix_spawn_file_actions_addclose): Add hidden definition.
7605 * posix/spawn_faction_adddup2.c
7606 (__posix_spawn_file_actions_adddup2): Likewise.
7607 * posix/spawn_faction_destroy.c
7608 (__posix_spawn_file_actions_destroy): Likewise.
7609 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7610 Likewise.
7611 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7612 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7613 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7614 Likewise.
7615 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7616 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7617 Likewise.
7618
2954daf0
AS
76192018-10-24 Andreas Schwab <schwab@suse.de>
7620
7621 [BZ #18093]
7622 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7623 format cache.
7624 * elf/cache.c (print_cache): Likewise.
7625
6b5c8607 76262018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
a27a4f47
AA
7627
7628 * bits/timesize.h: New file.
7629 * stdlib/Makefile (headers): Add bits/timesize.h.
7630 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7631 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7632 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7633 (__SEM_PAD_AFTER_TIME): Likewise.
7634 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7635 (__SHM_PAD_AFTER_TIME): Likewise.
7636 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7637 (__MSQ_PAD_BEFORE_TIME): Likewise.
7638 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7639 (__SEM_PAD_BEFORE_TIME): Likewise.
7640 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7641 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7642 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
b39d961c
TS
7643 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7644 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7645 (__MSQ_PAD_BEFORE_TIME): Likewise.
a27a4f47
AA
7646 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7647 (__SEM_PAD_BEFORE_TIME): Likewise.
7648 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7649 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7650 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7651 (__MSQ_PAD_BEFORE_TIME): Likewise.
7652 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7653 (__SEM_PAD_BEFORE_TIME): Likewise.
7654 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7655 (__SHM_PAD_BEFORE_TIME): Likewise.
7656 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7657 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7658 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7659
7cc65773
L
76602018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7661
7662 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7663 USE_RDTSCP is defined.
7664 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7665 USE_RDTSCP is defined.
7666
c3d8dc45
AZ
76672018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7668
18ad0de6
AZ
7669 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7670 defined.
7671
c3d8dc45
AZ
7672 [BZ #23709]
7673 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7674 independently of other flags.
7675
f1034472
FW
76762018-10-23 Florian Weimer <fweimer@redhat.com>
7677
7678 * time/tst-mktime2.c (N_STRINGS): Remove.
7679 (set_timezone): New function.
7680 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7681 (mktime_test1): Report localtime failure and check errno value.
7682 Use TEST_COMPARE.
7683 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7684 (do_test): Remove alarm call. Use set_timezone and array_length.
7685
367d7cc2
AS
76862018-10-23 Andreas Schwab <schwab@suse.de>
7687
7688 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7689 (__start_context): Use END instead of PSEUDO_END.
7690
be8ff03f
JM
76912018-10-22 Joseph Myers <joseph@codesourcery.com>
7692
029ad711
JM
7693 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7694 version to 4.19.
7695
8190520f
JM
7696 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7697 version to 4.19.
7698
be8ff03f
JM
7699 [BZ #23793]
7700 * wcsmbs/c32rtomb.c: New file.
7701 * wcsmbs/mbrtoc32.c: Likewise.
7702 * wcsmbs/tst-c32-state.c: Likewise.
7703 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7704 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7705 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7706 (tests): Add tst-c32-state.
7707 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7708 $(gen-locales).
7709
2dd8e58c
L
77102018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7711
7712 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7713 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7714
d0a74159
JM
77152018-10-19 Joseph Myers <joseph@codesourcery.com>
7716
7717 [BZ #23794]
7718 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7719 pair and return 0 in that case, and use saved character to
7720 interpret following character.
7721 * wcsmbs/tst-c16-surrogate.c: New file.
7722 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7723 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7724 Depend on $(gen-locales)
7725
f997b4be
IYM
77262018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7727
7728 [BZ #23562]
7729 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7730 (struct siginfo_t): Use correct type for si_band.
7731
53b2bb87
FW
77322018-10-19 Florian Weimer <fweimer@redhat.com>
7733
7734 [BZ #23689]
7735 * resource/bits/types/struct_rusage.h (struct rusage): Update
7736 comment on struct. Remove extraneous field comment.
7737
0a271c8f
DM
77382018-10-18 David S. Miller <davem@davemloft.net>
7739
94a3a27f
DM
7740 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7741 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7742 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7743 sysdep_routines in subdir elf.
7744 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7745 version for __vdso_clock_gettime.
7746 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7747 Define.
7748 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7749 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7750
0a271c8f
DM
7751 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7752
72771e53
L
77532018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7754
7755 * sysdeps/i386/init-arch.h: Removed.
7756 * sysdeps/i386/i586/init-arch.h: Likewise.
7757 * sysdeps/i386/i686/init-arch.h: Likewise.
7758 * sysdeps/i386/i686/hp-timing.h: Likewise.
7759 * sysdeps/x86_64/hp-timing.h: Likewise.
7760 * sysdeps/i386/isa.h: New file.
7761 * sysdeps/i386/i586/isa.h: Likewise.
7762 * sysdeps/i386/i686/isa.h: Likewise.
7763 * sysdeps/x86_64/isa.h: Likewise.
7764 * sysdeps/x86/hp-timing.h: New file.
7765 * sysdeps/x86/init-arch.h: Include <isa.h>.
7766
c2b7ccad
JM
77672018-10-17 Joseph Myers <joseph@codesourcery.com>
7768
7769 * math/libm-test-pow.inc (pow_test_data): Do not allow
7770 divide-by-zero exception for pow(+/- 0, -Inf).
7771
26756e57
ZW
77722018-10-17 Zack Weinberg <zackw@panix.com>
7773
7774 * manual/job.texi (Job Control is Optional): Remove node, as
7775 job control has not been optional in quite some time.
7776 (Job Control): Mention briefly that systems older than
7777 POSIX.1-2001 might not support job control.
7778 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7779 defined on systems conforming to POSIX.1-2001.
7780
c5288d37
AS
77812018-10-17 Arjun Shankar <arjun@redhat.com>
7782
7783 [BZ #22062]
7784 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7785 indentation.
7786 * (__gconv_read_conf): Mark function static.
7787 * (once): New static variable.
7788 * (__gconv_load_conf): New function.
7789 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7790 * iconv/gconv_db.c (once): Remove static variable.
7791 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7792 __gconv_read_conf.
7793 * (__gconv_find_transform): Likewise.
7794 * iconv/tst-iconv-mt.c: New test.
7795 * iconv/Makefile: Add tst-iconv_mt.
7796
8c8d2a8a
JM
77972018-10-17 Joseph Myers <joseph@codesourcery.com>
7798
7799 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
729f3402
JM
7800 bits/shm-pad.h.
7801 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7802 (shmatt_t): Define as __syscall_ulong_t.
7803 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7804 and [__SHM_PAD_AFTER_TIME].
7805 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7806 Define shm_segsz and associated padding based on
7807 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7808 Use __syscall_ulong_t instead of unsigned long int.
7809 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7810 unsigned long int.
7811 [__USE_MISC] (struct shm_info): Likewise.
7812 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7813 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7814 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7815 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7816 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7817 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7818 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7819 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7820 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7821 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7822 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7823
7824 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8c8d2a8a
JM
7825 bits/shmlba.h.
7826 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7827 (SHMLBA): Remove macro.
7828 (__getpagesize): Remove function declaration.
7829 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7830 <bits/shmlba.h>.
7831 (SHMLBA): Remove macro.
7832 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7833 <bits/shmlba.h>.
7834 (SHMLBA): Remove macro.
7835 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7836 <bits/shmlba.h>.
7837 (SHMLBA): Remove macro.
7838 (__getpagesize): Remove function declaration.
7839 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7840 <bits/shmlba.h>.
7841 (SHMLBA): Remove macro.
7842 (__getshmlba): Remove function declaration.
7843 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7844 (SHMLBA): Remove macro.
7845 (__getpagesize): Remove function declaration.
7846 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7847 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7848 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7849 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7850 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7851 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7852 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7853 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7854 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7855 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7856
403b4feb
SL
78572018-10-17 Stefan Liebler <stli@linux.ibm.com>
7858
7859 [BZ #23275]
7860 * nptl/tst-mutex10.c: New File.
7861 * nptl/Makefile (tests): Add tst-mutex10.
7862 (tst-mutex10-ENV): New variable.
7863 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7864 Ensure that elision path is used if elision is available.
7865 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7866 Likewise.
7867 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7868 Likewise.
7869 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7870 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7871 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7872 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7873 Likewise.
7874 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7875 (__pthread_mutex_cond_lock_adjust): Likewise.
7876 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7877 Likewise.
7878 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7879 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7880 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7881 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7882 Add comments.
7883 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7884 Use atomic_load_relaxed and atomic_store_relaxed.
7885 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7886 Use atomic_store_relaxed.
7887
ce5a7de6
AS
78882018-10-17 Andreas Schwab <schwab@suse.de>
7889
7890 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7891 * crypt/badsalttest.c (TIMEOUT): Likewise.
7892 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7893 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7894 * io/test-lfs.c (TIMEOUT): Likewise.
7895 * libio/tst-atime.c (TIMEOUT): Likewise.
7896 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7897 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7898 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7899 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7900 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7901 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7902 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7903 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7904 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7905 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7906 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7907 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7908 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7909 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7910 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7911 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7912 * nptl/tst-once2.c (TIMEOUT): Likewise.
7913 * nptl/tst-once3.c (TIMEOUT): Likewise.
7914 * nptl/tst-once4.c (TIMEOUT): Likewise.
7915 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7916 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7917 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7918 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7919 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7920 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7921 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7922 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7923 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7924 * posix/tst-chmod.c (TIMEOUT): Likewise.
7925 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7926 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7927 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7928 * posix/tst-regex2.c (TIMEOUT): Likewise.
7929 * posix/tst-waitid.c (TIMEOUT): Likewise.
7930 * rt/tst-aio.c (TIMEOUT): Likewise.
7931 * rt/tst-aio10.c (TIMEOUT): Likewise.
7932 * rt/tst-aio4.c (TIMEOUT): Likewise.
7933 * rt/tst-aio5.c (TIMEOUT): Likewise.
7934 * rt/tst-aio6.c (TIMEOUT): Likewise.
7935 * rt/tst-aio64.c (TIMEOUT): Likewise.
7936 * rt/tst-aio7.c (TIMEOUT): Likewise.
7937 * rt/tst-aio9.c (TIMEOUT): Likewise.
7938 * rt/tst-clock.c (TIMEOUT): Likewise.
7939 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
7940 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
7941 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
7942 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
7943 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
7944 * rt/tst-timer4.c (TIMEOUT): Likewise.
7945 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
7946 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
7947 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
7948 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
7949 * time/tst-ftime.c (TIMEOUT): Likewise.
7950 * timezone/tst-tzset.c (TIMEOUT): Likewise.
7951
6b5c8607 79522018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
75c1aee5
AY
7953
7954 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
7955 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
7956 for thunderX2.
7957
bcdb1bfa
JM
79582018-10-15 Joseph Myers <joseph@codesourcery.com>
7959
7960 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7961 bits/sem-pad.h.
7962 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
7963 instead of <bits/wordsize.h>.
7964 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
7965 and [__SEM_PAD_AFTER_TIME].
7966 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
7967 __syscall_ulong_t instead of unsigned long int.
7968 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
7969 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
7970 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
7971 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
7972 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
7973 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
7974 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
7975 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
7976 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
7977 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
7978 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
7979
f4efbdfb
PE
79802018-10-14 Paul Eggert <eggert@cs.ucla.edu>
7981
620a5d4c
PE
7982 regex: simplify by using intprops.h
7983 [BZ#23744]
7984 * posix/regex_internal.h [_LIBC]: Include intprops.h.
7985 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
7986 intprops.h defines them.
7987
f4efbdfb
PE
7988 regex: __builtin_expect → __glibc_unlikely
7989 [BZ#23744]
7990 This refactoring was prompted by a problem when the regex code is
7991 used as part of Gnulib and when the builder’s compiler does not grok
7992 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
7993 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
7994 Although this refactoring does not fix the problem directly,
7995 we might as well have Gawk use the now-preferred glibc style for when
7996 __builtin_expect is unavailable.
7997 * posix/regex_internal.h (BE): Remove.
7998 All uses replaced by __glibc_unlikely or __glibc_likely.
7999
9f9feb6d
JM
80002018-10-11 Joseph Myers <joseph@codesourcery.com>
8001
8002 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8003 bits/msq-pad.h.
8004 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8005 instead of <bits/wordsize.h>.
8006 (msgqnum_t): Define as __syscall_ulong_t.
8007 (msglen_t): Likewise.
8008 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8009 and [__MSQ_PAD_AFTER_TIME].
8010 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8011 __syscall_ulong_t instead of unsigned long int.
8012 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8013 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8014 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8015 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8016 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8017 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8018 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8019 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8020 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8021 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8022 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8023
b9c0f6c1
JM
80242018-10-10 Joseph Myers <joseph@codesourcery.com>
8025
2a4b25fa
JM
8026 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8027 (struct shmid_ds): Condition padding after time fields on
8028 [__WORDSIZE == 32].
8029 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8030 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8031 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8032
19e62f26
JM
8033 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8034 (struct semid_ds): Condition padding after time fields on
8035 [__WORDSIZE == 32].
8036 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8037 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8038 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8039 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8040
b9c0f6c1
JM
8041 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8042 (struct msqid_ds): Condition padding after time fields on
8043 [__WORDSIZE == 32].
8044 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8045 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8046 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8047 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8048
97785a61
SN
80492018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8050
8051 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8052
ed643089
SN
80532018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8054
8055 * libio/tst-readline.c (TIMEOUT): Define.
8056
5a580643
PE
80572018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8058
8059 mktime fix for Gnulib + coreutils
8060 [BZ#23745]
8061 This fix affects only Gnulib. Problem discovered when
8062 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8063 * time/mktime.c:
8064 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8065 Do not define since it is not used. Defining an unused static
8066 function prompts a warning from GCC when Coreutils is configured
8067 with --enable-gcc-warnings.
8068
c892ae04
LS
80692018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8070
8071 * benchtests/scripts/compare_bench.py (main): set float type on
8072 threshold argument.
8073
a68ec8ea
RL
80742018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8075
8076 [BZ #23740]
8077 * localedata/locales/kl_GL (mon): Update, the relative case.
8078 (alt_mon): Add, fill with month names in the nominative case.
8079 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8080 (d_fmt): Set to "%b %d %Y".
8081
a1987621
JM
80822018-10-04 Joseph Myers <joseph@codesourcery.com>
8083
47c49251
JM
8084 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8085 <bits/mman-linux.h>.
8086 (PROT_READ): Don't define here.
8087 (PROT_WRITE): Likewise.
8088 (PROT_EXEC): Likewise.
8089 (PROT_NONE): Likewise.
8090 (PROT_GROWSDOWN): Likewise.
8091 (PROT_GROWSUP): Likewise.
8092 (MAP_SHARED): Likewise.
8093 (MAP_PRIVATE): Likewise.
8094 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8095 [__USE_MISC] (MAP_FILE): Likewise.
8096 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8097 [__USE_MISC] (MAP_ANON): Likewise.
8098 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8099 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8100 (MCL_CURRENT): Likewise.
8101 (MCL_FUTURE): Likewise.
8102 (MCL_ONFAULT): Likewise.
8103 [__USE_MISC] (MADV_NORMAL): Likewise.
8104 [__USE_MISC] (MADV_RANDOM): Likewise.
8105 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8106 [__USE_MISC] (MADV_WILLNEED): Likewise.
8107 [__USE_MISC] (MADV_DONTNEED): Likewise.
8108 [__USE_MISC] (MADV_FREE): Likewise.
8109 [__USE_MISC] (MADV_REMOVE): Likewise.
8110 [__USE_MISC] (MADV_DONTFORK): Likewise.
8111 [__USE_MISC] (MADV_DOFORK): Likewise.
8112 [__USE_MISC] (MADV_HWPOISON): Likewise.
8113 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8114 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8115 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8116 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8117 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8118 (__MAP_ANONYMOUS): New macro.
8119 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8120 <bits/mman-linux.h> inclusion.
8121 (MAP_FIXED): Likewise.
8122 (MS_SYNC): Likewise.
8123 (MS_ASYNC): Likewise.
8124 (MS_INVALIDATE): Likewise.
8125 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8126 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8127 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8128 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8129 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8130 [__USE_MISC] (MADV_DODUMP): Likewise.
8131 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8132 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8133
a1987621
JM
8134 [BZ #23735]
8135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8136 Define.
8137 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8138 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8139 Add test-nldbl-redirect.
8140 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8141 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8142 $(objpfx)libnldbl_nonshared.a.
8143
e7624d70
SL
81442018-10-04 Stefan Liebler <stli@linux.ibm.com>
8145
8146 * support/support.h (support_objdir_elf_ldso): New variable.
8147 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8148 * support/Makefile (CFLAGS-support_paths.c): Add definition
8149 for OBJDIR_ELF_LDSO_PATH.
8150 * support/test-container.c (main): Search for the ld.so
8151 which is also used by the testsuite.
8152
dae3ed95
RL
81532018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8154
8155 [BZ #20209]
8156 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8157 should be "sap" rather than "sab".
8158 (day): Fix spelling of Sunday, should be "sapaat" rather than
8159 "sabaat".
8160
f346b5b3
JM
81612018-10-02 Joseph Myers <joseph@codesourcery.com>
8162
8163 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8164
4a06ceea
MJ
81652018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8166
8167 [BZ #19444]
8168 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8169 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8170 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8171
a06fc4a5
AZ
81722018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8173
8174 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8175
a1ccc065
L
81762018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8177
8178 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8179 Add -mrtm.
8180 (CFLAGS-elision-unlock.c): Likewise.
8181 (CFLAGS-elision-timed.c): Likewise.
8182 (CFLAGS-elision-trylock.c): Likewise.
8183 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8184
0b727ed4
AZ
81852018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8186
8187 [BZ #21037]
8188 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8189 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8190 new fd_to_filename interface.
8191 * libio/freopen64.c (freopen64): Likewise.
8192 * libio/tst-memstream.h: New file.
8193 * libio/tst-memstream4.c: Likewise.
8194 * libio/tst-wmemstream4.c: Likewise.
8195 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8196 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8197 and remove internal dynamic allocation.
8198
d0e91e8c
JM
81992018-10-01 Joseph Myers <joseph@codesourcery.com>
8200
8201 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8202 (MREMAP_MAYMOVE): Do not define here.
8203 [__USE_GNU] (MREMAP_FIXED): Likewise.
8204 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8205 (MREMAP_MAYMOVE): Define here instead.
8206 [__USE_GNU] (MREMAP_FIXED): Likewise.
8207 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8208 (MREMAP_MAYMOVE): Remove.
8209 [__USE_GNU] (MREMAP_FIXED): Likewise.
8210
c52944e8
JM
82112018-09-28 Joseph Myers <joseph@codesourcery.com>
8212
8213 * math/fromfp.h: Do not include <math_private.h>.
8214 * math/s_cacosh_template.c: Likewise.
8215 * math/s_casin_template.c: Likewise.
8216 * math/s_casinh_template.c: Likewise.
8217 * math/s_ccos_template.c: Likewise.
8218 * math/s_cproj_template.c: Likewise.
8219 * math/s_fdim_template.c: Likewise.
8220 * math/s_fmaxmag_template.c: Likewise.
8221 * math/s_fminmag_template.c: Likewise.
8222 * math/s_iseqsig_template.c: Likewise.
8223 * math/s_ldexp_template.c: Likewise.
8224 * math/s_nextdown_template.c: Likewise.
8225 * math/w_log1p_template.c: Likewise.
8226 * math/w_scalbln_template.c: Likewise.
8227 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8228 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8229 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8230 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8231 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8232 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8233 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8234 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8235 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8236 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8237 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8238 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8239 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8240 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8241 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8242 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8243 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8244 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8245 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8246 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8247 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8248 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8249 * sysdeps/ieee754/k_standardf.c: Likewise.
8250 * sysdeps/ieee754/k_standardl.c: Likewise.
8251 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8252 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8253 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8254 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8255 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8256 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8257 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8258 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8259 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8260 * sysdeps/ieee754/s_signgam.c: Likewise.
8261 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8262 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8263 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8264 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8265 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8266 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8267 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8268 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8269 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8270 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8271 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8272 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8273 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8274 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8275 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8276 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8277 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8278 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8279 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8280 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8281 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8282 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8283 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8284 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8285 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8286 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8287 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8288 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8289 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8290 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8291 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8292 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8293 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8294 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8295 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8296 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8297 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8298 <math_private.h>.
8299 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8300
7b1f9406
L
83012018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8302
8303 [BZ #23716]
8304 * sysdeps/i386/dl-cet.c: Removed.
8305 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8306 prototype.
8307 (_dl_runtime_profile_shstk): Likewise.
8308 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8309 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8310
7a16bdbb
AZ
83112018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8312
8313 [BZ #23579]
8314 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8315 do_test_with_invalid_iov): New tests.
8316 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8317 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8318 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8319 errno is ENOSYS.
8320 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8321 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8322 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8323
9755bc46
JM
83242018-09-27 Joseph Myers <joseph@codesourcery.com>
8325
81dca813
JM
8326 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8327 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8328 (MATH_REDIRECT_BINARY_ARGS): New macro.
8329 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8330 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8331 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8332 header inclusion.
8333 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8334 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8335 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8336 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8337 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8338 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8339 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8341 Likewise.
8342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8343 Likewise.
8344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8346 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8347 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8349 Likewise.
8350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8351 Likewise.
8352 * sysdeps/generic/math_private_calls.h
8353 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8354 Do not declare and define as an inline function.
8355 * math/divtc3.c (__divtc3): Use copysign functions instead of
8356 __copysign variants.
8357 * math/multc3.c (__multc3): Likewise.
8358 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8359 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8360 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8361 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8362 Likewise.
8363 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8364 (__ieee754_yn): Likewise.
8365 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8366 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8367 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8368 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8369 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8370 (__sin): Likewise.
8371 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8372 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8373 Likewise.
8374 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8375 Likewise.
8376 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8377 Likewise.
8378 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8379 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8380 Likewise.
8381 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8382 (__ieee754_ynf): Likewise.
8383 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8384 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8385 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8386 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8387 Likewise.
8388 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8389 (__ieee754_ynl): Likewise.
8390 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8391 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8392 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8393 Likewise.
8394 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8395 (__ieee754_ynl): Likewise.
8396 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8397 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8398 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8399 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8400 Likewise.
8401 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8402 (__ieee754_ynl)
8403 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8404 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8405 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8406 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8407 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8408
9755bc46
JM
8409 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8410 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8411 using MATH_REDIRECT.
8412 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8413 header inclusion.
8414 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8415 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8416 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8417 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8418 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8419 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8420 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8422 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8425 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8426 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8427 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8428 (round): Redirect to __round.
8429 (__roundl): Call round instead of __round.
8430 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8431 Remove macro.
8432 [_ARCH_PWR5X] (__roundf): Likewise.
8433 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8434 functions instead of __round variants.
8435 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8436 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8437 Likewise.
8438 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8439 Likewise.
8440 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8441 Likewise.
8442 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8443 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8444 __lroundl.
8445 (__ieee754_expl): Call roundl instead of __roundl.
8446
f841c97e
AS
84472018-09-27 Andreas Schwab <schwab@suse.de>
8448
8449 [BZ #23717]
8450 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8451 (do_test): Make st1 static.
8452
6ca8284e
AS
84532018-09-26 Andreas Schwab <schwab@suse.de>
8454
8455 [BZ #23707]
8456 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8457 * elf/Makefile (tests): Add tst-unwind-ctor.
8458 (modules-names): Add tst-unwind-ctor-lib.
8459 ($(objpfx)tst-unwind-ctor): Depend on
8460 $(objpfx)tst-unwind-ctor-lib.so.
8461
61d8b5fe
JM
84622018-09-26 Joseph Myers <joseph@codesourcery.com>
8463
8464 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8465 file. Most contents moved from ....
8466 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8467 and include <bits/mman-map-flags-generic.h>.
8468 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8469 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8470 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8471 <bits/mman-map-flags-generic.h>.
8472 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8473 macros defined in <bits/mman-map-flags-generic.h>.
8474 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8475 <bits/mman-map-flags-generic.h>.
8476 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8477 defined in <bits/mman-map-flags-generic.h>.
8478
46341286
AS
84792018-09-26 Andreas Schwab <schwab@suse.de>
8480
8481 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8482 output.
8483
b5c45e83
AZ
84842018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8485 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8486 Fangrui Song <maskray@google.com>
8487
8488 [BZ #20480]
8489 * config.make.in (have-textrel_ifunc): New define.
8490 * configure.ac: Add check if linker supports textrel relocation with
8491 ifunc.
8492 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8493 tst-ifunc-textrel.
8494 (CFLAGS-tst-ifunc-textrel.c): New rule.
8495 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8496 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8497 * elf/tst-ifunc-textrel.c: New file.
8498
8ea4d2b7
JM
84992018-09-25 Joseph Myers <joseph@codesourcery.com>
8500
d62f9ec0
JM
8501 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8502 <bits/procfs-prregset.h>.
8503 (prgregset_t): Define using __prgregset_t.
8504 (prfpregset_t): Define using __prfpregset_t.
8505 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8506 (sysdep_headers): Add bits/procfs-prregset.h.
8507 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8508 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8509 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8510 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8511
d0d8eb43
JM
8512 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8513 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8514 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8515 pr_uid and pr_gid.
8516 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8517 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8518 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8519 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8520 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8521 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8522 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8523 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8524 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8525 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8526 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8527 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8528 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8529 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8530 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8531 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8532 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8533 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8534 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8535 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8536 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8537 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8538 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8539 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8540
8ea4d2b7
JM
8541 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8542 AArch64 version. Include <bits/procfs.h>.
8543 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8544 (sysdep_headers): Add bits/procfs.h.
8545 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8546 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8547 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8548 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8549 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8550 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8551 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8552 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8553 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8554 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8555 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8556 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8557 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8558 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8559 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8560 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8561 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8562
c7027166
AZ
85632018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8564
8565 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8566 Use libsupport.
8567
335a3b0a
AS
85682018-09-25 Arjun Shankar <arjun@redhat.com>
8569
8570 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8571 (__gconv_max_path_elem_len): Likewise.
8572 (__gconv_nmodules): Likewise.
8573 (__gconv_get_path): Likewise.
8574 (path_elem): Move to ...
8575 * iconv/gconv_conf.c: ... here.
8576 (__gconv_get_path): Mark function static.
8577 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8578 * iconv/gconv_open.c: ... here.
8579
462d348c
AS
85802018-09-24 Andreas Schwab <schwab@suse.de>
8581
8582 * scripts/haveversions.awk: New file.
8583 * Makerules ($(common-objpfx)Versions.def)
8584 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8585 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8586 Move rules ...
8587 * Makeconfig ($(common-objpfx)Versions.def)
8588 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8589 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8590 ... here.
8591 ($(common-objpfx)Versions.mk): New rule. Include it.
8592 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8593 Emit error if build-obsolete-nsl = yes.
8594 * manual/install.texi (Configuring and compiling): Describe
8595 --enable-obsolete-nsl as unavaiable after version 2.28.
8596 * INSTALL: Regenerate.
8597
f0458cf4
AZ
85982018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8599
8600 * NEWS: Add note about new TLE support on powerpc64le.
8601 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8602 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8603 __ununsed1.
8604 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8605 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8606 * sysdeps/powerpc/powerpc32/sysdep.h,
8607 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8608 ABORT_TRANSACTION): Remove macros.
8609 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8610 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8611 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8613 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8614 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8615 usage.
8616 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8617
434d45fd
RL
86182018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8619
8620 [BZ #10425]
8621 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8622 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8623 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8624 which is the same as in it_IT.
8625 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8626 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8627
d90c9b1a
JM
86282018-09-20 Joseph Myers <joseph@codesourcery.com>
8629
7abf97be
JM
8630 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8631 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8632 using MATH_REDIRECT.
8633 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8634 header inclusion.
8635 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8636 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8637 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8638 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8639 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8640 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8645 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8646 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8647 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8648 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8649 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8650 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8651 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8652 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8653 (ceil): Redirect to __ceil.
8654 (floor): Redirect to __floor.
8655 (trunc): Redirect to __trunc.
8656 (__truncl): Call trunc instead of __trunc.
8657 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8658 Remove macro.
8659 [_ARCH_PWR5X] (__truncf): Likewise.
8660 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8661 trunc functions instead of __trunc variants.
8662 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8663 Likewise.
8664 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8665 Likewise.
8666 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8667 Likewise.
8668 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8669 Likewise.
8670
d90c9b1a
JM
8671 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8672 [__i586__ || __pentium__].
8673 [__i486__]: Handle explicitly.
8674 (HAS_CPUID): Define to 1 if above macros are undefined.
8675 (HAS_I586): Likewise.
8676 (HAS_I686): Likewise.
8677
db9a8ad4
FW
86782018-09-20 Florian Weimer <fweimer@redhat.com>
8679
8680 * misc/tst-gethostid.c: New file.
8681 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8682 (tst-gethostid): Link with -ldl.
8683
1214ba06
MY
86842018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8685
8686 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8687 value from gethostbyname_r.
8688
791b350d
CD
86892018-09-19 Carlos O'Donell <carlos@redhat.com>
8690
8691 * stdlib/tst-setcontext9.c (f1): Rename to...
8692 (f1a): ... this.
8693 (f1b): New function implementing lower half of f1 in alternate stack.
8694
8e6fd2bd
PE
86952018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8696
e1080e7e
PE
8697 Fix mktime localtime offset confusion
8698 [BZ #23603]
8699 * include/time.h (__mktime_internal): The localtime offset is now
8700 of type long int instead of time_t. This is the longstanding type
8701 in glibc, and it is more than enough to represent difference
8702 between localtime and gmtime even if it is 32 bits and time_t is
8703 64. Changing it now will let us avoid an unnecessary change when
8704 time_t is widened to 64 bits on 32-bit platforms.
8705 * time/mktime-internal.h (mktime_offset_t): Now long int.
8706
8e6fd2bd
PE
8707 Merge mktime, timegm from upstream Gnulib
8708 [BZ #23603][BZ #16346]
8709 This fixes some obscure problems with integer overflow.
8710 Although it looks scary, it is almost all a byte-for-byte copy
8711 from Gnulib, and the Gnulib code has been tested reasonably well.
8712 * include/intprops.h: New file, copied from Gnulib.
8713 * include/verify.h, time/mktime-internal.h:
8714 New tiny files, simplified from Gnulib.
8715 * time/mktime.c: Copy from Gnulib. This has the following changes:
8716 Do not include config.h if DEBUG_MKTIME is nonzero.
8717 Include stdbool.h, intprops.h, verify.h.
8718 Include string.h only if needed.
8719 Include stdlib.h on MS-Windows.
8720 Include mktime-internal.h.
8721 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8722 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8723 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8724 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8725 simplify later conditionals; default the others to zero. Use
8726 these conditionals to express only the code needed on the current
8727 platform. In uses of these conditionals, explicitly spell out how
8728 _LIBC affects things, so it’s easier to review from a glibc
8729 viewpoint.
8730 (WRAPV): Remove; no longer needed now that we have
8731 systematic overflow checking.
8732 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8733 compartmentalize tzset issues. Move system-dependent tzsettish
8734 code here from mktime.
8735 (verify): Remove; now done by verify.h. All uses changed.
8736 (long_int): Use a more-conservative definition, to avoid
8737 integer overflow.
8738 (SHR): Remove, replacing with ...
8739 (shr): New function, which means we needn’t worry about side
8740 effects in args, and conversion analysis is simpler.
8741 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8742 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8743 (time_t_avg, time_t_add_ok): Remove.
8744 (mktime_min, mktime_max): New constants.
8745 (leapyear, isdst_differ): Use bool for booleans.
8746 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8747 Use long_int, not time_t, for mktime differences.
8748 (long_int_avg): New function, replacing time_t_avg.
8749 INT_ADD_WRAPV replaces time_t_add_ok.
8750 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8751 All uses changed.
8752 (convert_time): New function.
8753 (ranged_convert): Use it.
8754 (__mktime_internal): Last arg now points to mktime_offset_t, not
8755 time_t. All uses changed. This is a no-op on glibc, where
8756 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8757 offset guess. Directly check for integer overflow instead of
8758 using a heuristic that works only 99.9...% of the time.
8759 Access *OFFSET only once, to avoid an unlikely race if the
8760 compiler delays a load and if this cascades into a signed integer
8761 overflow.
8762 (mktime): Move tzsettish code to my_tzset, and move
8763 localtime_offset to within mktime so that it doesn’t
8764 need a separate ifdef.
8765 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8766 instead of localtime.
8767 * time/timegm.c: Copy from Gnulib. This has the following changes:
8768 Include mktime-internal.h.
8769 [!_LIBC]: Include config.h and time.h. Do not include
8770 timegm.h or time_r.h. Make __mktime_internal a macro,
8771 and include mktime-internal.h to get its declaration.
8772 (timegm): Temporary is now mktime_offset_t, not time_t.
8773 This affects only Gnulib.
8774
83a552b0
WD
87752018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8776
8777 [BZ #23637]
8778 * string/test-strstr.c (pr23637): New function.
8779 (test_main): Add tests with longer needles.
8780 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8781 * string/strstr.c (AVAILABLE): Likewise.
8782
d7347278
SN
87832018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8784
8785 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8786
424c4f60
SN
87872018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8788
8789 * NEWS: Mention pow improvements.
8790 * math/Makefile (type-double-routines): Add e_pow_log_data.
8791 * sysdeps/generic/math_private.h (__exp1): Remove.
8792 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8793 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8794 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8795 contraction.
8796 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8797 (exp_inline): Remove.
8798 (__ieee754_exp): Only single double input is handled.
8799 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8800 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8801 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8802 (__pow_log_data): Define.
8803 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8804 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8805 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8806 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8807 contraction.
8808 (CFLAGS-e_pow-fma4.c): Likewise.
8809
e4e4fde5
PE
88102018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8811
dab9c348
PE
8812 Simplify tzfile fstat failure code
8813 [BZ #21716]
8814 * time/tzfile.c (__tzfile_read): Simplify slightly.
8815
e4e4fde5
PE
8816 Fix tzfile low-memory assertion failure
8817 [BZ #21716]
8818 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8819 when registering time zone abbreviations.
8820
50bc59ca
JM
88212018-09-18 Joseph Myers <joseph@codesourcery.com>
8822
d3a43e49
JM
8823 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8824 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8825 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8826 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8827 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8828 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8829 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8830 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8831 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8832
50bc59ca
JM
8833 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8834 __ceil.
8835 (__ceill): Call ceil instead of __ceil.
8836 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8837 __floor.
8838 (__floorl): Call floor instead of __floor.
8839
89983cb3
JM
88402018-09-17 Joseph Myers <joseph@codesourcery.com>
8841
71223ef9
JM
8842 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8843 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8844 using MATH_REDIRECT.
8845 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8846 header inclusion.
8847 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8848 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8849 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8850 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8851 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8852 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8853 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8854 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8859 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8860 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8861 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8862 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8863 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8864 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8865 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8866 Remove macro.
8867 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8868 functions instead of __ceil variants.
8869 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8870 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8871 Likewise.
8872 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8873 Likewise.
8874 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8875 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8876 Likewise.
8877 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8878 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8879
89983cb3
JM
8880 [BZ #21286]
8881 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8882 constant.
8883 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8884 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8885 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8886 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8887 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8888 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8889 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8890 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8891 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8892 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8893 (ILL_BADIADDR): Remove constant.
8894 (TRAP_BRANCH): Likewise.
8895 (TRAP_HWBKPT): Likewise.
8896
e44acb20
JM
88972018-09-14 Joseph Myers <joseph@codesourcery.com>
8898
3f7f1d18
JM
8899 [BZ #23656]
8900 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8901 Remove [_MIPS_SIM = _ABIN32] conditional case.
8902 (struct elf_prpsinfo): Likewise.
8903
d59f3e5e
JM
8904 [BZ #23649]
8905 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8906 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8907 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8908 Likewise.
8909 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8910 elf_prpsinfo): Likewise.
8911 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8912 elf_prpsinfo): Likewise.
8913 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8914 Likewise.
8915
f29b6f17
JM
8916 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8917 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8918 using MATH_REDIRECT.
8919 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8920 header inclusion.
8921 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8922 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8923 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8924 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8925 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8926 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8927 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8928 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8929 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8930 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8931 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8932 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8933 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8934 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8935 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8936 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8937 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
8938 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
8939 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
8941 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
8942 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
8943 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
8944 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8945 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8946 * sysdeps/x86_64/fpu/math_private.h: Remove file.
8947 * math/e_scalb.c (invalid_fn): Use rint functions instead of
8948 __rint variants.
8949 * math/e_scalbf.c (invalid_fn): Likewise.
8950 * math/e_scalbl.c (invalid_fn): Likewise.
8951 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8952 Likewise.
8953 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8954 Likewise.
8955 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8956 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
8957 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8958 Likewise.
8959 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8960 Likewise.
8961 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8962 Likewise.
8963 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
8964 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
8965
e44acb20
JM
8966 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8967 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
8968 New macro.
8969 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8970 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
8971 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8972 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
8973 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8974 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
8975 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8976 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
8977 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8978 && !NO_MATH_REDIRECT] (floor): Likewise.
8979 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
8980 header inclusion.
8981 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
8982 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8983 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8984 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
8985 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
8986 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8987 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8988 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
8989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
8990 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
8991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
8992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
8993 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8994 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8995 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
8996 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
8997 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8998 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8999 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9000 Remove macro.
9001 [_ARCH_PWR5X] (__floorf): Likewise.
9002 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9003 inline function.
9004 [__SSE4_1__] (__floorf): Likewise.
9005 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9006 instead of __floor variants.
9007 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9008 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9009 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9010 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9011 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9012 * math/w_tgamma_compat.c (__tgamma): Likewise.
9013 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9014 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9015 * math/w_tgammal_compat.c (__tgammal): Likewise.
9016 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9017 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9018 Likewise.
9019 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9020 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9021 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9022 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9023 Likewise.
9024 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9025 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9026 Likewise.
9027 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9028 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9029 Likewise.
9030 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9031 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9032 Likewise.
9033 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9034 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9035 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9036 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9037 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9038 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9039
221e4bab
JM
90402018-09-12 Joseph Myers <joseph@codesourcery.com>
9041
9042 * elf/Makefile (modules-names-tests): New variable.
9043
3e08ff54
SN
90442018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9045
9046 * NEWS: Mention log2 improvements.
9047 * math/Makefile (type-double-routines): Add e_log2_data.
9048 * sysdeps/i386/fpu/e_log2_data.c: New file.
9049 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9050 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9051 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9052 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9053 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9054 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9055
f41b0a43
SN
90562018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9057
9058 * NEWS: Mention log improvement.
9059 * math/Makefile (type-double-routines): Add e_log_data.
9060 * sysdeps/i386/fpu/e_log_data.c: New file.
9061 * sysdeps/ia64/fpu/e_log_data.c: New file.
9062 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9063 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9064 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9065 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9066 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9067 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9068
5a274db4
L
90692018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9070 Xuepeng Guo <xuepeng.guo@intel.com>
9071
9072 [BZ #23606]
9073 * sysdeps/i386/start.S: Include <sysdep.h>
9074 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9075 enabled. Add cfi_undefined (eip).
9076
b1176270
JM
90772018-09-11 Joseph Myers <joseph@codesourcery.com>
9078
4e7fbdd7
JM
9079 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9080 (MOVQ): Likewise.
9081 (EXTRACT_WORDS64): Likewise.
9082 (INSERT_WORDS64): Likewise.
9083 (GET_FLOAT_WORD): Likewise.
9084 (SET_FLOAT_WORD): Likewise.
9085
b1176270
JM
9086 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9087 argument.
9088 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9089 build, but not for second build if --full-gcc. Use
9090 --enable-languages=all for second build if --full-gcc.
9091 (get_parser): Add --full-gcc option.
9092 (main): Update call to Context.
9093
527f355e
RL
90942018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9095
9096 [BZ #10797]
9097 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9098 Single Quotation Mark).
9099 (thousands_sep): Likewise.
9100 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9101 * localedata/locales/it_IT (thousands_sep): Use ".".
9102 (grouping): Use "3;3".
9103
7244f13d
JM
91042018-09-10 Joseph Myers <joseph@codesourcery.com>
9105
9106 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9107 x86_64 and i686 configs using --enable-obsolete-rpc
9108 --enable-obsolete-nsl.
9109
38245425
SL
91102018-09-06 Stefan Liebler <stli@linux.ibm.com>
9111
9112 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9113
28669f86
SL
91142018-09-06 Stefan Liebler <stli@linux.ibm.com>
9115
9116 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9117 Increment size of new_argv by one.
9118
a33650d1
RL
91192018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9120
9121 [BZ #17426]
9122 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9123 * localedata/locales/ar_IN (d_fmt): Likewise.
9124 * localedata/locales/bhb_IN (d_fmt): Likewise.
9125 * localedata/locales/bho_IN (d_fmt): Likewise.
9126 * localedata/locales/bn_BD (d_fmt): Likewise.
9127 * localedata/locales/bn_IN (d_fmt): Likewise.
9128 * localedata/locales/doi_IN (d_fmt): Likewise.
9129 * localedata/locales/gu_IN (d_fmt): Likewise.
9130 * localedata/locales/hi_IN (d_fmt): Likewise.
9131 * localedata/locales/hne_IN (d_fmt): Likewise.
9132 * localedata/locales/kn_IN (d_fmt): Likewise.
9133 * localedata/locales/mag_IN (d_fmt): Likewise.
9134 * localedata/locales/mai_IN (d_fmt): Likewise.
9135 * localedata/locales/mjw_IN (d_fmt): Likewise.
9136 * localedata/locales/ml_IN (d_fmt): Likewise.
9137 * localedata/locales/mni_IN (d_fmt): Likewise.
9138 * localedata/locales/mr_IN (d_fmt): Likewise.
9139 * localedata/locales/pa_IN (d_fmt): Likewise.
9140 * localedata/locales/raj_IN (d_fmt): Likewise.
9141 * localedata/locales/sat_IN (d_fmt): Likewise.
9142 * localedata/locales/sd_IN (d_fmt): Likewise.
9143 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9144 * localedata/locales/ta_IN (d_fmt): Likewise.
9145 * localedata/locales/ta_LK (d_fmt): Likewise.
9146 * localedata/locales/tcy_IN (d_fmt): Likewise.
9147 * localedata/locales/ur_IN (d_fmt): Likewise.
9148
9149 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9150 * localedata/locales/ks_IN (d_fmt): Likewise.
9151 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9152
9153 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9154 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9155 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9156 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9157
d114e6a7
SN
91582018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9159
9160 * NEWS: Mention exp and exp2 improvements.
9161 * math/Makefile (libm-support): Remove t_exp.
9162 (type-double-routines): Add math_err and e_exp_data.
9163 * sysdeps/aarch64/libm-test-ulps: Update.
9164 * sysdeps/arm/libm-test-ulps: Update.
9165 * sysdeps/i386/fpu/e_exp_data.c: New file.
9166 * sysdeps/i386/fpu/math_err.c: New file.
9167 * sysdeps/i386/fpu/t_exp.c: Remove.
9168 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9169 * sysdeps/ia64/fpu/math_err.c: New file.
9170 * sysdeps/ia64/fpu/t_exp.c: Remove.
9171 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9172 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9173 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9174 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9175 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9176 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9177 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9178 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9179 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9180 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9181 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9182 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9183 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9184 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9185 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9186 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9187
b9d8c474
JM
91882018-09-05 Joseph Myers <joseph@codesourcery.com>
9189
b7cdc2ae
JM
9190 * sysdeps/alpha/fpu/math_private.h: Remove.
9191
b9d8c474
JM
9192 * sysdeps/generic/math_private.h
9193 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9194 Move this inline function ....
9195 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9196 * include/math.h [!_ISOMAC]: To here....
9197
418d99e6
JM
91982018-09-04 Joseph Myers <joseph@codesourcery.com>
9199
9200 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9201 code ....
9202 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9203 * include/fenv.h [!_ISOMAC]: ... to here.
9204 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9205 (feraiseexcept): Likewise.
9206 * math/fromfp.h: Do not include <fenv_private.h>.
9207 * math/s_cexp_template.c: Likewise.
9208 * math/s_csin_template.c: Likewise.
9209 * math/s_csinh_template.c: Likewise.
9210 * math/s_ctan_template.c: Likewise.
9211 * math/s_ctanh_template.c: Likewise.
9212 * math/s_iseqsig_template.c: Likewise.
9213 * math/w_acos_compat.c: Likewise.
9214 * math/w_acosf_compat.c: Likewise.
9215 * math/w_acosl_compat.c: Likewise.
9216 * math/w_asin_compat.c: Likewise.
9217 * math/w_asinf_compat.c: Likewise.
9218 * math/w_asinl_compat.c: Likewise.
9219 * math/w_j0_compat.c: Likewise.
9220 * math/w_j0f_compat.c: Likewise.
9221 * math/w_j0l_compat.c: Likewise.
9222 * math/w_j1_compat.c: Likewise.
9223 * math/w_j1f_compat.c: Likewise.
9224 * math/w_j1l_compat.c: Likewise.
9225 * math/w_jn_compat.c: Likewise.
9226 * math/w_jnf_compat.c: Likewise.
9227 * math/w_log10_compat.c: Likewise.
9228 * math/w_log10f_compat.c: Likewise.
9229 * math/w_log10l_compat.c: Likewise.
9230 * math/w_log2_compat.c: Likewise.
9231 * math/w_log2f_compat.c: Likewise.
9232 * math/w_log2l_compat.c: Likewise.
9233 * math/w_log_compat.c: Likewise.
9234 * math/w_logf_compat.c: Likewise.
9235 * math/w_logl_compat.c: Likewise.
9236 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9237 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9238 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9239 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9240 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9241 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9242 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9243 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9244 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9245 * sysdeps/ieee754/k_standardl.c: Likewise.
9246 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9247 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9248 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9249 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9250 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9251 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9252 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9253 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9254 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9255 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9256 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9257 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9258 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9259 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9260 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9261 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9262 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9263 * math/w_ilogb_template.c: Include <fenv.h> instead of
9264 <fenv_private.h>.
9265 * math/w_llogb_template.c: Likewise.
9266 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9267 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9268
70e2ba33
JM
92692018-09-03 Joseph Myers <joseph@codesourcery.com>
9270
9271 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9272 * math/fromfp.h: Include <fenv_private.h>.
9273 * math/math-narrow.h: Likewise.
9274 * math/s_cexp_template.c: Likewise.
9275 * math/s_csin_template.c: Likewise.
9276 * math/s_csinh_template.c: Likewise.
9277 * math/s_ctan_template.c: Likewise.
9278 * math/s_ctanh_template.c: Likewise.
9279 * math/s_iseqsig_template.c: Likewise.
9280 * math/w_acos_compat.c: Likewise.
9281 * math/w_acosf_compat.c: Likewise.
9282 * math/w_acosl_compat.c: Likewise.
9283 * math/w_asin_compat.c: Likewise.
9284 * math/w_asinf_compat.c: Likewise.
9285 * math/w_asinl_compat.c: Likewise.
9286 * math/w_ilogb_template.c: Likewise.
9287 * math/w_j0_compat.c: Likewise.
9288 * math/w_j0f_compat.c: Likewise.
9289 * math/w_j0l_compat.c: Likewise.
9290 * math/w_j1_compat.c: Likewise.
9291 * math/w_j1f_compat.c: Likewise.
9292 * math/w_j1l_compat.c: Likewise.
9293 * math/w_jn_compat.c: Likewise.
9294 * math/w_jnf_compat.c: Likewise.
9295 * math/w_llogb_template.c: Likewise.
9296 * math/w_log10_compat.c: Likewise.
9297 * math/w_log10f_compat.c: Likewise.
9298 * math/w_log10l_compat.c: Likewise.
9299 * math/w_log2_compat.c: Likewise.
9300 * math/w_log2f_compat.c: Likewise.
9301 * math/w_log2l_compat.c: Likewise.
9302 * math/w_log_compat.c: Likewise.
9303 * math/w_logf_compat.c: Likewise.
9304 * math/w_logl_compat.c: Likewise.
9305 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9306 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9307 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9308 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9309 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9310 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9311 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9312 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9313 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9314 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9315 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9316 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9317 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9318 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9319 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9320 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9321 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9322 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9323 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9324 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9325 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9326 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9327 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9328 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9329 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9330 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9331 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9332 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9333 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9334 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9335 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9336 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9337 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9338 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9339 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9340 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9341 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9342 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9343 * sysdeps/ieee754/k_standardl.c: Likewise.
9344 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9345 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9346 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9347 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9348 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9349 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9350 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9351 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9352 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9353 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9354 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9355 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9356 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9357 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9358 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9359 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9360 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9361 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9362 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9363 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9364 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9365 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9366 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9367 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9368 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9369 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9370 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9371 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9372 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9373 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9374 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9375 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9376 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9377 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9378 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9379 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9380 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9381 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9382 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9383 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9384 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9385 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9386 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9387 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9388 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9389 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9390 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9391 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9392 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9393 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9394 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9395 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9396 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9397 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9398 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9399 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9400 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9401 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9402 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9403 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9404 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9405 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9406 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9407 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9408 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9409 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9410 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9411 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9412 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9413 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9414 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9415
a6e8926f
PP
94162018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9417
9418 [BZ #20271]
9419 * include/stdio.h (__libc_fatal): Mention newline in comment.
9420 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9421 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9422 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9423 * nss/nsswitch.c (__nss_next2): Likewise.
9424 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9425 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9426 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9427 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9428 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9429 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9430 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9431 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9432 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9433 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9434 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9435 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9436 (__netlink_assert_response): Likewise.
9437
2bbd06bc
JM
94382018-08-31 Joseph Myers <joseph@codesourcery.com>
9439
9440 * conform/glibcconform.py: New file.
9441 * conform/list-header-symbols.py: Likewise.
9442 * conform/list-header-symbols.pl: Remove.
9443 * conform/Makefile (tests-special): Only add linknamespace tests
9444 if [PYTHON].
9445 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9446
81b9d87b
L
94472018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9448
9449 [BZ #23597]
9450 * support/Makefile (libsupport-routines): Add
9451 support_copy_file_range and xcopy_file_range.
9452 * support/support.h: Include <sys/types.h>.
9453 (support_copy_file_range): New prototype.
9454 * support/support_copy_file_range.c: New file. Copied and
9455 modified from io/copy_file_range-compat.c.
9456 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9457 instead of copy_file_range.
9458 * support/xcopy_file_range.c: New file.
9459 * support/xunistd.h (xcopy_file_range): New prototype.
9460
d330f31a
CD
94612018-08-30 Carlos O'Donell <carlos@redhat.com>
9462
9463 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9464 xpthread_create and xpthread_join.
9465
2bda273a
FW
94662018-08-30 Florian Weimer <fweimer@redhat.com>
9467
9468 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9469
3bad2358
SL
94702018-08-30 Stefan Liebler <stli@linux.ibm.com>
9471
9472 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9473 if malloc fails.
9474
09c12efc
JM
94752018-08-29 Joseph Myers <joseph@codesourcery.com>
9476
9477 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9478 and minus_oflow as non-finite.
9479
ff6b2450
JM
94802018-08-28 Joseph Myers <joseph@codesourcery.com>
9481
9482 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9483 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9484 moved to fenv_private.h except for ...
9485 (TOINT_INTRINSICS): Kept in math_private.h.
9486 (roundtoint): Likewise.
9487 (converttoint): Likewise.
9488 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9489 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9490 * sysdeps/arm/math_private.h: Remove.
9491 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9492 ....
9493 * sysdeps/generic/math_private.h: ... this file. Include
9494 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9495 Include <fenv_private.h>. Remove functions and macros moved to
9496 fenv_private.h.
9497 * sysdeps/i386/fpu/math_private.h: Remove.
9498 * sysdeps/mips/math_private.h: Move to ....
9499 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9500 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9501 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9502 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9503 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9504 * sysdeps/powerpc/fpu/math_private.h: Do not include
9505 <fenv_private.h>.
9506 * sysdeps/riscv/rvf/math_private.h: Move to ....
9507 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9508 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9509 <fenv_private.h>.
9510 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9511 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9512 * sysdeps/sparc/fpu/math_private.h: Remove.
9513 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9514 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9515 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9516 <fenv_private.h>.
9517 * sysdeps/x86_64/fpu/math_private.h: Do not include
9518 <sysdeps/i386/fpu/fenv_private.h>.
9519
761404b7
FW
95202018-08-28 Florian Weimer <fweimer@redhat.com>
9521
9522 [BZ #23578]
9523 * posix/tst-regcomp-truncated.c: New file.
9524 * posix/Makefile (tests): Add it.
9525 (tst-regcomp-truncated.out): Depend on generated locales.
9526
d6c44c3d
FW
95272018-08-28 Florian Weimer <fweimer@redhat.com>
9528
9529 * support/test-container.c (main): Treat unshare failure with
9530 EPERM as an unsupported test.
9531
745664bd
FW
95322018-08-28 Florian Weimer <fweimer@redhat.com>
9533
9534 [BZ #23520]
9535 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9536 * nscd/netgroupcache.c
9537 (addgetnetgrentX): Add tofreep parameter. Do not free
9538 heap-allocated buffer.
9539 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9540 (addgetnetgrentX_ignore): New function.
9541 (addgetnetgrent): Call it.
9542 (readdgetnetgrent): Likewise.
9543
c8dd67e7
RS
95442018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9545
9546 * string/memmem.c: Use memcmp for first match.
9547
5abedf97
RL
95482018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9549
9550 [BZ #17426]
9551 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9552
86de0499
DD
95532018-08-27 DJ Delorie <dj@redhat.com>
9554
9555 * support/Makefile (others): Don't list programs explicitly as a
9556 dependency of "others".
9557
c3ab2110
JM
95582018-08-27 Joseph Myers <joseph@codesourcery.com>
9559
9560 * sysdeps/generic/math-tests-trap-force.h: New file.
9561 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9562 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9563 * sysdeps/powerpc/math-tests.h: Remove file.
9564 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9565
6b5c8607
TS
95662018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9567 Torvald Riegel <triegel@redhat.com>
99ea93ca
MK
9568
9569 [BZ #23538]
9570 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9571 Update r to include the set wake-request flag if waiters are
9572 remaining after spinning.
9573
4061791f
JM
95742018-08-27 Joseph Myers <joseph@codesourcery.com>
9575
9576 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9577
bc680b33
PE
95782018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9579
761404b7 9580 [BZ #23578]
bc680b33
PE
9581 regex: fix uninitialized memory access
9582 I introduced this bug into gnulib in commit
9583 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9584 eventually it was merged into glibc. The bug was found by
9585 project-repo <bugs@feusi.co> and reported here:
9586 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9587 Diagnosis and draft fix reported by Assaf Gordon here:
9588 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9589 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9590 * posix/regex_internal.c (build_wcs_upper_buffer):
9591 Fix bug when mbrtowc returns 0.
9592
02458a52
CD
95932018-08-24 Carlos O'Donell <carlos@redhat.com>
9594
9595 * po/be.po: Update translation.
9596
acc2842a
DD
95972018-08-24 DJ Delorie <dj@delorie.com>
9598
9599 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9600 $(libunwind).
9601
6c3a8a9d
PP
96022018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9603
b39d961c
TS
9604 [BZ #23400]
9605 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9606 create temporary files in source tree.
6c3a8a9d 9607
895ef79e
JM
96082018-08-24 Joseph Myers <joseph@codesourcery.com>
9609
9610 * sysdeps/generic/math-tests-trap.h: New file.
9611 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9612 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9613 * sysdeps/aarch64/math-tests.h: Remove file.
9614 * sysdeps/arm/math-tests.h: Likewise.
9615 * sysdeps/riscv/math-tests.h: Likewise.
9616 * sysdeps/aarch64/math-tests-trap.h: New file.
9617 * sysdeps/arm/math-tests-trap.h: Likewise.
9618 * sysdeps/riscv/math-tests-trap.h: Likewise.
9619
ca3aac57
WD
96202018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9621
9622 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9623 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9624 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9625 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9626 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9627 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9628 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9629 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9630 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9631 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9632 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9633 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9634 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9635 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9636 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9637 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9638 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9639 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9640
60bcac09
JM
96412018-08-23 Joseph Myers <joseph@codesourcery.com>
9642
9643 * sysdeps/generic/math-tests-exceptions.h: New file.
9644 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9645 (EXCEPTION_TESTS_float): Do not define here.
9646 (EXCEPTION_TESTS_double): Likewise.
9647 (EXCEPTION_TESTS_long_double): Likewise.
9648 (EXCEPTION_TESTS_float128): Likewise.
9649 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9650 Likewise.
9651 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9652 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9653 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9654 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9655 * sysdeps/mips/math-tests.h: Likewise.
9656 * sysdeps/nios2/math-tests.h: Likewise.
9657 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9658 (EXCEPTION_TESTS_float): Do not define here.
9659 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9660 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9661 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9662
3bded567
WD
96632018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9664
9665 * NEWS: Move optimized sinf entry to 2.29.
9666
900fb446
WD
96672018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9668
9669 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9670
561b0bec
DD
96712018-08-22 DJ Delorie <dj@redhat.com>
9672
9673 * Makefile (testroot.pristine): New rules to initialize the
9674 test-in-container "testroot".
9675 * Makerules (all-testsuite): Add tests-container.
9676 * Rules (tests-expected): Add tests-container.
9677 (binaries-all-tests): Likewise.
9678 (tests-container): New, run these tests in the testroot container.
9679 * support/Makefile (others): Add *-container, support_paths.c,
9680 xmkdirp, and links-dso-program.
9681 * support/links-dso-program-c.c: New.
9682 * support/links-dso-program.cc: New.
9683 * support/test-container.c: New.
9684 * support/shell-container.c: New.
9685 * support/echo-container.c: New.
9686 * support/true-container.c: New.
9687 * support/xmkdirp.c: New.
9688 * support/xsymlink.c: New.
9689 * support/support_paths.c: New.
9690 * support/support.h: Add support paths prototypes.
9691 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9692
9693 * nss/tst-nss-test3.c: Convert to test-in-container.
9694 * nss/tst-nss-test3.root/: New.
9695
b35d3509
PE
96962018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9697
9698 regex: port Gnulib code to z/OS POSIX environment
9699 Problem reported by Arnold Robbins in:
9700 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9701 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9702 Undef.
9703
16a25138
JM
97042018-08-22 Joseph Myers <joseph@codesourcery.com>
9705
debc4c98
JM
9706 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9707 (ROUNDING_TESTS_double): Remove.
9708 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9709 (ROUNDING_TESTS_double): Remove.
9710 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9711 (ROUNDING_TESTS_double): Remove.
9712 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9713 (ROUNDING_TESTS_float): Remove.
9714 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9715 (ROUNDING_TESTS_float): Remove.
9716 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9717 (ROUNDING_TESTS_float): Remove.
9718 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9719 !TEST_MATHVEC here.
9720 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9721 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9722
16a25138
JM
9723 * sysdeps/generic/math-tests-rounding.h: New file.
9724 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9725 (ROUNDING_TESTS_float): Do not define here.
9726 (ROUNDING_TESTS_double): Likewise.
9727 (ROUNDING_TESTS_long_double): Likewise.
9728 (ROUNDING_TESTS_float128): Likewise.
9729 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9730 (ROUNDING_TESTS_double): Undefine before defining.
9731 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9732 (ROUNDING_TESTS_double): Undefine before defining.
9733 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9734 (ROUNDING_TESTS_double): Undefine before defining.
9735 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9736 (ROUNDING_TESTS_float): Undefine before defining.
9737 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9738 (ROUNDING_TESTS_float): Undefine before defining.
9739 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9740 (ROUNDING_TESTS_float): Undefine before defining.
9741 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9742 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9743 not define here.
9744 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9745 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9746 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9747 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9748 (ROUNDING_TESTS_float): Do not define here.
9749 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9750 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9751 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9752 (ROUNDING_TESTS_float): Likewise.
9753 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9754 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9755 * sysdeps/mips/math-tests.h [__mips_soft_float]
9756 (ROUNDING_TESTS_float): Likewise.
9757 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9758 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9759 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9760 (ROUNDING_TESTS_double): Likewise.
9761 (ROUNDING_TESTS_long_double): Likewise.
9762
38b0593e
TK
97632018-08-21 Tobias Klauser <tklauser@distanz.ch>
9764
9765 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9766 (PF_XDP): New macro.
9767 (AF_XDP): New macro.
9768 (SOL_XDP): New macro.
9769
5cd7dbde
JM
97702018-08-21 Joseph Myers <joseph@codesourcery.com>
9771
9772 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9773 (TCP_INQ): Likewise.
9774 (TCP_CM_INQ): Likewise.
9775 (TCP_REPAIR_ON): Likewise.
9776 (TCP_REPAIR_OFF): Likewise.
9777 (TCP_REPAIR_OFF_NO_WP): Likewise.
9778 (struct tcp_zerocopy_receive): New type.
9779
aa42b3db
FW
97802018-08-21 Florian Weimer <fweimer@redhat.com>
9781
9782 * support/support.h (support_descriptor_supports_holes): Declare.
9783 * support/Makefile (libsupport-routines): Add
9784 support_descriptor_supports_holes.
9785 * support/support_descriptor_supports_holes.c: New file.
9786 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9787 and stop testing if holes are not supported.
9788 * io/test-lfs.c (do_prepare): Likewise.
9789 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9790 Likewise.
9791 * timezone/tst-tzset.c (create_tz_file): Likewise.
9792 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9793 variable.
9794 (do_prepare): Set it.
9795 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9796
c7627f41
FW
97972018-08-21 Florian Weimer <fweimer@redhat.com>
9798
9799 [BZ #17248]
9800 * Makeconfig (+cflags): Do not sort (and deduplicate).
9801
ef939d92
FW
98022018-08-21 Florian Weimer <fweimer@redhat.com>
9803
9804 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9805 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9806
88ffb39d
FW
98072018-08-20 Florian Weimer <fweimer@redhat.com>
9808
9809 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9810 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9811
17419540
JM
98122018-08-20 Joseph Myers <joseph@codesourcery.com>
9813
e6edd40d
JM
9814 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9815 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9816 and ssi_arch members.
9817
17419540
JM
9818 * elf/elf.c (NT_VMCOREDD): New macro.
9819 (AT_MINSIGSTKSZ): Likewise.
9820
fa78896b
RS
98212018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9822
9823 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9824 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9825 s_cosf-ppc64 and s_cosf-power8.
9826 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9827 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9828 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9829 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9836 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9837 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9838
86a6c75a
FW
98392018-08-17 Florian Weimer <fweimer@redhat.com>
9840
9841 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9842
35cfefd9
FW
98432018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9844
9845 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9846
6413fcde
FW
98472018-08-16 Florian Weimer <fweimer@redhat.com>
9848
9849 * configure.ac: Add --with-nonshared-cflags option.
9850 * config.make.in (extra-nonshared-cflags): Set variable.
9851 * Makeconfig (CFLAGS-.oS): Use it.
9852 * manual/install.texi (Configuring and compiling): Document
9853 --with-nonshared-cflags.
9854 * configure: Regenerate.
9855 * INSTALL: Likewise.
9856
93a2584c
FW
98572018-08-16 Florian Weimer <fweimer@redhat.com>
9858
9859 * Makeconfig (ASFLAGS): Always append required assembler flags.
9860
f6f275d2 98612018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
d6db68e6
ME
9862
9863 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9864 (malloc_consolidate): Likewise.
9865
30a17d8c
PC
98662018-08-16 Pochang Chen <johnchen902@gmail.com>
9867
9868 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9869
953a5a4a
SP
98702018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9871
34f86d61
SP
9872 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9873 every strlen call.
9874
953a5a4a
SP
9875 * benchtests/bench-strlen.c: Print performance numbers in json.
9876
7793ad7a
RS
98772018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9878
9879 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9880 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9881 only for little endian.
9882 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9883 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9884 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9885 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9886 Add check for little endian.
9887 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9888 (__strcmp_power9): Add check for little endian.
9889 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9890 Add check for little endian.
9891 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9892 (__strncmp_power9): Add check for little endian.
9893 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9894 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9895 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9896 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9897 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9898
436e4d5b
SP
98992018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9900
9901 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9902 [!STRLEN](STRLEN): Set to __strlen.
9903 * sysdeps/aarch64/multiarch/strlen.c: New file.
9904 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9905 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9906 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9907 (__libc_ifunc_impl_list): Add strlen.
9908 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9909 strlen_generic and strlen_asimd.
9910
126c4e3f
WD
99112018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9912
9913 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9914 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9915 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9916
49acec17
WD
99172018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9918
9919 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9920
fdb16de3
FW
99212018-08-14 Florian Weimer <fweimer@redhat.com>
9922
9923 [BZ #23519]
9924 * include/stdio.h (__vfxprintf): Declare.
9925 * stdio-common/fxprintf.c (__vfxprintf): New function.
9926 (__fxprintf): Call it.
9927 * misc/err.c (convert_and_print): Remove function.
9928 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9929 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9930 * misc/Makefile (tests): Add tst-warn-wide.
9931 * misc/tst-warn-wide.c: New file.
9932
599cf397
WD
99332018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9934 Szabolcs Nagy <szabolcs.nagy@arm.com>
9935
9936 * NEWS: Mention sinf, cosf, sincosf.
9937 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
9938 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
9939 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
9940 constants rather than including generic sincosf.h.
9941 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
9942 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
9943 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
9944 (reduced_cos): Remove.
9945 (sinf_poly): New function.
9946 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
9947
e95c6f61
FW
99482018-08-14 Florian Weimer <fweimer@redhat.com>
9949
9950 [BZ #23521]
9951 [BZ #23522]
9952 * nss/nss_files/files-alias.c (get_next_alias): During :include:
9953 processing, bail out if no room, and close the stream before
9954 returning ERANGE.
9955 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
9956 (tst-nss-files-alias-leak): Link with libdl.
9957 (tst-nss-files-alias-leak.out): Depend on nss_files.
9958
9959 * nss/tst-nss-files-alias-leak.c: New file.
9960
2d7acfac
FW
99612018-08-14 Florian Weimer <fweimer@redhat.com>
9962
9963 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
9964 server_user, stat_user.
9965
f3cd0904
JM
99662018-08-13 Joseph Myers <joseph@codesourcery.com>
9967
17b26500
JM
9968 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9969 version to 4.18.
9970 (io_pgetevents): New syscall.
9971 (rseq): Likewise.
9972
3c1622eb
JM
9973 * manual/install.texi (Configuring and compiling): Do not list
9974 tools used for testing pretty printers here.
9975 (Tools for Compilation): List Python, PExpect and GDB here.
9976 Update descriptions of uses of Perl and Python.
9977 * INSTALL: Regenerate.
9978
f3cd0904
JM
9979 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9980 version to 4.18.
9981
b7b52b9d
FW
99822018-08-13 Florian Weimer <fweimer@redhat.com>
9983
9984 * misc/error.c (error): Add missing va_end call.
9985 (error_at_line): Likewise.
9986
01780188
FW
99872018-08-13 Florian Weimer <fweimer@redhat.com>
9988
9989 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
9990
44727aec
SP
99912018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
9992
8cac1f26
SP
9993 * benchtests/scripts/benchout.schema.json (properties): Add
9994 new properties.
9995
44727aec
SP
9996 * benchtests/bench-skeleton.c (main): Add duration and
9997 iterations attributes.
9998
c77bf91b
PE
99992018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10000
10001 regex: Gnulib unibyte RRI uses bytes not chars
10002 Adjust the non-glibc code to agree with what Gawk needs for
10003 rational range interpretation (RRI) for regular expression ranges.
10004 In unibyte locales, Gawk wants ranges to use the underlying byte
10005 rather than the character code point. This change does not affect
10006 glibc proper.
10007 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10008 In unibyte locales, use the byte value rather than
10009 running it through btowc.
10010
2ce7ba7d
JM
100112018-08-10 Joseph Myers <joseph@codesourcery.com>
10012
10013 * sysdeps/generic/math-tests-snan.h: New file.
10014 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10015 (SNAN_TESTS_float): Do not define here.
10016 (SNAN_TESTS_double): Likewise.
10017 (SNAN_TESTS_long_double): Likewise.
10018 (SNAN_TESTS_float128): Likewise.
10019 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10020 * sysdeps/i386/fpu/math-tests.h: Remove file.
10021 * sysdeps/ia64/math-tests-snan.h: New file.
10022 * sysdeps/ia64/math-tests.h: Remove file.
10023 * sysdeps/x86/math-tests.h: Likewise.
10024 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10025
ea5c662c
WD
100262018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10027 Szabolcs Nagy <szabolcs.nagy@arm.com>
10028
10029 * math/Makefile: Add s_sincosf_data.c.
10030 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10031 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10032 (sincosf_poly): Likewise.
10033 (reduce_small): Likewise.
10034 (reduce_large): Likewise.
10035 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10036 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10037 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10038 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10039
43cfdf8f
SN
100402018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10041 Szabolcs Nagy <szabolcs.nagy@arm.com>
10042
10043 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10044 (converttoint): Use lround.
10045 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10046 document the semantics when TOINT_INTRINSICS is set.
10047 (converttoint): Likewise.
10048 (TOINT_RINT): Remove.
10049 (TOINT_SHIFT): Remove.
10050 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10051 path.
10052
69065288
FW
100532018-08-10 Florian Weimer <fweimer@redhat.com>
10054
10055 [BZ #23497]
10056 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10057 function.
10058 (__old_getdents64): Use getdents64. Convert entries without
10059 moving them.
10060 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10061 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10062 tst-readdir64-compat.
10063
8f135efc
IL
100642018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10065
10066 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10067 Fix unwind.
10068
71c01af5
IL
100692018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10070
10071 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10072 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10073 code to s390x-mcount.h and #include it.
10074 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10075 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10076 (__fentry__): Add.
10077
8d997d22
IL
100782018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10079
10080 * stdlib/Versions: Remove __fentry__.
10081 * sysdeps/i386/Versions: Add __fentry__.
10082 * sysdeps/x86_64/Versions: Add __fentry__.
10083
69e2444a
IL
100842018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10085
10086 * sysdeps/s390/Makefile: Register the new tests.
10087 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10088 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10089 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10090 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10091 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10092 * sysdeps/s390/tst-dl-runtime.c: New file.
10093
bde6320f
IL
100942018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10095
10096 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10097 Do not clobber R0.
10098
5755f5e4
IL
100992018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10100
10101 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10102 Do not clobber R0.
10103
c8ad8522
IL
101042018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10105
10106 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10107 Do not clobber R0.
10108
b215eee1
IL
101092018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10110
10111 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10112 Do not clobber R0.
10113
329c6fec
IL
101142018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10115
10116 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10117 Use symbolic offsets for stack variables.
10118
0fb7afa2
IL
101192018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10120
10121 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10122 Use symbolic offsets for stack variables.
10123
6954059a
IL
101242018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10125
10126 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10127 Use symbolic offsets for stack variables.
10128
c7099673
IL
101292018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10130
10131 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10132 Use symbolic offsets for stack variables.
10133
2813e41e
JM
101342018-08-09 Joseph Myers <joseph@codesourcery.com>
10135
10136 * math/gen-libm-test.py: New file.
10137 * math/gen-libm-test.pl: Remove.
10138 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10139 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10140 gen-libm-test.pl.
10141 ($(libm-test-c-noauto-obj)): Likewise.
10142 ($(libm-test-c-auto-obj)): Likewise.
10143 ($(libm-test-c-narrow-obj)): Likewise.
10144 (regen-ulps): Likewise.
10145 * math/README.libm-test: Update references to gen-libm-test.pl.
10146 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10147 referencing gen-libm-test.pl.
10148 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10149 * math/libm-test-support.c: Likewise.
10150 * math/libm-test-support.h: Likewise.
10151 * sysdeps/generic/libm-test-ulps: Likewise.
10152
be64b194
SP
101532018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10154
10155 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10156 Fix value.
10157
140137fb
JM
101582018-08-08 Joseph Myers <joseph@codesourcery.com>
10159
10160 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10161 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10162
b5403eca
ST
101632018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10164
10165 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10166 symbols.
8ac0f9e6
ST
10167 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10168 __pthread_setspecific): Add hidden proto.
10169 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10170 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
b5403eca 10171
014efdd7
SP
101722018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10173
10174 * benchtests/bench-string.h (buf1_size, buf2_size): New
10175 variables.
10176 (init_sizes): New function.
10177 (test_init): Use it.
10178 (alloc_buf, exit_error): New functions.
10179 (alloc_bufs): Use ALLOC_BUF.
10180 (realloc_bufs): Remove.
10181 * benchtests/bench-memcmp.c (do_test): Adjust.
10182 * benchtests/bench-memset-large.c (do_test): Likewise.
10183 * benchtests/bench-memset-walk.c (do_test): Likewise.
10184 * benchtests/bench-memset.c (do_test): Likewise.
10185 * benchtests/bench-strncmp.c (do_test): Likewise.
10186
92a4cba7
AS
101872018-08-06 Andreas Schwab <schwab@suse.de>
10188
10189 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10190 of CONST_THREAD_AREA.
10191
fb4c32ae
L
101922018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10193
10194 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10195 (STATE_SAVE_MASK): Likewise.
10196 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10197 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10198 (STATE_SAVE_MASK): Likewise.
10199 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10200 instead of <cpu-features.h>.
10201
bf418187
DD
102022018-08-03 DJ Delorie <dj@redhat.com>
10203
10204 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
e5721f45 10205 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
bf418187 10206
bb17621a
DD
10207 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10208
ea705eb5
JM
102092018-08-03 Joseph Myers <joseph@codesourcery.com>
10210
10211 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10212 after TEST_* calls.
10213 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10214 * math/libm-test-logb.inc (logb_test_data): Likewise.
10215
284f42bc
WD
102162018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10217
10218 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10219 * string/strstr.c (AVAILABLE): Likewise.
10220
430388d5
L
102212018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10222
10223 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10224 <init-arch.h>.
10225 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10226 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10227 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10228
c5760aa9
CD
102292018-08-03 Carlos O'Donell <carlos@redhat.com>
10230
10231 * po/be.po: Update translation.
10232
6b535b84
CD
10233 * po/be.po: Update translation.
10234
ae67f2e5
L
102352018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10236
10237 * sysdeps/x86/cpu-features-offsets.sym
10238 (rtld_global_ro_offsetof): Removed.
10239 (CPU_FEATURES_SIZE): Likewise.
10240 (CPUID_OFFSET): Likewise.
10241 (CPUID_SIZE): Likewise.
10242 (CPUID_EAX_OFFSET): Likewise.
10243 (CPUID_EBX_OFFSET): Likewise.
10244 (CPUID_ECX_OFFSET): Likewise.
10245 (CPUID_EDX_OFFSET): Likewise.
10246 (FAMILY_OFFSET): Likewise.
10247 (MODEL_OFFSET): Likewise.
10248 (FEATURE_OFFSET): Likewise.
10249 (FEATURE_SIZ): Likewise.
10250 (COMMON_CPUID_INDEX_1): Likewise.
10251 (COMMON_CPUID_INDEX_7): Likewise.
10252 (FEATURE_INDEX_1): Likewise.
10253 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10254
6b5c8607 102552018-08-02 Carlos O'Donell <carlos@redhat.com>
08a5ee14
CD
10256
10257 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10258 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10259 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10260 (install-locales): Depend on install-locale-archive.
10261 (install-locale-archive): Define.
7b7adbd8 10262 (install-locale-files): Define.
08a5ee14
CD
10263 (build-one-locale): Define macro.
10264 * manual/install.texi (Running make install): Document.
10265 * manual/INSTALL: Regenerate.
10266
525691bd
SP
102672018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10268
d67d634b
SP
10269 * benchtests/scripts/compare_strings.py: Import traceback.
10270 (parse_file): Pretty-print error.
10271
525691bd
SP
10272 * NEWS: Mention the change.
10273 * elf/dl-tunables.list: Rename tune namespace to cpu.
10274 * sysdeps/powerpc/dl-tunables.list: Likewise.
10275 * sysdeps/x86/dl-tunables.list: Likewise.
10276 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10277 cpu.name.
10278 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10279 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10280 * manual/README.tunables: Likewise.
10281 * manual/tunables.texi: Likewise.
10282 * sysdeps/powerpc/cpu-features.c: Likewise.
10283 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10284 (init_cpu_features): Likewise.
10285 * sysdeps/x86/cpu-features.c: Likewise.
10286 * sysdeps/x86/cpu-features.h: Likewise.
10287 * sysdeps/x86/cpu-tunables.c: Likewise.
10288 * sysdeps/x86_64/Makefile: Likewise.
10289 * sysdeps/x86/dl-cet.c: Likewise.
10290
506d7fb1
JM
102912018-08-02 Joseph Myers <joseph@codesourcery.com>
10292
10293 [BZ #23479]
10294 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10295 [__mips_hard_float].
10296 (FE_UNDERFLOW): Likewise.
10297 (FE_OVERFLOW): Likewise.
10298 (FE_DIVBYZERO): Likewise.
10299 (FE_INVALID): Likewise.
10300 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10301 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10302 (FE_UPWARD): Likewise.
10303 (FE_DOWNWARD): Likewise.
10304 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10305 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10306 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10307 [__mips_hard_float].
10308 (FP_ROUNDMODE): Likewise.
10309 (FP_RND_NEAREST): Likewise.
10310 (FP_RND_ZERO): Likewise.
10311 (FP_RND_PINF): Likewise.
10312 (FP_RND_MINF): Likewise.
10313 (FP_EX_INVALID): Likewise.
10314 (FP_EX_OVERFLOW): Likewise.
10315 (FP_EX_UNDERFLOW): Likewise.
10316 (FP_EX_DIVZERO): Likewise.
10317 (FP_EX_INEXACT): Likewise.
10318 (FP_INIT_ROUNDMODE): Likewise.
10319 * sysdeps/mips/nofpu/fesetenv.c: New file.
10320 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10321
f6dcefbe
JM
103222018-08-01 Joseph Myers <joseph@codesourcery.com>
10323
10324 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10325 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10326 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10327 conditional on [FE_UPWARD].
10328
fa67ba06
PE
103292018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10330
10331 regex: fix memory leak in Gnulib
10332 Problem and fix reported by Assaf Gordon in:
10333 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10334 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10335 range_ends members too, as they are defined in 'struct
10336 re_charset_t' even if not _LIBC. This affects only Gnulib.
10337
82c80ac2
L
103382018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10339
10340 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10341 ...
10342 (get_common_indices): This.
10343 (init_cpu_features): Updated.
10344
c0e7e2c1
JM
103452018-08-01 Joseph Myers <joseph@codesourcery.com>
10346
46f8cf57
JM
10347 * sysdeps/generic/math-tests-snan-payload.h: New file.
10348 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10349 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10350 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10351 * sysdeps/generic/math-tests.h: Include
10352 <math-tests-snan-payload.h>.
10353 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10354 * sysdeps/hppa/math-tests.h: Remove file.
10355 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10356 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10357 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10358 Likewise.
10359
c0e7e2c1
JM
10360 * sysdeps/generic/math-tests-snan-cast.h: New file.
10361 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10362 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10363 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10364 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10365
74939c83
CD
103662018-08-01 Carlos O'Donel <carlos@redhat.com>
10367
b029723b
CD
10368 * version.h (RELEASE): Set to "development".
10369 (VERSION): Set to "2.28.9000".
10370 * NEWS (2.29): New section.
10371
3c03baca
CD
10372 * version.h (RELEASE): Set to "stable".
10373 (VERSION): Set to "2.28".
10374 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10375 * NEWS: Add the list of bugs fixed in 2.28.
10376
74939c83
CD
10377 * po/ca.po: Update to latest version.
10378 * po/cs.po: Likewise
10379 * po/da.po: Likewise
10380 * po/el.po: Likewise
10381 * po/eo.po: Likewise
10382 * po/es.po: Likewise
10383 * po/fi.po: Likewise
10384 * po/fr.po: Likewise
10385 * po/gl.po: Likewise
10386 * po/hu.po: Likewise
10387 * po/ia.po: Likewise
10388 * po/id.po: Likewise
10389 * po/it.po: Likewise
10390 * po/ja.po: Likewise
10391 * po/ko.po: Likewise
10392 * po/lt.po: Likewise
10393 * po/nb.po: Likewise
10394 * po/nl.po: Likewise
10395 * po/pt_BR.po: Likewise
10396 * po/ru.po: Likewise
10397 * po/rw.po: Likewise
10398 * po/sk.po: Likewise
10399 * po/sl.po: Likewise
10400 * po/tr.po: Likewise
10401 * po/zh_CN.po: Likewise
10402 * po/zh_TW.po: Likewise
10403
d4b54bdf
ST
104042018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10405
10406 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10407 initialization...
10408 (init): ... before initializing libpthread.
10409
42fc12ef
ST
10410 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10411 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10412 (__mach_setup_tls): ... new function.
10413 (mach_setup_tls): New alias.
10414 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10415 __mach_setup_thread.
10416 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10417 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10418 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10419 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10420
6cca855e
CD
104212018-07-31 Carlos O'Donell <carlos@redhat.com>
10422
f650932b
CD
10423 * manual/install.texi: Update versions.
10424 * INSTALL: Regenerate.
10425
6cca855e
CD
10426 * manual/contrib.texi (Contributors): Update contributions.
10427
07fdea47
CD
104282018-07-31 Carlos O'Donell <carlos@redhat.com>
10429
10430 * po/be.po: Update translations.
10431
63d5fad4
AZ
104322018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10433
10434 * sysdeps/sh/libm-test-ulps: Update.
10435
1ff712a6
CD
104362018-07-30 Carlos O'Donell <carlos@redhat.com>
10437
10438 * po/bg.po: Update translations.
10439 * po/de.po: Likewise.
10440 * po/hr.po: Likewise.
10441 * po/pt_BR.po: Likewise.
10442 * po/sv.po: Likewise.
10443 * po/vi.po: Likewise.
10444
98864ed0
L
104452018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10446
10447 [BZ #23467]
10448 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10449 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10450 (CFLAGS-tst-cet-property-1.o): New.
10451 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10452 ($(objpfx)tst-cet-property-2): Likewise.
10453 ($(objpfx)tst-cet-property-2.out): Likewise.
10454 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10455 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10456 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10457 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10458 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10459
c92a00d8
L
104602018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10461
10462 [BZ #23458]
10463 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10464
99bc6241
ST
104652018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10466
10467 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10468 __sbrk): Do not set attribute_hidden.
af86087f 10469 * sysdeps/mach/hurd/not-errno.h: New file.
99bc6241
ST
10470 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10471 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10472
bcb1c4af
CD
104732018-07-27 Carlos O'Donell <carlos@redhat.com>
10474
10475 * po/uk.po: Update translations.
10476 * po/cs.po: Likewise.
10477 * po/pl.po: Likewise.
10478
4591b7db
L
104792018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10480
10481 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10482 parse beyond the note end.
10483
2c6da2f4
AZ
104842018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10485
10486 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10487 kernel does not support OFD locks.
10488 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10489
20365a31
ST
104902018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10491
10492 * sysdeps/mach/hurd/Versions (libc): Make __access and
10493 __access_noerrno external so they can override the ld symbols.
10494 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10495 __writev, __open64, __access_noerrno extern so they can be overrided.
10496 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10497 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10498
cb1a43db
CD
104992018-07-26 Carlos O'Donell <carlos@redhat.com>
10500
10501 * po/libc.pot: Regenerate.
10502
74759ae5
JM
105032018-07-26 Joseph Myers <joseph@codesourcery.com>
10504
10505 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10506
da80612d
L
105072018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10508
10509 [BZ #23459]
10510 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10511 function.
10512 (init_cpu_features): Call get_extended_indices for both Intel
10513 and AMD CPUs.
10514 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10515 Remove "for AMD" comment.
10516
65d87ade
L
105172018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10518
10519 [BZ # 23456]
10520 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10521 COMMON_CPUID_INDEX_80000001.
10522
c9dc4d51
SL
105232018-07-26 Stefan Liebler <stli@linux.ibm.com>
10524
10525 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10526 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10527
cfba5dbb
FW
105282018-07-26 Florian Weimer <fweimer@redhat.com>
10529
10530 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10531 aliases for symbols not in the implementation namespace.
10532
6b5c8607 105332018-07-25 Carlos O'Donell <carlos@redhat.com>
7cd7d36f
CD
10534
10535 [BZ #23393]
10536 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10537 lowercase in LATIN script.
10538 * localedata/Makefile (test-input): Add en_US.UTF-8.
10539 * localedata/en_US.UTF-8.in: New file.
10540 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10541 and restore old tests.
10542 * posix/tst-regexloc.c (do_test): Add back range expression test.
10543
3fb455b3
L
105442018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10545
10546 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10547
d6499b70
AZ
105482018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10549
10550 * nptl/threads.h: Move to ...
10551 * sysdeps/nptl/threads.h: ... here.
10552 * sysdeps/hurd/stdc-predef.h: New file.
10553
08ac6bed
L
105542018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10555
10556 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10557 tst-cet-setcontext-1 if CET is enabled.
10558 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10559 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10560
9faaf938
AZ
105612018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10562
10563 * include/threads.h: Move to ...
10564 * sysdeps/nptl/threads.h: ... here.
10565 * sysdeps/htl/threads.h: New file.
10566 * conform/Makefile (linknamespace-libs-ISO11): Use
10567 static-thread-library instead of linking libpthread.
10568 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10569
d6b8f847
FW
105702018-07-25 Florian Weimer <fweimer@redhat.com>
10571
10572 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10573 nanoseconds into seconds.
10574 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10575 (do_test): Likewise.
10576 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10577 (do_test): Likewise. Avoid nanosecond overflow and spurious
10578 timeouts due to system load.
10579 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10580 (child_wait): Increment it.
10581 (do_test): Wait as long as necessary until all expected threads
10582 have arrived.
10583
25123a1c
L
105842018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10585 H.J. Lu <hongjiu.lu@intel.com>
10586
10587 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10588 __ssp.
10589 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10590 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10591 (__push___start_context): New.
10592 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10593 <asm/prctl.h>.
10594 (__getcontext): Record the current shadow stack base. Save the
10595 caller's shadow stack pointer and base.
10596 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10597 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10598 (__push___start_context): New prototype.
10599 (__makecontext): Call __push___start_context to allocate a new
10600 shadow stack, push __start_context onto the new stack as well
10601 as the new shadow stack.
10602 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10603 <asm/prctl.h>.
10604 (__setcontext): Restore the target shadow stack.
10605 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10606 <asm/prctl.h>.
10607 (__swapcontext): Record the current shadow stack base. Save
10608 the caller's shadow stack pointer and base. Restore the target
10609 shadow stack.
10610 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10611 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10612 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10613
375a4844
L
106142018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10615
10616 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10617 tst-setcontext8 and tst-setcontext9.
10618 * stdlib/tst-setcontext6.c: New file.
10619 * stdlib/tst-setcontext7.c: Likewise.
10620 * stdlib/tst-setcontext8.c: Likewise.
10621 * stdlib/tst-setcontext9.c: Likewise.
10622
bd4f7903
L
106232018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10624
10625 * stdlib/Makefile ((tests): Add tst-setcontext5.
10626 * stdlib/tst-setcontext5.c: New file.
10627
7e28f203
L
106282018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10629
10630 * stdlib/Makefile (tests): Add tst-setcontext4.
10631 * stdlib/tst-setcontext4.c: New file.
10632
8516ad2d
L
106332018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10634
10635 * stdlib/Makefile (tests): Add tst-swapcontext1.
10636 * stdlib/tst-swapcontext1.c: New test.
10637
fddcd003
L
106382018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10639
10640 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10641 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10642 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10643 and tst-cet-legacy-4c.
10644 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10645 and tst-cet-legacy-mod-4.
10646 (CFLAGS-tst-cet-legacy-2.c): New.
10647 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10648 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10649 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10650 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10651 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10652 ($(objpfx)tst-cet-legacy-1): Likewise.
10653 ($(objpfx)tst-cet-legacy-2): Likewise.
10654 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10655 ($(objpfx)tst-cet-legacy-2a): Likewise.
10656 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10657 ($(objpfx)tst-cet-legacy-4): Likewise.
10658 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10659 ($(objpfx)tst-cet-legacy-4a): Likewise.
10660 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10661 (tst-cet-legacy-4a-ENV): Likewise.
10662 ($(objpfx)tst-cet-legacy-4b): Likewise.
10663 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10664 (tst-cet-legacy-4b-ENV): Likewise.
10665 ($(objpfx)tst-cet-legacy-4c): Likewise.
10666 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10667 (tst-cet-legacy-4c-ENV): Likewise.
10668 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10669 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10670 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10671 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10672 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10673 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10674 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10675 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10676 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10677 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10678 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10679
9aa3113a
L
106802018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10681
10682 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10683 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10684 with ssp_base.
10685 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10686 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10687 with ssp_base.
10688
9c79cec8
AS
106892018-07-25 Andreas Schwab <schwab@suse.de>
10690
10691 [BZ #23442]
10692 * locale/weightwc.h (findidx): Handle the case where usrc is a
10693 prefix of cp but one character too short.
10694
969c3355
AZ
106952018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10696
10697 * NEWS: Add ISO C threads addition.
10698
e0f9c462
FW
106992018-07-24 Florian Weimer <fweimer@redhat.com>
10700
10701 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10702 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10703 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10704 4.13.
10705
394df381
L
107062018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10707
10708 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10709 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10710 <sys/prctl.h> and <asm/prctl.h>.
10711 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10712 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10713 and <asm/prctl.h>.
10714 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10715 ARCH_CET_LEGACY_BITMAP.
10716 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10717 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10718 * sysdeps/x86/libc-start.c: Include <startup.h>.
10719
46545530
FW
107202018-07-24 Florian Weimer <fweimer@redhat.com>
10721
10722 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10723 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10724
6b5c8607 107252018-07-24 Rical Jasan <rj@2c3t.io>
9d0a979e 10726 Adhemerval Zanella <adhemerval.zanella@linaro.org>
0a07288b
AZ
10727 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10728
10729 [BZ #14092]
9d0a979e
RJ
10730 * manual/debug.texi: Update adjacent chapter name.
10731 * manual/probes.texi: Likewise.
10732 * manual/threads.texi (ISO C Threads): New section.
10733 (POSIX Threads): Convert to a section.
10734
107352018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10736 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10737
10738 [BZ# 14092]
0a07288b
AZ
10739 * nptl/Makefile (tests): Add new test files.
10740 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10741 * nptl/tst-cnd-basic.c: Likewise.
10742 * nptl/tst-cnd-broadcast.c: Likewise.
10743 * nptl/tst-cnd-timedwait.c: Likewise.
10744 * nptl/tst-mtx-basic.c: Likewise.
10745 * nptl/tst-mtx-recursive.c: Likewise.
10746 * nptl/tst-mtx-timedlock.c: Likewise.
10747 * nptl/tst-mtx-trylock.c: Likewise.
10748 * nptl/tst-thrd-basic.c: Likewise.
10749 * nptl/tst-thrd-detach.c: Likewise.
10750 * nptl/tst-thrd-sleep.c: Likewise.
10751 * nptl/tst-tss-basic.c: Likewise.
10752
ce7528f6
AZ
107532018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10754
c6dd669b
AZ
10755 [BZ #14092]
10756 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10757 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10758 symbols.
10759 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10760 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10761 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10762 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10763 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10764 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10765 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10766 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10767 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10768 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10769 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10770 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10772 Likewise.
10773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10774 Likewise.
10775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10776 Likewise.
10777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10778 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10779 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10780 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10781 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10782 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10783 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10784 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10785 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10786 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10787 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10788 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10789 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10790 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10791 Likewise.
10792 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10793 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10794 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10795 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10796 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10797 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10798 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10799 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10800 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10801 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10802 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10803 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10804 ikewise.
10805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10807 Likewise.
10808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10809 Likewise.
10810 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10811 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10812 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10813 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10814 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10815 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10816 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10817 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10818
78d40132
AZ
10819 [BZ #14092]
10820 * conform/data/threads.h-data (thread_local): New macro.
10821 (TSS_DTOR_ITERATIONS): Likewise.
10822 (tss_t): New type.
10823 (tss_dtor_t): Likewise.
10824 (tss_create): New function.
10825 (tss_get): Likewise.
10826 (tss_set): Likewise.
10827 (tss_delete): Likewise.
10828 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10829 tss_get, and tss_set objects.
10830 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10831 * nptl/tss_create.c: New file.
10832 * nptl/tss_delete.c: Likewise.
10833 * nptl/tss_get.c: Likewise.
10834 * nptl/tss_set.c: Likewise.
10835 * sysdeps/nptl/threads.h (thread_local): New define.
10836 (TSS_DTOR_ITERATIONS): Likewise.
10837 (tss_t): New typedef.
10838 (tss_dtor_t): Likewise.
10839 (tss_create): New prototype.
10840 (tss_get): Likewise.
10841 (tss_set): Likewise.
10842 (tss_delete): Likewise.
10843
918311a3
AZ
10844 [BZ #14092]
10845 * conform/data/threads.h-data (cnd_t): New type.
10846 (cnd_init): New function.
10847 (cnd_signal): Likewise.
10848 (cnd_broadcast): Likewise.
10849 (cnd_wait): Likewise.
10850 (cnd_timedwait): Likewise.
10851 (cnd_destroy): Likewise.
10852 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10853 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10854 object.
10855 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10856 * nptl/cnd_broadcast.c: New file.
10857 * nptl/cnd_destroy.c: Likewise.
10858 * nptl/cnd_init.c: Likewise.
10859 * nptl/cnd_signal.c: Likewise.
10860 * nptl/cnd_timedwait.c: Likewise.
10861 * nptl/cnd_wait.c: Likewise.
10862 * sysdeps/nptl/threads.h (cnd_t): New type.
10863 (cnd_init): New prototype.
10864 (cnd_signa): Likewise.
10865 (cnd_broadcast): Likewise.
10866 (cnd_wait): Likewise.
10867 (cnd_timedwait): Likewise.
10868 (cnd_destroy): Likewise.
10869
3c20a679
AZ
10870 [BZ #14092]
10871 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10872 (once_flag): New type.
10873 (call_once): New function.
10874 * nptl/Makefile (libpthread-routines): Add call_once object.
10875 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10876 * nptl/call_once.c: New file.
10877 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10878 (once_flag): New type.
10879 (call_once): New prototype.
10880
18d59c1b
AZ
10881 [BZ #14092]
10882 * conform/data/threads.h-data (mtx_plain): New constant.
10883 (mtx_recursive): Likewise.
10884 (mtx_timed): Likewise.
10885 (mtx_t): New type.
10886 (mtx_init): New function.
10887 (mtx_lock): Likewise.
10888 (mtx_timedlock): Likewise.
10889 (mtx_trylock): Likewise.
10890 (mtx_unlock): Likewise.
10891 (mtx_destroy): Likewise.
10892 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10893 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10894 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10895 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10896 * nptl/mtx_destroy.c: New file.
10897 * nptl/mtx_init.c: Likewise.
10898 * nptl/mtx_lock.c: Likewise.
10899 * nptl/mtx_timedlock.c: Likewise.
10900 * nptl/mtx_trylock.c: Likewise.
10901 * nptl/mtx_unlock.c: Likewise.
10902 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10903 (mtx_recursive): Likewise.
10904 (mtx_timed): Likewise.
10905 (mtx_t): New type.
10906 (mtx_init): New prototype.
10907 (mtx_lock): Likewise.
10908 (mtx_timedlock): Likewise.
10909 (mtx_trylock): Likewise.
10910 (mtx_unlock): Likewise.
10911 (mtx_destroy): Likewise.
10912
ce7528f6
AZ
10913 [BZ #14092]
10914 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10915 (linknamespace-libs-ISO11): Add libpthread.a.
10916 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10917 functions.
10918 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10919 * nptl/Makefile (headers): Add threads.h.
10920 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10921 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10922 thrd_yield.
10923 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10924 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10925 thrd_join, thrd_sleep, and thrd_yield symbols.
10926 * nptl/descr.h (struct pthread): Add c11 field.
10927 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10928 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10929 routine with expected function prototype.
10930 (__pthread_create_2_1): Add C11 threads check based on attribute
10931 value.
10932 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10933 * nptl/thrd_create.c: New file.
10934 * nptl/thrd_current.c: Likewise.
10935 * nptl/thrd_detach.c: Likewise.
10936 * nptl/thrd_equal.c: Likewise.
10937 * nptl/thrd_exit.c: Likewise.
10938 * nptl/thrd_join.c: Likewise.
10939 * nptl/thrd_priv.h: Likewise.
10940 * nptl/thrd_sleep.c: Likewise.
10941 * nptl/thrd_yield.c: Likewise.
10942 * include/threads.h: Likewise.
10943
e27f41ba
L
109442018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10945
10946 * bits/indirect-return.h: New file.
10947 * misc/sys/cdefs.h (__glibc_has_attribute): New.
10948 * sysdeps/x86/bits/indirect-return.h: Likewise.
10949 * stdlib/Makefile (headers): Add bits/indirect-return.h.
10950 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
10951 (swapcontext): Add __INDIRECT_RETURN.
10952 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
10953 (prepare_test_buffer): Use it.
10954
21526a50
AS
109552018-07-24 Andreas Schwab <schwab@suse.de>
10956
10957 [BZ #23448]
10958 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
10959 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
10960
3650e1d9
L
109612018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10962
10963 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
10964 Redefine if shadow stack is enabled.
10965 (SYSCALL_ERROR_LABEL): Likewise.
10966 (__vfork): Pop shadow stack and jump back to to caller directly
10967 when shadow stack is in use.
10968 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
10969 Redefine if shadow stack is enabled.
10970 (SYSCALL_ERROR_LABEL): Likewise.
10971 (__vfork): Pop shadow stack and jump back to to caller directly
10972 when shadow stack is in use.
10973
ca027e0f
L
109742018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10975
10976 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
10977 enabled.
10978 (foo): Likewise.
10979 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
10980 (foo): Likewise.
10981
b99f1c95
JM
109822018-07-20 Joseph Myers <joseph@codesourcery.com>
10983
10984 * scripts/build-many-glibcs.py (Context.checkout): Default
10985 binutils version to 2.31 branch.
10986
c8fabb84
ZL
109872018-07-20 Zong Li <zong@andestech.com>
10988
10989 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
10990 URL of gcc's tarball.
10991
786658a0
FW
109922018-07-20 Florian Weimer <fweimer@redhat.com>
10993
10994 [BZ #23396]
10995 * posix/regcomp.c (build_equiv_class): When comparing weights, do
10996 not compare an extra byte after the end of the weights.
10997
46f2474e
ST
109982018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10999
11000 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11001 to 1.
8ba1520e
ST
11002 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11003 hidden prototypes.
11004 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11005 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
2d5c41de
ST
11006 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11007 list of libraries whose stack executability is expected.
11008 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11009 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11010 variable.
11011 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11012 libc.so libpthread.so.
46f2474e 11013
60088242
TS
110142018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11015
11016 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11017 SOCK_NONBLOCK.
75d5e4a0
TS
11018 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11019 and SOCK_NONBLOCK.
de195be0
TS
11020 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11021 implement __pipe2.
11022 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
60088242 11023
1cf4ae7f
LS
110242018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11025
11026 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11027 library to improve command line parsing.
11028 (__main__): make schema file as optional parameter (--schema),
11029 defaulting to benchtests/scripts/benchout.schema.json.
11030 (main): move out of the parsing stuff to __main_  and leave it
11031 only as caller of main comparison functions.
11032
e84bd851
L
110332018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11034
11035 * NEWS: Add a note for Intel CET status.
11036 * manual/install.texi: Likewise.
11037 * INSTALL: Regenerated.
11038
df467d22
QP
110392018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11040
11041 [BZ #23140]
11042 * localedata/locales/oc_FR (mon): Rename to...
11043 (alt_mon): This, then update October (typo fix).
11044 (mon): New content (genitive case, month names preceded by
11045 "de" or "d’").
11046
11047 [BZ #23422]
11048 * localedata/locales/oc_FR (abday): Update all items.
11049 (day): Update Wednesday and Saturday (typo fixes).
11050 (abmon): Update all items, except May.
11051 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11052 (LC_IDENTIFICATION): Bump the revision number and date.
11053 Keep the "category" entries in alphabetic order.
11054 (LC_ADDRESS): Remove no longer needed comment.
11055 (LC_COLLATE): Use “copy "ca_ES"”.
11056 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11057 "name_mrs".
11058
5c112f1b
JM
110592018-07-18 Joseph Myers <joseph@codesourcery.com>
11060
11061 * grp/tst_fgetgrent.c: Include <unistd.h>.
11062 (main): Use mkstemp instead of tmpnam.
11063 * io/test-utime.c (main): Likewise.
11064 * posix/annexc.c (macrofile): Change to modifiable array.
11065 (main): Remove macrofile here.
11066 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11067 macrofile here.
11068 (check_header): Do not remove macrofile here.
11069 * posix/bug-getopt1.c: Include <stdlib.h>.
11070 (do_test): Use mkstemp instead of tmpnam.
11071 * posix/bug-getopt2.c: Include <stdlib.h>.
11072 (do_test): Use mkstemp instead of tmpnam.
11073 * posix/bug-getopt3.c: Include <stdlib.h>.
11074 (do_test): Use mkstemp instead of tmpnam.
11075 * posix/bug-getopt4.c: Include <stdlib.h>.
11076 (do_test): Use mkstemp instead of tmpnam.
11077 * posix/bug-getopt5.c: Include <stdlib.h>.
11078 (do_test): Use mkstemp instead of tmpnam.
11079 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11080 (main): Use mkstemp instead of tmpnam.
11081 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11082 (main): Use mkstemp instead of tmpnam.
11083 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11084 (main): use mkstemp instead of tmpnam.
11085 * stdlib/isomac.c (macrofile): Change to modifiable array.
11086 (main): Remove macrofile here.
11087 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11088 macrofile here.
11089 (check_header): Do not remove macrofile here.
11090
6d90776d
L
110912018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11092
11093 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11094 glibc.tune.x86_shstk.
11095
e6c69509
L
110962018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11097
11098 * NEWS: Mention --enable-cet.
11099 * manual/install.texi: Document --enable-cet.
11100 * INSTALL: Regenerated.
11101
e2d40a88
L
111022018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11103
11104 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11105 Add _CET_NOTRACK before indirect jump to jump table.
11106
77a8ae09
L
111072018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11108
11109 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11110 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11111 to jump table.
11112
90d15dc5
L
111132018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11114
11115 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11116 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11117 to jump table.
11118
f1574581
L
111192018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11120
11121 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11122 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11123 to jump table.
11124
7fb61336
L
111252018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11126
11127 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11128 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11129 to jump table.
11130
0a899af0
L
111312018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11132
11133 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11134 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11135 to jump table.
11136 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11137
177824e2
L
111382018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11139
11140 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11141 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11142 to jump table.
11143
00e7b76a
L
111442018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11145
11146 * sysdeps/i386/i686/multiarch/memset-sse2.S
11147 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11148 to jump table.
11149
7e119cd5
L
111502018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11151
11152 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11153 indirect jump to jump table.
11154
03aaf49b
L
111552018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11156
11157 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11158 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11159 to jump table.
11160 (MEMCPY): Likewise.
11161
811e9e52
L
111622018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11163
11164 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11165 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11166 to jump table.
11167 (MEMCPY): Likewise.
11168
8817df42
L
111692018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11170
11171 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11172 _CET_NOTRACK before indirect jump to jump table.
11173
921595d1
L
111742018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11175
11176 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11177 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11178 to jump table.
11179
4ef60d95
L
111802018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11181
11182 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11183 indirect jump to jump table.
11184
61c4aad7
VT
111852018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11186
11187 [BZ #22241]
11188 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11189 (LOCALES): Likewise.
11190 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11191 * localedata/locales/sah_RU: New file.
11192 * localedata/sah_RU.UTF-8.in: New file.
11193
be9ccd27
L
111942018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11195
11196 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11197 "sysdep.h".
11198 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11199 _CET_ENDBR to indirect jump targets and adjust jump destination
11200 for _CET_ENDBR.
11201 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11202 "sysdep.h".
11203 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11204 _CET_ENDBR to indirect jump targets and adjust jump destination
11205 for _CET_ENDBR.
11206 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11207 "sysdep.h".
11208 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11209 _CET_ENDBR to indirect jump targets and adjust jump destination
11210 for _CET_ENDBR.
11211
5efc6777
L
112122018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11213
11214 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11215 _CET_ENDBR.
11216
562837c0
L
112172018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11218
11219 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11220 _CET_ENDBR.
11221 (_dl_tlsdesc_undefweak): Likewise.
11222 (_dl_tlsdesc_dynamic): Likewise.
11223 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11224 (_dl_tlsdesc_resolve_rel): Likewise.
11225 (_dl_tlsdesc_resolve_rela): Likewise.
11226 (_dl_tlsdesc_resolve_hold): Likewise.
11227 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11228 (_dl_tlsdesc_undefweak): Likewise.
11229 (_dl_tlsdesc_dynamic): Likewise.
11230 (_dl_tlsdesc_resolve_rela): Likewise.
11231 (_dl_tlsdesc_resolve_hold): Likewise.
11232
124bcde6
L
112332018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11234
11235 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11236 (_fini): Likewise.
11237 * sysdeps/x86_64/crti.S (_init): Likewise.
11238 (_fini): Likewise.
11239
9145f033
RL
112402018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11241
11242 [BZ #23140]
11243 * localedata/locales/os_RU (mon): Rename to...
11244 (alt_mon): This.
11245 (mon): Import from CLDR (genitive case).
11246
ba2ea23d
L
112472018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11248
11249 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11250 cet-tunables.h> when CET is enabled.
11251
f753fa7d
L
112522018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11253
6b5c8607 11254 [BZ #21598]
f753fa7d
L
11255 * configure.ac: Add --enable-cet.
11256 * configure: Regenerated.
11257 * elf/Makefille (all-built-dso): Add a comment.
11258 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11259 Include <dl-prop.h>.
11260 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11261 segment.
11262 * elf/dl-open.c: Include <dl-prop.h>.
11263 (dl_open_worker): Call _dl_open_check.
11264 * elf/rtld.c: Include <dl-prop.h>.
11265 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11266 _rtld_main_check.
11267 * sysdeps/generic/dl-prop.h: New file.
11268 * sysdeps/i386/dl-cet.c: Likewise.
11269 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11270 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11271 * sysdeps/x86/cet-tunables.h: Likewise.
11272 * sysdeps/x86/check-cet.awk: Likewise.
11273 * sysdeps/x86/configure: Likewise.
11274 * sysdeps/x86/configure.ac: Likewise.
11275 * sysdeps/x86/dl-cet.c: Likewise.
11276 * sysdeps/x86/dl-procruntime.c: Likewise.
11277 * sysdeps/x86/dl-prop.h: Likewise.
11278 * sysdeps/x86/libc-start.h: Likewise.
11279 * sysdeps/x86/link_map.h: Likewise.
11280 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11281 _CET_ENDBR.
11282 (_dl_runtime_profile): Likewise.
11283 (_dl_runtime_resolve_shstk): New.
11284 (_dl_runtime_profile_shstk): Likewise.
11285 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11286 if CET is enabled.
11287 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11288 (CFLAGS-.os): Likewise.
11289 (CFLAGS-.op): Likewise.
11290 (CFLAGS-.oS): Likewise.
11291 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11292 is enabled.
11293 (tests-special): Add $(objpfx)check-cet.out.
11294 (cet-built-dso): New.
11295 (+$(cet-built-dso:=.note)): Likewise.
11296 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11297 ($(objpfx)check-cet.out): New.
11298 (generated): Add check-cet.out.
11299 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11300 <cet-tunables.h>.
11301 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11302 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11303 (init_cpu_features): Call get_cet_status to check CET status
11304 and update dl_x86_feature_1 with CET status. Call
11305 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11306 (set_x86_shstk). Disable and lock CET in libc.a.
11307 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11308 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11309 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11310 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11311 (_CET_ENDBR): Define if not defined.
11312 (ENTRY): Add _CET_ENDBR.
11313 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11314 x86_shstk.
11315 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11316 _CET_ENDBR.
11317 (_dl_runtime_profile): Likewise.
11318
52b2a80f
RA
113192018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11320
11321 [BZ #21895]
11322 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11323 restore r2 on longjmp.
11324 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11325 test list.
11326 Added rules to build test tst-setjmp-bug21895-static.
11327 Added module setjmp-bug21895 and rules to build a shared object from it.
11328 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11329 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11330
3ae725df
WD
113312018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11332
11333 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11334 * benchtests/bench-strstr.c: Likewise.
11335 * string/memmem.c (FASTSEARCH): Define.
11336 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11337 Add support for FASTSEARCH.
11338 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11339 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11340 (FASTSEARCH): Define.
11341 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11342 * string/test-strstr.c: Likewise.
11343
31e422ca
L
113442018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11345
11346 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11347 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11348
faaee1f0
L
113492018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11350 H.J. Lu <hongjiu.lu@intel.com>
11351
11352 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11353 (__longjmp): Restore shadow stack pointer if shadow stack is
11354 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11355 isn't defined for __longjmp_cancel.
11356 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11357 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11358 and SHADOW_STACK_POINTER_OFFSET is defined.
11359 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11360 (setjmp): Save shadow stack pointer if shadow stack is enabled
11361 and SHADOW_STACK_POINTER_OFFSET is defined.
11362 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11363 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11364 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11365 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11366 <jmp_buf-ssp.h>.
11367 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11368 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11369 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11370 Remove jmp_buf-ssp.sym.
11371 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11372 <jmp_buf-ssp.h>.
11373 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11374 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11375 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11376 jmp_buf-ssp.sym.
11377 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11378 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11379 (__longjmp): Restore shadow stack pointer if shadow stack is
11380 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11381 isn't defined for __longjmp_cancel.
11382 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11383 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11384 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11385
ebff9c5c
L
113862018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11387
11388 [BZ #22563]
11389 * nptl/pthread_create.c: Include <tls-setup.h>.
11390 (__pthread_create_2_1): Call tls_setup_tcbhead.
11391 * sysdeps/generic/tls-setup.h: New file.
11392 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11393 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11394 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11395 Likewise.
11396 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11397 to feature_1.
11398 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11399 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11400 (X86_FEATURE_1_SHSTK): Likewise.
11401 (CET_ENABLED): Likewise.
11402 (IBT_ENABLED): Likewise.
11403 (SHSTK_ENABLED): Likewise.
11404
0a83bad2
RL
114052018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11406
11407 [BZ #23208]
11408 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11409 (LOCALES): Likewise.
11410 * localedata/dsb_DE.UTF-8.in: New file.
11411 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11412
046bfed9
FW
114132018-07-12 Florian Weimer <fweimer@redhat.com>
11414
11415 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11416 __mprotect, not mprotect.
11417
93304f5f
FW
114182018-07-11 Florian Weimer <fweimer@redhat.com>
11419
11420 * io/Makefile (headers): Add bits/statx.h.
11421
4beefeeb
MF
114222018-07-10 Mike FABIAN <mfabian@redhat.com>
11423
11424 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11425 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11426 and headers.
11427 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11428 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11429 for utf8_gen.py
11430
fd70af45
FW
114312018-07-10 Florian Weimer <fweimer@redhat.com>
11432
11433 * io/Makefile (routines): Add statx.
11434 (tests-internal): Add tst-statx.
11435 * io/Versions (GLIBC_2.28): Export statx.
11436 * io/bits/statx.h: New file.
11437 * io/sys/stat.h [__USE_GNU]: Include it.
11438 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11439 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11440 Define.
11441 * io/statx.c: New file.
11442 * io/statx_generic.: Likewise.
11443 * io/tst-statx.: Likewise.
11444 * include/bits/statx.h: Likewise.
11445 * sysdeps/unix/sysv/linux/kernel-features.h
11446 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11447 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11448 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11449 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11450 Undefine.
11451 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11452 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11453 * sysdeps/unix/sysv/linux/statx.c: New file.
11454 * manual/filesys.texi: Note that statx is undocumented.
11455 * sysdeps/**/libc*.abilist: Update.
11456
b444e8f7
AZ
114572018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11458
11459 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11460 a kernel issue which lead to test failure in some cases.
11461
7b2f4ced
FW
114622018-07-10 Florian Weimer <fweimer@redhat.com>
11463
11464 [BZ #23036]
11465 * posix/regexec.c (check_node_accept_bytes): When comparing
11466 weights, do not compare an extra byte after the end of the
11467 weights.
11468
4fa34da6
FW
114692018-07-10 Florian Weimer <fweimer@redhat.com>
11470
11471 * libio/readline.c: Fix copyright year.
11472 * libio/tst-readline.c Likewise.
11473 * nss/tst-nss-files-hosts-getent.c: Likewise.
11474
916124ed
FW
114752018-07-06 Florian Weimer <fweimer@redhat.com>
11476
11477 [BZ #18991]
11478 * nss/nss_files/files-XXX.c (internal_getent): Use
11479 __libc_readline_unlocked. Seek back to the start of the line if
11480 parsing failes with ERANGE.
11481 (get_contents_ret, get_contents): Remove.
11482 * nss/tst-nss-files-hosts-getent.c: New file.
11483 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11484 (tst-nss-files-hosts-getent): Link with -ldl.
11485
3f5e3f5d
FW
114862018-07-06 Florian Weimer <fweimer@redhat.com>
11487
11488 * include/stdio.h (__libc_readline_unlocked): Declare.
11489 (__ftello64, __fseeko64): Declare aliases.
11490 * libio/readline.c: New file.
11491 * libio/tst-readline.c: Likewise.
11492 (routines): Add readline.
11493 (tests-internal): Add tst-readlime.
11494 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11495 __libc_readline_unlocked.
11496 * libio/fseeko.c (__fseeko): Rename from fseeko.
11497 (fseeko): Add alias.
11498 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11499 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11500 (fseeko64): Add alias.
11501 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11502 * libio/ftello64.c (__ftello64): Rename from ftello64.
11503 (ftello64): Add alias.
11504
397c54c1
SN
115052018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11506
11507 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11508 HWCAP_ATOMICS.
11509
d0cd7980
SN
115102018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11511
11512 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11513 Use dl_hwcap without masking.
11514 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11515 Remove HWCAP_CPUID.
11516
ddb3c626
FW
115172018-07-06 Florian Weimer <fweimer@redhat.com>
11518
11519 * conform/conformtest.pl (checknamespace): Escape literal braces
11520 in regular expressions.
11521
bce5911b
AP
115222018-07-06 Amit Pawar <amit.pawar@amd.com>
11523
11524 * sysdeps/x86/cpu-features.c (get_common_indeces):
11525 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11526 * sysdeps/x86/cpu-features.c (init_cpu_features):
11527 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11528
3a885c1f
FW
115292018-07-05 Florian Weimer <fweimer@redhat.com>
11530
11531 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11532 protector.
11533 (CFLAGS-elf-init.oS): Likewise.
11534
38cade0c
FW
115352018-07-05 Florian Weimer <fweimer@redhat.com>
11536 Carlos O'Donell <carlos@redhat.com>
11537
11538 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11539 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11540 with stack protector enabled because there is no risk of infinite
11541 recursion.
11542
9449a295
MR
115432018-07-05 Maciej W. Rozycki <macro@mips.com>
11544
11545 [BZ #19818]
11546 [BZ #23307]
11547 * libc-abis (ABSOLUTE): New ABI.
11548 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11549 * NEWS: Mention the new ABI.
11550
d6da5cb6
FW
115512018-07-05 Florian Weimer <fweimer@redhat.com>
11552
11553 [BZ # 17662]
11554 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11555 (RENAME_WHITEOUT): Define.
11556 [__USE_GNU] (renameat2): Declare.
11557 * stdio-common/Makefile (routines): Add renameat2.
11558 (tests): Add tst-renameat2.
11559 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11560 * stdio-common/renameat2.c: New file.
11561 * stdio-common/tst-renameat2.c: Likewise.
11562 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11563 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11564 undocumented.
11565 * sysdeps/unix/sysv/linux/kernel-features.h
11566 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11567 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11568 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11569 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11570 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11571 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11572 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11573 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11574 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11575 * include/stdio.h (__renameat): Add alias for renameat.
11576 * stdio-common/renameat.c (__renameat): Rename from renameat.
11577 Add hidden definition and alias.
11578 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11579 * sysdeps/mach/hurd/renameat.c: Likewise.
11580 * sysdeps/**/libc*.abilist: Add renameat2.
11581
1002d708
AZ
115822018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11583
11584 * posix/bug-regex33.c: Fix build after regex sync.
11585
34fdb893
CD
115862018-07-04 Carlos O'Donell <carlos@redhat.com>
11587
11588 [BZ #23164]
11589 * localedata/tst-langinfo-setlocale.c: New file.
11590 * localedata/tst-langinfo-setlocale-static.c: New file.
11591 * localedata/tst-langinfo-newlocale.c: New file.
11592 * localedata/tst-langinfo-newlocale-static.c: New file.
11593 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11594 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11595 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11596 (tests-static): Remove tst-langinfo-static. Add
11597 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11598 (tests-special): Remove $(objpfx)tst-langinfo.out,
11599 $(objpfx)tst-langinfo-static.out. Add
11600 $(objpfx)tst-langinfo-setlocale.out,
11601 $(objpfx)tst-langinfo-newlocale.out,
11602 $(objpfx)tst-langinfo-setlocale-static.out,
11603 $(objpfx)tst-langinfo-newlocale-static.out.
11604 ($(objpfx)tst-langinfo.out): Remove.
11605 ($(objpfx)tst-langinfo-static.out): Remove.
11606 ($(objpfx)tst-langinfo-newlocale.out): New target.
11607 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11608 (test-xfail-tst-langinfo-newlocale-static): Add.
11609 ($(objpfx)tst-langinfo-setlocale.out): New target.
11610 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11611 * localedata/tst-langinfo.c: Call test_locale.
11612 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11613 data.
11614
f2873d2d
FW
116152018-07-04 Florian Weimer <fweimer@redhat.com>
11616
11617 testrun.sh: Implement --tool=strace, --tool=valgrind
11618 * Makefile (testrun-script): Define variable.
11619 (testrun.sh): Use variable.
11620 * manual/install.texi (Tools for Compilation): make 4.0 or later
11621 is required.
11622 * configure.ac: Check for make 4.0 or later.
11623 * INSTALL: Regenerate.
11624 * configure: Likewise.
11625
eb04c213
AZ
116262018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11627
11628 [BZ #23233]
11629 [BZ #21163]
11630 [BZ #18986]
11631 [BZ #13762]
11632 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11633 * posix/PCRE.tests: Remove invalid test.
11634 * posix/bug-regex28.c: Fix expected values for used syntax.
11635 * posix/bug-regex37.c: New file.
11636 * posix/bug-regex38.c: Likewise.
11637 * posix/regcomp.c: Sync with gnulib.
11638 * posix/regex.c: Likewise.
11639 * posix/regex.h: Likewise.
11640 * posix/regex_internal.c: Likewise.
11641 * posix/regex_internal.h: Likewise.
11642 * posix/regexec.c: Likewise.
11643
b11643c2
MF
116442018-06-26 Mike FABIAN <mfabian@redhat.com>
11645
11646 [BZ #23308]
11647 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11648 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11649 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11650 * localedata/unicode-gen/PropList.txt: likewise.
11651 * localedata/unicode-gen/UnicodeData.txt: likewise.
11652 * localedata/charmaps/UTF-8: Regenerate.
11653 * localedata/locales/i18n_ctype: likewise.
11654 * localedata/locales/tr_TR: likewise.
11655 * localedata/locales/translit_circle: likewise.
11656 * localedata/locales/translit_cjk_compat: likewise.
11657 * localedata/locales/translit_combining: likewise.
11658 * localedata/locales/translit_compat: likewise.
11659 * localedata/locales/translit_font: likewise.
11660 * localedata/locales/translit_fraction: likewise.
11661
5a357506
FW
116622018-07-03 Florian Weimer <fweimer@redhat.com>
11663
11664 [BZ #23363]
11665 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11666 * stdio-common/tst-printf.sh: Adjust expected output.
11667 * LICENSES: Update.
11668
7279af00
AZ
116692018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11670
11671 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11672 symbol.
11673
b7b88cea
GG
116742018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11675
11676 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11677 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11678 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11679 * stdio-common/tst-printfsz-islongdouble.c: New file.
11680 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11681 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11682 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11683 [subdir == stdio-common] (tests-internal): Add
11684 test-printf-size-ieee128, and test-printf-size-ibm128.
11685 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11686 (CFLAGS-test-printf-size-ibm128.c): New variables.
11687 [subdir == stdio-common] (tests-special): Add
11688 $(objpfx)test-printf-size-ieee128.out and
11689 $(objpfx)test-printf-size-ibm128.out.
11690 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11691 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11692 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11693 __printf_sizeieee128.
11694 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11695 New file.
11696 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11697 Likewise.
11698 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11699 Likewise.
11700
2b445206
SN
117012018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11702
11703 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11704 (exp2f_inline): Likewise.
11705 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11706 (__math_uflowf): Likewise.
11707 (__math_may_uflowf): Likewise.
11708 (__math_divzerof): Likewise.
11709 (__math_invalidf): Likewise.
11710 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11711 (__math_oflowf): Likewise.
11712 (__math_uflowf): Likewise.
11713 (__math_may_uflowf): Likewise.
11714 (__math_divzerof): Likewise.
11715 (__math_invalidf): Likewise.
11716
2827ab99
CD
117172018-06-29 DJ Delorie <dj@redhat.com>
11718 Carlos O'Donell <carlos@redhat.com>
11719
11720 [BZ #23329]
11721 * include/libc-symbols.h: Comment the freeres framework.
11722 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11723 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11724 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11725 * dlfcn/dlerror.c: Include libc-symbols.h
11726 (__dlerror_main_freeres): New function.
11727 * dlfcn/dlfreeres.c: New file.
11728 * dlfcn/sdlfreeres.c: New file.
11729 * include/dlfcn.h: Declare __dlerror_main_freeres.
11730 * malloc/set-freeres.c: Declare __libdl_freeres, and
11731 __libpthread_freeres.
11732 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11733 the releavant libraries are loaded.
11734 * malloc/thread-freeres.c: Add comments.
11735 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11736 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11737 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11738 (__free_stacks): Rename to...
11739 (free_stacks): ...this. Mark static.
11740 (queue_stack): Call free_stacks.
11741 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11742 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11743 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11744 ptr_freeres element from struct.
11745 (pthread_functions): Remove .ptr_freeres from struct initializer.
11746 [SHARED] (nptl_freeres): Remove.
11747 * nptl/nptlfreeres.c: New file.
11748 * nptl/pthreadP.h
11749 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11750 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11751 attribute_hidden.
11752 (__free_stacks): Rename to...
11753 (__nptl_stacks_freeres): ...this.
11754 (__shm_directory_freeres): Declare.
11755 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11756 (__nptl_unwind_freeres): ...this.
11757 * resolv/res-close.c: Add comment.
11758 * resolv/resolv_conf.c: Include libc-symbols.h.
11759 * string/strerror_l.c: Include libc-symbols.h.
11760 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11761 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11762 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11763 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11764
37d3d244
RS
117652018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11766
11767 * stdlib/tst-strfmon_l.c: Add tests for long double.
11768
a1e0c5fa
MW
117692018-06-29 Michael Wolf <milupo@sorbzilla.de>
11770
11771 [BZ #23208]
11772 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11773 * localedata/locales/dsb_DE: New file.
11774
2e0c5de6
RL
117752018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11776
11777 [BZ #23140]
11778 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11779 genitive case).
11780 (alt_mon): New entry, import from CLDR (nominative case).
11781
cdb52c71
SL
117822018-06-29 Sylvain Lesage <severo@rednegra.net>
11783
11784 [BZ #22996]
11785 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11786
ce76a5cb
SP
117872018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11788
0aec4c1d
SP
11789 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11790 Use vector registers.
11791
ce76a5cb
SP
11792 * sysdeps/aarch64/multiarch/memmove_falkor.S
11793 (__memcpy_falkor): Use vector registers.
11794
7e8989d0
MS
117952018-06-29 Martin Sebor <msebor@redhat.com>
11796
11797 * manual/stdio.texi (Customizing Printf): Mention interaction
11798 with GCC built-ins.
11799
bac15a72
MR
118002018-06-29 Maciej W. Rozycki <macro@mips.com>
11801
11802 [BZ #23307]
11803 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11804 `st_value' is 0 if `st_shndx' is SHN_ABS.
11805 * elf/tst-absolute-zero.c: New file.
11806 * elf/tst-absolute-zero-lib.c: New file.
11807 * elf/tst-absolute-zero-lib.lds: New file.
11808 * elf/Makefile (tests): Add `tst-absolute-zero'.
11809 (modules-names): Add `tst-absolute-zero-lib'.
11810 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11811 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11812 ($(objpfx)tst-absolute-zero: New dependency.
11813
e69d994a
ZW
118142018-06-29 Zack Weinberg <zackw@panix.com>
11815
11816 * configure.ac: New command-line option --disable-crypt.
11817 Force --disable-nss-crypt when --disable-crypt is given, with a
11818 warning if it was explicitly enabled.
11819 * configure: Regenerate.
11820 * config.make.in: New boolean substitution variable $(build-crypt).
11821 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11822 when $(build-crypt).
11823 * manual/install.texi: Document --disable-crypt.
11824 * INSTALL: Regenerate.
11825
11826 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11827 which is never set.
11828 * conform/Makefile: Only include libcrypt.a in
11829 linknamespace-libs-xsi and linknamespace-libs-XPG4
11830 when $(build-crypt).
11831 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11832 USE_CRYPT to 1 when $(build-crypt).
11833 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11834 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11835 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11836
841785ba
ZW
118372018-06-29 Zack Weinberg <zackw@panix.com>
11838
11839 * crypt/crypt.h, posix/unistd.h: Update comments and
11840 prototypes for crypt and crypt_r.
11841
11842 * manual/crypt.texi (Cryptographic Functions): New initial
11843 exposition.
11844 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11845 (Unpredictable Bytes): Improve initial exposition. Clarify error
11846 behavior of getentropy and getrandom.
11847 * manual/examples/genpass.c: Generate a salt using getentropy
11848 instead of the current time. Use hash $5$ (SHA-2-256).
11849 * manual/examples/testpass.c: Demonstrate validation against
11850 hashes generated with three different one-way functions.
11851
11852 * manual/intro.texi: crypt.texi does not need an overview
11853 anymore.
11854
11855 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11856 * manual/terminal.texi: Consistently refer to "passphrases"
11857 * instead of "passwords", and to the "user database" instead
11858 * of the "password database".
11859 * manual/users.texi: Similarly. Add notes about how actual
11860 passphrase hashes are now stored in the shadow database.
11861 Remove 20-year-old junk todo note.
11862
6ab902e4
ZW
118632018-06-29 Zack Weinberg <zackw@panix.com>
11864
11865 * manual/crypt.texi: Use a normal top-level @node declaration.
11866 Move most of the introductory text to the 'crypt' section.
11867 Move the example programs below the @deftypefun for 'crypt_r'.
11868 Move the 'getpass' section...
11869 * manual/terminal.texi: ...here.
11870
b10a0acc
ZW
118712018-06-29 Zack Weinberg <zackw@panix.com>
11872 Florian Weimer <fweimer@redhat.com>
11873
11874 * posix/unistd.h: Do not declare encrypt.
11875 (_XOPEN_CRYPT): Remove macro definition.
11876 (crypt): Declare only for _USE_MISC.
11877 * stdlib/stdlib.h: Do not declare setkey.
11878 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11879 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11880
11881 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11882 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11883 into compat symbols. Don't define initial_perm if it's not
11884 going to be used.
11885 * crypt/cert.c: Link explicitly with the expected versions for
11886 setkey and encrypt. If they are not available at all, mark
11887 the test as unsupported.
11888
11889 * sunrpc/des_crypt.c: Unconditionally block linkage with
11890 cbc_crypt and ecb_crypt for new binaries.
11891 * sunrpc/des_soft.c: Unconditionally block linkage with
11892 des_setparity for new binaries.
11893
11894 * manual/crypt.texi: Remove the entire "DES Encryption"
11895 section. Also remove the paragraph talking about FIPS 140-2
11896 from the introduction.
11897 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11898 of libgcrypt for "real" encryption, not DES.
11899 * manual/conf.texi (Constants for Sysconf): Mention that
11900 _XOPEN_CRYPT is no longer impelemented.
11901
11902 * conform/data/unistd.h-data: Remove crypt function declaration.
11903
524d796d
FW
119042018-06-29 Florian Weimer <fweimer@redhat.com>
11905
11906 [BZ #23351]
11907 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11908 (disallow_malloc_check): Remove variable.
11909 (__malloc_check_init): Adjust.
11910 (malloc_set_state): Update comment.
11911 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11912 declarations.
11913
339124ab
RL
119142018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11915
11916 [BZ #23140]
11917 * localedata/locales/ast_ES (mon): Rename to...
11918 (alt_mon): This.
11919 (mon): Import from CLDR (genitive case).
11920
c1f86a33
DA
119212018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11922 Jakub Sitnicki <jkbs@redhat.com>
11923
11924 [BZ #21812]
11925 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11926 on NLM_F_DUMP_INTR.
11927
0b11b649
SN
119282018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11929
11930 * manual/llio.texi: Remove spurious space.
11931
c1c2848b
FW
119322018-06-28 Florian Weimer <fweimer@redhat.com>
11933
11934 [BZ #23349]
11935 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11936 _STRUCT_TIMESPEC.
11937
86a0f561
RS
119382018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11939
11940 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6b5c8607 11941 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
86a0f561
RS
11942 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
11943 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
11944 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
11945 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
11946 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
11947
780684eb
MR
119482018-06-27 Maciej W. Rozycki <macro@mips.com>
11949
11950 [BZ #23266]
11951 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
11952 Copy and null-terminate entries that are not terminated, in
11953 addition to empty ones.
11954
c49e1822
FW
119552018-06-27 Florian Weimer <fweimer@redhat.com>
11956
11957 [BZ #18023]
b39d961c
TS
11958 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
11959 (extend_alloca_account): Remove.
c49e1822
FW
11960 * manual/stdio.texi (Variable Arguments Output): Update comment.
11961
a833e627
JM
119622018-06-27 Joseph Myers <joseph@codesourcery.com>
11963
11964 * nptl/sockperf.c: Remove file.
11965
92d6aa85
FW
119662018-06-27 Florian Weimer <fweimer@redhat.com>
11967
11968 [BZ #18023]
11969 * elf/dl-deps.c (_dl_map_object_deps): Use struct
11970 scratch_buffer instead of extend_alloca.
11971
890c2ced
FW
119722018-06-27 Florian Weimer <fweimer@redhat.com>
11973
11974 [BZ #18023]
11975 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
11976 scratch_buffer instead of extend_alloca. Update comments.
11977
4272059d
FW
119782018-06-27 Florian Weimer <fweimer@redhat.com>
11979
11980 [BZ #18023]
11981 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
11982 instead of extend_alloca.
11983
27f10a09
JM
119842018-06-26 Joseph Myers <joseph@codesourcery.com>
11985
11986 [BZ #13888]
11987 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
11988 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
11989 /tmp.
11990 * scripts/test-installation.pl: Put temporary files in build
11991 directory, not /tmp.
11992 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
11993 (CFLAGS-bug4.c): Likewise.
11994 (CFLAGS-bug5.c): Likewise.
11995 (CFLAGS-test-fseek.c): Likewise.
11996 (CFLAGS-test-popen.c): Likewise.
11997 (CFLAGS-test_rdwr.c): Likewise.
11998 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
11999 /tmp.
12000 * stdio-common/bug4.c (main): Likewise.
12001 * stdio-common/bug5.c (main): Likewise.
12002 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12003 * stdio-common/test-popen.c (do_test): Likewise.
12004 * stdio-common/test_rdwr.c (main): Likewise.
12005
05598a09
PF
120062018-06-26 Patsy Franklin <pfrankli@redhat.com>
12007
12008 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12009 (sem_open): Set sem.newsem.pad to zero for valgrind.
12010
06ab719d
AZ
120112018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12012
12013 [BZ #20251]
12014 * NEWS: Mention fcntl64 addition.
12015 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12016 * login/utmp_file.c: Likewise.
12017 * sysdeps/posix/fdopendir.c: Likewise.
12018 * sysdeps/posix/opendir.c: Likewise.
12019 * sysdeps/unix/pt-fcntl.c: Likewise.
12020 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12021 __fcntl64_nocancel_adjusted): New prototype.
12022 (__fcntl_nocancel_adjusted): Remove prototype.
12023 * io/Makefile (routines): Add fcntl64.
12024 (CFLAGS-fcntl64.c): New rule.
12025 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12026 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12027 * io/fcntl.h (fcntl64): Add prototype and redirect if
12028 __USE_FILE_OFFSET64 is defined.
12029 * io/fcntl64.c: New file.
12030 * manual/llio.text: Add a note for which commands fcntl acts a
12031 cancellation point.
12032 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12033 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12034 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12035 New symbols.
12036 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12037 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12038 non-LFS case.
12039 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12040 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12041 to __fcntl64_nocancel.
12042 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12043 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12044 to __fcntl64_nocancel.
12045 * sysdeps/generic/not-cancel.h: Likewise.
12046 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12047 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12048 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12049 (fcntl64): New symbol.
12050 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12061 fcntl64): Likewise.
12062 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12063 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12064 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12065 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12066 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12072 Likewise.
12073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12074 Likewise.
12075 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12078
124e0258
FW
120792018-06-26 Florian Weimer <fweimer@redhat.com>
12080
12081 Run thread shutdown functions in an explicit order.
12082 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12083 definition.
12084 (__libc_thread_freeres): Call thread shutdown functions
12085 explicitly.
12086 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12087 * include/string.h (__strerror_thread_freeres): Declare.
12088 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12089 arena_thread_freeres. No longer static. Remove thread shutdown
12090 hook registration.
12091 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12092 Declare.
12093 * resolv/res-close.c (__res_thread_freeres): Renamed from
12094 res_thread_freeres. No longer static. Remove thread shutdown
12095 hook registration.
12096 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12097 * resolv/resolv_conf.c (freeres): Remove incorrect section
12098 attribute and use libc_freeres_fn.
12099 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12100 strerror_thread_freeres. No longer static. Remove thread
12101 shutdown hook registration.
12102 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12103 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12104 shutdown hook registration.
12105 * Makerules (shlib.lds): Do not provide section boundary symbols
12106 for __libc_thread_subfreeres.
12107 * manual/memory.texi (Basic Allocation): Update comment.
12108
935d920e
FW
121092018-06-26 Florian Weimer <fweimer@redhat.com>
12110
12111 Remove always-defined _RPC_THREAD_SAFE_ macro.
12112 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12113 Do not define _RPC_THREAD_SAFE_.
12114 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12115 conditional.
12116 * sunrpc/clnt_perr.c: Likewise.
12117 * sunrpc/clnt_raw.c: Likewise.
12118 * sunrpc/clnt_simp.c: Likewise.
12119 * sunrpc/key_call.c: Likewise.
12120 * sunrpc/rpc_common.c: Likewise.
12121 * sunrpc/rpc_main.c: Likewise.
12122 * sunrpc/rpc_thread.c: Likewise.
12123 * sunrpc/svc.c: Likewise.
12124 * sunrpc/svc_raw.c: Likewise.
12125 * sunrpc/svc_simple.c: Likewise.
12126 * sumrpc/svcauth_des.c: Likewise.
12127
29055464
FW
121282018-06-26 Florian Weimer <fweimer@redhat.com>
12129
12130 * libio/Makefile (tests-internal): Add tst-vtables,
12131 tst-vtables-interposed.
12132 * libio/tst-vtables.c: New file.
12133 * libio/tst-vtables-common.c: Likewise.
12134 * libio/tst-vtables-interposed.c: Likewise.
12135
5c0202af
FW
121362018-06-26 Florian Weimer <fweimer@redhat.com>
12137
12138 * support/support_test_main.c (support_test_main): Only call
12139 setvbuf if not disables.
12140 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12141 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12142
c402355d
FW
121432018-06-26 Florian Weimer <fweimer@redhat.com>
12144
12145 [BZ #23313]
12146 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12147
43b1048a
FW
121482018-06-25 Florian Weimer <fweimer@redhat.com>
12149
12150 [BZ #18023]
12151 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12152 Use struct scratch_buffer instead of extend_alloca.
12153
1599ed4e
FW
121542018-06-25 Florian Weimer <fweimer@redhat.com>
12155
12156 [BZ #18023]
12157 * nss/getent.c (initgroups_keys): Use dynarray instead of
12158 extend_alloca.
12159
a26fe163
FW
121602018-06-25 Florian Weimer <fweimer@redhat.com>
12161
12162 [BZ #18023]
12163 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12164 Use struct scratch_buffer instead of extend_alloca.
12165
90d9d9ce
FW
121662018-06-25 Florian Weimer <fweimer@redhat.com>
12167
12168 [BZ #18023]
12169 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12170 back to malloc directly, without stack allocations.
12171
6b7b2aba
FW
121722018-06-25 Florian Weimer <fweimer@redhat.com>
12173
12174 [BZ #18023]
12175 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12176 of extend_alloca.
12177
2f9f0d18
FW
121782018-06-25 Florian Weimer <fweimer@redhat.com>
12179
12180 [BZ #18023]
12181 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12182 of extend_alloca.
12183 * nscd/hstcache.c (addhstbyX): Likewise.
12184 * nscd/pwdcache.c (addpwbyX): Likewise.
12185 * nscd/servicescache.c (addservbyX): Likewise.
12186
318bad78
FW
121872018-06-25 Florian Weimer <fweimer@redhat.com>
12188
12189 [BZ #18023]
12190 * nscd/connections.c (read_cmdline): New function.
12191 (restart): Use it. Update comment.
12192
189699ab
RL
121932018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12194
12195 [BZ #23140]
12196 * localedata/locales/csb_PL (mon): Rename to...
12197 (alt_mon): This.
12198 (abmon): Rename to...
12199 (ab_alt_mon): This.
12200 (mon): Add with proper genitive forms, copy from Wikipedia.
12201 (abmon): Likewise.
12202
0ea3f13c
RL
122032018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12204
12205 [BZ #19485]
12206 * localedata/locales/csb_PL (mon): Fix typos:
12207 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12208 (yesstr): Add, value is "jo".
12209 (nostr): Add, value is "nié".
12210
d93f4ff1
TMQMF
122112018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12212
12213 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12214 all log1p and significand functions on m680x0.
12215 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12216 of s_significand.c..
12217 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12218 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12219 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12220 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12221 s_log1p.c and include it..
12222
f6299d2a
VC
122232018-06-21 Vincent Chen <vincentc@andestech.com>
12224
12225 * elf/elf.h (R_NDS32_NONE): New define.
12226 (R_NDS32_32_RELA): Likewise.
12227 (R_NDS32_COPY): Likewise.
12228 (R_NDS32_GLOB_DAT): Likewise.
12229 (R_NDS32_JUMP_SLOT): Likewise.
12230 (R_NDS32_RELATIVE): Likewise.
12231 (R_NDS32_TLS_TPOFF): Likewise.
12232 (R_NDS32_TLS_DESC): Likewise.
12233
61ab61c2
MW
122342018-06-21 Mark Wielaard <mark@klomp.org>
12235
12236 * elf/elf.h (R_BPF_MAP_FD): Removed.
12237 (R_BPF_64_64, R_BPF_64_32): New.
12238
f496b28e
FW
122392018-06-21 Florian Weimer <fweimer@redhat.com>
12240
12241 [BZ #23253]
12242 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12243 Renamed from libc_feholdsetround_ctx.
12244 (default_libc_feresetround_ctx): Renamed from
12245 libc_feresetround_ctx.
12246 (default_libc_feholdsetround_noex_ctx): Renamed from
12247 libc_feholdsetround_noex_ctx.
12248 (default_libc_feresetround_noex_ctx): Renamed from
12249 libc_feresetround_noex_ctx.
12250 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12251 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12252 forwardning to the old implementations under the new names.
12253 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12254 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12255 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12256 (libc_feresetround_ctx): Forward to default implements for i386
12257 and MATH_SET_BOTH_ROUNDING_MODES.
12258 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12259 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12260
1760daad
JM
122612018-06-20 Joseph Myers <joseph@codesourcery.com>
12262
99c7adf9
JM
12263 * string/tst-cmp.c: Include <libc-diag.h>.
12264 (strncmp_max): Disable -Wstringop-overflow= around call to
12265 strncmp.
12266 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12267 strncasecmp.
12268
1760daad
JM
12269 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12270 (main): Disable -Wunused-value around call to strpbrk.
12271 * string/bug-strspn1.c: Include <libc-diag.h>.
12272 (main): Disable -Wunused-value around call to strspn.
12273
209ae17c
TMQMF
122742018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12275 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12276
12277 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12278 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12279
badba23c
TMQMF
122802018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12281
5e79e029
TMQMF
12282 * math/Makefile (libm-calls): Move s_significandF to...
12283 (gen-libm-calls): ... here.
12284 * math/s_significand_template.c: New file.
12285 * math/s_significand.c: Removed.
12286 * math/s_significandf.c: Removed.
12287 * math/s_significandl.c: Removed.
12288 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12289 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12290
badba23c
TMQMF
12291 * math/e_exp2_template.c (declare_mgen_finite_alias,
12292 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12293 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12294 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12295
2d1c89a5
FW
122962018-06-20 Florian Weimer <fweimer@redhat.com>
12297
12298 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12299
646c2833
JM
123002018-06-19 Joseph Myers <joseph@codesourcery.com>
12301
12302 [BZ #23280]
12303 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12304 floating-point number to strtod functions rather than possibly
12305 negating result of those functions.
12306 * stdio-common/tst-scanf-round.c: New file.
12307 * stdio-common/Makefile (tests): Add tst-scanf-round.
12308 ($(objpfx)tst-scanf-round): Depend on $(libm).
12309
c77e4dc0
ST
123102018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12311
12312 * sysdeps/mach/hurd/localplt.data: Move to...
12313 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12314 R_386_GLOB_DAT like on Linux i386.
12315
91b2f3e5
JM
123162018-06-18 Joseph Myers <joseph@codesourcery.com>
12317
f2857da7
JM
12318 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12319 (SHM_STAT_ANY): New macro.
12320 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12321 (SHM_STAT_ANY): Likewise.
12322 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12323 (SHM_STAT_ANY): Likewise.
12324 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12325 (SHM_STAT_ANY): Likewise.
12326 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12327 (SHM_STAT_ANY): Likewise.
12328 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12329 (SHM_STAT_ANY): Likewise.
12330 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12331 (SHM_STAT_ANY): Likewise.
12332 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12333 (SHM_STAT_ANY): Likewise.
12334 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12335 (SHM_STAT_ANY): Likewise.
12336 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12337 (SHM_STAT_ANY): Likewise.
12338 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12339 (SHM_STAT_ANY): Likewise.
12340 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12341 (SHM_STAT_ANY): Likewise.
12342
176c7fee
JM
12343 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12344 (SEM_STAT_ANY): New macro.
12345 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12346 (SEM_STAT_ANY): Likewise.
12347 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12348 (SEM_STAT_ANY): Likewise.
12349 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12350 (SEM_STAT_ANY): Likewise.
12351 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12352 (SEM_STAT_ANY): Likewise.
12353 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12354 (SEM_STAT_ANY): Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12356 (SEM_STAT_ANY): Likewise.
12357 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12358 (SEM_STAT_ANY): Likewise.
12359 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12360 (SEM_STAT_ANY): Likewise.
12361 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12362 (SEM_STAT_ANY): Likewise.
12363
86bf0019
JM
12364 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12365 (MSG_STAT_ANY): New macro.
12366 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12367 (MSG_STAT_ANY): Likewise.
12368 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12369 (MSG_STAT_ANY): Likewise.
12370 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12371 (MSG_STAT_ANY): Likewise.
12372 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12373 (MSG_STAT_ANY): Likewise.
12374 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12375 (MSG_STAT_ANY): Likewise.
12376 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12377 (MSG_STAT_ANY): Likewise.
12378 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12379 (MSG_STAT_ANY): Likewise.
12380 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12381 (MSG_STAT_ANY): Likewise.
12382 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12383 (MSG_STAT_ANY): Likewise.
12384
91b2f3e5
JM
12385 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12386 (MAP_TYPE): Change value to 0x2b.
12387
3fe8fc79
FW
123882018-06-18 Florian Weimer <fweimer@redhat.com>
12389
12390 [BZ #15722]
12391 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12392 socket with SOCK_CLOEXEC.
12393
809dc95d
JM
123942018-06-18 Joseph Myers <joseph@codesourcery.com>
12395
12396 [BZ #23303]
12397 * sysdeps/powerpc/powerpc64/le/Makefile
12398 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12399 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12400 (gnulib-tests): Also add $(f128-loader-link) for
12401 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12402
298a8b59
ST
124032018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12404
12405 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12406 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12407 of sendfile.
12408 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12409 (sendfile64): New strong alias.
faf7bbc2
ST
12410 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12411 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12412 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
f96a85e0
ST
12413 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12414 attribute.
12415 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12416 ___pthread_get_cleanup_stack.
932d05f0 12417 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
c1b7586c
ST
12418 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12419 * mach/shortcut.awk: Make syscall stubs include
12420 <mach-shortcuts-hidden.h> and add hidden definition.
12421 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7a646a93
ST
12422 (__mach_msg): Add hidden prototype.
12423 * mach/msg.c: Include <mach.h>.
12424 (__mach_msg): Add hidden definition.
b0344cf5
ST
12425 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12426 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12427 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12428 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
8c9d5342
ST
12429 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12430 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
4d0ac037
ST
12431 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12432 prototype and definition.
12433 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12434 hidden target for _hurd_self_sigstate.
298a8b59 12435
b12c1e79
JM
124362018-06-15 Joseph Myers <joseph@codesourcery.com>
12437
12438 [BZ #23007]
12439 * stdlib/tst-strtod-nan-sign-main.c: New file.
12440 * stdlib/tst-strtod-nan-sign.c: Likewise.
12441 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12442 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12443 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12444 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12445 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12446
b0debe14
HB
124472018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12448
12449 [BZ #23007]
12450 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12451 appropriate sign.
12452
14beef75
FW
124532018-06-14 Florian Weimer <fweimer@redhat.com>
12454
12455 [BZ #23290]
12456 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12457 that the result stays within the ISO-8859-1 range.
12458 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12459 characters are defined in IBM273.
12460
c596630b
ST
124612018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12462
12463 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12464 __mach_task_self): Remove attribute_hidden.
12465
35ebb6b0
JM
124662018-06-14 Joseph Myers <joseph@codesourcery.com>
12467
12468 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12469 ignore -Wrestrict for one test.
12470
3c7b9f1f
SE
124712018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12472 Szabolcs Nagy <szabolcs.nagy@arm.com>
12473
12474 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12475
c59ee916
FW
124762018-06-14 Florian Weimer <fweimer@redhat.com>
12477
12478 * scripts/update-abilist.sh: Accept empty list of files to patch.
12479
43b5ff50
ST
124802018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12481
12482 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12483 test-xfail-check-abi-libmachuser): Add.
c8c910ed
ST
12484 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12485 __libc_read and __libc_write to __read and __write.
c8c6e6d6 12486 * sysdeps/hurd/include/hurd/port.h: New file.
126b3ec3
ST
12487 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12488 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12489 __thread_switch, __evc_wait): Move declarations to...
12490 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12491 attribute_hidden.
06d1a826
ST
12492 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12493 use PLT to call _hurd_self_sigstate.
43b5ff50 12494
fcd6b5ac
JM
124952018-06-13 Joseph Myers <joseph@codesourcery.com>
12496
12497 [BZ #23279]
12498 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12499 MAX_EXP as overflowing.
12500 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12501 overflow flag.
12502 (round_str): Output also whether result overflows in each rounding
12503 mode.
12504 * stdlib/tst-strtod-round-data: Add more tests.
12505 * stdlib/tst-strtod-round-data.h: Regenerated.
12506 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12507 (TEST): Handle extra arguments for overflow flags.
12508 (struct test_overflow): New type.
12509 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12510 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12511 (test_in_one_mode): Take argument with overflow information.
12512 (do_test): Update calls to test_in_one_mode.
12513
35df5a77
CD
125142018-06-12 Carlos O'Donell <carlos@redhat.com>
12515
a745c837
CD
12516 * elf/dl-load (_dl_dst_substitute): Correct comment.
12517 (_dl_dst_count): Likewise.
12518
35df5a77
CD
12519 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12520 lll_futex_timed_wait.
12521
48b12ed5
JM
125222018-06-12 Joseph Myers <joseph@codesourcery.com>
12523
12524 [BZ #23277]
12525 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12526 attribute.
12527 * math/test-nan-const.c: New file.
12528 * math/Makefile (tests): Add test-nan-const.
12529 (CFLAGS-test-nan-const.c): New variable.
12530
cb8f6aff
L
125312018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12532
12533 * benchtests/scripts/compare_strings.py (process_results): Add
12534 funcs argument. Compare only functions which are selected.
12535 (main): Check if base function is among selected functions.
12536 Pass selected functions to process_results.
12537 (__main__): Add -f/--functions argument.
12538
fc2ba803
HZ
125392018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12540 Hongbo Zhang <hongbo.zhang@linaro.org>
12541
12542 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12543 __memcpy_falkor for phecda core.
12544 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12545 __memmove_falkor for phecda core.
12546 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12547 __memset_falkor for phecda core.
12548 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12549 for phecda core.
12550 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12551 macro to identify phecda core.
12552
5aad5f61
CD
125532018-06-12 Carlos O'Donell <carlos@redhat.com>
12554 Andreas Schwab <schwab@suse.de>
12555 Dmitry V. Levin <ldv@altlinux.org>
6b5c8607 12556 Florian Weimer <fweimer@redhat.com>
5aad5f61
CD
12557
12558 [BZ #23102]
12559 [BZ #21942]
12560 [BZ #18018]
12561 [BZ #23259]
12562 CVE-2011-0536
12563 * elf/dl-dst.h: Remove DL_DST_COUNT.
12564 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12565 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12566 (is_dst): Comment. Support ELF gABI.
12567 (_dl_dst_count): Comment. Simplify and count DSTs.
12568 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12569 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12570 locals.
12571
329ea513
ZW
125722018-06-12 Zack Weinberg <zackw@panix.com>
12573
12574 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12575 * sysdeps/unix/sysv/linux/dl-sysdep.c
12576 Include not-cancel.h. Use __close_nocancel instead of __close,
12577 __open64_nocancel instead of __open, __read_nocancel instead of
12578 __libc_read, and __write_nocancel instead of __libc_write.
12579
12580 * csu/check_fds.c (check_one_fd)
12581 * sysdeps/posix/fdopendir.c (__fdopendir)
12582 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
b39d961c 12583 instead of __fcntl and/or __libc_fcntl.
329ea513
ZW
12584
12585 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12586 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
b39d961c 12587 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
329ea513
ZW
12588 Use __open64_nocancel instead of __open_nocancel.
12589
12590 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12591 hidden_proto declarations to the end and issue them if either
12592 IS_IN(libc) or IS_IN(rtld).
12593 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12594 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12595 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12596 read_nocancel, waitpid_nocancel, write_nocancel.
12597
b39d961c
TS
12598 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12599 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12600 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
329ea513 12601
b39d961c
TS
12602 * nptl/pt-fcntl.c: New file.
12603 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12604 (libpthread-routines): Add pt-fcntl.
12605 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12606 (__libc_fcntl): Remove attribute_hidden.
329ea513
ZW
12607 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12608 __fcntl_nocancel_adjusted, not fcntl_common.
b39d961c 12609 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
329ea513
ZW
12610 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12611 to fcntl_nocancel.c.
12612 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12615 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12616
12617 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12618 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12619 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12620 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12621 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12622 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12623 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12624 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12625 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12626 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12627 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12628 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12629 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12630 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12631 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12632 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12633 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12634 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12635 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12636 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12637
b39d961c
TS
12638 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12639 libpthread-routines.
12640 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12641 defines nothing.
329ea513 12642
b39d961c
TS
12643 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12644 __libc_read, and __write instead of __libc_write. Define
12645 __open64 in addition to __open.
329ea513 12646
0221ce2a
L
126472018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12648
12649 [BZ #23250]
12650 [BZ #10686]
12651 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12652 to _private_tm[3] and add __glibc_reserved2.
12653 Add _Static_assert of offset of __private_ss == 0x30.
12654 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12655 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12656
e826574c
FW
126572018-06-12 Florian Weimer <fweimer@redhat.com>
12658
12659 x86: Make strncmp usable from rtld.
12660 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12661 __strncmp_ia32 if in libc (and not in rtld).
12662 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12663 strncmp if not in libc (and not to __strncmp_sse2).
12664
c4ad5782
RL
126652018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12666
12667 [BZ #23140]
12668 * localedata/locales/gd_GB (mon): Rename to...
12669 (alt_mon): This.
12670 (mon): Import from CLDR (genitive case).
12671 * localedata/locales/hsb_DE (mon): Rename to...
12672 (alt_mon): This.
12673 (mon): Import from CLDR (genitive case).
12674 * localedata/locales/wa_BE (mon): Rename to...
12675 (alt_mon): This.
12676 (mon): Add, fill with the proper genitive forms, but CLDR data
12677 is incomplete; completed according to the comments in this file.
12678 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12679
12680 * localedata/locales/wa_BE (country_name): Reword
12681 "Beljike" -> "Beldjike".
12682
ca121b11
JM
126832018-06-11 Joseph Myers <joseph@codesourcery.com>
12684
12685 [BZ #23272]
12686 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12687 cases of non-finite arguments.
12688 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12689
2b69fecb
JDA
126902018-06-10 John David Anglin <danglin@gcc.gnu.org>
12691
12692 [BZ #23174]
12693 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12694
283d9851
AZ
126952018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12696
12697 [BZ #23264]
12698 * include/unistd.h (__execvpex): New prototype.
12699 * posix/Makefile (tests): Add tst-spawn4.
12700 (tests-internal): Add tst-spawn4-compat.
12701 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12702 * posix/tst-spawn4-compat.c: New file.
12703 * posix/tst-spawn4.c: Likewise.
12704 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12705 binaries as shell scripts.
12706 * sysdeps/posix/spawni.c (__spawni): Likewise.
12707
67c05796
L
127082018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12709
12710 [BZ #23145]
12711 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12712 ($(all-built-dso:=.dynsym): New target.
12713 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12714 ($(objpfx)check-initfini.out): New target.
12715 (generated): Add check-initfini.out.
12716 * scripts/check-initfini.awk: New file.
12717 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12718 (_fini): Likewise.
12719 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12720 (_fini): Likewise.
12721 * sysdeps/arm/crti.S (_init): Mark as hidden.
12722 (_fini): Likewise.
12723 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12724 (_fini): Likewise.
12725 * sysdeps/i386/crti.S (_init): Mark as hidden.
12726 (_fini): Likewise.
12727 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12728 (_fini): Likewise.
12729 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12730 (_fini): Likewise.
12731 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12732 (_fini): Likewise.
12733 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12734 (_fini): Likewise.
12735 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12736 (_fini): Likewise.
12737 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12738 (_fini): Likewise.
12739 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12740 (_fini): Likewise.
12741 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12742 (_fini): Likewise.
12743 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12744 (_fini): Likewise.
12745 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12746 (_fini): Likewise.
12747 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12748 (_fini): Likewise.
12749 * sysdeps/sh/crti.S (_init): Mark as hidden.
12750 (_fini): Likewise.
12751 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12752 (_fini): Likewise.
12753 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12754 (_fini): Likewise.
12755
1c09524e
TMQMF
127562018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12757
12758 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12759 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12760 and TF redirection to KFtype and KF only when the default
12761 long double type is not the IEEE 128-bit floating point type.
12762
0e0577c9
JM
127632018-06-05 Joseph Myers <joseph@codesourcery.com>
12764
0c1c33b2
JM
12765 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12766 macro.
12767 (HWCAP_USCAT): Likewise.
12768 (HWCAP_ILRCPC): Likewise.
12769 (HWCAP_FLAGM): Likewise.
12770 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12771 Increase to 28.
12772 (_dl_aarch64_cap_flags): Add new flag names.
12773
bef1cbf4
JM
12774 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12775 (MAP_FIXED_NOREPLACE): New macro.
12776 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12777 (MAP_FIXED_NOREPLACE): Likewise.
12778 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12779 (MAP_FIXED_NOREPLACE): Likewise.
12780 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12781 (MAP_FIXED_NOREPLACE): Likewise.
12782 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12783 (MAP_FIXED_NOREPLACE): Likewise.
12784 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12785 (MAP_FIXED_NOREPLACE): Likewise.
12786 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12787 (MAP_FIXED_NOREPLACE): Likewise.
12788 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12789 (MAP_FIXED_NOREPLACE): Likewise.
12790 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12791 (MAP_FIXED_NOREPLACE): Likewise.
12792 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12793 (MAP_FIXED_NOREPLACE): Likewise.
12794 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12795 (MAP_FIXED_NOREPLACE): Likewise.
12796 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12797 (MAP_FIXED_NOREPLACE): Likewise.
12798 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12799 (MAP_FIXED_NOREPLACE): Likewise.
12800 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12801 (MAP_FIXED_NOREPLACE): Likewise.
12802 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12803 (MAP_FIXED_NOREPLACE): Likewise.
12804
0e0577c9
JM
12805 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12806 version to 4.17.
12807
ab3a0da0
JM
128082018-06-04 Joseph Myers <joseph@codesourcery.com>
12809
12810 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12811 version to 4.17
12812
d2d9dfb6
ST
128132018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12814
12815 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12816 int.
12817 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12818
a650b05e
LS
128192018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12820
12821 * benchtests/scripts/compare_string.py: (process_results) Catch
12822 exception in non-existent base_func and catch exception in
12823 non-existent attribute.
12824 (parse_file) Catch exception if input file does not exist.
12825
195abbf4
LS
128262018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12827
12828 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12829 options to avoid diff calculation and omit header, respectively.
12830 (main): process --no-diff and --no-header
12831
14570163
LS
128322018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12833 H.J. Lu <hongjiu.lu@intel.com>
12834
12835 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12836 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12837 wcsncmp-sse2.
12838 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12839 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12840 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12841 and __wcsncmp_sse2.
12842 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12843 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12844 AVX unaligned load is fast and vzeroupper is preferred.
12845 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12846 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12847 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12848 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12849 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12850 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12851 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12852 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12853 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12854 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12855 is undefined.
12856
e02c026f
FW
128572018-06-01 Florian Weimer <fweimer@redhat.com>
12858
12859 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12860 configuring with --disable-multi-arch, building with
12861 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12862 Haswell-era CPU.
12863
d8c19275
FW
128642018-06-01 Florian Weimer <fweimer@redhat.com>
12865
12866 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12867 results from building with “-march=x86-64 -mtune=generic
12868 -mfpmath=sse” and running on a Haswell-era CPU.
12869
0d2163eb
JM
128702018-06-01 Joseph Myers <joseph@codesourcery.com>
12871
12872 [BZ #18473]
12873 * soft-fp/sqrttf2.c: Remove file.
12874 * soft-fp/sqrtdf2.c: Move to ....
12875 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12876 <shlib-compat.h>.
12877 (__sqrtdf2): Make conditional on
12878 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12879 symbol.
12880 * soft-fp/sqrtsf2.c: Move to ....
12881 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12882 <shlib-compat.h>.
12883 (__sqrtsf2): Make conditional on
12884 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12885 symbol.
12886 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12887 (gcc-double-routines): Remove sqrtdf2.
12888 (gcc-quad-routines): Remove sqrttf2.
12889 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12890 Do not filter out sqrtsf2 and sqrtdf2.
12891 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12892 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12893
10450210
FW
128942018-06-01 Florian Weimer <fweimer@redhat.com>
12895
12896 * sysdeps/generic/libcidn.abilist: Remove file.
12897
4e8a6346
FW
128982018-06-01 Florian Weimer <fweimer@redhat.com>
12899
12900 [BZ #23236]
12901 * libio/strfile.h (struct _IO_str_fields): Rename members to
12902 discourage their use and add comment.
12903 (_IO_STR_DYNAMIC): Remove unused macro.
12904 * libio/strops.c (_IO_str_init_static_internal): Do not use
12905 callback pointers. Call malloc and free.
12906 (_IO_str_overflow): Do not use callback pointers. Call malloc
12907 and free.
12908 (enlarge_userbuf): Likewise.
12909 (_IO_str_finish): Call free.
12910 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12911 _allocate_buffer_unused.
12912 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12913 and free.
12914 (enlarge_userbuf): Likewise.
12915 (_IO_wstr_finish): Call free.
12916 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12917 _allocate_buffer_unused, _free_buffer_unused.
12918 * libio/memstream.c (__open_memstream): Likewise.
12919 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12920 * libio/wmemstream.c (open_wmemstream): Likewise.
12921
50d004c9
PP
129222018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12923
12924 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12925 AMD Ryzen 7 1800X.
12926
2c93fce7
RS
129272018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12928
12929 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12930 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12931 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12932 New file.
12933 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12934 Likewise.
12935 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12936
0ce2fa69
FW
129372018-05-29 Florian Weimer <fweimer@redhat.com>
12938
12939 * support/Makefile (libsupport-routines): Add
12940 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
12941 xpthread_barrierattr_setpshared.
12942 * support/xpthread_barrierattr_destroy.c: New file.
12943 * support/xpthread_barrierattr_init.c: Likewise.
12944 * support/xpthread_barrierattr_setpshared.c: Likewise.
12945
7f7b5d8d
L
129462018-05-29 H.J. Lu <hongjiu.lu@intel.com>
12947
12948 [BZ #23206]
12949 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
12950 _r_debug and update DT_DEBUG for debugger.
12951
e4890300
FW
129522018-05-29 Florian Weimer <fweimer@redhat.com>
12953
12954 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
12955 (tst-strtod5i.out): Likewise.
12956
2c753f3e
JM
129572018-05-25 Joseph Myers <joseph@codesourcery.com>
12958
b5453d9f
JM
12959 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
12960 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
12961 (sparc64-quad-routines): New variable. Moved from ....
12962 [$(subdir) = soft-fp] (sysdep_routines): Add
12963 $(sparc64-quad-routines). Moved from ....
12964 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
12965 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
12966 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
12967 moved from ....
12968 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
12969 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
12970 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
12971 * sysdeps/sparc/sparc64/qp_add.c: ... here.
12972 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
12973 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
12974 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
12975 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
12976 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
12977 * sysdeps/sparc/sparc64/qp_div.c: ... here.
12978 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
12979 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
12980 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
12981 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
12982 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
12983 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
12984 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
12985 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
12986 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
12987 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
12988 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
12989 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
12990 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
12991 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
12992 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
12993 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
12994 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
12995 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
12996 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
12997 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
12998 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
12999 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13000 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13001 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13002 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13003 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13004 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13005 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13006 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13007 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13008 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13009 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13010 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13011 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13012 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13013 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13014 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13015 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13016 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13017 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13018 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13019 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13020 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13021 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13022 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13023 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13024 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13025 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13026
2c753f3e
JM
13027 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13028 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13029 (sparc32-quad-routines): New variable. Moved from ....
13030 [$(subdir) = soft-fp] (sysdep_routines): Add
13031 $(sparc32-quad-routines). Moved from ....
13032 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13033 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13034 moved from ....
13035 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13036 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13037 * sysdeps/sparc/sparc32/q_add.c: ... here.
13038 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13039 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13040 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13041 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13042 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13043 * sysdeps/sparc/sparc32/q_div.c: ... here.
13044 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13045 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13046 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13047 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13048 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13049 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13050 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13051 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13052 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13053 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13054 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13055 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13056 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13057 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13058 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13059 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13060 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13061 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13062 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13063 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13064 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13065 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13066 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13067 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13068 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13069 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13070 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13071 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13072 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13073 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13074 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13075 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13076 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13077 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13078 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13079 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13080 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13081 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13082 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13083 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13084 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13085 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13086 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13087 * sysdeps/sparc/sparc32/q_util.c: ... here.
13088 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13089 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13090 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13091 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13092
c1dc1e1b
TMQMF
130932018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13094 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13095
13096 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13097 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13098 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13099 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13100
14186e8d
JM
131012018-05-24 Joseph Myers <joseph@codesourcery.com>
13102
13103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13104 powerpc/soft-fp.
13105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13106 Likewise.
13107 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13108 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13109
fb0e10b8
GG
131102018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13111
13112 [BZ #23171]
13113 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13114 double version.
13115
1dfeb17e
JM
131162018-05-23 Joseph Myers <joseph@codesourcery.com>
13117
13118 * sysdeps/sh/Implies: Remove sh/soft-fp.
13119 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13120 * sysdeps/sh/sfp-machine.h: ... here.
13121
727b38df
L
131222018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13123
13124 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13125 (__mempcpy_erms): Skip zero length.
13126 (__memmove_erms): Likewise.
13127 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13128 (__memset_erms): Likewise.
13129
2834fb46
JM
131302018-05-23 Joseph Myers <joseph@codesourcery.com>
13131
13132 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13133 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13134 Add functions moved from ....
13135 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13136 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13137 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13138 from ....
13139 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13140 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13141 * sysdeps/alpha/e_sqrtl.c: ... here.
13142 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13143 * sysdeps/alpha/local-soft-fp.h: ... here.
13144 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13145 * sysdeps/alpha/ots_add.c: ... here.
13146 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13147 * sysdeps/alpha/ots_cmp.c: ... here.
13148 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13149 * sysdeps/alpha/ots_cmpe.c: ... here.
13150 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13151 * sysdeps/alpha/ots_cvtqux.c: ... here.
13152 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13153 * sysdeps/alpha/ots_cvtqx.c: ... here.
13154 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13155 * sysdeps/alpha/ots_cvttx.c: ... here.
13156 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13157 * sysdeps/alpha/ots_cvtxq.c: ... here.
13158 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13159 * sysdeps/alpha/ots_cvtxt.c: ... here.
13160 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13161 * sysdeps/alpha/ots_div.c: ... here.
13162 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13163 * sysdeps/alpha/ots_mul.c: ... here.
13164 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13165 * sysdeps/alpha/ots_nintxq.c: ... here.
13166 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13167 * sysdeps/alpha/ots_sub.c: ... here.
13168 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13169 * sysdeps/alpha/sfp-machine.h: ... here.
13170
7f9f1ecb
FW
131712018-05-23 Florian Weimer <fweimer@redhat.com>
13172
13173 [BZ #19728]
13174 [BZ #19729]
13175 [BZ #22247]
13176 CVE-2016-6261
13177 CVE-2016-6263
13178 CVE-2017-14062
13179 Switch to extern IDNA implementation (libidn2).
13180 * libidn: Remove subdirectory.
13181 * LICENSES: Do not mention licensing conditions for the removed
13182 libidn code.
13183 * config.h.in (HAVE_LIBIDN): Remove.
13184 * include/dlfcn.h (__libc_dlopen): Update comment.
13185 * include/idna.h: Remove file.
13186 * inet/Makefile (routines): Add idna.
13187 (tests-static, tests-internal): Add tst-idna_name_classify.
13188 (LOCALES): Generate locales for tests.
13189 (tst-idna_name_classify.out): Depend on generated locales.
13190 * inet/idna_name_classify.c: New file.
13191 * inet/tst-idna_name_classify.c: Likewise.
13192 * inet/net-internal.h (__idna_to_dns_encoding)
13193 (__idna_from_dns_encoding): Declare.
13194 * inet/net-internal.h (enum idna_name_classification): Define.
13195 (__idna_name_classify): Declare.
13196 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13197 __idna_from_dns_encoding.
13198 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13199 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13200 name as a fallback in case of encoding errors.
13201 (getnameinfo): Use DEPRECATED_NI_IDN.
13202 * inet/idna.c: New file.
13203 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13204 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13205 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13206 (modules-names): Add tst-no-libidn2.
13207 (extra-test-objs): Add tst-no-libidn2.os.
13208 (LDFLAGS-tst-no-libidn2.so): Set soname.
13209 (LOCALES): Set, and generate locales.
13210 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13211 (tst-resolv-ai_idn-latin1): Likewise.
13212 (tst-resolv-ai_idn-nolibidn2): Likewise.
13213 (tst-resolv-ai_idn.out): Depend on locales.
13214 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13215 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13216 tst-no-libidn2.so.
13217 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13218 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13219 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13220 * resolv/tst-resolv-ai_idn.c: New file.
13221 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13222 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13223 * resolv/tst-no-libidn2.c: Likewise.
13224 * support/support_format_addrinfo.c (format_ai_flags): Do not
13225 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13226 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13227 (gaih_inet): Call __idna_to_dns_encoding and
13228 __idna_from_dns_encoding, and use the original (punycode) name if
13229 __idna_from_dns_encoding fails due to an encoding error.
13230 (getaddrinfo): Use DEPRECATED_AI_IDN.
13231 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13232 * sysdeps/unix/inet/configure: Remove file.
13233 * sysdeps/unix/inet/configure.ac: Likewise.
13234
5f7b841d
FW
132352018-05-23 Florian Weimer <fweimer@redhat.com>
13236
13237 Implement allocate_once.
13238 * include/allocate_once.h: New file.
13239 * misc/allocate_once.c: Likewise.
13240 * misc/tst-allocate_once.c: Likewise.
13241 * misc/Makefile (routines): Add allocate_once.
13242 (tests-internal): Add tst-allocate_once.
13243 (generated): Add tst-allocate_once.mtrace,
13244 tst-allocate_once-mem.out.
13245 (tests-special): Add tst-allocate_once-mem.out.
13246 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13247 (tst-allocate_once-mem.out): Call mtrace.
13248 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13249
ed983107
L
132502018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13251
13252 [BZ #23196]
13253 * string/test-memcpy.c (do_test1): New function.
13254 (test_main): Call it.
13255
9aaaab7c
AS
132562018-05-23 Andreas Schwab <schwab@suse.de>
13257
13258 [BZ #23196]
13259 CVE-2018-11237
13260 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13261 (L(preloop_large)): Save initial destination pointer in %r11 and
13262 use it instead of %rax after the loop.
13263 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13264
5c5c0dd7
JM
132652018-05-22 Joseph Myers <joseph@codesourcery.com>
13266
8f145c77
JM
13267 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13268 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13269 -I../soft-fp. Moved from ....
13270 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13271 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13272 * sysdeps/aarch64/e_sqrtl.c: ... here.
13273 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13274 * sysdeps/aarch64/sfp-machine.h: ... here.
13275
3d6302a5
JM
13276 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13277 -Wmaybe-uninitialized around access to fq[0].
13278 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13279 Likewise.
13280
5c5c0dd7
JM
13281 [BZ #18471]
13282 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13283 aliases for non-libc case of versioned symbols.
13284 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13285 (llseek): Define as compat symbol if
13286 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13287 with link warning.
13288 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13289 Make into a compat symbol, disabled for minimum symbol version
13290 GLIBC_2.28 and later.
13291 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13292
ed0d6988
FW
132932018-05-22 Florian Weimer <fweimer@redhat.com>
13294
13295 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13296 not add -mpreferred-stack-boundary=4.
13297 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13298 (stack-align-test-flags): Likewise.
13299 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13300 Likewise.
13301 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13302 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13303 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13304 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13305 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13306 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13307 (CFLAGS-tst-align2.c): Likewise.
13308
e28e9b1e
L
133092018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13310
13311 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13312 (index_arch_Prefer_FSRM): Likewise.
13313 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13314 Also check Prefer_FSRM.
13315 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13316 Also return OPTIMIZE (erms) for Prefer_FSRM.
13317
1af30adc
L
133182018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13319
13320 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13321 (index_cpu_FSRM): Likewise.
13322 (reg_FSRM): Likewise.
13323
78274dc8
JM
133242018-05-18 Joseph Myers <joseph@codesourcery.com>
13325
7c67e6e8
JM
13326 * math/gen-tgmath-tests.py: Import sys.
13327 (Tests.__init__): Initialize macros_seen.
13328 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13329 if requested to do so for this macro.
13330 (Tests.add_all_tests): Take argument for macro for which to
13331 generate tests.
13332 (Tests.check_macro_list): New function.
13333 (main): Handle check-list argument and argument specifying macro
13334 for which to generate tests.
13335 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13336 [PYTHON] (tgmath3-macro-tests): Likewise.
13337 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13338 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13339 not test-tgmath3.c.
13340 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13341 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13342 to CFLAGS.
13343 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13344 [PYTHON] ($(foreach
13345 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13346 rule.
13347 [PYTHON] (tests-special): Add
13348 $(objpfx)test-tgmath3-macro-list.out.
13349 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13350
ebc129fd
JM
13351 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13352 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13353 later.
13354
78274dc8
JM
13355 [BZ #22639]
13356 * time/tzset.c (SECSPERDAY): Cast to time_t.
13357 * time/tst-y2039.c: New file.
13358 * time/Makefile (tests): Add tst-y2039.
13359
6f7fdeeb
LS
133602018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13361
13362 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13363 (PREFETCH_ONE_SET): Remove duplicate line.
13364
e363a91c
FW
133652018-05-17 Florian Weimer <fweimer@redhat.com>
13366
13367 * sysdeps/generic/math-type-macros-double.h: Include
13368 <math-nan-payload-double.h> after <libm-alias-double.h>.
13369 * sysdeps/generic/math-type-macros-float.h: Include
13370 <math-nan-payload-float.h> after <libm-alias-float.h>.
13371 * sysdeps/generic/math-type-macros-float128.h: Include
13372 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13373 * sysdeps/generic/math-type-macros-ldouble.h: Include
13374 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13375
dae6c43c
AS
133762018-05-17 Andreas Schwab <schwab@suse.de>
13377
13378 * resolv/res_send.c (__res_context_send): Don't set errno when
13379 returing error after malloc failure.
13380
0068c085
L
133812018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13382
13383 * nptl/allocatestack.c (allocate_stack): Remove the
13384 !__ASSUME_PRIVATE_FUTEX paths.
13385 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13386 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13387 Likewise.
13388 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13389 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13390 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13391 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13392 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13393 !__ASSUME_PRIVATE_FUTEX path.
13394 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13395 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13396 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13397 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13398 !__ASSUME_PRIVATE_FUTEX macros.
13399 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13400 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13401 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13402 * sysdeps/unix/sysv/linux/kernel-features.h
13403 (__ASSUME_PRIVATE_FUTEX): Removed.
13404
632a6cbe
JM
134052018-05-17 Joseph Myers <joseph@codesourcery.com>
13406
13407 * math/Makefile (libm-narrow-fns): Add div.
13408 (libm-test-funcs-narrow): Likewise.
13409 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13410 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13411 * math/gen-auto-libm-tests.c (test_functions): Add div.
13412 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13413 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13414 (NARROW_DIV_TRIVIAL): Likewise.
13415 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13416 macro.
13417 (__ddivl): Likewise.
13418 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13419 ddiv.
13420 (CFLAGS-nldbl-ddiv.c): New variable.
13421 (CFLAGS-nldbl-fdiv.c): Likewise.
13422 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13423 __nldbl_ddivl.
13424 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13425 prototype.
13426 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13427 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13428 * math/auto-libm-test-in: Add tests of div.
13429 * math/auto-libm-test-out-narrow-div: New generated file.
13430 * math/libm-test-narrow-div.inc: New file.
13431 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13432 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13433 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13434 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13435 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13436 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13437 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13438 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13439 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13440 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13441 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13442 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13443 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13444 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13445 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13446 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13447 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13448 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13449 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13450 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13451 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13452 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13453 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13454 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13455 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13456 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13457 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13458 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13459 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13460 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13461 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13462 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13467 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13468 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13469 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13470 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13471 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13472 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13473 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13474 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13475
8c78faa9
AZ
134762018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13477
13478 [BZ #23178]
13479 * nscd/nscd-client.h (sendfileall): Remove prototype.
13480 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13481 (handle_request): Use writeall instead of sendfileall.
13482 * nscd/aicache.c (addhstaiX): Likewise.
13483 * nscd/grpcache.c (cache_addgr): Likewise.
13484 * nscd/hstcache.c (cache_addhst): Likewise.
13485 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13486 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13487 * nscd/pwdcache.c (cache_addpw): Likewise.
13488 * nscd/servicescache.c (cache_addserv): Likewise.
13489 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13490 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13491 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13492 Remove define.
13493
04958880
L
134942018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13495
13496 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13497 Include <string/strncat.c>.
13498 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13499 alias.
13500 (__GI___strncat): New hidden alias.
13501
c9992d13
JM
135022018-05-16 Joseph Myers <joseph@codesourcery.com>
13503
13504 * sysdeps/mips/mips32/libm-test-ulps: Update.
13505 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13506
2afece36
FW
135072018-05-16 Florian Weimer <fweimer@redhat.com>
13508
13509 * support/Makefile (libsupport-routines): Add support_quote_blob,
13510 support_test_compare_blob.
13511 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13512 * support/check.h (TEST_COMPARE_BLOB): Define.
13513 (support_test_compare_blob): Declare.
13514 * support/support.h (support_quote_blob): Declare.
13515 * support/support_quote_blob.c: New file.
13516 * support/support_test_compare_blob.c: Likewise.
13517 * support/tst-support_quote_blob.c: Likewise.
13518 * support/tst-test_compare_blob.c: Likewise.
13519
9761bf4d
FW
135202018-05-16 Florian Weimer <fweimer@redhat.com>
13521
13522 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13523 of <strtod_nan_double.h>.
13524 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13525 instead of SET_MANTISSA.
13526 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13527 of include <strtod_nan_float.h>.
13528 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13529 instead of <strtod_nan_ldouble.h>.
13530 * stdlib/strtod_nan_double.h: Move to ...
13531 * sysdeps/generic/math-nan-payload-double.h: ... here.
13532 (FLOAT): Remove definition.
13533 (SET_MANTISSA): Rename to ...
13534 (SET_NAN_PAYLOAD): ... this.
13535 * stdlib/strtod_nan_float.h: Move to ...
13536 * sysdeps/generic/math-nan-payload-float.h: ... here.
13537 (FLOAT): Remove definition.
13538 (SET_MANTISSA): Rename to ...
13539 (SET_NAN_PAYLOAD): ... this.
13540 * sysdeps/generic/math-type-macros-double.h: Include
13541 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13542 instead of <math-svid-compat.h>.
13543 * sysdeps/generic/math-type-macros-float.h: Include
13544 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13545 instead of <math-svid-compat.h>.
13546 * sysdeps/generic/math-type-macros-float128.h: Include
13547 <math-nan-payload-float128.h>.
13548 * sysdeps/generic/math-type-macros-ldouble.h: Include
13549 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13550 instead of <math-svid-compat.h>.
13551 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13552 check for definition.
13553 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13554 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13555 Include <ieee754_float128.h>.
13556 (FLOAT): Remove definition.
13557 (SET_MANTISSA): Rename to ...
13558 (SET_NAN_PAYLOAD): ... this.
13559 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13560 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13561 Do not include <float128_private.h>.
13562 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13563 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13564 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13565 (FLOAT): Remove definition.
13566 (SET_MANTISSA): Rename to ...
13567 (SET_NAN_PAYLOAD): ... this.
13568 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13569 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13570 (FLOAT): Remove definition.
13571 (SET_MANTISSA): Rename to ...
13572 (SET_NAN_PAYLOAD): ... this.
13573 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13574 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13575 (FLOAT): Remove definition.
13576 (SET_MANTISSA): Rename to ...
13577 (SET_NAN_PAYLOAD): ... this.
13578 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13579 of "../stdlib/strtod_nan_double.h".
13580 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13581 of "../stdlib/strtod_nan_float.h".
13582 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13583 instead of "../stdlib/strtod_nan_ldouble.h".
13584 * manual/arith.texi (Parsing of Floats): Adjust comment.
13585
69a01461
JM
135862018-05-16 Joseph Myers <joseph@codesourcery.com>
13587
13588 * math/Makefile (libm-narrow-fns): Add mul.
13589 (libm-test-funcs-narrow): Likewise.
13590 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13591 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13592 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13593 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13594 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13595 (NARROW_MUL_TRIVIAL): Likewise.
13596 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13597 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13598 macro.
13599 (__dmull): Likewise.
13600 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13601 dmul.
13602 (CFLAGS-nldbl-dmul.c): New variable.
13603 (CFLAGS-nldbl-fmul.c): Likewise.
13604 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13605 __nldbl_dmull.
13606 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13607 prototype.
13608 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13609 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13610 * math/auto-libm-test-in: Add tests of mul.
13611 * math/auto-libm-test-out-narrow-mul: New generated file.
13612 * math/libm-test-narrow-mul.inc: New file.
13613 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13614 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13615 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13616 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13617 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13618 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13619 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13620 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13621 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13622 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13623 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13624 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13625 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13626 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13627 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13628 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13629 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13630 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13631 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13632 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13633 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13634 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13635 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13636 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13637 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13638 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13639 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13640 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13641 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13642 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13643 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13644 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13649 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13650 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13652 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13653 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13654 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13655 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13656 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13657
a15529fd
L
136582018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13659
13660 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13661 with *%eax in call.
13662
98ee36c7
L
136632018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13664
13665 * sysdeps/i386/ldsodefs.h: Removed.
13666 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13667 * sysdeps/x86/ldsodefs.h: This.
13668 (La_i86_regs): New.
13669 (La_i86_retval): Likewise.
13670 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13671 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13672
e322ec32
L
136732018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13674
13675 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13676 unnecessary testl.
13677
0937e209
AM
136782018-05-13 Alan Modra <amodra@gmail.com>
13679
13680 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13681 R_PARISC_TLS_DTPOFF32 reloc addend.
13682
5db7d705
TMQMF
136832018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13684
13685 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13686 * math/math.h: Restrict the prototype definition for the functions
13687 issignaling(_Float128) and iszero(_Float128); and template
13688 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13689 __HAVE_FLOAT128_UNLIKE_LDBL.
13690 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13691 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13692 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13693 __f128() constants; define the type _Float128 as long double;
13694 and reuse long double in __CFLOAT128.
13695
b4d5b8b0
JM
136962018-05-11 Joseph Myers <joseph@codesourcery.com>
13697
13698 * sysdeps/generic/math_private.h: Do not include
13699 <math-barriers.h>.
13700 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13701 <math_private.h>.
13702 * math/fromfp.h: Include <math-barriers.h>.
13703 * math/math-narrow.h: Likewise.
13704 * math/s_nextafter.c: Likewise.
13705 * math/s_nexttowardf.c: Likewise.
13706 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13707 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13708 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13709 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13710 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13711 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13712 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13713 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13714 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13715 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13716 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13717 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13718 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13719 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13720 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13721 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13722 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13723 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13724 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13725 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13726 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13727 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13728 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13729 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13730 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13731 * sysdeps/ieee754/k_standardl.c: Likewise.
13732 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13733 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13734 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13735 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13736 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13737 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13738 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13739 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13740 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13741 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13742 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13743 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13744 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13745 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13746 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13747 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13748 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13749 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13750 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13751 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13752 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13753 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13754
fc79706a
FW
137552018-05-11 Florian Weimer <fweimer@redhat.com>
13756
13757 Use 64-bit epoch values in the time zone file parser.
13758 * include/time.h (internal_time_t): Define.
13759 (__tzfile_compute): Use it.
13760 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13761 member.
13762 (transitions): Switch to internal_time_t.
13763 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13764 types.
13765 (__tzfile_compute): Use internal_time_t for timer argument. Check
13766 for truncation before calling __offtime.
13767
89aacb51
FW
137682018-05-11 Florian Weimer <fweimer@redhat.com>
13769
13770 [BZ #23166]
13771 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13772 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13773 Likewise.
13774 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13775 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13776 export without --enable-obsolete-rpc.
13777 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13778 symbol. This should not have been exported, ever.
13779
bb066cb8
RL
137802018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13781
13782 [BZ #23152]
13783 * localedata/locales/gd_GB (abmon): Fix typo in May:
13784 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13785
70c97f84
SP
137862018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13787
db725a45
SP
13788 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13789 Use multiple registers to copy data in loop tail.
13790
70c97f84
SP
13791 * sysdeps/aarch64/multiarch/memmove_falkor.S
13792 (__memmove_falkor): Use multiple registers to move data in
13793 loop tail.
13794
8f5b00d3
JM
137952018-05-10 Joseph Myers <joseph@codesourcery.com>
13796
13797 * math/math-underflow.h: New file.
13798 * sysdeps/generic/math_private.h: Do not include <float.h>.
13799 (fabs_tg): Remove macro. Moved to math-underflow.h.
13800 (min_of_type_f): Likewise.
13801 (min_of_type_): Likewise.
13802 (min_of_type_l): Likewise.
13803 (min_of_type_f128): Likewise.
13804 (min_of_type): Likewise.
13805 (math_check_force_underflow): Likewise.
13806 (math_check_force_underflow_nonneg): Likewise.
13807 (math_check_force_underflow_complex): Likewise.
13808 * math/e_exp2_template.c: Include <math-underflow.h>.
13809 * math/k_casinh_template.c: Likewise.
13810 * math/s_catan_template.c: Likewise.
13811 * math/s_catanh_template.c: Likewise.
13812 * math/s_ccosh_template.c: Likewise.
13813 * math/s_cexp_template.c: Likewise.
13814 * math/s_clog10_template.c: Likewise.
13815 * math/s_clog_template.c: Likewise.
13816 * math/s_csin_template.c: Likewise.
13817 * math/s_csinh_template.c: Likewise.
13818 * math/s_csqrt_template.c: Likewise.
13819 * math/s_ctan_template.c: Likewise.
13820 * math/s_ctanh_template.c: Likewise.
13821 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13822 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13823 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13824 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13825 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13826 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13827 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13828 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13829 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13830 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13831 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13832 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13833 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13834 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13835 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13836 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13837 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13838 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13839 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13840 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13841 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13842 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13843 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13844 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13845 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13846 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13847 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13848 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13849 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13850 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13851 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13852 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13853 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13854 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13855 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13856 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13857 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13858 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13859 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13860 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13861 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13862 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13863 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13864 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13865 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13866 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13867 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13868 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13869 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13870 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13871 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13872 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13873 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13874 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13875 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13876 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13877 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13878 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13879 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13880 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13881 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13882 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13883 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13884 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13885 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13886 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13887 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13888 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13889 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13890 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13891 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13892 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13893 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13894 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13895 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13896 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13897 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13898 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13899 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13900 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13901 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13902 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13903 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13904 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13905
9ed2e15f
JM
139062018-05-09 Joseph Myers <joseph@codesourcery.com>
13907
13908 * sysdeps/generic/math-barriers.h: New file.
13909 * sysdeps/generic/math_private.h [!math_opt_barrier]
13910 (math_opt_barrier): Move to math-barriers.h.
13911 [!math_opt_barrier] (math_force_eval): Likewise.
13912 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13913 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13914 math-barriers.h.
13915 (math_force_eval): Likewise.
13916 * sysdeps/alpha/fpu/math-barriers.h: New file.
13917 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13918 math-barriers.h.
13919 (math_force_eval): Likewise.
13920 * sysdeps/x86/fpu/math-barriers.h: New file.
13921 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13922 math-barriers.h.
13923 (math_force_eval): Likewise.
13924 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13925 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13926 multiple-include guard for rename.
13927 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13928 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13929 math-barriers.h.
13930 (math_force_eval): Likewise.
13931
5460617d
PP
139322018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13933
13934 [BZ #22786]
43d4f3d5 13935 CVE-2018-11236
5460617d
PP
13936 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13937 computation.
13938 * stdlib/Makefile (test-bz22786): New test.
13939 * stdlib/test-bz22786.c: New test.
13940
aaee3cd8
JM
139412018-05-09 Joseph Myers <joseph@codesourcery.com>
13942
13943 * include/math-narrow-eval.h: New file. Contents moved from ....
13944 * sysdeps/generic/math_private.h: ... here.
13945 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
13946 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
13947 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
13948 * stdlib/strtod_l.c: Likewise.
13949 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
13950 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13951 * sysdeps/i386/fpu/s_fdim.c: Likewise.
13952 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13953 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13954 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13955 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13956 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
13957 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13958 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
13959 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13960 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13961 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13962 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13963 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13964 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
13965 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13966 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13967 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13968 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13969 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13970 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
13971 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13972 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13973 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13974 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13975 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13976 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13977 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
13978
0555c477
AS
139792018-05-08 Andreas Schwab <schwab@suse.de>
13980
13981 * sysdeps/nptl/internaltypes.h: Fix comment.
13982
50d7d351
L
139832018-05-07 H.J. Lu <hongjiu.lu@intel.com>
13984
13985 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13986 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
13987 hidden.
13988
543477f7
SP
139892018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13990
13991 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
13992 of I into loop header.
13993 * benchtests/bench-memmove-walk.c
13994 (test_main): Likewise.
13995
139962018-05-07 Alexandre Oliva <oliva@gnu.org>
ffa81c22
AO
13997
13998 Revert:
13999 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14000 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14001
0065aaaa
PP
140022018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14003
14004 [BZ #20419]
14005 * elf/dl-load.c (open_verify): Fix stack overflow.
14006 * elf/Makefile (tst-big-note): New test.
14007 * elf/tst-big-note-lib.S: New.
14008 * elf/tst-big-note.c: New.
14009
b289cd9d
JM
140102018-05-04 Joseph Myers <joseph@codesourcery.com>
14011
14012 * scripts/abilist.awk: Ignore absolute symbols.
14013 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14014 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14015 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14016 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14017 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14018 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14019 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14020 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14021 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14022 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14023 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14024 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14027 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14028 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14029 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14037 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14038 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14039 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14040 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14058 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14059 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14060 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14061 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14062 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14063 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14064 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14065 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14066 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14067 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14068 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14069 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14070 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14071 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14072 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14073 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14074 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14075 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14076 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14077 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14078 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14079 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14080 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14081 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14082 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14083 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14084 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14085 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14086 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14105 Likewise.
14106 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14113 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14114 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14115 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14116 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14119 Likewise.
14120 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14129 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14130 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14131 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14145 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14146 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14147 Likewise.
14148 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14149 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14153 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14154 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14158 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14159 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14163 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14168 Likewise.
14169 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14201 Likewise.
14202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14207 Likewise.
14208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14209 Likewise.
14210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14212 Likewise.
14213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14215 Likewise.
14216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14217 Likewise.
14218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14221 Likewise.
14222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14223 Likewise.
14224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14225 Likewise.
14226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14230 Likewise.
14231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14237 Likewise.
14238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14240 Likewise.
14241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14242 Likewise.
14243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14244 Likewise.
14245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14246 Likewise.
14247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14250 Likewise.
14251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14252 Likewise.
14253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14254 Likewise.
14255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14256 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14257 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14258 Likewise.
14259 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14260 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14261 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14262 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14263 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14264 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14266 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14267 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14268 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14269 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14270 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14271 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14272 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14273 Likewise.
14274 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14275 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14277 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14278 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14279 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14280 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14283 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14284 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14285 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14286 Likewise.
14287 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14288 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14289 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14290 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14292 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14293 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14299 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14300 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14301 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14302 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14303 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14304 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14305 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14306 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14307 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14308 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14309 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14310 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14311 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14312 Likewise.
14313 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14314 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14315 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14316 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14317 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14318 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14319 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14320 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14321 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14323 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14324 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14326 Likewise.
14327 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14342 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14365
16609018
SL
143662018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14367
14368 [BZ #23137]
14369 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14370 Use atomic_load_acquire to load __tid.
14371
556f5c46
L
143722018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14373
14374 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14375 Restore the pointer into %rdx, after syscall and use %rdx,
14376 instead of %rsi, to restore context.
14377
8b8f32b2
L
143782018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14379
14380 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14381 Pop the pointer into %rdx after syscall and use %rdx, instead
14382 of %rsi, to restore context.
14383
d6cc1829
L
143842018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14385
14386 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14387 handlers after setjmp.
14388 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14389 defined.
14390 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14391 <libc-pointer-arith.h>.
14392 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14393 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14394 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14395 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14396 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14397 * sysdeps/x86/__longjmp_cancel.S: New file.
14398 * sysdeps/x86/longjmp.c: Likewise.
14399 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14400
cf2478d5
AZ
144012018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14402
14403 * NEWS: Add ustat.h deprecation entry.
14404 * bits/ustat.h: Remove file.
14405 * misc/sys/ustat.h: Likewise.
14406 * misc/ustat.h: Likewise.
14407 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14408 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14409 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14410 compatibility mode.
14411 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14412 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14413 generic Linux implementation.
14414
dc115e1c
TMQMF
144152018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14416
14417 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14418 * math/w_expl_compat.c: Likewise.
14419 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14420
6b5c8607 144212018-04-30 Raymond Nicholson <rain1@airmail.cc>
340d9652
RN
14422
14423 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14424
c57bf7c1
AZ
144252018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14426
14427 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14428 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14429 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14430 Remove.
14431 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14433 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14434 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14435 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14436 and SYSCALL_LL64.
14437
06135c33
TMQMF
144382018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14439
33927914
TMQMF
14440 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14441
06135c33
TMQMF
14442 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14443 * math/w_asin_template.c: Likewise.
14444 * math/w_atanh_template.c: Likewise.
14445
3a33b069
GG
144462018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14447
14448 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14449 to powerpc/powerpc64/be for big-endian.
14450 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14451 little-endian.
14452
14453 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14454 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14455 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14456 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14457 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14458 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14459 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14460 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14461 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14462 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14463 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14464 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14465 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14466 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14467 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14468 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14469 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14470 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14471 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14472 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14473 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14474 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14475 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14476 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14477 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14478 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14479 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14480 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14481 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14482 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14483 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14484 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14485
14486 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14487 adjusted to imply powerpc64 and older processors on powerpc64/be.
14488 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14489 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14490 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14491 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14492 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14493 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14494 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14495 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14496 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14497 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14498 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14499 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14500 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14501 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14502 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14503 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14504 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14505 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14506 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14507 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14508 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14509 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14510 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14511 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14512 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14513 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14514 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14515 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14516 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14517 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14518 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14519
14520 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14521 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14522 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14523 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14524
14525 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14526 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14527 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14528 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14529
14530 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14531 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14532 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14533 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14534 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14535 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14536 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14537 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14538 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14539 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14540 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14541
14542 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14543 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14544 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14545 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14546 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14547 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14548 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14549 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14550 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14551 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14552 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14553
14554 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14555 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14556 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14557 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14558 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14559 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14560 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14561 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14562 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14563 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14564 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14565 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14566
14567 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14568 and adjusted to imply olders processors.
14569 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14570 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14571 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14572 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14573 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14574 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14575 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14576 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14577 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14578 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14579 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14580
14581 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14582 powerpc64/le.
14583 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14584 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14585
14586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14587 powerpc64le.
14588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14590
14591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14592 powerpc64/be.
14593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14596
14597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14598 powerpc64 and adjusted.
14599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14602 Likewise.
14603
a3fb6b6b
JM
146042018-04-27 Joseph Myers <joseph@codesourcery.com>
14605
14606 * sysdeps/tile: Remove.
14607 * sysdeps/unix/sysv/linux/tile: Likewise.
14608 * README (tilegx-*-linux-gnu): Remove from list of supported
14609 configurations.
14610 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14611 contribution of support for generic Linux kernel syscall
14612 interface.
14613 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14614 tilegx configurations.
14615 (Config.install_linux_headers): Do not handle tile.
14616 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14617 in comment.
14618 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14619 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14620 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14621 conditional undefine and redefine.
14622 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14623 in comment.
14624 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14625 conditional undefine and redefine.
14626
7a6f7478
AJ
146272018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14628
14629 * signal/tst-sigaction.c: New file to test BZ #23069.
14630 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14631
81b49e96
TMQMF
146322018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14633
14634 [BZ #22766]
14635 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14636 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14637 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14638 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14639
7d80f48e
AZ
146402018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14641
14642 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14643 _DIRENT_MATCHES_DIRENT64 is not defined.
14644 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14645 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14646 is defined.
14647 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14648 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14649
42a2bf58
JM
146502018-04-25 Joseph Myers <joseph@codesourcery.com>
14651
14652 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14653 version to GCC 8 branch.
14654
9320ca88
JM
146552018-04-24 Joseph Myers <joseph@codesourcery.com>
14656
5e14bb97
JM
14657 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14658 (check_no_hidden): Use type of original function when declaring
14659 alias.
14660
9320ca88
JM
14661 * sysdeps/unix/sysv/linux/sys/ptrace.h
14662 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14663 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14664 (struct __ptrace_seccomp_metadata): New type.
14665 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14666 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14667 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14668 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14669 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14670 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14671 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14672 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14673 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14674 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14675 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14676 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14677 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14678 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14679 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14680 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14681
af7e376b
AZ
146822018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14683
14684 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14685 defined.
14686 * dirent/versionsort.c (versionsort): Likewise.
14687 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14688 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14689 * dirent/versionsort64.c (versionsort64): Likewise.
14690 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14691 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14692 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14693 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14694 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14695 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14696 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14697 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14698 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14699 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14702 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14703 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14704
da5e0361
JM
147052018-04-23 Joseph Myers <joseph@codesourcery.com>
14706
14707 * elf/elf.h (NT_PPC_PKEY): New macro.
14708
6b5c8607 147092018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
ea76691a
DSN
14710
14711 [BZ #23094]
14712 * localedata/locales/hr_HR: fix thousands_sep and
14713 mon_thousands_sep
14714
573963e3
JM
147152018-04-20 Joseph Myers <joseph@codesourcery.com>
14716
14717 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14718 (XTABS): Define to TAB3.
14719
c0123b3b
AZ
147202018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14721
0900a849
AZ
14722 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14723
c0123b3b
AZ
14724 * dirent/scandir-tail-common.c: New file.
14725 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14726 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14727 * dirent/scandir.c: Use scandir-tail-common.c.
14728 * dirent/scandirat.c: Likewise.
14729 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14730 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14731 if _DIRENT_MATCHES_DIRENT64 is defined.
14732 * dirent/scandirat64.c (scandirat64): Likewise.
14733 * include/dirent.h (__scandir_tail): Only define iff
14734 _DIRENT_MATCHES_DIRENT64 is not defined.
14735 (__scandir64_tail): Define regardless.
14736 (__scandirat, scandirat64): Remove libc_hidden_proto.
14737 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14738 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14740 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14741 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14742 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14743 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14744
458b94f6
JM
147452018-04-20 Joseph Myers <joseph@codesourcery.com>
14746
14747 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14748 New macro.
14749 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14750 Increase to 24.
14751 (_dl_aarch64_cap_flags): Add asimdfhm.
14752
9f0437e8
CLT
147532018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14754
14755 * sysdeps/nios2/libm-test-ulps: Update.
14756
298d0e31
AZ
147572018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14758
50511ca4
AZ
14759 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14760 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14761
298d0e31
AZ
14762 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14763 requirements.
6b5c8607 14764 (_DIRENT_MATCHES_DIRENT64): Undef
298d0e31
AZ
14765 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14766 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14767 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14768 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14769 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14770 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14771 use getdents64 syscalls as base.
14772 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14773 symbol if required.
14774 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14775 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14776 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14777 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14778 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14779 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14780 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14781 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14782 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14783 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14784 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14785
0085be14
SL
147862018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14787
14788 * scripts/test_printers_common.py (init_test): Disable lock elision.
14789
da796524
SL
147902018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14791
14792 * math/test-tgmath.c (count_double, count_float,
14793 count_ldouble, count_cdouble, count_cfloat,
14794 count_cldouble): Use volatile int.
14795
0dd25301
ST
147962018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14797
14798 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14799 (conformtest-xfail-conds): Add i386-gnu.
cbc256b1 14800 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
0dd25301
ST
14801 i386-gnu.
14802 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14803 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14804 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14805 msqid_ds.msg_lrpid): Likewise.
14806 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14807 Likewise.
14808 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14809 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9d9f8f03
ST
14810 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14811 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14812 unsigned int.
14813 (struct statvfs64): Likewise.
f55a4fde
ST
14814 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14815 Likewise.
77b93390
ST
14816 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14817 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14818 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14819 instead of wait_queue.
14820 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14821 instead of vm_area_struct.
5cd2931a
ST
14822 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14823 struct sched_param definition to it.
e60c3f2b
ST
14824 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14825 * bits/types/struct_sched_param.h: New file.
14826 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14827 <bits/types/struct_sched_param.h> instead of <sched.h>.
14828 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5cd2931a
ST
14829 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14830 generic version but include <bits/pthreadtypes.h> to make struct
14831 sigevent's sigev_notify_attributes field a pthread_attr_t*.
ed370924
ST
14832 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14833 non-compliant.
a564872d
ST
14834 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14835 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14836 [__USE_XOPEN] (OFDEL): New macro.
14837 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
a279b8ed 14838 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5dbfe13b
ST
14839 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14840 prototypes.
14841 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14842 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
81b032c8
ST
14843 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14844 non-compliant.
14845 * sysdeps/i386/sys/ucontext.h: Likewise.
14846 * sysdeps/m68k/sys/ucontext.h: Likewise.
14847 * sysdeps/mips/sys/ucontext.h: Likewise.
14848 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
f00b62ec
ST
14849 * sysdeps/mach/hurd/i386/Makefile
14850 (test-xfail-POSIX/fcntl.h/conform): Add.
14851 (test-xfail-POSIX/signal.h/conform): Add.
14852 (test-xfail-POSIX/semaphore.h/conform): Add.
14853 (test-xfail-POSIX/regex.h/conform): Add.
14854 (test-xfail-POSIX/aio.h/conform): Add.
14855 (test-xfail-POSIX/mqueue.h/conform): Add.
14856 (test-xfail-POSIX/sys/types.h/conform): Add.
14857 (test-xfail-UNIX98/fcntl.h/conform): Add.
14858 (test-xfail-UNIX98/netdb.h/conform): Add.
14859 (test-xfail-UNIX98/signal.h/conform): Add.
14860 (test-xfail-UNIX98/semaphore.h/conform): Add.
14861 (test-xfail-UNIX98/regex.h/conform): Add.
14862 (test-xfail-UNIX98/aio.h/conform): Add.
14863 (test-xfail-UNIX98/ftw.h/conform): Add.
14864 (test-xfail-UNIX98/mqueue.h/conform): Add.
14865 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14866 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14867 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14868 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14869 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14870 (test-xfail-UNIX98/sys/types.h/conform): Add.
14871 (test-xfail-UNIX98/stdlib.h/conform): Add.
14872 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14873 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14874 (test-xfail-POSIX2008/netdb.h/conform): Add.
14875 (test-xfail-POSIX2008/signal.h/conform): Add.
14876 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14877 (test-xfail-POSIX2008/regex.h/conform): Add.
14878 (test-xfail-POSIX2008/aio.h/conform): Add.
14879 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14880 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14881 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14882 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14883 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14884 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14885 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14886 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14887 (test-xfail-XOPEN2K/signal.h/conform): Add.
14888 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14889 (test-xfail-XOPEN2K/regex.h/conform): Add.
14890 (test-xfail-XOPEN2K/aio.h/conform): Add.
14891 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14892 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14893 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14894 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14895 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14896 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14897 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14898 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14899 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14900 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14901 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14902 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14903 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14904 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14905 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14906 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14907 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14908 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14909 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14910 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14911 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14912 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14913 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14914 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14915 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14916 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
cbc256b1
ST
14917 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14918 i386-gnu.
14919 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14920 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
0dd25301 14921
d6397de3
JM
149222018-04-18 Joseph Myers <joseph@codesourcery.com>
14923
14924 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14925 --enable-obsolete for powerpc-linux-gnuspe.
14926
8323a902
ST
149272018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14928
3dc0814c 14929 * conform/data/sys/un.h-data: Allow sun_ prefix.
c5896a45 14930 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
d4379e02 14931 prototypes.
c5896a45
ST
14932 * sysdeps/mach/include/mach.h: Likewise.
14933 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14934 * sysdeps/mach/include/mach_error.h: Likewise.
8323a902 14935
743b9c2a
AZ
149362018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14937
14938 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
14939 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
14940 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
14941 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
14942
326e74e7
AS
149432018-04-16 Andreas Schwab <schwab@suse.de>
14944
14945 [BZ #19527]
14946 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
14947
6b5c8607 149482018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
a14d8acd
PM
14949
14950 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
14951 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
14952
a700e7cb
DD
149532018-04-12 DJ Delorie <dj@redhat.com>
14954
14955 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14956 version to 4.16.
14957
d8abfab7
SL
149582018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
14959
14960 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
14961 (struct kernel_sigaction): Use the same definition on 31bit as is used
14962 on 64bit.
14963
583a27d5
FW
149642018-04-09 Florian Weimer <fweimer@redhat.com>
14965
14966 [BZ #23037]
14967 * resolv/res_send.c (send_dg): Use designated initializers instead
14968 of assignment to zero-initialize other fields of struct mmsghdr.
14969
243f59e5
AZ
149702018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14971
942de61a
AZ
14972 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
14973 __READDIR_ALIAS): Undefine after usage.
14974 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
14975 __READDIR_R_ALIAS): Likewise.
14976 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
14977 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
14978 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
14979 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
14980 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
14981 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
14982 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14983 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14984 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
14985 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
14986 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
14987 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
14988 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14989 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
14990 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
14991 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
14992 * sysdeps/unix/sysv/linux/readdir.c: New file.
14993 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
14994 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
14995 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
14996
243f59e5
AZ
14997 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
14998
690c3475
AS
149992018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15000
15001 * manual/charset.texi (Converting a Character): Fix typo.
15002
6b5c8607 150032018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
b4a5d26d 15004
bbc2062a
AZ
15005 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15006
fa7c6199
AZ
15007 * sysdeps/arm/libm-test-ulps: Update.
15008
b4a5d26d
AZ
15009 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15010 as base implementation.
15011 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15012 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15013 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15014 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15015 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15016 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15017 remove unrequired definitions and update comments.
15018 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15019 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15020 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15021 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15022 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15023 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15024 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15025 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15026 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15027 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15028 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15029 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15030 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15031 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15032 and RESET_SA_RESTORER hooks.
15033
db9e55ff
SL
150342018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15035
15036 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15037
cf138b0c
FW
150382018-04-05 Florian Weimer <fweimer@redhat.com>
15039
15040 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15041 integer overflow, memory leak on error, and indeterminate errno
15042 value. Add a null wide character to terminate the result string.
15043 * manual/charset.texi (Converting a Character): Mention embedded
15044 null bytes in the mbrtowc input string. Explain what happens in
15045 the -2 result case. Do not claim that mbrtowc is simple or
15046 obvious to use. Adjust the description of the code example. Use
15047 @code, not @var, for concrete variables.
15048
0f339252
FW
150492018-04-05 Florian Weimer <fweimer@redhat.com>
15050
15051 * manual/examples/mbstouwcs.c: New file.
15052 * manual/charset.texi (Converting a Character): Include it.
15053
e5f9508a
ST
150542018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15055
c120981d
ST
15056 * include/dirent.h (dirfd): Add hidden proto.
15057 * dirent/dirfd.c (dirfd): Add hidden def.
15058 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15059 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
e5f9508a 15060
b2fd61ca
TMQMF
150612018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15062
15063 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15064 sin, cos and sincos to 1 ULP.
15065
10a446dd
MR
150662018-04-04 Maciej W. Rozycki <macro@mips.com>
15067
e7feec37
MR
15068 [BZ #19818]
15069 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15070 symbols.
15071 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15072 * elf/tst-absolute-sym.c: New file.
15073 * elf/tst-absolute-sym-lib.c: New file.
15074 * elf/tst-absolute-sym-lib.lds: New file.
15075 * elf/Makefile (tests): Add `tst-absolute-sym'.
15076 (modules-names): Add `tst-absolute-sym-lib'.
15077 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15078 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15079 ($(objpfx)tst-absolute-sym): New dependency.
15080
10a446dd
MR
15081 [BZ #19818]
15082 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15083 parameter.
15084 (SYMBOL_ADDRESS): New macro.
15085 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15086 SYMBOL_ADDRESS for symbol address calculation.
15087 * elf/dl-runtime.c (_dl_fixup): Likewise.
15088 (_dl_profile_fixup): Likewise.
15089 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15090 * elf/rtld.c (dl_main): Likewise.
15091 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15092 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15093 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15094 (elf_machine_rela): Likewise.
15095 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15096 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15097 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15098 (elf_machine_rela): Likewise.
15099 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15100 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15101 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15102 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15103 Likewise.
15104 (elf_machine_reloc): Likewise.
15105 (elf_machine_got_rel): Likewise.
15106 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15107 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15108 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15109 Likewise.
15110 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15111 Likewise.
15112 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15113 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15114 Likewise.
15115 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15116 Likewise.
15117 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15118 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15119 Likewise.
15120 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15121 Likewise.
15122 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15123 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15124
9185f86d
ZW
151252018-04-04 Zack Weinberg <zackw@panix.com>
15126
15127 * sysdeps/generic/internal-signals.h: Include signal.h,
15128 sigsetops.h, and stdbool.h.
15129 (__libc_signal_block_all): Actually block all signals.
15130 (__libc_signal_block_app): Likewise.
15131 (__libc_signal_restore_set): Actually restore the signal mask.
15132
b07367bc
FW
151332018-04-04 Florian Weimer <fweimer@redhat.com>
15134
15135 inet: Actually build and run tst-deadline.
15136 * inet/Makefile (tests-internal): Add tst-deadline and do not
15137 overwrite the variable.
15138 (tests-static-internal): Remove variable.
15139
f2652643
L
151402018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15141
15142 [BZ #22947]
15143 * bits/uio-ext.h (RWF_APPEND): New.
15144 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15145 * manual/llio.texi: Document RWF_APPEND.
15146 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15147 (RWF_SUPPORTED): Add RWF_APPEND.
15148
6b5c8607 151492018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
d2dc5467
AZ
15150
15151 [BZ #22391]
15152 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15153 check for internal nptl signals.
15154 * nptl/sigaction.c (__sigaction): Likewise.
15155 * signal/sigaddset.c (sigaddset): Likewise.
15156 * signal/sigdelset.c (sigdelset): Likewise.
15157 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15158 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15159 value.
15160 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15161 to filter out internal nptl signals.
15162 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15163 also check realtime signals using standard macros.
15164 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15165 __is_internal_signal, __libc_signal_block_all,
15166 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15167 * sysdeps/nptl/sigfillset.c: Remove file.
15168 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15169 Change return to bool.
15170 (__clear_internal_signals): Remove SIGTIMER clean since it is
15171 equal to SIGCANEL on Linux.
15172 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15173 signal set was constructed using standard functions.
15174
511ed56f
ST
151752018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15176
92846492
ST
15177 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15178 ifname is too long.
e8ef51b1
ST
15179 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15180 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
ff297b70
ST
15181 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15182 hidden def.
15183 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
d8440a21
ST
15184 * signal/sigaddset.c: Include <sigsetopts.h>.
15185 * signal/sigdelset.c: Likewise.
511ed56f 15186
e88ecbbf
WD
151872018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15188
15189 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15190 (__cos): Likewise.
15191 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15192 logic as sin and cos.
15193
aef3e255
WD
151942018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15195
15196 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15197 inputs. Return correct sign.
15198 (do_sincos): Remove small input check before do_sin, let do_sin set
15199 the sign.
15200 (__sin): Likewise.
15201 (__cos): Likewise.
15202
72f6e9a3
WD
152032018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15204
15205 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15206 (do_cos_slow): Likewise.
15207 (do_sin_slow): Likewise.
15208 (reduce_and_compute): Likewise.
15209 (slow): Likewise.
15210 (slow1): Likewise.
15211 (slow2): Likewise.
15212 (sloww): Likewise.
15213 (sloww1): Likewise.
15214 (sloww2): Likewise.
15215 (bslow): Likewise.
15216 (bslow1): Likewise.
15217 (bslow2): Likewise.
15218 (cslow2): Likewise.
15219
64909583
WD
152202018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15221
15222 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15223 (do_cos): Remove corp parameter and calculations.
15224 (do_sin): Likewise.
15225 (do_sincos): Remove cor variable.
15226 (__sin): Use do_sincos for huge inputs.
15227 (__cos): Likewise.
15228 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15229 (reduce_and_compute_sincos): Remove unused function.
15230
d9469deb
WD
152312018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15232
15233 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15234 reduce_sincos, improve accuracy to 136 bits.
15235 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15236 (__sin): Use improved reduction and simplified do_sincos calculation.
15237 (__cos): Likewise.
15238 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15239
7a5640f2
WD
152402018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15241
15242 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15243 (do_sincos_2): Likewise.
15244 (__sin): Remove middle range reduction case.
15245 (__cos): Likewise.
15246 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15247 reduction case.
15248
19a8b9a3
WD
152492018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15250
15251 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15252 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15253 inputs.
15254 (__cos): Likewise.
15255 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15256
f72aa11d
JM
152572018-04-03 Joseph Myers <joseph@codesourcery.com>
15258
15259 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19a8b9a3 15260 version to 4.16
f72aa11d 15261
8e4754ed
AZ
152622018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15263
15264 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15265 Remove definitions.
15266 (opendir_oflags): Use O_DIRECTORY regardless.
15267 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15268 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15269
8e2666ea
ST
152702018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15271
15272 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15273 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15274 macros.
15275 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15276 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15277 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15278 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
deed72f6
ST
15279 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15280 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8e2666ea 15281
ad2b41bf
ST
15282 * htl/Makefile: Bump licence to LGPL 2.1+.
15283 * htl/alloca_cutoff.c: Likewise.
15284 * htl/cthreads-compat.c: Likewise.
15285 * htl/lockfile.c: Likewise.
15286 * htl/pt-alloc.c: Likewise.
15287 * htl/pt-cancel.c: Likewise.
15288 * htl/pt-cleanup.c: Likewise.
15289 * htl/pt-create.c: Likewise.
15290 * htl/pt-dealloc.c: Likewise.
15291 * htl/pt-detach.c: Likewise.
15292 * htl/pt-exit.c: Likewise.
15293 * htl/pt-getattr.c: Likewise.
15294 * htl/pt-initialize.c: Likewise.
15295 * htl/pt-internal.h: Likewise.
15296 * htl/pt-join.c: Likewise.
15297 * htl/pt-self.c: Likewise.
15298 * htl/pt-setcancelstate.c: Likewise.
15299 * htl/pt-setcanceltype.c: Likewise.
15300 * htl/pt-sigmask.c: Likewise.
15301 * htl/pt-spin-inlines.c: Likewise.
15302 * htl/pt-testcancel.c: Likewise.
15303 * htl/pt-yield.c: Likewise.
15304 * htl/tests/test-1.c: Likewise.
15305 * htl/tests/test-10.c: Likewise.
15306 * htl/tests/test-11.c: Likewise.
15307 * htl/tests/test-12.c: Likewise.
15308 * htl/tests/test-13.c: Likewise.
15309 * htl/tests/test-14.c: Likewise.
15310 * htl/tests/test-15.c: Likewise.
15311 * htl/tests/test-16.c: Likewise.
15312 * htl/tests/test-17.c: Likewise.
15313 * htl/tests/test-2.c: Likewise.
15314 * htl/tests/test-3.c: Likewise.
15315 * htl/tests/test-4.c: Likewise.
15316 * htl/tests/test-5.c: Likewise.
15317 * htl/tests/test-6.c: Likewise.
15318 * htl/tests/test-7.c: Likewise.
15319 * htl/tests/test-8.c: Likewise.
15320 * htl/tests/test-9.c: Likewise.
15321 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15322 * sysdeps/htl/bits/cancelation.h: Likewise.
15323 * sysdeps/htl/bits/pthread-np.h: Likewise.
15324 * sysdeps/htl/bits/pthread.h: Likewise.
15325 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15326 * sysdeps/htl/bits/semaphore.h: Likewise.
15327 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15328 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15329 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15330 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15331 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15332 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15333 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15334 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15335 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15336 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15337 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15338 * sysdeps/htl/old_pt-atfork.c: Likewise.
15339 * sysdeps/htl/pt-atfork.c: Likewise.
15340 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15341 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15342 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15343 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15344 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15345 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15346 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15347 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15348 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15349 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15350 * sysdeps/htl/pt-attr-init.c: Likewise.
15351 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15352 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15353 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15354 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15355 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15356 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15357 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15358 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15359 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15360 * sysdeps/htl/pt-attr.c: Likewise.
15361 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15362 * sysdeps/htl/pt-barrier-init.c: Likewise.
15363 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15364 * sysdeps/htl/pt-barrier.c: Likewise.
15365 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15366 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15367 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15368 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15369 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15370 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15371 * sysdeps/htl/pt-cond-init.c: Likewise.
15372 * sysdeps/htl/pt-cond-signal.c: Likewise.
15373 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15374 * sysdeps/htl/pt-cond-wait.c: Likewise.
15375 * sysdeps/htl/pt-cond.c: Likewise.
15376 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15377 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15378 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15379 * sysdeps/htl/pt-condattr-init.c: Likewise.
15380 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15381 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15382 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15383 * sysdeps/htl/pt-equal.c: Likewise.
15384 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15385 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15386 * sysdeps/htl/pt-getschedparam.c: Likewise.
15387 * sysdeps/htl/pt-getspecific.c: Likewise.
15388 * sysdeps/htl/pt-init-specific.c: Likewise.
15389 * sysdeps/htl/pt-key-create.c: Likewise.
15390 * sysdeps/htl/pt-key-delete.c: Likewise.
15391 * sysdeps/htl/pt-key.h: Likewise.
15392 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15393 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15394 * sysdeps/htl/pt-mutex-init.c: Likewise.
15395 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15396 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15397 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15398 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15399 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15400 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15401 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15402 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15403 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15404 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15405 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15406 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15407 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15408 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15409 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15410 * sysdeps/htl/pt-mutexattr.c: Likewise.
15411 * sysdeps/htl/pt-once.c: Likewise.
15412 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15413 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15414 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15415 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15416 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15417 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15418 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15419 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15420 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15421 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15422 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15423 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15424 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15425 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15426 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15427 * sysdeps/htl/pt-setschedparam.c: Likewise.
15428 * sysdeps/htl/pt-setschedprio.c: Likewise.
15429 * sysdeps/htl/pt-setspecific.c: Likewise.
15430 * sysdeps/htl/pt-spin.c: Likewise.
15431 * sysdeps/htl/pt-startup.c: Likewise.
15432 * sysdeps/htl/pthread.h: Likewise.
15433 * sysdeps/htl/sem-close.c: Likewise.
15434 * sysdeps/htl/sem-destroy.c: Likewise.
15435 * sysdeps/htl/sem-getvalue.c: Likewise.
15436 * sysdeps/htl/sem-init.c: Likewise.
15437 * sysdeps/htl/sem-open.c: Likewise.
15438 * sysdeps/htl/sem-post.c: Likewise.
15439 * sysdeps/htl/sem-timedwait.c: Likewise.
15440 * sysdeps/htl/sem-trywait.c: Likewise.
15441 * sysdeps/htl/sem-unlink.c: Likewise.
15442 * sysdeps/htl/sem-wait.c: Likewise.
15443 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15444 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15445 * sysdeps/mach/htl/pt-block.c: Likewise.
15446 * sysdeps/mach/htl/pt-spin.c: Likewise.
15447 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15448 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15449 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15450 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15451 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15452 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15453 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15454 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15455 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15456 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15457 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15458 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15459 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15460 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15461 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15462 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15463 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15464 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15465 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15466 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15467 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15468 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15469 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15470 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15471 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15472 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15473 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15474 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15475 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15476 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15477 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15478 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15479 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15480 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15481 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15482 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15483 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15484 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15485 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15486 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15487 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15488 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15489 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15490
fb03b04b
ST
15491 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15492 * README: Remove the mention of out-of-tree patches needed for
15493 GNU/Hurd.
15494
fa9e1555
ST
15495 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15496 (UTIME_NOW, UTIME_OMIT): Define macros.
15497
f6fb29d2
ST
15498 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15499 instead of pthread_detach.
15500 (__cthread_fork): Call __pthread_create instead of pthread_create.
15501 (__cthread_keycreate): Call __pthread_key_create instead of
15502 pthread_key_create.
15503 (__cthread_getspecific): Call __pthread_getspecific instead of
15504 pthread_getspecific.
15505 (__cthread_setspecific): Call __pthread_setspecific instead of
15506 pthread_setspecific.
15507 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15508 __pthread_mutex_unlock instead of pthread_mutex_lock and
15509 pthread_mutex_unlock.
15510 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15511 ___pthread_get_cleanup_stack.
15512 (__pthread_get_cleanup_stack): New strong alias.
15513 * htl/pt-create.c: Include <pthreadP.h>.
15514 (entry_point): Call __pthread_exit instead of pthread_exit.
15515 (pthread_create): Rename to __pthread_create.
15516 (pthread_create): New strong alias.
15517 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15518 (pthread_detach): New strong alias.
15519 (__pthread_detach): Call __pthread_cond_broadcast instead of
15520 pthread_cond_broadcast.
fe9748cc
ST
15521 * htl/pt-exit.c: Include <pthreadP.h>.
15522 (__pthread_exit): Call __pthread_setcancelstate and
15523 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15524 __pthread_get_cleanup_stack.
f6fb29d2
ST
15525 * htl/pt-testcancel.c: Include <pthreadP.h>.
15526 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15527 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15528 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15529 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15530 pthread_attr_getstacksize.
15531 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15532 Rename to __pthread_attr_getstackaddr.
15533 (pthread_attr_getstackaddr): New strong alias.
15534 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15535 Rename to __pthread_attr_getstacksize.
15536 (pthread_attr_getstacksize): New strong alias.
15537 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15538 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15539 (pthread_attr_setstack): New strong alias.
15540 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15541 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15542 pthread_attr_getstacksize, pthread_attr_setstacksize and
15543 pthread_attr_setstackaddr.
15544 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15545 Rename to __pthread_attr_setstackaddr.
15546 (pthread_attr_setstackaddr): New strong alias.
15547 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15548 Rename to __pthread_attr_setstacksize.
15549 (pthread_attr_setstacksize): New strong alias.
15550 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15551 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15552 pthread_exit.
15553 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15554 (__pthread_key_create): New hidden def.
15555 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15556 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15557 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15558 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15559 __pthread_setspecific, __pthread_setcancelstate,
15560 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15561 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15562 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15563 declarations.
15564 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15565 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15566 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15567 (pthread_attr_setstackaddr): New strong alias.
15568 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15569 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15570 (pthread_attr_setstacksize): New strong alias.
15571 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15572 (call_exit): Call __pthread_exit instead of pthread_exit.
15573 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15574 (_pthread_mutex_init): New hidden definition.
15575 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15576 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15577 instead of pthread_attr_init and pthread_attr_setstack.
15578
dba2bdbe
ST
15579 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15580 __vm_deallocate instead of vm_allocate and vm_deallocate.
15581 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15582 setenv.
15583 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15584 of geteuid.
15585 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15586 strdup.
15587 * hurd/siginfo.c: Include <libioP.h>.
15588 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15589 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15590 munmap.
dba2bdbe
ST
15591 * mach/devstream.c: Include <libioP.h>.
15592 (dealloc_ref): Call __mach_port_deallocate instead of
15593 mach_port_deallocate.
15594 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15595 Call __mach_port_deallocate instead of mach_port_deallocate.
15596 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15597 pathconf.
15598 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15599 munmap.
15600 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15601 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15602 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15603 of munmap.
15604 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15605 of close.
15606 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15607 instead of sysconf.
15608 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15609 __clock_gettime instead of clock_gettime.
15610 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15611 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15612 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15613 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15614 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15615 tcgetattr.
15616 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15617 __clock_gettime and __nanosleep instead of clock_gettime and
15618 nanosleep.
7a8f45e3
ST
15619 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15620 __hurd_catch_signal.
15621 (hurd_catch_signal): New strong alias.
15622 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15623 __hurd_catch_signal instead of hurd_catch_signal.
15624 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15625 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15626 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15627 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15628 (_hurd_thread_sigstate): Add hidden def.
15629 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15630 mutex_unlock.
15631 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15632 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15633 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15634 __hurd_file_name_path_lookup.
15635 (hurd_file_name_path_lookup): New strong alias.
15636 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15637 hurd_file_name_path_lookup.
15638 * mach/errstring.c (mach_error_type): Add hidden def.
15639 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15640 * mach/mutex-init.c (__mutex_init): Add hidden def.
15641 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15642 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15643 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15644 * sysdeps/mach/hurd/getcwd.c
15645 (_hurd_canonicalize_directory_name_internal): Rename to
15646 __hurd_canonicalize_directory_name_internal.
15647 (_hurd_canonicalize_directory_name_internal): New strong alias.
15648 (__canonicalize_directory_name_internal, __getcwd): Call
15649 __hurd_canonicalize_directory_name_internal instead of
15650 _hurd_canonicalize_directory_name_internal.
15651 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15652 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15653 hidden defs.
15654 * sysdeps/hurd/include/hurd.h: New file.
15655 * sysdeps/hurd/include/hurd/fd.h: New file.
15656 * sysdeps/hurd/include/hurd/signal.h: New file.
15657 * sysdeps/mach/include/lock-intern.h: New file.
15658 * sysdeps/mach/include/mach.h: New file.
15659 * sysdeps/mach/include/mach/mig_support.h: New file.
15660 * sysdeps/mach/include/mach_error.h: New file.
a758c293
ST
15661 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15662 prototype.
15663 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15664 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15665 _HEADER_H_HIDDEN_DEF macro.
15666 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15667 _hurd_fd_error_signal): Add hidden prototype.
15668 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15669 hidden def.
82dbf555
ST
15670 * libio/iolibio.h (_IO_puts): New hidden prototype.
15671 * libio/ioputs.c (_IO_puts): New hidden def.
171488a2
ST
15672 * sysdeps/mach/hurd/localplt.data: New file.
15673
33574c17 156742018-04-02 Agustina Arzille <avarzille@riseup.net>
b39d961c
TS
15675 Amos Jeffries <squid3@treenet.co.nz>
15676 David Michael <fedora.dm0@gmail.com>
15677 Marco Gerards <marco@gnu.org>
15678 Marcus Brinkmann <marcus@gnu.org>
15679 Neal H. Walfield <neal@gnu.org>
15680 Pino Toscano <toscano.pino@tiscali.it>
15681 Richard Braun <rbraun@sceen.net>
15682 Roland McGrath <roland@gnu.org>
15683 Samuel Thibault <samuel.thibault@ens-lyon.org>
15684 Thomas DiModica <ricinwich@yahoo.com>
15685 Thomas Schwinge <tschwinge@gnu.org>
33574c17
ST
15686
15687 * htl: New directory.
15688 * sysdeps/htl: New directory.
15689 * sysdeps/hurd/htl: New directory.
15690 * sysdeps/i386/htl: New directory.
15691 * sysdeps/mach/htl: New directory.
15692 * sysdeps/mach/hurd/htl: New directory.
15693 * sysdeps/mach/hurd/i386/htl: New directory.
15694 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15695 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15696 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15697
03e2aa50
ST
156982018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15699
15700 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15701 signals in thread created for runing timers.
15702
1aa52ced
FW
157032018-04-01 Florian Weimer <fweimer@redhat.com>
15704
15705 * support/support_format_addrinfo.c (support_format_addrinfo):
15706 Include unknown error number in formatted result.
15707
4d76d3e5
FW
157082018-03-29 Florian Weimer <fweimer@redhat.com>
15709
15710 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15711 capture SIGBUS.
15712
d39c0a45
AZ
157132018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15714
15715 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15716 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15717 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15718 (__ASSUME_CLONE_BACKWARDS): Define.
15719
cc8a1620
JH
157202018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15721
57408435 15722 [BZ #23024]
cc8a1620
JH
15723 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15724 early when linux sentinel value is set.
15725
8bfd94d0
ST
157262018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15727
15728 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15729
f178e59f
AS
157302018-03-27 Andreas Schwab <schwab@suse.de>
15731
15732 [BZ #23005]
15733 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15734 allocation of private copy of nsaddr_list fails.
15735
5f45f96a
JM
157362018-03-26 Joseph Myers <joseph@codesourcery.com>
15737
15738 [BZ #16552]
15739 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15740 * sysdeps/unix/sysv/linux/umount.c: ... here.
15741 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15742 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15743 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15744 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15746 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15747 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15748
3dfd23eb
AS
157492018-03-26 Andreas Schwab <schwab@suse.de>
15750
15751 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15752 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15753 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15754 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15755 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15756 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15757 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15758 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15759 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15760 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15761 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15762 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15763 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15764 (R_RISCV_NUM): Define.
15765
fa97d2ab
ST
157662018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15767
15768 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15769 TLS declaration of errno.
37be82a0
ST
15770 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15771 __libc_setup_tls.
15772 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15773 (ARCH_SETUP_TLS): Likewise.
15774 * sysdeps/mach/hurd/libc-start.h: New file copied from
15775 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
978a6803
ST
15776 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15777 instead of __libc_setup_tls.
37be82a0 15778 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
978a6803
ST
15779 __libc_setup_tls before initializing libpthread and running _hurd_init
15780 which starts the signal thread.
15781 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15782 Declare function.
2d813d7b 15783 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fa97d2ab 15784
b8114edd
L
157852018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15786
15787 [BZ #22998]
15788 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15789 after it is defined.
15790
cd66c0e5
AS
157912018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15792 Max Horn <max@quendi.de>
15793
15794 [BZ #22644]
43d4f3d5 15795 CVE-2017-18269
cd66c0e5
AS
15796 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15797 branch conditions.
15798 * string/test-memmove.c (do_test2): New testcase.
15799
a4406139
JM
158002018-03-22 Joseph Myers <joseph@codesourcery.com>
15801
15802 * sysdeps/generic/frame.h: Remove file.
15803 * sysdeps/arm/frame.h: Likewise.
15804 * sysdeps/hppa/frame.h: Likewise.
15805 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15806 macro.
15807 (GET_FRAME): Likewise.
15808 (GET_STACK): Likewise.
15809 (CALL_SIGHANDLER): Likewise.
15810 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15811 Likewise.
15812 (GET_FRAME): Likewise.
15813 (GET_STACK): Likewise.
15814 (CALL_SIGHANDLER): Likewise.
15815 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15816 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15817 (GET_FRAME): Likewise.
15818 (GET_STACK): Likewise.
15819 (CALL_SIGHANDLER): Likewise.
15820 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15821 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15822 (GET_FRAME): Likewise.
15823 (GET_STACK): Likewise.
15824 (ADVANCE_STACK_FRAME): Likewise.
15825 (CALL_SIGHANDLER): Likewise.
15826 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15827 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15828 (GET_FRAME): Likewise.
15829 (GET_STACK): Likewise.
15830 (CALL_SIGHANDLER): Likewise.
15831 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15832 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15833 (GET_FRAME): Likewise.
15834 (GET_STACK): Likewise.
15835 (CALL_SIGHANDLER): Likewise.
15836 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15837 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15838 (GET_FRAME): Likewise.
15839 (GET_STACK): Likewise.
15840 (CALL_SIGHANDLER): Likewise.
15841 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15842 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15843 (GET_FRAME): Likewise.
15844 (GET_STACK): Likewise.
15845 (CALL_SIGHANDLER): Likewise.
15846 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15847 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15848 (GET_FRAME): Likewise.
15849 (GET_STACK): Likewise.
15850 (CALL_SIGHANDLER): Likewise.
15851 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15852 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15853 (GET_FRAME): Likewise.
15854 (GET_STACK): Likewise.
15855 (CALL_SIGHANDLER): Likewise.
15856 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15857 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15858 (GET_FRAME): Likewise.
15859 (GET_STACK): Likewise.
15860 (CALL_SIGHANDLER): Likewise.
15861 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15862 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15863 (GET_FRAME): Likewise.
15864 (GET_STACK): Likewise.
15865 (CALL_SIGHANDLER): Likewise.
15866 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15867 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15868 (GET_FRAME): Likewise.
15869 (GET_STACK): Likewise.
15870 (CALL_SIGHANDLER): Likewise.
15871 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15872 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15873 (FIRST_FRAME_POINTER): Likewise.
15874 (ADVANCE_STACK_FRAME): Likewise.
15875 (GET_STACK): Likewise.
15876 (GET_FRAME): Likewise.
15877 (CALL_SIGHANDLER): Likewise.
15878 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15879 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15880 (ADVANCE_STACK_FRAME): Likewise.
15881 (GET_STACK): Likewise.
15882 (GET_FRAME): Likewise.
15883 (CALL_SIGHANDLER): Likewise.
15884 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15885 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15886 (GET_FRAME): Likewise.
15887 (GET_STACK): Likewise.
15888 (CALL_SIGHANDLER): Likewise.
15889 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15890 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15891 (GET_FRAME): Likewise.
15892 (GET_STACK): Likewise.
15893 (CALL_SIGHANDLER): Likewise.
15894
ffec7b27
JM
158952018-03-21 Joseph Myers <joseph@codesourcery.com>
15896
15897 * sysdeps/x86_64/backtrace.c: Move to ....
15898 * debug/backtrace.c: ... here.
15899 * sysdeps/aarch64/backtrace.c: Remove file.
15900 * sysdeps/alpha/backtrace.c: Likewise.
15901 * sysdeps/hppa/backtrace.c: Likewise.
15902 * sysdeps/ia64/backtrace.c: Likewise.
15903 * sysdeps/mips/backtrace.c: Likewise.
15904 * sysdeps/nios2/backtrace.c: Likewise.
15905 * sysdeps/riscv/backtrace.c: Likewise.
15906 * sysdeps/sh/backtrace.c: Likewise.
15907 * sysdeps/tile/backtrace.c: Likewise.
15908
8a07b0c4
JM
159092018-03-20 Joseph Myers <joseph@codesourcery.com>
15910
d0c5d731
JM
15911 [BZ #22987]
15912 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15913 function.
15914 (fdimf): Likewise.
15915 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15916
8a07b0c4
JM
15917 [BZ #17343]
15918 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15919 possibly overflowing computations.
15920
ceb54b9b
ST
159212018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15922
15923 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15924 values from Linux-specific section now that it is in the GNU section.
15925 * sysdeps/gnu/errlist.c: Regenerate.
15926
8d3f9e85
JM
159272018-03-20 Joseph Myers <joseph@codesourcery.com>
15928
15929 * math/Makefile (libm-narrow-fns): Add sub.
15930 (libm-test-funcs-narrow): Likewise.
15931 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15932 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15933 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15934 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15935 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15936 (NARROW_SUB_TRIVIAL): Likewise.
15937 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
15938 macro.
15939 (__dsubl): Likewise.
15940 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
15941 dsub.
15942 (CFLAGS-nldbl-dsub.c): New variable.
15943 (CFLAGS-nldbl-fsub.c): Likewise.
15944 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15945 __nldbl_dsubl.
15946 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
15947 prototype.
15948 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
15949 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
15950 * math/auto-libm-test-in: Add tests of sub.
15951 * math/auto-libm-test-out-narrow-sub: New generated file.
15952 * math/libm-test-narrow-sub.inc: New file.
15953 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15954 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
15955 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
15956 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
15957 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
15958 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
15959 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
15960 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
15961 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
15962 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
15963 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
15964 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
15965 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
15966 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
15967 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
15968 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
15969 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
15970 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
15971 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15972 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15973 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15974 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15975 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15976 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15977 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15978 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15979 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15980 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15981 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15982 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15983 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15984 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15989 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15990 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15991 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15992 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15993 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15994 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15995 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15996 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15997 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15998 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15999
d473f015
JM
160002018-03-19 Joseph Myers <joseph@codesourcery.com>
16001
16002 [BZ #20079]
16003 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16004
fbce6f72
WD
160052018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16006
16007 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16008
72e7ffc3
RB
160092018-03-18 Richard Braun <rbraun@sceen.net>
16010
16011 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16012 thread reference.
16013
542c20a1
AA
160142018-03-18 Agustina Arzille <avarzille@riseup.net>
16015
16016 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16017 (__libc_cleanup_fct): Define function.
16018 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16019 __libc_cleanup_end): Rewrite implementation using
16020 __attribute__ ((__cleanup__)).
16021 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
fb4cc8a0
AA
16022 * hurd/Makefile (routines): Add hurdlock.
16023 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16024 interface.
16025 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16026 * hurd/hurdpid.c: Include <lowlevellock.h>
16027 (_S_msg_proc_newids): Use lll_wait to synchronize.
16028 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16029 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16030 * mach/Makefile (lock-headers): Remove machine-lock.h.
16031 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16032 <machine-lock.h>.
16033 (__spin_lock_t): New type.
16034 (__SPIN_LOCK_INITIALIZER): New macro.
16035 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16036 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16037 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16038 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16039 (__mutex_init): Initialize with lll.
16040 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16041 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16042 needing lll.
16043 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16044 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16045 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16046 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16047 (__setpgid): Use lll for synchronization.
16048 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16049 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16050 instead of <cthreads.h>.
16051 (_IO_lock_inexpensive): New macro
16052 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16053 (__libc_lock_self0): New declaration.
16054 (__libc_lock_owner_self): New macro.
16055 (__libc_key_t): Remove type.
16056 (_LIBC_LOCK_INITIALIZER): New macro.
16057 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16058 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16059 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16060 __libc_lock_define_initialized_recursive,
16061 __rtld_lock_define_initialized_recursive,
16062 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16063 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16064 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16065 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16066 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16067 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16068 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16069 New macros.
16070 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16071 * hurd/hurdlock.c: New file.
16072 * hurd/hurdlock.h: New file.
16073 * mach/lowlevellock.h: New file
542c20a1 16074
9a37922e
ST
160752018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16076
16077 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
489999cc
ST
16078 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16079 when opening a symlink with O_NOFOLLOW.
72103e73
ST
16080 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16081 path when flags contains O_NOFOLLOW.
16082 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16083 if flags contains O_DIRECTORY and the result is a directory.
aa218929
ST
16084 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16085 oneself when the pointer given in D is nul (as set by ext2fs).
20bc801b
ST
16086 * sysdeps/mach/hurd/mlockall.c: New file.
16087 * sysdeps/mach/hurd/munlockall.c: New file.
9a37922e 16088
34e6a869
ST
160892018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16090
16091 * hurd/hurdsig.c: Include <pthread.h>.
16092 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16093 get the signal thread stack layout.
dc33bef3
ST
16094 * hurd/Makefile (headers): Remove threadvar.h.
16095 (inline-headers): Remove threadvar.h.
16096 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16097 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16098 __hurd_threadvar_max, __hurd_errno_location.
16099 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16100 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16101 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16102 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16103 unless TLS is not initialized yet, in which case we do not need a
16104 critical section yet anyway.
16105 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16106 <machine-sp.h>.
16107 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16108 declarations.
16109 (__hurd_threadvar_index): Remove enum.
16110 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16111 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16112 inlines.
16113 (__hurd_reply_port0): New variable declaration.
16114 (__hurd_local_reply_port): New macro.
16115 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16116 (interrupted_reply_port_location): Add thread_t parameter. Use it
16117 with THREAD_TCB to access thread-local variables.
16118 (_hurdsig_abort_rpcs): Pass ss->thread to
16119 interrupted_reply_port_location.
16120 (_hurd_internal_post_signal): Likewise.
16121 (_hurdsig_init): Use presence of cthread_fork instead of
16122 __hurd_threadvar_stack_mask to start signal thread by hand.
16123 Remove signal thread threadvar initialization.
16124 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16125 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16126 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16127 of threadvar.
16128 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16129 __libc_lock_self0.
16130 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16131 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16132 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16133 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16134 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16135 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16136 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16137 define variables.
16138 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16139 <hurd/threadvar.h>.
16140 [IS_IN(rtld)] (rtld_errno): New variable.
16141 [IS_IN(rtld)] (__errno_location): New weak function.
16142 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16143 * sysdeps/mach/hurd/errno.c: Remove file.
16144 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16145 (__fork): Remove THREADVAR_SPACE macro and its use.
16146 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16147 variable.
16148 (init): Do not initialize threadvar.
16149 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16150 symbol.
16151 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16152 __hurd_local_reply_port instead of threadvar.
16153 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16154 _hurd_sigstate fields.
16155 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16156 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16157 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16158 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16159 instead of threadvar.
16160 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16161 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16162 (use_threadvar, global_reply_port): Remove variables.
16163 (__hurd_reply_port0): New variable.
16164 (__mig_get_reply_port): Use __hurd_local_reply_port and
16165 __hurd_reply_port0 instead of threadvar.
16166 (__mig_dealloc_reply_port): Likewise.
16167 (__mig_init): Do not initialize threadvar.
16168 * sysdeps/mach/hurd/profil.c: Fix comment.
c2fb08c7
ST
16169 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16170 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16171 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16172 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16173 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16174 __cthread_setspecific.
16175 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16176 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16177 __cthread_t instead of cthread_fork, cthread_detach,
16178 pthread_getattr_np, pthread_attr_getstack.
16179 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16180 __cthread_keycreate.
16181 (cthread_getspecific): Rename to __cthread_getspecific.
16182 (cthread_setspecific): Rename to __cthread_setspecific.
16183 (__libc_getspecific): Use __cthread_getspecific instead of
16184 cthread_getspecific.
16185 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16186 __cthread_keycreate instead of cthread_keycreate.
16187 (__libc_setspecific): Use __cthread_setspecific instead of
16188 cthread_setspecific.
16189 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16190 Likewise.
dd28d4ba
ST
16191 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16192 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16193 testing whether it is defined.
34e6a869 16194
f8baf2a2
ST
161952018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16196
16197 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16198 Define macro.
16199 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16200 * sysdeps/mach/i386/thread_state.h
16201 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16202 i386_THREAD_STATE.
16203 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16204 i386_THREAD_STATE.
16205 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16206
16207 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16208 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16209
16210 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16211 macros.
16212 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16213 descriptor instead of creating a new one.
16214 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16215
16216 * mach/setup-thread.c: Include <ldsodefs.h>.
16217 (__mach_setup_thread): Call _dl_allocate_tls, pass
16218 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16219 MACHINE_THREAD_STATE_FLAVOR, before getting
16220 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16221 MACHINE_THREAD_STATE_FLAVOR with the result.
16222 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16223 MACHINE_THREAD_STATE_FIX_NEW.
16224 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16225 too. Add original thread parameter.
16226
34ba96b8
JM
162272018-03-16 Joseph Myers <joseph@codesourcery.com>
16228
5d75b75f
JM
16229 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16230 Remove inline function.
16231
34ba96b8
JM
16232 * sysdeps/i386/fpu/libm-test-ulps: Update.
16233 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16234
22679b2c
WD
162352018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16236
16237 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16238 commit.
16239
c429a8d8
JM
162402018-03-15 Joseph Myers <joseph@codesourcery.com>
16241
16242 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16243 (__sincos_code): Remove define and undefine.
16244 [__FAST_MATH__] (__sincos): Remove inline function.
16245 [__FAST_MATH__] (__sincosf): Remove inline function.
16246 [__FAST_MATH__] (__sincosl): Remove inline function.
16247 (__atan2l): Remove inline functions.
16248 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16249 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16250 function.
16251 (floor): Remove inline function.
16252 (ceil): Likewise.
16253 [__FAST_MATH__] (__ldexp_code): Remove macro.
16254 [__FAST_MATH__] (ldexp): Remove inline function.
16255 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16256 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16257 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16258 [__USE_ISOC99] (__lrint_code): Remove macro.
16259 [__USE_ISOC99] (__llrint_code): Likewise.
16260 [__USE_ISOC99] (lrintf): Remove inline function.
16261 [__USE_ISOC99] (lrint): Likewise.
16262 [__USE_ISOC99] (lrintl): Likewise.
16263 [__USE_ISOC99] (llrint): Likewise.
16264 [__USE_ISOC99] (llrintf): Likewise.
16265 [__USE_ISOC99] (llrintl): Likewise.
16266
700593fd
WD
162672018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16268
16269 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16270 (__ieee754_sqrtf): Remove.
16271 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16272 (__ieee754_sqrtf): Remove.
16273 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16274 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16275 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16276 (__ieee754_sqrtf): Remove.
16277 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16278 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16279 (sqrtf): Remove.
16280 (sqrtl): Remove.
16281 (__ieee754_sqrt): Remove.
16282 (__ieee754_sqrtf): Remove.
16283 (__ieee754_sqrtl): Remove.
16284 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16285 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16286 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16287 (__ieee754_sqrtf): Remove.
16288 (__ieee754_sqrtl): Remove.
16289
f67a8147
WD
162902018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16291
16292 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16293 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16294 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16295 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16296 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16297 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16298 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16299 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16300 Likewise.
16301 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16302 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16303 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16304 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16305 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16306 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16307 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16308 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16309 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16310 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16311 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16312 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16313 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16314 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16315 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16316 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16317 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16318 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16319 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16320 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16321 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16322 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16323 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16324 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16325 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16326 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16327 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16328 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16329 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16330 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16331 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16332 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16333 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16334 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16335 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16336 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16337 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16338 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16339 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16340 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16341
1294b189
WD
163422018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16343
16344 * include/math.h (sqrt): Declare with asm redirect.
16345 (sqrtf): Likewise.
16346 (sqrtl): Likewise.
16347 (sqrtf128): Likewise.
16348 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16349 nonlib and libnldbl with -fmath-errno.
16350 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16351 * math/w_sqrt_template.c: Likewise.
16352 * math/w_sqrtf_compat.c: Likewise.
16353 * math/w_sqrtl_compat.c: Likewise.
16354 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16355 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16356 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16357 complex.h.
16358
f1c8185d
WD
163592018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16360
16361 * benchtests/Makefile: Define _ISOMAC.
16362 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16363 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16364 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16365 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16366 * benchtests/bench-timing.h: Define attribute_hidden.
16367
b47c3e76
SP
163682018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16369
16370 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16371 mov + lsr.
16372
807fee29
RL
163732018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16374
16375 [BZ #22963]
16376 * localedata/locales/cs_CZ (mon): Rename to...
16377 (alt_mon): This.
16378 (mon): Import from CLDR (genitive case).
16379
e7155a28
RL
163802018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16381
16382 [BZ #22937]
16383 * localedata/locales/el_CY (abmon): Rename to...
16384 (ab_alt_mon): This.
16385 (abmon): Import from CLDR (abbreviated genitive case).
16386 * localedata/locales/el_GR (abmon): Rename to...
16387 (ab_alt_mon): This.
16388 (abmon): Import from CLDR (abbreviated genitive case).
16389
71d7b121
RL
163902018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16391
16392 [BZ #22932]
16393 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16394
a00bffe8
RB
163952018-03-15 Robert Buj <robert.buj@gmail.com>
16396
16397 [BZ #22848]
16398 * localedata/locales/ca_ES (abmon): Rename to...
16399 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16400 (mon): Rename to...
16401 (alt_mon): This.
16402 (abmon): Import from CLDR (genitive case, month names preceded by
16403 "de" or "d’").
16404 (mon): Likewise.
16405 (abday): Synchronize with CLDR.
16406 (d_t_fmt): Likewise.
16407 (d_fmt): Likewise.
16408 (am_pm): Likewise.
16409
16410 (LC_TIME): Improve indentation.
16411 (LC_TELEPHONE): Likewise.
16412 (LC_NAME): Likewise.
16413 (LC_ADDRESS): Likewise.
16414
f9555d73
JM
164152018-03-14 Joseph Myers <joseph@codesourcery.com>
16416
16417 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16418 (lrintf): Remove definitions used only with old GCC.
16419 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16420 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16421 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16422 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16423 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16424 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16425 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16426 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16427 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16428 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16429 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16430 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16431 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16432 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16433 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16434 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16435 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16436 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16437 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16438 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16439 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16440 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16441 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16442 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16443 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16444 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16445 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16446 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16447
d46f84de
SP
164482018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16449
16450 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16451 instruction to unbreak builds with binutils 2.26 and older.
16452
7108f1f9
SP
164532018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16454
16455 * sysdeps/aarch64/strncmp.S (count): New macro.
16456 (strncmp): Store misaligned length in SRC1 in COUNT.
16457 (mutual_align): Adjust.
16458 (misaligned8): Load dword at a time when it is safe.
16459
2cc7bad0
ZW
164602018-03-12 Zack Weinberg <zackw@panix.com>
16461
16462 [BZ #1190]
16463 [BZ #19476]
16464 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16465 if the _IO_EOF_SEEN bit is already set; update commentary.
16466 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16467 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16468
16469 * support/support_openpty.c, support/tty.h: New files.
16470 * support/Makefile (libsupport-routines): Add support_openpty.
16471
16472 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16473 New test cases.
16474 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16475 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16476
778f1974
DL
164772018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16478
16479 * po/pt_BR.po: Update translations.
16480
6b5c8607 164812018-03-12 David Michael <fedora.dm0@gmail.com>
da6d4404
DM
16482
16483 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16484 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16485 get a port to the startup server.
16486
d3da750d
ZW
164872018-03-11 Zack Weinberg <zackw@panix.com>
16488
16489 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16490 before nldbl-compat.h.
16491
054b72cc
ZW
164922018-03-10 Zack Weinberg <zackw@panix.com>
16493
0d13dfa1
ZW
16494 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16495 math.h or math_private.h.
16496
16497 * sysdeps/alpha/fpu/s_isnan.c
16498 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16499 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16500 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16501 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16502 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16503 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16504 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16505 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16506 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16509 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16510 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16511 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16512 Include math_private.h.
16513
16514 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16515 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16516 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16517 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16518 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16519 * sysdeps/powerpc/power7/fpu/s_logb.c:
16520 Include math.h and math_private.h.
16521
054b72cc
ZW
16522 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16523 uses of $at in .set noat / .set at.
16524
6253bacd
L
165252018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16526
16527 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16528 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16529 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16530 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16531 Likewise.
16532
229855e5
FW
165332018-03-09 Florian Weimer <fweimer@redhat.com>
16534
16535 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16536 in comment.
16537
9aa5c222
AJ
165382018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16539
16540 [BZ #22919]
16541 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16542 Add nop before __startcontext, add explaining comments.
16543
3dc21497
AZ
165442018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16545
e921c89e
AZ
16546 [BZ #22926]
16547 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16548 empty for __SPE__.
16549 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16550 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16551 Do not build hardware transactional code for __SPE__.
16552 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16553 (__lll_trylock_elision): Likewise.
16554 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16555 (__lll_unlock_elision): Likewise.
16556
d9f26dab 16557 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
3dc21497
AZ
16558 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16559 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16560 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16561 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16562 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16563 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16564 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16565 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16566 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16567 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16568 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16569 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16570 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16571 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16572 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16573 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16574 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16575 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16576 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16577 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16578 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16579 (__ASSUME_CLONE_BACKWARDS): Define.
16580 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16581 __clone2 if __NR_clone2 is defined.
16582 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16583 (__ASSUME_CLONE_BACKWARDS): Likewise.
16584 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16585 (__ASSUME_CLONE_BACKWARDS): Likewise.
16586 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16587 (__ASSUME_CLONE2): Likewise.
16588 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16589 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16590 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16591 variants and the define architecture can use.
16592 (__ASSUME_CLONE_DEFAULT): Define as default.
16593 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16594 (__ASSUME_CLONE_BACKWARDS): Likewise.
16595 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16596 (__ASSUME_CLONE_BACKWARDS): Likewise.
16597 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16598 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16599
adc95fb0
SP
166002018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16601
4e54d918
SP
16602 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16603
30a81dae
SP
16604 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16605 time.
16606
adc95fb0
SP
16607 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16608 (do_test_limit): Likewise.
16609
16610 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16611 for every implementation.
16612 (do_test): Likewise.
16613
16614 * benchtests/bench-strncmp.c: Convert output to json.
16615
4e9066bc
ST
166162018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16617
16618 * io/futimens.c: Add missing start-of-file descriptive comment.
16619 * io/utime.c: Likewise.
16620 * misc/futimesat.c: Likewise.
16621 * misc/utimes.c: Likewise.
16622 * sysdeps/mach/hurd/futimesat.c: Likewise.
16623 * sysdeps/mach/hurd/utimes.c: Likewise.
16624 * sysdeps/posix/utime.c: Likewise.
16625 * sysdeps/posix/utimes.c: Likewise.
16626 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16627 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16628 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16629 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16630
ec1300cf
ST
166312018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16632
16633 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16634 hurd_futimes.
16635 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16636 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16637 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16638 (__futimens): Move implementation to...
16639 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16640 utime_tvalue_from_tspec): ... new helper functions.
16641 (hurd_futimens): New function.
16642 * sysdeps/mach/hurd/futimesat.c: New file.
16643 * sysdeps/mach/hurd/utimensat.c: New file.
16644
bbe762d1
FC
166452018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16646
16647 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16648 UTIME_OMIT): New macros.
16649 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16650 before reverting to converting time spec to time value and calling
16651 __file_utimes.
16652 * sysdeps/mach/hurd/utime-helper.c: New file.
16653 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16654 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16655 reverting to utime_tvalue_from_tval and __file_utimes.
16656 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16657 (__lutimes): Just call hurd_futimens after lookup.
16658 * sysdeps/mach/hurd/utimes.c: Likewise.
16659
a1ede3a4
ST
166602018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16661
16662 * bits/sigaction.h: Add include guard.
16663 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16664 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16665 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16666 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16667 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16668 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16669 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16670 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16671 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16672
6900d2ca
JM
166732018-03-05 Joseph Myers <joseph@codesourcery.com>
16674
16675 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16676 -Wmaybe-uninitialized for -Os.
16677 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16678 this disabling.
16679
68448be2
AZ
166802018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16681
5226a81f
AZ
16682 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16683 __INO_T_MATCHES_INO64_T is defined.
16684 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16685 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16686 of definition.
16687 * dirent/alphasort64.c: Likewise.
16688 * dirent/scandir.c: Likewise.
16689 * dirent/scandir64-tail.c: Likewise.
16690 * dirent/scandir64.c: Likewise.
16691 * dirent/scandirat.c: Likewise.
16692 * dirent/scandirat64.c: Likewise.
16693 * dirent/versionsort.c: Likewise.
16694 * dirent/versionsort64.c: Likewise.
16695 * include/dirent.h: Likewise.
16696
fbd01e6c
AZ
16697 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16698 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16699 for socketpair endpoint.
16700 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16701 WRITE_BUFFER_SIZE as buffer size for sending socket.
16702 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16703 issue on system where send is implemented with sendto syscall.
16704 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16705 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16706 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16707 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16708
68448be2
AZ
16709 [BZ #21269]
16710 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16711 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16712 sa_restorer for vDSO case.
16713 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16714
eb1ca47e
ST
167152018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16716
16717 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
e30c291a
ST
16718 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16719 * hurd/hurd/ioctl.h: Include <mach/port.h>
16720 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
f4bff843
ST
16721 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16722 <mach/mach_types.h> and <mach/message.h>.
430fd945
ST
16723 (headers): Move mach/param.h to bits/mach/param.h.
16724 * sysdeps/mach/i386/mach/param.h: Move file to ...
16725 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16726 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16727 of <mach/param.h>.
3403cb7d
ST
16728 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16729 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16730 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
48d34cbc
ST
16731 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16732 trivial, for C++ conformity.
44c6376c 16733 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
95dfdbd2
ST
16734 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16735 Process mig output through $(migheadersed).
16736 * hurd/Makefile (migheadersed): Define variable.
a726c87a
ST
16737 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16738 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16739 headers.
ba89615d
ST
16740 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16741 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16742 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16743 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16744 <bits/types/sigset_t.h>.
16745 [!defined __USE_GNU]: Do not #error out.
16746 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16747 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16748 Include <stddef.h> and <bits/types/sigset_t.h>
16749 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16750 instead of sighandler_t.
974393ea
ST
16751 * stdlib/errno.h (error_t): Move definition to...
16752 * bits/types/error_t.h: ... new header.
16753 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16754 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16755 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16756 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16757 * hurd/hurd.h: Include <bits/types/error_t.h>
16758 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16759 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16760 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16761 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16762 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16763 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
8d965cde 16764 * sysdeps/mach/hurd/futimens.c: New file.
eb1ca47e 16765
eaf6753f
AS
167662018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16767
16768 [BZ #22918]
16769 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16770 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16771 * nscd/gai.c (__nss_hosts_database): Readd definition.
16772 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16773 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16774 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16775
4dc23804
JM
167762018-03-02 Joseph Myers <joseph@codesourcery.com>
16777
16778 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16779 (ifunc_one): Likewise.
16780
1c81d55f
DD
167812018-03-01 DJ Delorie <dj@delorie.com>
16782
16783 [BZ #22342]
16784 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16785 key value.
16786
b717c14f
MR
167872018-03-01 Maciej W. Rozycki <macro@mips.com>
16788
16789 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16790 `match_pid' parameter.
16791 (td_ta_thr_iter): Update accordingly.
16792
1efe1358
FW
167932018-03-01 Florian Weimer <fweimer@redhat.com>
16794
16795 * nptl/Makefile (install-lib-ldscripts): Remove.
16796 (install): Remove rule.
16797 ($(inst_libdir)/libpthread.so): Likewise.
16798
a527f09c
MF
167992018-03-01 Mike FABIAN <mfabian@redhat.com>
16800
16801 [BZ #22896]
16802 * localedata/locales/an_ES: update month and day names,
16803 improve d_fmt, improve postal_fmt, add country_post,
16804 add country_isbn
16805
35d660b0
MF
168062018-03-01 Mike FABIAN <mfabian@redhat.com>
16807
16808 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16809 Ukrainian instead of Bulgarian.
16810
1a2f44a8
FW
168112018-03-01 Florian Weimer <fweimer@redhat.com>
16812
16813 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16814 reference.
16815
bd60ce86
FW
168162018-03-01 Florian Weimer <fweimer@redhat.com>
16817
16818 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16819 * nptl/Makefile (routines): Add pthread_atfork.
16820 (static-only-routines): Set to pthread_atfork.
16821 (libpthread-routines): Remove pthread_atfork.
16822 (libpthread-static-only-routines): Remove.
16823 (install): Update comment.
16824 (libpthread.so): Do not install libpthread_nonshared.a.
16825 (tests): Do not link with libpthread_nonshared.a.
16826 (generated): Remove libpthread_nonshared.a.
16827 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16828 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16829 with libpthread_nonshared.a.
16830
000f290f
JM
168312018-02-28 Joseph Myers <joseph@codesourcery.com>
16832
e2bcf6a8
JM
16833 [BZ #22902]
16834 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16835 (libc_feholdexcept_setroundf128): New macro.
16836 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16837
000f290f
JM
16838 [BZ #15105]
16839 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16840 libc_hidden_def.
16841 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16842 * include/inttypes.h: New file.
16843
02f2fead
JM
168442018-02-27 Joseph Myers <joseph@codesourcery.com>
16845
16846 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16847 -Os in two more places.
16848
874c56d7
MF
168492018-02-27 Mike FABIAN <mfabian@redhat.com>
16850
16851 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16852 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16853 be sorted correctly at the moment because of a bug.
16854
15973854
MF
168552018-02-27 Mike FABIAN <mfabian@redhat.com>
16856
16857 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16858 treat ñ as a primary different character, sync the collation
16859 for Spanish with CLDR.
16860 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16861 * localedata/Makefile: Add new test files.
16862 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16863 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16864 collation order.
16865 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16866 * localedata/am_ET.UTF-8.in: New test file.
16867 * localedata/az_AZ.UTF-8.in: Likewise.
16868 * localedata/be_BY.UTF-8.in: Likewise.
16869 * localedata/ber_DZ.UTF-8.in: Likewise.
16870 * localedata/ber_MA.UTF-8.in: Likewise.
16871 * localedata/bg_BG.UTF-8.in: Likewise.
16872 * localedata/br_FR.UTF-8.in: Likewise.
16873 * localedata/cmn_TW.UTF-8.in: Likewise.
16874 * localedata/crh_UA.UTF-8.in: Likewise.
16875 * localedata/csb_PL.UTF-8.in: Likewise.
16876 * localedata/cv_RU.UTF-8.in: Likewise.
16877 * localedata/cy_GB.UTF-8.in: Likewise.
16878 * localedata/dz_BT.UTF-8.in: Likewise.
16879 * localedata/eo.UTF-8.in: Likewise.
16880 * localedata/es_ES.UTF-8.in: Likewise.
16881 * localedata/fa_IR.UTF-8.in: Likewise.
16882 * localedata/fi_FI.UTF-8.in: Likewise.
16883 * localedata/fil_PH.UTF-8.in: Likewise.
16884 * localedata/fur_IT.UTF-8.in: Likewise.
16885 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16886 * localedata/ha_NG.UTF-8.in: Likewise.
16887 * localedata/ig_NG.UTF-8.in: Likewise.
16888 * localedata/ik_CA.UTF-8.in: Likewise.
16889 * localedata/kk_KZ.UTF-8.in: Likewise.
16890 * localedata/ku_TR.UTF-8.in: Likewise.
16891 * localedata/ky_KG.UTF-8.in: Likewise.
16892 * localedata/ln_CD.UTF-8.in: Likewise.
16893 * localedata/mi_NZ.UTF-8.in: Likewise.
16894 * localedata/ml_IN.UTF-8.in: Likewise.
16895 * localedata/mn_MN.UTF-8.in: Likewise.
16896 * localedata/mr_IN.UTF-8.in: Likewise.
16897 * localedata/mt_MT.UTF-8.in: Likewise.
16898 * localedata/nb_NO.UTF-8.in: Likewise.
16899 * localedata/om_KE.UTF-8.in: Likewise.
16900 * localedata/os_RU.UTF-8.in: Likewise.
16901 * localedata/ps_AF.UTF-8.in: Likewise.
16902 * localedata/ro_RO.UTF-8.in: Likewise.
16903 * localedata/ru_RU.UTF-8.in: Likewise.
16904 * localedata/sc_IT.UTF-8.in: Likewise.
16905 * localedata/se_NO.UTF-8.in: Likewise.
16906 * localedata/sq_AL.UTF-8.in: Likewise.
16907 * localedata/sv_SE.UTF-8.in: Likewise.
16908 * localedata/szl_PL.UTF-8.in: Likewise.
16909 * localedata/tg_TJ.UTF-8.in: Likewise.
16910 * localedata/tk_TM.UTF-8.in: Likewise.
16911 * localedata/tt_RU.UTF-8.in: Likewise.
16912 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16913 * localedata/ug_CN.UTF-8.in: Likewise.
16914 * localedata/uz_UZ.UTF-8.in: Likewise.
16915 * localedata/vi_VN.UTF-8.in: Likewise.
16916 * localedata/yi_US.UTF-8.in: Likewise.
16917 * localedata/yo_NG.UTF-8.in: Likewise.
16918 * localedata/zh_CN.UTF-8.in: Likewise.
16919 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16920 file and fix bugs in the collation.
16921 * localedata/locales/az_AZ: Likewise.
16922 * localedata/locales/be_BY: Likewise.
16923 * localedata/locales/ber_DZ: Likewise.
16924 * localedata/locales/ber_MA: Likewise.
16925 * localedata/locales/bg_BG: Likewise.
16926 * localedata/locales/br_FR: Likewise.
16927 * localedata/locales/br_FR@euro: Likewise.
16928 * localedata/locales/ca_ES: Likewise.
16929 * localedata/locales/cns11643_stroke: Likewise.
16930 * localedata/locales/crh_UA: Likewise.
16931 * localedata/locales/cs_CZ: Likewise.
16932 * localedata/locales/csb_PL: Likewise.
16933 * localedata/locales/cv_RU: Likewise.
16934 * localedata/locales/cy_GB: Likewise.
16935 * localedata/locales/da_DK: Likewise.
16936 * localedata/locales/dz_BT: Likewise.
16937 * localedata/locales/en_CA: Likewise.
16938 * localedata/locales/eo: Likewise.
16939 * localedata/locales/es_CU: Likewise.
16940 * localedata/locales/es_EC: Likewise.
16941 * localedata/locales/es_ES: Likewise.
16942 * localedata/locales/es_US: Likewise.
16943 * localedata/locales/et_EE: Likewise.
16944 * localedata/locales/fa_IR: Likewise.
16945 * localedata/locales/fi_FI: Likewise.
16946 * localedata/locales/fil_PH: Likewise.
16947 * localedata/locales/fur_IT: Likewise.
16948 * localedata/locales/gez_ER@abegede: Likewise.
16949 * localedata/locales/ha_NG: Likewise.
16950 * localedata/locales/hr_HR: Likewise.
16951 * localedata/locales/hsb_DE: Likewise.
16952 * localedata/locales/hu_HU: Likewise.
16953 * localedata/locales/ig_NG: Likewise.
16954 * localedata/locales/ik_CA: Likewise.
16955 * localedata/locales/is_IS: Likewise.
16956 * localedata/locales/iso14651_t1_pinyin: Likewise.
16957 * localedata/locales/kk_KZ: Likewise.
16958 * localedata/locales/ku_TR: Likewise.
16959 * localedata/locales/ky_KG: Likewise.
16960 * localedata/locales/ln_CD: Likewise.
16961 * localedata/locales/lt_LT: Likewise.
16962 * localedata/locales/lv_LV: Likewise.
16963 * localedata/locales/mi_NZ: Likewise.
16964 * localedata/locales/ml_IN: Likewise.
16965 * localedata/locales/mn_MN: Likewise.
16966 * localedata/locales/mr_IN: Likewise.
16967 * localedata/locales/mt_MT: Likewise.
16968 * localedata/locales/nb_NO: Likewise.
16969 * localedata/locales/om_KE: Likewise.
16970 * localedata/locales/os_RU: Likewise.
16971 * localedata/locales/pl_PL: Likewise.
16972 * localedata/locales/ps_AF: Likewise.
16973 * localedata/locales/ro_RO: Likewise.
16974 * localedata/locales/ru_RU: Likewise.
16975 * localedata/locales/ru_UA: Likewise.
16976 * localedata/locales/sc_IT: Likewise.
16977 * localedata/locales/se_NO: Likewise.
16978 * localedata/locales/si_LK: Likewise.
16979 * localedata/locales/sq_AL: Likewise.
16980 * localedata/locales/sv_FI: Likewise.
16981 * localedata/locales/sv_FI@euro: Likewise.
16982 * localedata/locales/sv_SE: Likewise.
16983 * localedata/locales/szl_PL: Likewise.
16984 * localedata/locales/tg_TJ: Likewise.
16985 * localedata/locales/ti_ER: Likewise.
16986 * localedata/locales/tk_TM: Likewise.
16987 * localedata/locales/tl_PH: Likewise.
16988 * localedata/locales/tr_TR: Likewise.
16989 * localedata/locales/tt_RU: Likewise.
16990 * localedata/locales/tt_RU@iqtelif: Likewise.
16991 * localedata/locales/ug_CN: Likewise.
16992 * localedata/locales/uk_UA: Likewise.
16993 * localedata/locales/uz_UZ: Likewise.
16994 * localedata/locales/uz_UZ@cyrillic: Likewise.
16995 * localedata/locales/vi_VN: Likewise.
16996 * localedata/locales/yi_US: Likewise.
16997 * localedata/locales/yo_NG: Likewise.
16998
ce6636b0
MF
169992018-02-27 Mike FABIAN <mfabian@redhat.com>
17000
17001 * gen-locales.mk: Make test files which contain @ modifiers in their
17002 name work.
17003 * localedata/gen-locale.sh: Likewise.
17004
ac3a3b4b
MF
170052018-02-27 Mike FABIAN <mfabian@redhat.com>
17006
17007 * posix/tst-fnmatch.input: Fix results for range expressions
17008 for non C locales.
17009 * posix/tst-regexloc.c: Do not use a range expression for
17010 de_DE.ISO-8859-1 locale.
17011
770cbe14
MF
170122018-02-27 Mike FABIAN <mfabian@redhat.com>
17013
17014 * posix/bug-regex5.c: Fix test case because with the new
17015 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17016 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17017 file.
17018
0fc355d9
MF
170192018-02-27 Mike FABIAN <mfabian@redhat.com>
17020
17021 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17022 downloaded from ISO, the collation order of @-. and space has changed.
17023 Therefore, this test file needed to be adapted.
17024 * localedata/fr_CA.UTF-8.in: Likewise.
17025 * localedata/fr_FR.UTF-8.in: Likewise.
17026 * localedata/uk_UA.UTF-8.in: Likewise.
17027
43f3893f
MF
170282018-02-27 Mike FABIAN <mfabian@redhat.com>
17029
17030 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17031 order of ȥ in the new iso14651_t1_common file.
17032 * localedata/pl_PL.UTF-8.in: Likewise.
17033
df74ef78
MF
170342018-02-27 Mike FABIAN <mfabian@redhat.com>
17035
17036 * localedata/locales/iso14651_t1_common: Add sections for various
17037 scripts to the iso14651_t1_common file.
17038
d5adfbad
MF
170392018-02-27 Mike FABIAN <mfabian@redhat.com>
17040
17041 * localedata/locales/iso14651_t1_common: Use the code point of a
17042 character in the fourth collation level instead of IGNORE for all
17043 entries which have IGNORE on all 4 levels.
17044
5f5a9610
MF
170452018-02-27 Mike FABIAN <mfabian@redhat.com>
17046
17047 * localedata/locales/iso14651_t1_common: Add some convenient collation
17048 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17049 rules similar to those in CLDR.
17050
8a97e900
MF
170512018-02-27 Mike FABIAN <mfabian@redhat.com>
17052
17053 * localedata/locales/iso14651_t1_common: The new version of this
17054 file downloaded from ISO contained several syntax errors which
17055 are fixed by this patch.
17056
bbdd2fba
MF
170572018-02-27 Mike FABIAN <mfabian@redhat.com>
17058
17059 * localedata/locales/iso14651_t1_common: replace all <U.....>
17060 with <U000.....> because glibc understands only 4 digit or 8 digit
17061
1569e551
MF
170622018-02-27 Mike FABIAN <mfabian@redhat.com>
17063
17064 * localedata/locales/iso14651_t1_common: Necessary changes
17065 to make the file downloaded from ISO usable by glibc.
17066
9479b6d5
MF
170672018-02-27 Mike FABIAN <mfabian@redhat.com>
17068
17069 [BZ #14095]
17070 * localedata/locales/iso14651_t1_common: Update file to
17071 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17072
03b540b3
ST
170732018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17074
17075 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17076 of <nptl/pthreadP.h>
17077 (thread_attr_compare): Move function to...
eb937a52 17078 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
03b540b3 17079 * sysdeps/nptl/timer_routines.h: ... new header.
7211eba6 17080 * sysdeps/mach/hurd/gai_misc.h: New file.
03b540b3 17081
20602c72
JM
170822018-02-26 Joseph Myers <joseph@codesourcery.com>
17083
f54d8f73
JM
17084 * string/strcoll_l.c: Include <libc-diag.h>.
17085 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17086 declarations of seq1 and seq2.
17087
20602c72
JM
17088 [BZ #15105]
17089 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17090 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17091
f5f473a9
DL
170922018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17093
17094 [BZ #22433]
17095 [BZ #22807]
17096 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17097 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17098 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17099 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17100 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17101 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17102
398c6fdd
TMQMF
171032018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17104
17105 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17106 macros used in __ptrace_request.
17107
f5d1f629
L
171082018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17109
17110 [BZ #22792]
17111 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17112 to $(CC).
17113 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17114 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17115 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17116 <tcb-offsets.h>.
17117
54412d20
JM
171182018-02-23 Joseph Myers <joseph@codesourcery.com>
17119
17120 [BZ #15105]
17121 * ctype/ctype.c (tolower): Use libc_hidden_def.
17122 (toupper): Likewise.
17123 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17124 [!_ISOMAC] (toupper): Likewise.
17125
81be4b5e
MF
171262018-02-23 Mike FABIAN <mfabian@redhat.com>
17127
17128 * localedata/Makefile: Remove --quiet argument when
17129 installing locales
17130
9d5cfd8e
MF
171312018-02-23 Mike FABIAN <mfabian@redhat.com>
17132
17133 [BZ #17438]
17134 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17135 in d_fmt.
17136 * localedata/locales/pt_PT (LC_TIME): likewise
17137
6c7269f3
MF
171382018-02-23 Mike FABIAN <mfabian@redhat.com>
17139
17140 [BZ #22646]
17141 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17142 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17143 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17144
92aabad9
AZ
171452018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17146
4cdc25a4
AZ
17147 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17148
27761a10
AZ
17149 * nptl/Makefile (routines): Remove unregister-atfork.
17150 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17151 (fork_handler_alloc): Remove function.
17152 (fork_handlers, fork_handler_init): New variables.
17153 (__fork_lock): Rename to atfork_lock.
17154 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17155 to use a dynamic array to add/remove atfork handlers.
17156 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17157 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17158 Remove declaration.
17159 (fork_handler): Remove next, refcntr, and need_signal member.
17160 (__run_fork_handler_type): New enum.
17161 (__run_fork_handlers): New prototype.
17162 * nptl/register-atfork.c: Remove file.
17163 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17164
92aabad9
AZ
17165 * sysdeps/nptl/nptl-signals.h: Move to ...
17166 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17167 comments.
17168 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17169 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17170 unnecessary check for SIGTIMER.
17171 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17172 remove unnecessary removal of SIGTIMER.
17173 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17174 include-signals.h rename.
17175 * nptl/pthreadP.h: Likewise.
17176 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17177 __is_internal_signal instead of __nptl_is_internal_signal.
17178
6b5c8607 171792018-02-22 Andrew Waterman <andrew@sifive.com>
fdcc6253 17180
7e04eb29 17181 [BZ # 22884]
fdcc6253
AW
17182 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17183 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17184 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17185 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17186
8090720a
DD
171872018-02-22 DJ Delorie <dj@delorie.com>
17188
17189 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17190
6ca24c43
SP
171912018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17192
17193 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17194 do_misaligned, not misaligned8.
17195
e9537ddd
SE
171962018-02-22 Steve Ellcey <sellcey@cavium.com>
17197
17198 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17199 Add memcpy_thunderx2.
17200 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17201 Increment to 4.
17202 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17203 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17204 and IS_THUNDERX2PA checks.
17205 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17206 Use macro to set name appropriately.
17207 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17208 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17209 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17210 New macro.
17211 (IS_THUNDERX2): New macro.
17212
6e336476
SL
172132018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17214
17215 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17216
34957904
ZW
172172018-02-21 Zack Weinberg <zackw@panix.com>
17218
30bfee26
ZW
17219 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17220 Define here, unconditionally.
17221 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17222 * libio/libioP.h: Remove #if 0 blocks.
17223 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17224 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17225 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17226
17227 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17228 Assume weak_alias is always defined.
17229
17230 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17231 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17232 Remove #if 0 and #ifdef TODO blocks.
17233 Assume text_set_element is always defined.
17234
17235 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17236 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17237 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17238
df6c012b
ZW
17239 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17240 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17241 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17242 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17243 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17244 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17245 Reformat bit flags for _flags field to make occupancy clearer.
17246 Update commentary.
17247 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17248 Keep definitions consistent with those in libio/libio.h.
17249
17250 * libio/libio.h (_IO_file_flags): Remove macro.
17251 All uses changed to _flags.
17252
177aad3f
ZW
17253 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17254 (__HAVE_COLUMN, _IO_BE): Don't define.
17255 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17256 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17257 * libio/libioP.h (EOF): Don't define.
17258 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17259 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17260 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17261 testing _IO_UNIFIED_JUMPTABLES.
17262
9964a145
ZW
17263 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17264 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17265 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17266 (_IO_size_t): Delete; all uses changed to size_t.
17267 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17268 (_IO_off_t): Delete; all uses changed to off_t.
17269 (_IO_off64_t): Delete; all uses changed to off64_t.
17270 (_IO_pid_t): Delete; all uses changed to pid_t.
17271 (_IO_uid_t): Delete; all uses changed to uid_t.
17272 (_IO_wint_t): Delete; all uses changed to wint_t.
17273 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17274 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17275 (_IO_cookie_io_functions_t): Delete; all uses changed to
17276 cookie_io_functions_t.
17277 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17278 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17279 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17280 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17281
17282 * libio/iofopncook.c: Remove unnecessary forward declarations.
17283 * libio/iolibio.h: Correct outdated commentary.
17284 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17285 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17286 Remove unnecessary casts.
17287 * stdio-common/getline.c: Use _IO_getdelim directly.
17288 Don't redefine ssize_t.
17289 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17290 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17291 Remove outdated comments.
17292 * stdio-common/vfscanf.c: Don't redefine va_list.
17293
34957904
ZW
17294 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17295 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17296 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17297 which are always true, and __cplusplus, which is always false.
17298
30ac923d
JM
172992018-02-21 Joseph Myers <joseph@codesourcery.com>
17300
039c721a
JM
17301 [BZ #15105]
17302 [BZ #19463]
17303 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17304 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17305 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17306 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17307 libc_hidden_proto.
17308 [!_ISOMAC] (putc_unlocked): Likewise.
17309 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17310 define inline if [__USE_EXTERN_INLINES].
17311 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17312 putc_unlocked.
17313
30ac923d
JM
17314 [BZ #15105]
17315 [BZ #19463]
17316 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17317 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17318 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17319 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17320 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17321 getc_unlocked.
17322 * time/tzfile.c (__tzfile_read): Likewise.
17323
7ec5f946
MF
173242018-02-21 Mike FABIAN <mfabian@redhat.com>
17325
17326 [BZ #22517]
17327 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17328
0d217f40
RJ
173292018-02-21 Rical Jasan <ricaljasan@pacific.net>
17330
17331 * io/fcntl.h: Fix a typo in a comment.
17332
862b4502
RJ
173332018-02-21 Rical Jasan <ricaljasan@pacific.net>
17334
17335 [BZ #22862]
17336 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17337 define _DEFAULT_SOURCE.
17338 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17339
999a6dab
FW
173402018-02-21 Florian Weimer <fweimer@redhat.com>
17341
17342 [BZ #20890]
17343 * elf/cache.c (save_cache): Call fsync on temporary file before
17344 renaming it.
17345 (save_aux_cache): Call fdatasync on temporary file before renaming
17346 it.
17347
52a01100
FW
173482018-02-21 Florian Weimer <fweimer@redhat.com>
17349
17350 [BZ #22787]
17351 * include/caller.h: Remove file.
17352 * elf/dl-caller.c: Likewise.
17353 * elf/Makefile (dl-routines): Remove dl-caller.
17354 (shared-only-routines): Do not add dl-caller.
17355 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17356 __check_caller.
17357 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17358 member.
17359 (dl_open_worker): Do not call __check_caller.
17360 (_dl_open): Do not set caller_dl_open member.
17361 * elf/rtld.c (_rtld_global_ro): Do not initialize
17362 _dl_check_caller member.
17363 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17364 _dl_check_caller member.
17365 (_dl_check_caller): Remove declaration.
17366 * sysdeps/unix/sysv/linux/dl-execstack.c
17367 (_dl_make_stack_executable): Do not call __check_caller.
17368
b5bf62e4
ST
173692018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17370
17371 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
315304d2 17372 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
b5bf62e4 17373
e8d190b9
RJ
173742018-02-20 Rical Jasan <ricaljasan@pacific.net>
17375
17376 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17377 description.
17378
6a3962c4
RJ
173792018-02-20 Rical Jasan <ricaljasan@pacific.net>
17380
da81ae64 17381 [BZ #16335]
6a3962c4
RJ
17382 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17383 of 199606L, 200112L, and 200809L.
17384 (_XOPEN_SOURCE): Document special values of 600 and 700.
17385 (_ISOC11_SOURCE): Document macro.
17386 (_ATFILE_SOURCE): Likewise.
17387 (_FORTIFY_SOURCE): Likewise.
17388
ec481ad8
JM
173892018-02-19 Joseph Myers <joseph@codesourcery.com>
17390
17391 [BZ #15105]
17392 [BZ #19463]
17393 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17394 and define as weak alias of __ferror_unlocked. Use
17395 libc_hidden_weak.
17396 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17397 libc_hidden_proto.
17398 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17399 function if [__USE_EXTERN_INLINES].
17400 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17401 ferror_unlocked.
17402
7d15ef84
RJ
174032018-02-19 Rical Jasan <ricaljasan@pacific.net>
17404
17405 [BZ #6889]
17406 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17407
f8d79582
AJ
174082018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17409
17410 [BZ #22818]
17411 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17412 the GLIBC_2.1 version.
17413
56456a2a
AJ
174142018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17415
17416 [BZ #21508]
17417 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17418 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17419 intl/tst-gettext-de.po from po/de.po by removing the
17420 POT-Creation-Date line.
17421 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17422 ../po/de.po.
17423 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17424 ../po/de.po.
17425
13768813
ST
174262018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17427
17428 * mach/Makefile (headers): Add mach/param.h.
17429 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17430 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
dd1efd8c
ST
17431 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17432 (__ptsname_r): Move implementation to...
17433 (__ptsname_internal): ... new function. Add filling the STP
17434 structure.
13768813 17435
6aca1b61
JDA
174362018-02-17 John David Anglin <danglin@gcc.gnu.org>
17437
17438 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17439 idouble to 1 ULP.
17440
16efad51
RJ
174412018-02-16 Rical Jasan <ricaljasan@pacific.net>
17442
17443 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17444 syntax.
17445
87245073
SL
174462018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17447
17448 * nptl/Makefile (tst-mutex8-ENV): Delete.
17449 * nptl/tst-mutex8.c (check_type):
17450 Add runtime check if mutex will be elided.
17451
7fc03cf3
JM
174522018-02-15 Joseph Myers <joseph@codesourcery.com>
17453
db9881ec
JM
17454 [BZ #20980]
17455 [BZ #21234]
17456 * manual/install.texi (Configuring and compiling): Describe
17457 passing CC and CFLAGS on configure command line, not as
17458 environment variables. Use @code markup on those variables.
17459 Specify what options go in CC and what go in CFLAGS. Note the
17460 requirement to compile with optimization.
17461 * INSTALL: Regenerated.
17462
3785b31c
JM
17463 [BZ #18124]
17464 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17465 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17466 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17467 __sigprocmask instead of sigprocmask.
17468 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17469 Likewise.
17470 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17471 __sigsetjmp and sigprocmask.
17472
055ac2a7
JM
17473 [BZ #15105]
17474 * include/argz.h (argz_next): Use libc_hidden_proto.
17475 (__argz_next): Likewise.
17476 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17477 (argz_next): Use libc_hidden_weak.
17478
e4452a2d
JM
17479 [BZ #15105]
17480 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17481 libc_hidden_proto.
17482 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17483 libc_hidden_def.
17484
499b3153
JM
17485 [BZ #15105]
17486 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17487 libc_hidden_proto.
17488 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17489
7fc03cf3
JM
17490 [BZ #15105]
17491 [BZ #19463]
17492 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17493 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17494 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17495 (__feof_unlocked): New declaration, and inline function if
17496 [__USE_EXTERN_INLINES].
17497 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17498 instead of feof_unlocked.
17499 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17500 * nss/nsswitch.c (nss_parse_file): Likewise.
17501 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17502 Likewise.
17503 * time/getdate.c (__getdate_r): Likewise.
17504 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17505 Define as macro to call __feof_unlocked.
17506
0c8a67a5
WD
175072018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17508
17509 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17510
610ee1fc
WD
175112018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17512
17513 * math/Makefile: Remove mpexp.c and mplog.c
17514 * sysdeps/i386/fpu/mpexp.c: Delete file.
17515 * sysdeps/i386/fpu/mplog.c: Likewise.
17516 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17517 * sysdeps/ia64/fpu/mplog.c: Likewise.
17518 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17519 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17520 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17521 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17522 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17523 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17524 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17525 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17526 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17527 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17528 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17529 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17530 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17531 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17532 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17533 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17534
8e7196c8
SL
175352018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17536
17537 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17538
4f55ad0b
AZ
175392018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17540
17541 * sysdeps/sh/libm-test-ulps: Update.
17542
261a851c
TMQMF
175432018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17544
17545 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17546 idouble to 1 ULP.
17547
e16deca6
ZW
175482018-02-12 Zack Weinberg <zackw@panix.com>
17549
17550 [BZ #19239]
17551 * posix/sys/types.h: Don't include sys/sysmacros.h.
17552 * misc/sys/sysmacros.h: Remove the conditional deprecation
17553 warnings for the macros defined by this header.
17554
de800d83
SN
175552018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17556
17557 * manual/probes.texi: Remove slowexp probes.
17558 * math/Makefile: Remove slowexp.
17559 * sysdeps/generic/math_private.h (__slowexp): Remove.
17560 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17561 document error bounds.
17562 * sysdeps/i386/fpu/slowexp.c: Remove.
17563 * sysdeps/ia64/fpu/slowexp.c: Remove.
17564 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17565 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17566 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17567 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17568 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17569 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17570 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17571 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17572 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17573 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17574 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17575
c3d466cb
WD
175762018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17577
17578 [BZ #13932]
17579 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17580 * benchtests/pow-inputs: Update comment for slow path cases.
17581 * manual/probes.texi (slowpow_p10): Delete removed probe.
17582 (slowpow_p10): Likewise.
17583 * math/Makefile: Remove halfulp.c and slowpow.c.
17584 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17585 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17586 (__halfulp): Remove.
17587 (__slowpow): Remove.
17588 * sysdeps/i386/fpu/halfulp.c: Delete file.
17589 * sysdeps/i386/fpu/slowpow.c: Likewise.
17590 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17591 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17592 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17593 improve comments and add error analysis.
17594 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17595 (power1): Remove function:
17596 (log1): Remove error argument, add error analysis.
17597 (my_log2): Remove function.
17598 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17599 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17600 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17601 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17602 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17603 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17604 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17605 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17606 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17607 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17608 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17609 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17610 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17611 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17612
7bb087bd
ST
176132018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17614
17615 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17616 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17617
2fd4bbaa
DL
176182018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17619
17620 [BZ #22433]
17621 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17622 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17623 and PTRACE_SETHBPREGS.
17624
402ecba4
ZW
176252018-02-10 Zack Weinberg <zackw@panix.com>
17626
17627 [BZ #22830]
17628 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17629 correctly.
17630 * malloc/tst-malloc-stats-cancellation.c: New test case.
17631 * malloc/Makefile: Add new test case.
17632
4f5b921e
WD
176332018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17634
17635 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17636
a85b70db
JM
176372018-02-10 Joseph Myers <joseph@codesourcery.com>
17638
d8742dd8
JM
17639 * math/Makefile (libm-narrow-fns): Add add.
17640 (libm-test-funcs-narrow): Likewise.
17641 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17642 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17643 * math/gen-auto-libm-tests.c (test_functions): Add add.
17644 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17645 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17646 (NARROW_ADD_TRIVIAL): Likewise.
17647 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17648 macro.
17649 (__daddl): Likewise.
17650 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17651 dadd.
17652 (CFLAGS-nldbl-dadd.c): New variable.
17653 (CFLAGS-nldbl-fadd.c): Likewise.
17654 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17655 __nldbl_daddl.
17656 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17657 prototype.
17658 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17659 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17660 * math/auto-libm-test-in: Add tests of add.
17661 * math/auto-libm-test-out-narrow-add: New generated file.
17662 * math/libm-test-narrow-add.inc: New file.
17663 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17664 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17665 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17666 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17667 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17668 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17669 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17670 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17671 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17672 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17673 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17674 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17675 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17676 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17677 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17678 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17679 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17680 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17681 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17682 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17683 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17684 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17685 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17686 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17687 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17688 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17689 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17690 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17691 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17692 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17693 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17694 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17704 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17705 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17706 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17707 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17708 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17709
a85b70db
JM
17710 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17711 (f128-pairs): New variable.
17712 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17713 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17714 to CFLAGS.
17715 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17716 Also make tests add $(f128-loader-link) to gnulib-tests.
17717
6a1ff640
DD
177182018-02-09 DJ Delorie <dj@redhat.com>
17719
17720 [BZ #22827]
17721 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17722 64-bit ELF type for 64-bit ELF objects.
17723
bfd47587
JM
177242018-02-09 Joseph Myers <joseph@codesourcery.com>
17725
31958338
JM
17726 * math/libm-test-driver.c (snan_tests_arg): New variable.
17727 * math/libm-test-support.h (snan_tests_arg): New declaration.
17728 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17729
8e554659
JM
17730 * math/Makefile (test-type-pairs): New variable.
17731 (test-type-pairs-f64xf128-yes): Likewise.
17732 (tests): Add test-narrow-macros.
17733 (libm-test-funcs-narrow): New variable.
17734 (libm-test-c-narrow): Likewise.
17735 (generated): Add $(libm-test-c-narrow).
17736 (libm-tests-base-narrow): New variable.
17737 (libm-tests-narrow): Likewise.
17738 (libm-tests): Add $(libm-tests-narrow).
17739 (libm-tests-for-type): Handle $(libm-tests-narrow).
17740 (libm-test-c-narrow-obj): New variable.
17741 ($(libm-test-c-narrow-obj)): New rule.
17742 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17743 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17744 $(o-iterator) to set dependencies and CFLAGS.
17745 * math/gen-auto-libm-tests.c: Document use for narrowing
17746 functions.
17747 (output_for_one_input_case): Take argument NARROW.
17748 (generate_output): Likewise. Update call to
17749 output_for_one_input_case.
17750 (main): Take --narrow option. Update call to generate_output.
17751 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17752 (apply_lit): Update call to _apply_lit.
17753 (apply_arglit): New function.
17754 (parse_args): Handle "a" arguments.
17755 (parse_auto_input): Handle format names using ":".
17756 * math/README.libm-test: Document "a" parameter type.
17757 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17758 (ARG_TYPE_TRUE_MIN): Likewise.
17759 (ARG_TYPE_MAX): Likwise.
17760 (ARG_MIN_EXP): Likewise.
17761 (ARG_MAX_EXP): Likewise.
17762 (ARG_MANT_DIG): Likewise.
17763 (TEST_COND_arg_ibm128): Likewise.
17764 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17765 (TEST_COND_arg_fmt): New macro.
17766 (init_max_error): Update prototype.
17767 * math/libm-test-support.c (test_ibm128): New variable.
17768 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17769 instead of using [TEST_COND_ibm128] conditional.
17770 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17771 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17772 [TEST_NARROW] (TEST_MSG): New definition.
17773 (arg_plus_zero): New macro.
17774 (arg_minus_zero): Likewise.
17775 (arg_plus_infty): Likewise.
17776 (arg_minus_infty): Likewise.
17777 (arg_qnan_value_pl): Likewise.
17778 (arg_qnan_value): Likewise.
17779 (arg_snan_value_pl): Likewise.
17780 (arg_snan_value): Likewise.
17781 (arg_max_value): Likewise.
17782 (arg_min_value): Likewise.
17783 (arg_min_subnorm_value): Likewise.
17784 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17785 (RUN_TEST_LOOP_aa_f): New macro.
17786 (TEST_SUFF): New macro.
17787 (TEST_SUFF_STR): Likewise.
17788 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17789 (TEST_COND_any_ibm128): New macro.
17790 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17791 this_func. Update call to init_max_error.
17792 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17793 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17794 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17795 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17796 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17797 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17798 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17799 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17800 * math/test-math-vector.h (TEST_NARROW): Likewise.
17801 * math/test-arg-double.h: New file.
17802 * math/test-arg-float128.h: Likewise.
17803 * math/test-arg-float32x.h: Likewise.
17804 * math/test-arg-float64.h: Likewise.
17805 * math/test-arg-float64x.h: Likewise.
17806 * math/test-arg-ldouble.h: Likewise.
17807 * math/test-math-narrow.h: Likewise.
17808 * math/test-narrow-macros.c: Likewise.
17809 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17810 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17811 test-narrow-macros-ldbl-64.
17812 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17813
63716ab2
JM
17814 * math/bits/mathcalls-narrow.h: New file.
17815 * include/bits/mathcalls-narrow.h: Likewise.
17816 * math/math-narrow.h: Likewise.
17817 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17818 (__MATHCALL_NARROW_ARGS_2): Likewise.
17819 (__MATHCALL_NARROW_ARGS_3): Likewise.
17820 (__MATHCALL_NARROW_NORMAL): Likewise.
17821 (__MATHCALL_NARROW_REDIR): Likewise.
17822 (__MATHCALL_NARROW): Likewise.
17823 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17824 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17825 defined.
17826 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17827 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17828 (libm-narrow-fns): New variable.
17829 (libm-narrow-types-basic): Likewise.
17830 (libm-narrow-types-ldouble-yes): Likewise.
17831 (libm-narrow-types-float128-yes): Likewise.
17832 (libm-narrow-types-float128-alias-yes): Likewise.
17833 (libm-narrow-types): Likewise.
17834 (libm-routines): Add narrowing functions.
17835 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17836 (libc_feholdexcept_setroundf128): New macro.
17837 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17838 * sysdeps/ieee754/float128/float128_private.h: Include
17839 <math/math-narrow.h>.
17840 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17841 Undefine and redefine.
17842 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17843 (libm_alias_float_ldouble): Undefine and redefine.
17844 (libm_alias_double_ldouble): Likewise.
17845
bfd47587
JM
17846 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17847
3f8d9d58
WD
178482018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17849
17850 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17851 FPCR/FPSR.
17852
1f6676d7
RJ
178532018-02-09 Rical Jasan <ricaljasan@pacific.net>
17854
17855 * manual/creature.texi: Convert references to gcc.info to gcc.
17856 * manual/stdio.texi: Likewise.
17857 * manual/string.texi: Likewise.
17858
d80441dd
JM
178592018-02-07 Joseph Myers <joseph@codesourcery.com>
17860
15081be9
JM
17861 [BZ #17979]
17862 * posix/bits/types.h (__int_least8_t): New typedef.
17863 (__uint_least8_t): Likewise.
17864 (__int_least16_t): Likewise.
17865 (__uint_least16_t): Likewise.
17866 (__int_least32_t): Likewise.
17867 (__uint_least32_t): Likewise.
17868 (__int_least64_t): Likewise.
17869 (__uint_least64_t): Likewise.
17870 * sysdeps/generic/stdint.h (int_least8_t): Define using
17871 __int_least8_t.
17872 (int_least16_t): Define using __int_least16_t.
17873 (int_least32_t): Define using __int_least32_t.
17874 (int_least64_t): Define using __int_least64_t.
17875 (uint_least8_t): Define using __uint_least8_t.
17876 (uint_least16_t): Define using __uint_least16_t.
17877 (uint_least32_t): Define using __uint_least32_t.
17878 (uint_least64_t): Define using __uint_least64_t.
17879 * wcsmbs/uchar.h: Include <bits/types.h>.
17880 (char16_t): Define using __uint_least16_t conditional only on
17881 [!__USE_ISOCXX11].
17882 (char32_t): Define using __uint_least32_t conditional only on
17883 [!__USE_ISOCXX11].
17884 * wcsmbs/test-char-types.c: New file.
17885 * wcsmbs/Makefile (tests): Add test-char-types.
17886
d80441dd
JM
17887 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17888 version to 4.0.1.
17889
6c6c962a
ZW
178902018-02-07 Zack Weinberg <zackw@panix.com>
17891
63fb8f9a
ZW
17892 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17893 Delete all contents except for definitions of _G_HAVE_MMAP and
17894 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17895 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17896 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17897 change as above.
17898
17899 * libio/libio.h: Don't include bits/_G_config.h here.
17900 Include stddef.h with __need_wchar_t defined. Include
17901 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17902 Define _IO_iconv_t here, directly.
17903 Don't define _IO_HAVE_ST_BLKSIZE.
17904 * libio/libioP.h: Include _G_config.h here. Move include of
17905 shlib-compat.h up with rest of includes. Simplify conditionals
17906 controlling definition of _IO_JUMPS_OFFSET.
17907
17908 * csu/init.c: Remove always-true #if around entire file.
17909 Don't include stdio.h. Set _IO_stdin_used to hardwired
17910 constant 0x20001, and update commentary.
17911 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17912 Replace all uses of _G_va_list with __gnuc_va_list.
17913 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17914 instead of #if _IO_HAVE_ST_BLKSIZE.
17915 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17916 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17917 not #ifdef.
17918
6c6c962a
ZW
17919 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17920 multiple-include guard to match.
17921 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17922 into this file.
17923 Remove preprocessor conditionals that are always true and/or
17924 redundant to other preprocessor conditionals in the same nest.
17925 Include shlib-compat.h unconditionally.
17926 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17927 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17928 defined after including stdio.h.
17929 Use __BEGIN_DECLS/__END_DECLS.
17930
17931 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17932 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17933 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17934
a4fea3f2
ZW
179352018-02-07 Zack Weinberg <zackw@panix.com>
17936
17937 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
17938 New single-type headers split from _G_config.h.
17939 * libio/bits/types/cookie_io_functions_t.h
17940 * libio/bits/types/struct_FILE.h
17941 New single-type headers split from libio.h.
17942
17943 * libio/Makefile: Install the above new headers. Don't install
17944 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
17945 bits/libio-ldbl.h.
17946 * libio/_G_config.h, libio/libio.h: Delete file.
17947
17948 * libio/bits/libio.h: Remove improper-inclusion guard.
17949 Include stdio.h and don't repeat anything that it does.
17950 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
17951 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
17952 __io_read_fn as cookie_read_function_t,
17953 __io_write_fn as cookie_write_function_t,
17954 __io_seek_fn as cookie_seek_function_t,
17955 __io_close_fn as cookie_close_function_t,
17956 and _IO_cookie_io_functions_t as cookie_io_functions_t.
17957 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
17958 here, in the "compatibility defines" section. Remove an #if 0
6c6c962a 17959 block. Use the "body" macros from bits/types/struct_FILE.h to
a4fea3f2
ZW
17960 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
17961 and _IO_ferror_unlocked.
17962 Move prototypes of __uflow and __overflow...
17963
17964 * libio/stdio.h: ...here. Don't include bits/libio.h.
17965 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
6c6c962a 17966 directly from stdarg.h. Include bits/types/__fpos_t.h,
a4fea3f2
ZW
17967 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
17968 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
17969 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
17970 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
17971 cookie_io_functions_t, not _IO_cookie_io_functions_t;
17972 __ssize_t, not _IO_ssize_t. Unconditionally define
17973 BUFSIZ as 8192 and EOF as (-1).
17974
17975 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
17976 macros from bits/types/struct_FILE.h instead of _IO_* macros
17977 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
17978 instead of _IO_ssize_t.
17979 * libio/bits/stdio2.h: Similarly.
17980
17981 * libio/iolibio.h: Add multiple-include guard.
17982 Include bits/libio.h after stdio.h.
17983 * libio/libioP.h: Add multiple-include guard.
17984 Include stdio.h and bits/libio.h before iolibio.h.
17985
6c6c962a 17986 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
a4fea3f2
ZW
17987 * include/bits/types/cookie_io_functions_t.h
17988 * include/bits/types/struct_FILE.h: New wrappers.
17989
17990 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
6c6c962a
ZW
17991 Get definitions of _G_fpos_t and _G_fpos64_t from
17992 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
17993 respectively. Remove improper-inclusion guards.
a4fea3f2 17994
6c6c962a 17995 * conform/data/stdio.h-data: Update expectations of va_list.
a4fea3f2 17996 * scripts/check-installed-headers.sh: Remove special case for
6c6c962a 17997 libio.h and _G_config.h.
a4fea3f2 17998
ce999220
JM
179992018-02-07 Joseph Myers <joseph@codesourcery.com>
18000
8b4a1182
JM
18001 [BZ #15105]
18002 [BZ #19463]
18003 * include/sys/sysmacros.h [!_ISOMAC]
18004 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18005 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18006 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18007 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18008 libc_hidden_proto.
18009 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18010 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18011 Likewise.
18012 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18013 Undefine and redefine to add use __gnu_dev_ prefix.
18014 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18015 Likewise.
18016 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18017 and define as hidden inline function.
18018 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18019 Likewise.
18020 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18021 Likewise.
18022 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18023 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18024 (gnu_dev_minor): Likewise.
18025 (gnu_dev_makedev): Likewise.
18026 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18027 makedev.
18028 * posix/wordexp.c (exec_comm_child): Likewise.
18029 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18030 instead of minor and __gnu_dev_major instead of major.
18031 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18032 __gnu_dev_major instead of major.
18033 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18034 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18035 instead of gnu_dev_minor.
18036 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18037 (SLAVE_P): Likewise.
18038 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18039 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18040 instead of major.
18041
ce999220
JM
18042 [BZ #21313]
18043 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18044 in another place.
18045 * locale/weightwc.h (findidx): Likewise.
18046
b7c83ca3
WD
180472018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18048
18049 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18050 (slowlog_inexact): Likewise
18051 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18052 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18053
388ff7bd
IG
180542018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18055
18056 [BZ #22797]
18057 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18058 missing second underscore to parameter name.
18059
663e7d78
JM
180602018-02-06 Joseph Myers <joseph@codesourcery.com>
18061
0d40d0ec
JM
18062 [BZ #14508]
18063 [BZ #15512]
18064 [BZ #17082]
18065 [BZ #20530]
18066 * bits/byteswap.h: Update file comment. Do not include
18067 <bits/byteswap-16.h>.
18068 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18069 constant.
18070 (__bswap_16): Define as inline function.
18071 (__bswap_constant_32): Reformat definition.
18072 (__bswap_32): Always define as inline function, not macro, using
18073 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18074 otherwise __bswap_constant_32.
18075 (__bswap_constant_64): Reformat definition. Do not use
18076 __extension__ here.
18077 (__bswap_64): Always define as inline function, not macro. Use
18078 __extension__ on function definition. Use __builtin_bswap64 if
18079 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18080 * string/test-endian-file-scope.c: New file.
18081 * string/test-endian-sign-conversion.c: Likewise.
18082 * string/Makefile (headers): Remove bits/byteswap-16.h.
18083 (tests): Add test-endian-file-scope and
18084 test-endian-sign-conversion.
18085 (CFLAGS-test-endian-sign-conversion.c): New variable.
18086 * bits/byteswap-16.h: Remove file.
18087 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18088 * sysdeps/ia64/bits/byteswap.h: Likewise.
18089 * sysdeps/m68k/bits/byteswap.h: Likewise.
18090 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18091 * sysdeps/s390/bits/byteswap.h: Likewise.
18092 * sysdeps/tile/bits/byteswap.h: Likewise.
18093 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18094 * sysdeps/x86/bits/byteswap.h: Likewise.
18095
383e87c9
JM
18096 [BZ #17721]
18097 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18098 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18099 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18100 199901L] (__restrict): Define to restrict.
18101
d92c2759
JM
18102 [BZ #19667]
18103 * string/testcopy.c: Include <support/support.h>. Do not include
18104 <malloc.h>. Use <support/test-driver.c>.
18105 (main): Rename to do_test. Make static. Use xmalloc instead of
18106 malloc.
18107
625fb764
JM
18108 [BZ #13575]
18109 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18110 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18111 (SSIZE_MAX): Define to INT_MAX.
18112 * posix/test-ssize-max.c: New file.
18113 * posix/Makefile (tests): Add test-ssize-max.
18114
02325d6c
JM
18115 [BZ #19668]
18116 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18117 <support/support.h>. Do not include <malloc.h>.
18118 (query_auxv): Use xmalloc instead of malloc.
18119
663e7d78
JM
18120 [BZ #14553]
18121 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18122 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18123 instead of loff_t.
18124
6b5c8607 181252018-02-06 Florian Weimer <fweimer@redhat.com>
6d7aa2b5
FW
18126
18127 [BZ #18023]
18128 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18129 Use scratch_buffer instead of extend_alloca.
18130
de6da571
ZW
181312018-02-06 Zack Weinberg <zackw@panix.com>
18132
26c07172
ZW
18133 * libio/stdio.h: Don't define getc or putc as macros.
18134 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18135 not _IO_getc and _IO_putc.
18136
de6da571
ZW
18137 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18138 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18139
92669d6e
JM
181402018-02-06 Joseph Myers <joseph@codesourcery.com>
18141
c2b84df9
JM
18142 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18143 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18144
41376f8c
JM
18145 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18146
d28bf648
JM
18147 [BZ #14890]
18148 * elf/elf.h (NT_PRFPREG): New macro.
18149 (NT_S390_VXRS_LOW): Likewise.
18150 (NT_S390_VXRS_HIGH): Likewise.
18151 (NT_S390_GS_CB): Likewise.
18152 (NT_S390_GS_BC): Likewise.
18153 (NT_S390_RI_CB): Likewise.
18154
e76def72
JM
18155 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18156 (MAP_SYNC): New macro.
18157 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18158 Likewise.
18159 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18160 (MAP_SYNC): Likewise.
18161 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18162 (MAP_SYNC): Likewise.
18163 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18164 (MAP_SYNC): Likewise.
18165 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18166 (MAP_SYNC): Likewise.
18167 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18168 (MAP_SYNC): Likewise.
18169 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18170 (MAP_SYNC): Likewise.
18171 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18172 Likewise.
18173 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18174 Likewise.
18175
92669d6e
JM
18176 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18177 (MAP_SHARED_VALIDATE): New macro.
18178 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18179 (MAP_SHARED_VALIDATE): Likewise.
18180
6a5cac49
L
181812018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18182
18183 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18184 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18185 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18186
b44e0dfb
L
181872018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18190 (DT_NUM): Updated to 35.
18191
f886c16c
L
181922018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18193
18194 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18195 __builtin_expect with __glibc_likely and __glibc_unlikely.
18196 (elf_machine_rela): Likewise.
18197 (elf_machine_lazy_rel): Likewise.
18198
06fbebff
L
181992018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18200
18201 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
8f4bf93f 18202 __builtin_expect with __glibc_likely and __glibc_unlikely.
06fbebff
L
18203 (elf_machine_lazy_rel): Likewise.
18204
371b220f
L
182052018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18206
18207 [BZ #22638]
18208 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18209 SHARED.
65805016 18210 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
371b220f 18211
f649a1b8
AS
182122018-02-05 Andreas Schwab <schwab@suse.de>
18213
18214 [BZ #22761]
18215 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18216 string.
18217
9fdb340e
ST
182182018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18219
18220 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18221 not check against PTHREAD_STACK_MIN.
18222
09e56b9e
SM
182232018-02-02 Sean McKean <smckean83@gmail.com>
18224
18225 [BZ #22735]
18226 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18227
d4b4a00a
FW
182282018-02-02 Florian Weimer <fweimer@redhat.com>
18229
18230 [BZ #22753]
18231 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18232 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18233 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18234 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18235 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18236 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18237 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18238 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18239 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18240 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18241 * misc/tst-preadvwritev2.c (do_test): Call it.
18242 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18243
3dfcbfa1
SP
182442018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18245
84c94d2f
SP
18246 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18247
96e6a716
SP
18248 * benchtests/bench-memcmp.c: Print json instead of plain text.
18249
3dfcbfa1
SP
18250 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18251 every test run.
18252
049375e2
JM
182532018-02-01 Joseph Myers <joseph@codesourcery.com>
18254
39f898c6
JM
18255 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18256 version to 4.15.
18257 (s390_sthyi): New syscall.
18258
6f9a3dd8
JM
18259 * sysdeps/generic/ldbl-classify-compat.h: New file.
18260 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18261 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18262 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18263 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18264 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18265 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18266 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18267 <ldbl-classify-compat.h>.
18268 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18269 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18270 <ldbl-classify-compat.h>.
18271 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18272 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18273 <ldbl-classify-compat.h>.
18274 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18275 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18276 <ldbl-classify-compat.h>.
18277 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18278 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18279 <ldbl-classify-compat.h>.
18280 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18281 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18282 <ldbl-classify-compat.h>.
18283 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18284 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18285 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18286 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18287 * sysdeps/microblaze/math_private.h: Likewise.
18288 * sysdeps/nios2/math_private.h: Likewise.
18289 * sysdeps/sh/math_private.h: Likewise.
18290
eb65a3d5
JM
18291 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18292 * sysdeps/m68k/coldfire/math_private.h: ... here.
18293 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18294 * sysdeps/tile/math_private.h: Likewise.
18295 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18296 Remove macro.
18297 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18298 Likewise.
18299
8a6bb1d0
JM
18300 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18301 Remove macro.
18302 (libc_fetestexcept): Likewise.
18303 (libc_feupdateenv_test): Likewise.
18304 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18305 (libc_fetestexcept): Likewise.
18306 (libc_feupdateenv_test): Likewise.
18307 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18308 (libc_fetestexcept): Likewise.
18309 (libc_feupdateenv_test): Likewise.
18310 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18311 (libc_fetestexcept): Likewise.
18312 (libc_feupdateenv_test): Likewise.
18313
ae1fcb7b
JM
18314 * sysdeps/generic/math_private.h
18315 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18316 New inline function.
18317 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18318 Likewise.
18319
b1c347e2
JM
18320 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18321 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18322 * sysdeps/generic/math_private.h
18323 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18324 inline function.
18325 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18326 Likewise.
18327 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18328 Likewise.
18329 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18330 Likewise.
18331 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18332 Likewise.
18333 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18334 Likewise.
18335 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18336 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18337 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18338 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18339 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18340 (__fegetenv): Likewise.
18341 (fesetenv): Likewise.
18342 (__fesetenv): Likewise.
18343 (feupdateenv): Likewise.
18344 (__feupdateenv): Likewise.
18345 (fegetround): Likewise.
18346 (__fegetround): Likewise.
18347 (fesetround): Likewise.
18348 (__fesetround): Likewise.
18349
d23a4962
JM
18350 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18351 (feraiseexcept): New macro.
18352 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18353 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18354 Remove macro.
18355 (__feraiseexcept): Likewise.
18356 (feclearexcept): Likewise.
18357 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18358 (__feraiseexcept): Likewise.
18359 (feclearexcept): Likewise.
18360 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18361 (__feraiseexcept): Likewise.
18362 (feclearexcept): Likewise.
18363 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18364 (__feraiseexcept): Likewise.
18365 (feclearexcept): Likewise.
18366 (fetestexcept): Likewise.
18367
5f167950
JM
18368 * sysdeps/m68k/coldfire/math-tests.h: New file.
18369
ccc9035a
JM
18370 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18371 * sysdeps/m68k/bits/fenv.h: ... here.
18372 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18373 not define.
18374 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18375 Likewise.
18376 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18377 Likewise.
18378 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18379 Likewise.
18380 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18381 Likewise.
18382 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18383 Define to 0.
18384 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18385 (__FE_UNDEFINED): New enum constant.
18386 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18387 Do not define.
18388 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18389 Likewise.
18390 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18391 Likewise.
18392 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18393 to match generic bits/fenv.h.
18394 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18395 Do not define.
18396
049375e2
JM
18397 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18398 packed on bits.
18399 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18400 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18401 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18402 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18403
f1d73681
CD
184042018-02-01 Carlos O'Donell <carlos@redhat.com>
18405 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18406 Joseph Myers <joseph@codesourcery.com>
18407
18408 [BZ #21314]
18409 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18410 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18411 computation using c.
18412 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18413 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18414 computation using c.
18415
242cbc90
DL
184162018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18417
086ee48e
DL
18418 * version.h (RELEASE): Set to "development".
18419 (VERSION): Set to "2.27.9000".
18420 * NEWS (2.28): New section.
18421
23158b08
DL
18422 * version.h (RELEASE): Set to "stable".
18423 (VERSION): Set to "2.27".
18424 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18425
242cbc90
DL
18426 * NEWS: Add the list of bugs fixed in 2.27.
18427
673e2305
AZ
184282018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18429
18430 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18431 against PTHREAD_STACK_MIN.
18432
ced64e01
DL
184332018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18434
18435 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18436 New entries.
18437 (Rafal Luzynski, Andreas Schwab): Update.
18438
c10c9a5e
RL
184392018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18440
18441 [BZ #10871]
18442 * NEWS: List the languages which actually use the alternative
18443 months feature in this release. Also explain that "alt_mon" and
18444 "ab_alt_mon" are optional.
18445
650ba77a
IM
184462018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18447
18448 [BZ #22765]
18449 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18450
93493119
DL
184512018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18452
18453 * manual/install.texi (Tools for Compilation): Update the newest
18454 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18455 * INSTALL: Regenerated.
18456
363e4519 184572018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
407552cf
ST
18458
18459 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18460 instead of __builtin_expect.
18461
d7536874
FW
184622018-01-30 Florian Weimer <fweimer@redhat.com>
18463
18464 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18465 data.
18466 * nss/tst-nss-getpwent.c (do_test): Likewise.
18467
9a1b267d
RL
184682018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18469
18470 [BZ #10871]
18471 * localedata/locales/hr_HR (mon): Rename to...
18472 (alt_mon): This.
18473 (mon): Import from CLDR (genitive case).
18474 (d_t_fmt): Update the comment.
18475
9a179328
AS
184762018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18477
18478 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18479 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18480 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18481
e01e0ddc
ST
184822018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18483
18484 * mach/Versions: Fix version when __mach_host_self_ was added.
18485 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18486 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18487 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18488 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18489 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18490 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18491 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18492 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18493 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18494 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18495 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18496 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
ba729de6
ST
18497 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18498 || to respect codestyle.
2aadb705
ST
18499 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18500 (do_test_bz20181): Rename accordingly.
406e7a0a
ST
18501 * malloc/malloc.c: Include <assert.h>.
18502 (assert): Do not define.
18503 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
99dfbef4
ST
18504 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18505 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
ac56adbb 18506 * sysdeps/mach/hurd/hp-timing.h: New file.
ef4cf463 18507 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
e01e0ddc 18508
521877e1
PD
185092018-01-29 Darius Rad <darius@bluespec.com>
18510
18511 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18512
532cf290
PD
185132018-01-29 Palmer Dabbelt <palmer@sifive.com>
18514
18515 * sysdeps/init_array/crti.S (.section .init_array): Add
18516 PREINIT_FUNCTION when defined.
40ca951b 18517 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
4215e276 18518 * config.h.in: Regenerate.
ba9e25a6
PD
18519 * manual/platform.texi: Add RISC-V documenation for
18520 __riscv_flush_icache.
c776fa11
PD
18521 * sysdeps/riscv/__longjmp.S: New file.
18522 * sysdeps/riscv/backtrace.c: Likewise.
18523 * sysdeps/riscv/bits/endian.h: Likewise.
18524 * sysdeps/riscv/bits/setjmp.h: Likewise.
18525 * sysdeps/riscv/bits/wordsize.h: Likewise.
18526 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18527 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18528 * sysdeps/riscv/dl-trampoline.S: Likewise.
18529 * sysdeps/riscv/gccframe.h: Likewise.
18530 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18531 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18532 * sysdeps/riscv/machine-gmon.h: Likewise.
18533 * sysdeps/riscv/memusage.h: Likewise.
18534 * sysdeps/riscv/setjmp.S: Likewise.
18535 * sysdeps/riscv/sys/asm.h: Likewise.
18536 * sysdeps/riscv/tls-macros.h: Likewise.
33712660
PD
18537 * sysdeps/riscv/dl-tls.h: New file.
18538 * sysdeps/riscv/libc-tls.c: Likewise.
18539 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18540 * sysdeps/riscv/nptl/tls.h: Likewise.
18541 * sysdeps/riscv/stackinfo.h: Likewise.
67236aeb
PD
18542 * sysdeps/riscv/bits/fenv.h: New file.
18543 * sysdeps/riscv/e_sqrtl.c: Likewise.
18544 * sysdeps/riscv/fpu_control.h: Likewise.
18545 * sysdeps/riscv/math-tests.h: Likewise.
18546 * sysdeps/riscv/nofpu/Implies: Likewise.
18547 * sysdeps/riscv/sfp-machine.h: Likewise.
18548 * sysdeps/riscv/tininess.h: Likewise.
b2cb5e02
PD
18549 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18550 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18551 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18552 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18553 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18554 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18555 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18556 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18557 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18558 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18559 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18560 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18561 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18562 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18563 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18564 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18565 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18566 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18567 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18568 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18569 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18570 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18571 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18572 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18573 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18574 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18575 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18576 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18577 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18578 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18579 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18580 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18581 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18582 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18583 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18584 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18585 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18586 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18587 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18588 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18589 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18590 * sysdeps/riscv/rvf/math_private.h: Likewise.
18591 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18592 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18593 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18594 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18595 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18596 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18597 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18598 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18599 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18600 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18601 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18602 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18603 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18604 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18605 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18606 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
d1c09b24
PD
18607 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18608 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18609 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18610 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
36960f0c
PD
18611 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18612 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18613 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18614 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18615 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18616 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18617 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18618 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18619 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
7f33b09c
PD
18620 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18621 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18622 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18623 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18624 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18625 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18626 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18627 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18628 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18629 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18630 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18631 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18632 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18633 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18634 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18635 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18636 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18637 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18638 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18639 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18640 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18641 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
ee53fed9
PD
18642 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18643 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18644 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
2268c433
PD
18645 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18646 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18647 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18648 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18649 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18650 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18651 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18652 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18653 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18654 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18655 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18656 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
c5061557
PD
18659 * sysdeps/riscv/Implies: New file.
18660 * sysdeps/riscv/Makefile: Likewise.
18661 * sysdeps/riscv/configure: Likewise.
18662 * sysdeps/riscv/configure.ac: Likewise.
18663 * sysdeps/riscv/nptl/Makefile: Likewise.
18664 * sysdeps/riscv/preconfigure: Likewise.
18665 * sysdeps/riscv/rv64/Implies-after: Likewise.
18666 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18667 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18668 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18669 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18670 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18671 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18672 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18673 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18674 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18675 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18676 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
0fd5d876
PD
18677 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18678 (Config): Likewise.
532cf290 18679
cdd14619
FW
186802018-01-29 Florian Weimer <fweimer@redhat.com>
18681
18682 [BZ #22701]
18683 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18684 libnsl_hidden_proto.
18685 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18686 libnsl_hidden_proto.
18687 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18688 * nis/Makefile (libnsl-routines): Add nss-default only for
18689 build-obsolete-nsl.
18690 * nis/nis_defaults.c (__nis_default_ttl): Add
18691 libnsl_hidden_nolink_def.
18692 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18693 declaration.
18694 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18695 * nis/ypclnt.c (yp_maplist): Likewise.
18696
b7ccb5de
RN
186972018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18698
18699 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18700 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18701
522623e4
JM
187022018-01-29 Joseph Myers <joseph@codesourcery.com>
18703
e3aa6999
JM
18704 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18705 clean -dxfq for git updates when replacing sources.
18706
088de7d0
JM
18707 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18708 --disable-libcilkrts unconditionally, not just for the final GCC
18709 build for Hurd.
18710
522623e4
JM
18711 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18712 version to 4.15.
18713
8b406f87
RL
187142018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18715
18716 [BZ #10871]
18717 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18718 case).
18719
105e90bd
RL
187202018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18721
18722 [BZ #10871]
18723 * localedata/locales/be_BY (mon): Rename to...
18724 (alt_mon): This, then synchronize with CLDR (nominative case).
18725 (abmon): Rename to...
18726 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18727 (mon): Import from CLDR (genitive case).
18728 (abmon): Likewise.
18729 * localedata/locales/be_BY@latin (mon): Rename to...
18730 (alt_mon): This.
18731 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18732
18733 * localedata/locales/be_BY@latin (lang_name): Reworded to
18734 "biełaruskaja mova".
18735
561cb414
RL
187362018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18737
18738 [BZ #10871]
18739 * localedata/locales/el_CY (mon): Renamed to...
18740 (alt_mon): This.
18741 (mon): Import from CLDR (genitive case).
18742 * localedata/locales/el_GR: Likewise.
18743
f7bdf30d
RL
187442018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18745
18746 [BZ #10871]
18747 * localedata/locales/ru_RU (mon): Rename to...
18748 (alt_mon): This.
18749 (abmon): Rename to...
18750 (ab_alt_mon): This.
18751 (mon): Import from CLDR (genitive case).
18752 (abmon): Copy from the old content except the 5th month which is
18753 now in the genitive case, even when abbreviated.
18754 * localedata/locales/ru_UA: Likewise.
18755 * time/tst-strptime.c (day_tests): Add an actual example of
18756 a difference between %b and %Ob in Russian.
18757
85285a0c
ST
187582018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18759
18760 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
da8168df
ST
18761 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18762 a `c' variable.
3538a4b6 18763 * resolv/res-close.c: Include <stdlib.h>.
b29848b9
ST
18764 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18765 <sys/wait.h>, <time.h>, <sys/uio.h>.
18766 (NOT_CANCEL_H): Add inclusion guard.
4f66dc23 18767 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
147d1dbb
ST
18768 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18769 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18770 return 0.
05ebfe87
ST
18771 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18772 vm_address_t * to ElfW(Addr) * for dl_main parameter.
61a3a8c6
ST
18773 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18774 instead of void *.
18775 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18776 timer_ptr2id to cast struct timer_node * to void *.
d4d5b2dd
ST
18777 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18778 --disable-libcilkrts to gcc configure.
19fd8d0d
ST
18779 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18780 and make them the default for now.
903d3633
ST
18781 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18782 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
7dab2d00
ST
18783 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18784 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18785 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18786 MACH_IPC_COMPAT.
06fac9f5
ST
18787 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18788 __task_terminate would ever return successfully.
f8177753
ST
18789 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18790 to global scope.
41cdb1eb
ST
18791 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18792 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
660b7bff
ST
18793 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18794 critical section to make code simpler and avoid warning.
18795 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18796 critical section to make code simpler and avoid warning.
844bf921
ST
18797 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18798 const char * instead of char *.
f8bee46c
ST
18799 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18800 __hurd_file_name_split, hurd_file_name_split,
18801 __hurd_directory_name_split, hurd_directory_name_split,
18802 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18803 hurd_file_name_path_lookup): Make lookup function parameter take a
18804 const char *name instead of char *name.
18805 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18806 __hurd_directory_name_split): Likewise.
18807 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18808 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
40066975
ST
18809 * sysdeps/mach/hurd/check_native.c: New file.
18810 * sysdeps/mach/hurd/check_pf.c: New file.
7c5b106d
ST
18811 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18812 (__freeifaddrs): Define macro to freeifaddrs.
5f982b0b
ST
18813 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18814 * sysdeps/mach/libmachuser.abilist: New file.
cef7166a
ST
18815 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18816 (do_test_bz20181): Rename accordingly.
18817 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3fc1ecf9
ST
18818 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18819 <sys/mount.h>.
28f6186f
ST
18820 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18821 version only if __USE_EXTERN_INLINES is defined.
18822 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18823 __hurd_sockfail): Likewise.
18824 (_hurd_fd_get): Always declare functions, and provide inline versions
18825 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18826 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18827 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18828 _hurd_port_set): Always declare functions, and provide inline versions
18829 only if __USE_EXTERN_INLINES and _LIBC are defined and
18830 IS_IN(libc).
18831 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18832 _hurd_critical_section_unlock): Likewise.
18833 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18834 * __hurd_threadvar_location): Likewise.
18835 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18836 _hurd_userlink_clear): Likewise.
18837 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18838 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18839 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18840 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18841 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18842 __spin_lock_locked): Likewise.
18843 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18844 __spin_lock_locked): Likewise.
18845 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18846 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18847 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18848 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18849 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
b1025304
ST
18850 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18851 _POSIX_NO_TRUNC): Define to 0.
a902a086
ST
18852 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18853 check size against PTHREAD_STACK_MIN.
625ba81e
ST
18854 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18855 IS_IN(libpthread)]: Include <sigsetops.h>.
2e52dff4
ST
18856 * mach/Makefile (user-interfaces): Add mach/gnumach.
18857 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18858 * sysdeps/mach/configure (mach_interface_list): Regenerate.
80463dc6
ST
18859 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18860 instead of invalid -1.
1f89ac71
ST
18861 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18862 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18863 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18864 <net/ppp_defs.h>.
85285a0c 18865
1fd1e27c 188662018-01-27 Thomas Schwinge <tschwinge@gnu.org>
84814e2a
TS
18867
18868 * hurd/fcntl-internal.h: New file.
18869
3854c5a8
JC
188702018-01-27 James Clarke <jrtc27@jrtc27.com>
18871
7e23a7dd
JC
18872 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18873
3854c5a8
JC
18874 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18875
5503f413
AS
188762018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18877
18878 [BZ #22701]
18879 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18880 Build only shared objects.
18881
caaf7804
CD
188822018-01-26 Carlos O'Donell <carlos@redhat.com>
18883
18884 * README: Update for hppa.
18885
1cbf818d
PM
188862018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18887
caaf7804
CD
18888 * sysdeps/sparc/fpu/libm-test-ulps: Update
18889 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
1cbf818d 18890
caaf7804 188912018-01-26 Carlos O'Donell <carlos@redhat.com>
2ec0e7ea
CD
18892
18893 Revert:
18894
18895 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18896
18897 [BZ #22563]
18898 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18899 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18900 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18901 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18902 to feature_1.
18903
18904 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18905
18906 [BZ #22563]
18907 * bits/types/__cancel_jmp_buf_tag.h: New file.
18908 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18909 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18910 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18911 * nptl/Makefile (headers): Add
18912 bits/types/__cancel_jmp_buf_tag.h.
18913 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18914 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18915 * sysdeps/nptl/pthread.h: Include
18916 <bits/types/__cancel_jmp_buf_tag.h>.
18917 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18918 __cancel_jmp_buf.
18919 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18920
65f6c94e
RL
189212018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18922
18923 [BZ #10871]
18924 * localedata/locales/uk_UA (mon): Renamed to...
18925 (alt_mon): This.
18926 (alt_digits): "0" removed and then renamed to...
18927 (mon): This.
18928 (date_fmt): Definition changed not to use the alternative
18929 digits hack.
18930
fb58aac5
PD
189312018-01-25 Palmer Dabbelt <palmer@sifive.com>
18932
18933 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18934 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18935 * elf/elf.h (EF_RISCV_RVC): New define.
18936 (EF_RISCV_FLOAT_ABI): Likewise.
18937 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
18938 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
18939 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18940 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
18941 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
18942 define.
18943 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
18944
128c43a2
AS
189452018-01-25 Andreas Schwab <schwab@suse.de>
18946
18947 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
18948 single quotes.
18949 * sysdeps/gnu/configure: Regenerate.
18950 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
18951 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
18952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
18953 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
18954 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
18955 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
18956 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
18957 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
18958
f9015003
ST
189592018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18960
48130690 18961 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
47c4b4b0 18962 URL, and run autoconf, make it the default for now.
f9015003 18963
91b2cffa
JM
189642018-01-24 Joseph Myers <joseph@codesourcery.com>
18965
3005b705
JM
18966 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18967 soft-float ColdFire configuration.
18968
69231fab
JM
18969 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
18970 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
18971 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
18972
d4c7e1d0
JM
18973 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
18974 MicroBlaze file.
18975
0cfe5be5
JM
18976 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
18977 ....
18978 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
18979 ... here.
18980 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
18981 New file.
18982
91b2cffa
JM
18983 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
18984 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
18985 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
18986 file.
18987
c739e191
SN
189882018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
18989
18990 [BZ #22742]
18991 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
18992 Rename to __reserved and add comment.
18993 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
18994 Rename to __reserved.
18995
394b5bac
JM
189962018-01-24 Joseph Myers <joseph@codesourcery.com>
18997
18998 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18999 i686-gnu configurations.
19000 (Context.run_builds): Include mig, gnumach and hurd in components
19001 considered.
19002 (Context.checkout): Add mig, gnumach and hurd to components.
19003 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19004 hurd.
19005 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19006 (Config.build): Install gnumach headers, build mig and install
19007 hurd headers for 'gnu' OS.
19008 (Config.install_gnumach_headers): New function.
19009 (Config.install_hurd_headers): Likewise.
19010 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19011 when building for 'gnu' OS.
19012
28c3f14f
TK
190132018-01-23 Tobias Klauser <tklauser@distanz.ch>
19014
19015 * manual/tunables.texi (Hardware Capability Tunables): Fix
19016 spelling.
19017
0f5e2da1
RJ
190182018-01-22 Rical Jasan <ricaljasan@pacific.net>
19019
19020 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19021 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19022 (ALTMON_11, ALTMON_12): Improve documentation.
19023 * manual/time.texi (strftime): Likewise.
19024
7817b14a
RL
190252018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19026
19027 [BZ #10871]
19028 * localedata/locales/pl_PL: Alternative month names added,
19029 primary month names are genitive now.
19030 * time/tst-strptime.c (day_tests): Actually use a genitive case
19031 of a month name in Polish language.
19032
22390764
RL
190332018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19034
19035 [BZ #10871]
19036 * manual/locale.texi: Document ALTMON_1..12 constants for
19037 nl_langinfo. Specify when to use ALTMON instead of MON.
19038 * manual/time.texi (strftime, strptime): Document GNU extension
19039 permitting O modifier with %B and %b. Specify when to use
19040 %OB instead of %B.
19041
761a585c
RL
190422018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19043
19044 [BZ #10871]
19045 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19046 names, define them as the same as abbreviated month names explicitly.
19047 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19048 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19049 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19050 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19051 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19052 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19053 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19054 _NL_WABALTMON_12): New enum constants.
19055 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19056 wab_alt_mon, and ab_alt_mon_defined members.
19057 (time_output): Output ab_alt_mon and wab_alt_mon members.
19058 (time_read): Read them, initialize them as copies of abmon and wabmon
19059 respectively if they are missing, initialize ab_alt_mon_defined.
19060 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19061 * locale/programs/locfile-kw.h: Regenerate.
19062 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19063 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19064 and ru_RU.UTF-8.
19065 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19066 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19067 (__strftime_internal): Handle %Ob and %Oh formats.
19068 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19069 (__strptime_internal): Handle %Ob and %Oh formats.
19070 * time/tst-strptime.c (day_tests): Add more tests to parse different
19071 forms of month names including the new %Ob format specifier.
19072
95cb863a
RL
190732018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19074
19075 [BZ #10871]
19076 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19077 define them as the same as primary full month names explicitly.
19078 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19079 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19080 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19081 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19082 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19083 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19084 _NL_WALTMON_12): New enum constants.
19085 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19086 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19087 macros.
19088 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19089 walt_mon, and alt_mon_defined members.
19090 (time_output): Output alt_mon and walt_mon members.
19091 (time_read): Read them, initialize them as copies of mon and wmon
19092 respectively if they are missing, initialize alt_mon_defined.
19093 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19094 * locale/programs/locfile-kw.h: Regenerate.
19095 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19096 * localedata/tst-langinfo.c (map): Add tests for the new constants
19097 ALTMON_1 .. ALTMON_12.
19098 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19099 and pl_PL.UTF-8.
19100 * time/strftime_l.c (f_altmonth): New macro.
19101 (__strftime_internal): Handle %OB format.
19102 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19103 (__strptime_internal): Handle %OB format.
19104 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19105 of month names including the new %OB format specifier.
19106
4612268a
TMQMF
191072018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19108
19109 [BZ #22685]
19110 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19111 from ABORT_TRANSACTION.
19112 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19113 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19114 ABORT_TRANSACTION_IMPL): Likewise.
19115 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19116 Linux code, but remove the code that aborts transactions.
19117
64f63cb4
ST
191182018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19119
19120 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19121
32ac6e92
RL
191222018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19123
19124 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19125 in date: "2004-14-09" should be "2004-09-14".
19126 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19127 "2003-15-09" should be "2003-09-15".
19128
8e448310
AS
191292018-01-18 Arjun Shankar <arjun@redhat.com>
19130
19131 [BZ #22343]
71aa429b 19132 [BZ #22774]
4590634f 19133 CVE-2018-6485
71aa429b 19134 CVE-2018-6551
8e448310
AS
19135 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19136 after padding.
19137 (_int_memalign): check for integer overflow before calling
19138 _int_malloc.
19139 * malloc/tst-malloc-too-large.c: New test.
19140 * malloc/Makefile: Add tst-malloc-too-large.
19141
e234d7cb
RL
191422018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19143
19144 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19145 in date: "2017-24-07" should be "2017-07-24".
19146 * localedata/locales/mai_IN: Likewise.
19147 * localedata/locales/mai_NP: Likewise.
19148
48b66019
DL
191492018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19150
19151 * po/ru.po: Update translations.
19152
1eeddc58
JM
191532018-01-17 Joseph Myers <joseph@codesourcery.com>
19154
19155 [BZ #22719]
19156 * sysdeps/hppa/backtrace.c: New file.
19157
207a72e2
L
191582018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19159
19160 [BZ #22715]
19161 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19162 align La_x86_64_retval to VEC_SIZE.
19163
4942c4ea
JM
191642018-01-16 Joseph Myers <joseph@codesourcery.com>
19165
19166 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19167 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19168
10d200db
FW
191692018-01-16 Florian Weimer <fweimer@redhat.com>
19170
19171 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19172 Move tst-thread-exit-clobber ...
19173 [$(CXX)] (tests-unsupported): ... to here.
19174
953c49cc
SN
191752018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19176
19177 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19178 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19179 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19180 (_dl_aarch64_cap_flags): Update.
19181 (_DL_HWCAP_COUNT): Update.
19182
afce1991
SN
191832018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19184
19185 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19186 (_DL_HWCAP_LAST): Remove.
19187 (_DL_HWCAP_COUNT): Move to ...
19188 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19189 (_DL_HWCAP_COUNT): ... here.
19190
b725132d
FW
191912018-01-16 Florian Weimer <fweimer@redhat.com>
19192
19193 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19194 mode with GNU extensions.
19195
c9e613a7
AH
191962018-01-15 Alan Hayward <alan.hayward@arm.com>
19197
19198 * elf/elf.h (NT_ARM_SVE): Define.
19199
860b0240
FW
192002018-01-15 Florian Weimer <fweimer@redhat.com>
19201
19202 [BZ #22636]
19203 * nptl/tst-minstack-throw.cc: New file.
19204 * nptl/Makefile (tests): Add tst-minstack-throw.
19205 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19206 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19207
16d0f6ac
JM
192082018-01-15 Joseph Myers <joseph@codesourcery.com>
19209
19210 * scripts/build-many-glibcs.py (Context.checkout): Default
19211 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19212 version to 1.1.0.
19213
505d3910
CD
192142018-01-13 Carlos O'Donell <carlos@redhat.com>
19215
19216 [BZ #22707]
19217 * elf/elf.h (DF_1_STUB): Define.
19218 (DF_1_PIE): Define.
19219
af1e6be4
TMQMF
192202018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19221
19222 [BZ #22697]
19223 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19224 Do not add 0.5 to integer or out-of-range arguments.
19225
98d13ce0
DL
192262018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19227
19228 * po/bg.po: Update translations.
19229 * po/cs.po: Likewise.
19230 * po/de.po: Likewise.
19231 * po/ko.po: Likewise.
19232 * po/pl.po: Likewise.
19233 * po/sv.po: Likewise.
19234 * po/uk.po: Likewise.
19235 * po/vi.po: Likewise.
19236
3d1d7928
SN
192372018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19238
19239 * aarch64/start.S (_start): Use __wrap_main.
19240 (__wrap_main): New local symbol.
19241
52a713fd
DL
192422018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19243
19244 [BZ #22679]
19245 CVE-2018-1000001
19246 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19247 generic_getcwd if the path returned by getcwd syscall is not absolute.
19248 * io/tst-getcwd-abspath.c: New test.
19249 * io/Makefile (tests): Add tst-getcwd-abspath.
19250
249a5895
IK
192512018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19252
19253 * malloc/malloc.c (malloc_consolidate): Add size check.
19254
1a51e46e
FW
192552018-01-12 Florian Weimer <fweimer@redhat.com>
19256
19257 * support/write_message.c (write_message): Preserve errno.
19258 * support/check.c (print_failure): Likewise.
19259 * support/support_test_verify_impl.c (support_test_verify_impl):
19260 Likewise.
19261 * support/support_test_compare_failure.c
19262 (support_test_compare_failure): Likewise.
19263
9a08a366
FW
192642018-01-12 Florian Weimer <fweimer@redhat.com>
19265
19266 [BZ #22701]
19267 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19268 Prevent installation of libnsl.so.
19269 (libnsl-inhibit-o): Do not build (or install) static libraries.
19270
80647883 192712018-01-12 Egmont Koblinger <egmont@gmail.com>
f172187b
EK
19272
19273 [BZ #22657]
19274 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19275 before the day number which may produce a double space.
19276 (date_fmt): Likewise.
19277
c8924f1f
JM
192782018-01-12 Joseph Myers <joseph@codesourcery.com>
19279
19280 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19281 instead of fegetenv.
19282
da09e6fa
JM
192832018-01-11 Joseph Myers <joseph@codesourcery.com>
19284
19285 [BZ #22702]
19286 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19287 comment to say exceptions are discarded.
19288 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19289 __fegetenv.
19290 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19291 be enabled.
19292
08c6e952
FW
192932018-01-11 Florian Weimer <fweimer@redhat.com>
19294
19295 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19296 and error message.
19297
d8b77890
FW
192982018-01-11 Florian Weimer <fweimer@redhat.com>
19299
19300 [BZ #22636]
19301 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19302 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19303
b303185d
JM
193042018-01-10 Joseph Myers <joseph@codesourcery.com>
19305
19306 [BZ #22693]
19307 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19308 negative arguments in test for NaN or infinity argument.
19309
ee61d028
DL
193102018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19311
19312 * po/libc.pot: Regenerate.
19313
f993b875
FW
193142018-01-10 Florian Weimer <fweimer@redhat.com>
19315
19316 [BZ #22636]
19317 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19318 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19319
09085ede
ST
193202018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19321
19322 * hurd/hurd/fd.h: Include <fcntl.h>
19323 (__hurd_at_flags): New function.
19324 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19325 with call to __hurd_at_flags.
19326 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19327 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19328 __faccessat
19329 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19330 (__access_noerrno): Use __faccessat_common instead of access_common.
19331 (__access): Likewise.
19332 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19333 with a call to __faccessat.
19334 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19335 (__faccessat_common): ... this. Move implementation of __access into it when
19336 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19337 reauthenticate_cwdir_at helper to implement AT mechanism.
19338 (__faccessat_noerrno): New function, just calls __faccessat_common.
19339 (__faccessat): New function, just calls __faccessat_common.
19340 (faccessat): Define weak alias.
19341
12727488
JM
193422018-01-10 Joseph Myers <joseph@codesourcery.com>
19343
87faac55
JM
19344 [BZ #22691]
19345 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19346 (CFLAGS-s_fmaxmagl.c): New variable.
19347 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19348
12727488
JM
19349 [BZ #22690]
19350 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19351 long int for arguments of possibly overflowing addition or
19352 subtraction.
19353 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19354
e134ca17
JM
193552018-01-09 Joseph Myers <joseph@codesourcery.com>
19356
b2584ac2
JM
19357 [BZ #22688]
19358 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19359 (CFLAGS-e_remainderl.c): New variable.
19360
e134ca17
JM
19361 [BZ #22687]
19362 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19363 variable.
19364 (CFLAGS-s_cacoshl.c): Likewise.
19365 (CFLAGS-s_casinhl.c): Likewise.
19366 (CFLAGS-s_catanl.c): Likewise.
19367 (CFLAGS-s_catanhl.c): Likewise.
19368 (CFLAGS-s_cexpl.c): Likewise.
19369 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19370 (CFLAGS-s_csinhl.c): Likewise.
19371 (CFLAGS-s_clogl.c): Likewise.
19372 (CFLAGS-s_clog10l.c): Likewise.
19373 (CFLAGS-s_csinl.c): Likewise.
19374 (CFLAGS-s_csqrtl.c): Likewise.
19375
d31a4a48
ST
193762017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
193772017-01-09 Svante Signell <svante.signell@gmail.com>
311ba8dc
ST
19378
19379 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19380 (_hurd_exec_paths): New function.
19381 * hurd/hurd.h (_hurd_exec): Deprecate function.
19382 (_hurd_exec_paths): Declare function.
19383 * hurd/Versions: Export _hurd_exec_paths.
19384 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19385 (__execve): Use __getcwd to build absolute path, and use
19386 _hurd_exec_paths instead of _hurd_exec.
19387 * sysdeps/mach/hurd/spawni.c: Likewise.
19388 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19389 _hurd_exec.
19390
d7ff3f11
DL
193912018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19392
19393 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19394 test instead of failing in case of ENOENT returned by posix_openpt.
19395
401311cf
FW
193962018-01-08 Florian Weimer <fweimer@redhat.com>
19397
19398 resolv: Support binary labels in test framework.
19399 * support/resolv_test.c (struct to_be_freed): Remove.
19400 (struct compressed_name): New.
19401 (allocate_compressed_name, ascii_tolower)
19402 (compare_compressed_name): New functions.
19403 (struct resolv_response_builder): Update type of
19404 compression_offsets for use with tsearch. Rempve to_be_freed.
19405 (response_push_pointer_to_free): Remove function.
19406 (resolv_response_add_name): Rewrite using struct compressed_name
19407 and tsearch instead of hsearch_r.
19408 (response_builder_allocate): Remove initialization of
19409 compression_offsets.
19410 (response_builder_free): Update for removal of to_be_freed. Use
19411 tdestroy instead of hdestroy_r.
19412 * resolv/Makefile (tests): Add tst-resolv-binary.
19413 (tst-resolv-binary): Link with -lresolv -lpthread.
19414
2b3aa446
FW
194152018-01-08 Florian Weimer <fweimer@redhat.com>
19416
19417 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19418 time. Pass positive flag instead of negative flag to
19419 support_test_compare_failure.
19420 (support_test_compare_failure): Change negative parameter to
19421 positive.
19422 * support/support_test_compare_failure.c (report)
19423 (support_test_compare_failure): Likewise.
19424 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19425 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19426
630f4cc3
SN
194272018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19428
19429 [BZ #22637]
19430 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19431 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19432 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19433 stacksize.
19434 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19435
c70e4e9c
L
194362018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19437
19438 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19439 Add s_sincosf-sse2 and s_sincosf-fma.
19440 (CFLAGS-s_sincosf-fma.c): New.
19441 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19442 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19443 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19444 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19445 __sincosf is defined.
19446
579396ee
FW
194472018-01-08 Florian Weimer <fweimer@redhat.com>
19448
19449 * nptl/tst-thread-exit-clobber.cc: New file.
19450 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19451 C++11 mode.
19452 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19453 (tests): Add tst-thread-exit-clobber.
19454 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19455
dabd75b6
FW
194562018-01-08 Florian Weimer <fweimer@redhat.com>
19457
19458 * support/check.h (support_static_assert): Define.
19459 (TEST_COMPARE): Use it.
19460
c2e014cc
AJ
194612018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19462
19463 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19464 [!__RLIM_T_MATCHES_RLIM64_T]
19465 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19466 __getrlimit64. Add libc_hidden_weak.
19467
31a98837
PD
194682018-01-06 Palmer Dabbelt <palmer@sifive.com>
19469
19470 * elf/elf.h (R_RISCV_NONE): New define.
19471 (R_RISCV_32): Likewise.
19472 (R_RISCV_64): Likewise.
19473 (R_RISCV_RELATIVE): Likewise.
19474 (R_RISCV_COPY): Likewise.
19475 (R_RISCV_JUMP_SLOT): Likewise.
19476 (R_RISCV_TLS_DTPMOD32): Likewise.
19477 (R_RISCV_TLS_DTPMOD64): Likewise.
19478 (R_RISCV_TLS_DTPREL32): Likewise.
19479 (R_RISCV_TLS_DTPREL64): Likewise.
19480 (R_RISCV_TLS_TPREL32): Likewise.
19481 (R_RISCV_TLS_TPREL64): Likewise.
00505532
PD
19482 * Makerules (make-link-multidir): Make directories before linking into
19483 them.
150bbac1
PD
19484 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19485 define.
19486 (VDSO_HASH_LINUX_4_15): Likewise.
1598f3ad
PD
19487 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19488 in subdirectories of lib.
8e13c51b
PD
19489 * nptl/Makefile (/librt.so): Always depend on
19490 "$(shared-thread-library)".
31a98837 19491
fad7d57e
ST
194922018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19493
19494 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4a5ce6e9
ST
19495 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19496 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19497 (___tls_get_addr).
19498 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
107a35a5
ST
19499 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19500 "-O2 -march=i686".
01c7e549 19501 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
f417d92c
ST
19502 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19503 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19504 * sysdeps/gnu/glob-lstat-compat.c: New file.
19505 * sysdeps/gnu/glob64-lstat-compat.c: New file.
200fc24b 19506 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
fad7d57e 19507
3a32b716
TMQMF
195082018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19509
19510 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19511 Reserve 16 chars to reloc_addr before calling _itoa_word.
19512
24731685
AJ
195132018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19514
19515 [BZ #22678]
19516 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19517 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19518
19be56d8
AJ
19519 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19520 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19521
a6d0afb5
AJ
19522 * resource/tst-getrlimit.c: Add copyright header.
19523
8e900969
AJ
195242018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19525 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19526
19527 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19528 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19529 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19530 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19531 instead.
19532 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19533 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19534 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19535 RLIM64_INFINITY): Fix values to match the kernel ones.
19536 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19537 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19538 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19539 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19540 getrlimit64@@GLIBC_2_27.
19541 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19542 and setrlimit64.
19543 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19544 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19545 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19546 setrlimit, getrlimit64 and setrlimit64.
19547
0d0bc784
AJ
195482018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19549
19550 [BZ #22648]
19551 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19552 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19553
ba374b6d
JM
195542018-01-04 Joseph Myers <joseph@codesourcery.com>
19555
19556 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19557 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19558 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19559
4854ddd8
AZ
195602018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19561
b0a4eca2
AZ
19562 [BZ #15479]
19563 [BZ #22666]
19564 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19565 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19566
4854ddd8
AZ
19567 [BZ #15479]
19568 [BZ #22665]
19569 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19570 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19571 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19572 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19573
8a5df95f
FW
195742018-01-04 Florian Weimer <fweimer@redhat.com>
19575
19576 [BZ #22667]
19577 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19578 Align the stack before calling exit.
19579 * stdlib/tst-makecontext-align.c: New file.
19580 * stdlib/Makefile (tests): Add tst-makecontext-align.
19581
82eef55f
FW
195822018-01-04 Florian Weimer <fweimer@redhat.com>
19583
19584 Add support for calling dlvsym from libc.so.
19585 * include/dlfcn.h (__libc_dlvsym): Declare.
19586 * elf/Makefile (tests-static-internal): Add
19587 tst-libc_dlvsym-static.
19588 (tests-internal): Add tst-libc_dlvsym.
19589 (modules-names): Add tst-libc_dlvsym-dso.
19590 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19591 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19592 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19593 object tst-libc_dlvsym-dso.so needs to be built before running
19594 these tests.
19595 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19596 * elf/Versions: Export __libc_dlvsym.
19597 * elf/dl-libc.c (struct do_dlvsym_args): New.
19598 (do_dlvsym, __libc_dlvsym): New functions.
19599 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19600 (_dl_open_hook2): New variable.
19601 (__libc_register_dl_open_hook): Set it.
19602 * elf/tst-libc_dlvsym-dso.c: New file.
19603 * elf/tst-libc_dlvsym-static.c: Likewise.
19604 * elf/tst-libc_dlvsym.c: Likewise.
19605 * elf/tst-libc_dlvsym.h: Likewise.
19606
1714fc06
ST
196072018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19608
19609 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19610 include <sys/mount.h>.
19611
3c7d0312
WD
196122018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19613
19614 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19615 Add __NO_MATH_ERRNO__ check.
19616
7eff0954
JM
196172018-01-02 Joseph Myers <joseph@codesourcery.com>
19618
19619 * sysdeps/mips/mips32/libm-test-ulps: Update.
19620 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19621
77f49956
FW
196222018-01-02 Florian Weimer <fweimer@redhat.com>
19623
19624 * misc/tst-pselect.c: Add copyright header.
19625
363e4519 196262018-01-02 Aurelien Jarno <aurelien@aurel32.net>
d35989be
AJ
19627
19628 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19629 comment.
19630 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19631 comment.
19632 (settrlimit): Rename into setrlimit.
19633 (__sttrlimit): Rename into __setrlimit.
19634
3e4226ff
AJ
19635 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19636 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19637 never defined in that case.
19638
b9256ab6
JM
196392018-01-02 Joseph Myers <joseph@codesourcery.com>
19640
28fd6a44
JM
19641 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19642
a4933a15
JM
19643 * sysdeps/arm/libm-test-ulps: Update.
19644
b9256ab6
JM
19645 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19646 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19647
4cf82d23
RS
196482018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19649
19650 * NEWS: Add cosf and sincosf to list of optimized functions.
19651
6a9dd7a7
AJ
196522018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19653
19654 [BZ #22660]
19655 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19656 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19657 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19658 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19659
dbba87d5
DL
196602018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19661
b05cb613
DL
19662 [BZ #22433]
19663 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19664
dbba87d5
DL
19665 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19666 making a copy of it.
19667
688903eb
JM
196682018-01-01 Joseph Myers <joseph@codesourcery.com>
19669
66ac23de
JM
19670 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19671 trailing whitespace removed.
19672 * scripts/config.guess: Update to version 2018-01-01.
19673 * scripts/config.sub: Update to version 2018-01-01.
19674 * scripts/move-if-change: Update from gnulib.
19675
09533208
JM
19676 * NEWS: Update copyright dates.
19677 * catgets/gencat.c (print_version): Likewise.
19678 * csu/version.c (banner): Likewise.
19679 * debug/catchsegv.sh: Likewise.
19680 * debug/pcprofiledump.c (print_version): Likewise.
19681 * debug/xtrace.sh (do_version): Likewise.
19682 * elf/ldconfig.c (print_version): Likewise.
19683 * elf/ldd.bash.in: Likewise.
19684 * elf/pldd.c (print_version): Likewise.
19685 * elf/sotruss.sh: Likewise.
19686 * elf/sprof.c (print_version): Likewise.
19687 * iconv/iconv_prog.c (print_version): Likewise.
19688 * iconv/iconvconfig.c (print_version): Likewise.
19689 * locale/programs/locale.c (print_version): Likewise.
19690 * locale/programs/localedef.c (print_version): Likewise.
19691 * login/programs/pt_chown.c (print_version): Likewise.
19692 * malloc/memusage.sh (do_version): Likewise.
19693 * malloc/memusagestat.c (print_version): Likewise.
19694 * malloc/mtrace.pl: Likewise.
19695 * manual/libc.texinfo: Likewise.
19696 * nptl/version.c (banner): Likewise.
19697 * nscd/nscd.c (print_version): Likewise.
19698 * nss/getent.c (print_version): Likewise.
19699 * nss/makedb.c (print_version): Likewise.
19700 * posix/getconf.c (main): Likewise.
19701 * scripts/test-installation.pl: Likewise.
19702 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19703
688903eb
JM
19704 * All files with FSF copyright notices: Update copyright dates
19705 using scripts/update-copyrights.
19706 * locale/programs/charmap-kw.h: Regenerated.
19707 * locale/programs/locfile-kw.h: Likewise.
19708
4f820792
ZW
197092017-12-31 Zack Weinberg <zackw@panix.com>
19710
19711 * libio/bits/libio-ldbl.h: Correct check for improper
19712 inclusion. Add own multiple include guard.
19713
3e3c904d
AJ
197142017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19715 Dmitry V. Levin <ldv@altlinux.org>
19716
19717 [BZ #22625]
31f96325 19718 CVE-2017-16997
3e3c904d
AJ
19719 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19720 string token expansion. Check for NULL pointer or empty string possibly
19721 returned by expand_dynamic_string_token.
19722 (decompose_rpath): Check for empty path after dynamic string
19723 token expansion.
19724
7e21972b
DL
197252017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19726
c48831d0
DL
19727 [BZ #22433]
19728 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19729
ac583f50
DL
19730 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19731 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19732 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19733 and PTRACE_SYSCALL.
19734 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19735 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19736 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19737 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19738 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19739 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19740
7e21972b
DL
19741 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19742 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19743 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19744 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19745 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19746 bits/ptrace-shared.h.
19747 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19748 <bits/ptrace-shared.h>.
19749 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19750 __ptrace_peeksiginfo_flags, ptrace): Remove.
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
72f29e3a
AJ
197572017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19758
19759 [BZ #17804]
19760 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19761 end of the loop. Improve comments.
19762
54e4efc2
AJ
197632017-12-29 Zack Weinberg <zackw@panix.com>
19764
19765 [BZ #22615]
19766 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19767 might be set on success.
19768
f8aa69be
AJ
197692017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19770
19771 [BZ #22611]
19772 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19773 is unchanged on success.
19774
97f13188
DL
197752017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19776
2bd86632
DL
19777 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19778 updated.
19779 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19780 expand_dynamic_string_token): Likewise.
19781 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19782 is_path argument.
19783
1c36e1e6
DL
19784 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19785 contains ':'.
19786
97f13188
DL
19787 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19788 is set and name contains ':', and all code depending on these checks.
19789
48a8f832
ZW
197902017-12-24 Zack Weinberg <zackw@panix.com>
19791
19792 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19793 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19794 respectively.
19795 * libio/libio.h: Rename the original version of this file to
19796 libio/bits/libio.h. Error out if not included by stdio.h or the
19797 stub libio.h.
19798 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19799 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19800 if not included by bits/libio.h or the stub _G_config.h.
19801 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19802 sysdeps/unix/sysv/linux/bits. Error out if not included by
19803 bits/libio.h or the stub _G_config.h.
19804 * libio/stdio.h: Include bits/libio.h, not libio.h.
19805 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19806 well as libio.h and _G_config.h.
19807
19808 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19809 * libio/strfile.h, stdio-common/vfscanf.c
19810 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19811 Include stdio.h, not _G_config.h nor libio.h.
19812 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19813 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19814
19815 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19816
a47ad79a
DL
198172017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19818
19819 [BZ #22347]
19820 * stdlib/getrandom.c (getrandom): Fix comment.
19821 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19822
363e4519 198232017-12-23 Aurelien Jarno <aurelien@aurel32.net>
e65a5644 19824
f5c558f3
AJ
19825 [BZ #21161]
19826 * manual/arith.texi (strtoul): Fix a typo.
19827
e65a5644
AJ
19828 [BZ #22596]
19829 * manual/arith.texi (finite): Fix the description of the return
19830 value.
19831
ed8ae46b
EB
198322017-12-22 Eric Blake <ebb9@byu.net>
19833
19834 Avoid gcc warnings on cygwin
19835 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19836 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19837 Avoid unused variable.
19838
bad7a0c8
FW
198392017-12-22 Florian Weimer <fweimer@redhat.com>
19840
19841 * io/Makefile (routines): Add copy_file_range.
19842 (tests): Add tst-copy_file_range.
19843 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19844 * io/Versions (GLIBC_2.27): Export copy_file_range.
19845 * io/copy_file_range-compat.c: New file.
19846 * io/copy_file_range.c: Likewise.
19847 * io/tst-copy_file_range-compat.c: Likewise.
19848 * io/tst-copy_file_range.c: Likewise.
19849 * manual/llio.texi (Copying File Data): New section.
19850 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19851 * support/Makefile (libsupport-routines): Add support-xfstat,
19852 xftruncate, xlseek.
19853 * support/support-xfstat.c: New file.
19854 * support/xftruncate.c: Likewise.
19855 * support/xlseek.c: Likewise.
19856 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19857 * sysdeps/unix/sysv/linux/**.abilist: Update.
19858 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19859
6cb86fd2
SN
198602017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19861
19862 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19863 disable-multi-arch variant to aarch64-linux-gnu.
19864
41d11b15
JM
198652017-12-20 Joseph Myers <joseph@codesourcery.com>
19866
19867 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19868 trailing whitespace removed.
19869 * scripts/config.guess: Update to version 2017-12-17.
19870 * scripts/config.sub: Update to version 2017-11-23.
19871 * scripts/install-sh: Update to version 2017-09-23.17.
19872 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19873
4735850f
AZ
198742017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19875
8d2d239c
AZ
19876 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19877 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19878 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19879 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19880 * sysdeps/tile/crtn.S: Likewise.
19881 * sysdeps/tile/dl-start.S (_start): Likewise.
19882 * sysdeps/tile/dl-trampoline.S: Likewise.
19883 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19884 * sysdeps/tile/start.S (_start): Likewise.
19885 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19886 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19887 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19888 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19889 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19890 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19891 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19892
24d1d8ec
AZ
19893 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19894 comment.
19895 * sysdeps/tile/preconfigure: Remove tilegx folder.
19896 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19897 * sysdeps/tile/Implies: ... here.
19898 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19899 * sysdeps/tile/Makefile: ... here.
19900 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19901 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19902 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19903 * sysdeps/tile/bits/wordsize.h: ... here.
19904 * sysdeps/tile/tilegx/*: Move to ...
19905 * sysdeps/tile/*: ... here.
19906 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19907 * sysdeps/tile/tilegx32/Implies: ... here.
19908 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19909 * sysdeps/tile/tilegx64/Implies: ... here.
19910 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19911 to ...
19912 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19913 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19914 * sysdeps/unix/sysv/linux/tile/*: ... here.
19915 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19916 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19917 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19918 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19919
ed95f611
AZ
19920 * README: Remove tilepro-*-linux-gnu from supported architecture.
19921 * scripts/build-many-glibcs.py: Likewise.
19922 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19923 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19924 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19925 elf_machine_matches_host, elf_machine_dynamic,
19926 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19927 howto, elf_machine_rela): Likewise.
19928 * sysdeps/tile/dl-start.S (_start): Likewise.
19929 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19930 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19931 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19932 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19933 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19934 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19935 Likewise.
19936 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19937 * sysdeps/tile/preconfigure: Likewise.
19938 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
19939 POINTER_CHK_GUARD): Likewise.
19940 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
19941 * sysdeps/tile/start.S (_start): Likewise.
19942 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
19943 Likewise.
19944 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
19945 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
19946 CMOVNEZ): Remove.
19947 * sysdeps/unix/sysv/linux/tile/bits/environments.h
19948 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
19949 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
19950 Likewise.
19951 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
19952 * sysdeps/tile/tilepro/Implies: Remove file.
19953 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
19954 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
19955 * sysdeps/tile/tilepro/memchr.c: Likewise.
19956 * sysdeps/tile/tilepro/memcpy.S: Likewise.
19957 * sysdeps/tile/tilepro/memset.c: Likewise.
19958 * sysdeps/tile/tilepro/memusage.h: Likewise.
19959 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
19960 * sysdeps/tile/tilepro/strchr.c: Likewise.
19961 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
19962 * sysdeps/tile/tilepro/strlen.c: Likewise.
19963 * sysdeps/tile/tilepro/strrchr.c: Likewise.
19964 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
19965 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
19966 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19967 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
19968 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
19969 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
19970 Likewise.
19971 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
19972 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19973 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
19974 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
19975 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19976 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
19977 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
19978 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
19979 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
19980 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
19981 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
19982 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
19983 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
19984 tilepro mention in comment.
19985
4735850f
AZ
19986 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
19987 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
19988 * nptl/pthread_join_common.c: New file: common function used on
19989 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
19990 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
19991 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
19992 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
19993 (cleanup): Move definition to pthread_join_common.c.
19994 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
19995 Remove superflous checks.
19996 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
19997 Likewise.
19998
8bfb461e
SN
199992017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20000
20001 * sysdeps/aarch64/libm-test-ulps: Update.
20002
4e001969
AZ
200032017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20004
20005 * sysdeps/aarch64/memset.S (MEMSET): Define.
20006
8a26ad2a
FW
200072017-12-20 Florian Weimer <fweimer@redhat.com>
20008
20009 [BZ #22635]
20010 nptl: Provide full implementation of pthread_self in libc.so.
20011 * nptl/Makefile (routines): Add pthread_self.
20012 (libpthread-routines): Replace pthread_self with
20013 compat-pthread_self.
20014 * nptl/forward.c (pthread_self): Remove.
20015 * nptl/nptl-init.c (pthread_functions): Do not initialize
20016 ptr_pthread_self.
20017 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20018 * nptl/compat-pthread_self.c: New file.
20019 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20020 Remove ptr_pthread_self.
20021
5069ff32
AR
200222017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20023
20024 * posix/regcomp.c: Fix spelling in comments.
20025 * posix/regex.h: Likewise.
20026 * posix/regex_internal.c: Likewise.
20027 * posix/regexec.c: Likewise.
20028
c85e54ac
GG
200292017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20030
20031 [BZ #22377]
20032 * math/Makefile [C++] (tests): Add test for iseqsig.
20033 * math/math.h [C++] (iseqsig): New implementation, which does
20034 not rely on __MATH_TG/__builtin_types_compatible_p.
20035 * math/test-math-iseqsig.cc: New file.
20036 * sysdeps/powerpc/powerpc64le/Makefile
20037 (CFLAGS-test-math-iseqsig.cc): New variable.
20038
10e93d96
DL
200392017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20040
20041 * elf/dl-load.c (is_trusted_path): Remove.
20042 (fillin_rpath): Remove check_trusted argument and its use,
20043 all callers changed.
20044
ce16eb52
L
200452017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20046
20047 [BZ #22630]
20048 * Makeconfig (link-pie-before-libc): Replace -pie with
20049 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20050 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20051 (tst-dlopen-aout-no-pie): New.
20052 (LDFLAGS-tst-prelink): Removed.
20053 (tst-prelink-no-pie): New.
20054 (LDFLAGS-tst-main1): Removed.
20055 (tst-main1-no-pie): New.
20056 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20057 (tst-gmon-no-pie): New.
20058
126adc89
L
200592017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20060
20061 * manual/install.texi: Document that --enable-static-pie
20062 implies PIE.
20063 * INSTALL: Regenerated.
20064
648615e1
BE
200652017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20066
20067 [BZ #21309]
20068 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20069 unsigned.
20070
f1e00502
JM
200712017-12-19 Joseph Myers <joseph@codesourcery.com>
20072
20073 Revert:
20074
20075 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20076
20077 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20078
20079 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20080
20081 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20082 <errno.h>. Include "eexp.tbl".
20083 (half): New constant.
20084 (one): Likewise.
20085 (__ieee754_exp): Rewrite.
20086 (__slowexp): Remove prototype.
20087 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20088 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20089 * sysdeps/i386/fpu/slowexp.c: Likewise.
20090 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20091 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20092 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20093 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20094 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20095 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20096 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20097 comment.
20098 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20099 (CPPFLAGS-slowexp.c): Remove variable.
20100 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20101 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20102 (CFLAGS-slowexp-fma.c): Remove variable.
20103 (CFLAGS-slowexp-fma4.c): Likewise.
20104 (CFLAGS-slowexp-avx.c): Likewise.
20105 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20106 define as macro.
20107 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20108 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20109 * math/Makefile (type-double-routines): Remove slowexp.
20110 * manual/probes.texi (slowexp_p6): Remove.
20111 (slowexp_p32): Likewise.
20112
d711a00f
AZ
201132017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20114
e184ac3a
AZ
20115 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20116 arithmetic.
20117
d711a00f
AZ
20118 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20119
6f58c10d
JM
201202017-12-19 Joseph Myers <joseph@codesourcery.com>
20121
20122 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20123
6fd0a3c6
PM
201242017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20125
20126 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20127 <errno.h>. Include "eexp.tbl".
20128 (half): New constant.
20129 (one): Likewise.
20130 (__ieee754_exp): Rewrite.
20131 (__slowexp): Remove prototype.
20132 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20133 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20134 * sysdeps/i386/fpu/slowexp.c: Likewise.
20135 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20136 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20137 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20138 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20139 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20140 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20141 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20142 comment.
20143 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20144 (CPPFLAGS-slowexp.c): Remove variable.
20145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20146 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20147 (CFLAGS-slowexp-fma.c): Remove variable.
20148 (CFLAGS-slowexp-fma4.c): Likewise.
20149 (CFLAGS-slowexp-avx.c): Likewise.
20150 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20151 define as macro.
20152 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20153 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20154 * math/Makefile (type-double-routines): Remove slowexp.
20155 * manual/probes.texi (slowexp_p6): Remove.
20156 (slowexp_p32): Likewise.
20157
3bb1ef58 201582017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6b5c8607 20159 James Clarke <jrtc27@jrtc27.com>
3bb1ef58
AZ
20160
20161 [BZ #22603]
20162 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20163 addition.
20164
554e3d51
AZ
201652017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20166
20167 [BZ #22605]
20168 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20169 code.
20170
cba595c3
L
201712017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20172
20173 [BZ #22563]
20174 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20175 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20176 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20177 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20178 to feature_1.
20179
f81ddabf
L
201802017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20181
20182 [BZ #22563]
20183 * bits/types/__cancel_jmp_buf_tag.h: New file.
20184 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20185 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20186 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20187 * nptl/Makefile (headers): Add
20188 bits/types/__cancel_jmp_buf_tag.h.
20189 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20190 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20191 * sysdeps/nptl/pthread.h: Include
20192 <bits/types/__cancel_jmp_buf_tag.h>.
20193 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20194 __cancel_jmp_buf.
20195 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20196
1a49fc59
L
201972017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20198
20199 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20200 --enable-static-pie variants to x86_64, x32 and i686.
20201
8e52f573
JM
202022017-12-19 Joseph Myers <joseph@codesourcery.com>
20203
66425185
JM
20204 [BZ #22631]
20205 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20206 argument for attrubutes. All callers changed.
20207 (__inline_mathop1): Likewise. All callers changed.
20208 (__inline_mathop): Likewise. All callers changed.
20209 [__USE_MISC] (scalbn): Use __inline_forward instead of
20210 __inline_forward_c.
20211 [__USE_ISOC99] (scalbln): Likewise.
20212 [__USE_ISOC99] (nearbyint): Likewise.
20213 [__USE_ISOC99] (lrint): Likewise.
20214 [__USE_MISC] (scalbnf): Likewise.
20215 [__USE_ISOC99] (scalblnf): Likewise.
20216 [__USE_ISOC99] (nearbyintf): Likewise.
20217 [__USE_ISOC99] (lrintf): Likewise.
20218 [__USE_MISC] (scalbnl): Likewise.
20219 [__USE_ISOC99] (scalblnl): Likewise.
20220 [__USE_ISOC99] (nearbyintl): Likewise.
20221 [__USE_ISOC99] (lrintl): Likewise.
20222 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20223 __inline_mathop and __m81_defun changed.
20224
8e52f573
JM
20225 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20226 CPU or FPU for ARM hard-float configurations.
20227
1421f39b
JM
202282017-12-18 Joseph Myers <joseph@codesourcery.com>
20229
40c4162d
JM
20230 * nptl/tst-attr3.c: Include <libc-diag.h>.
20231 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20232
5983df32
JM
20233 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20234
1421f39b
JM
20235 * string/tester.c (test_strncat): Also disable -Warray-bounds
20236 warnings for two tests.
20237
00c714df
L
202382017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20239
20240 [BZ #22614]
20241 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20242 $(cc-pie-default) == yes.
20243 * config.make.in (cc-pie-default): New.
20244 * configure.ac (libc_cv_pie_default): Renamed to ...
20245 (libc_cv_cc_pie_default): This.
20246 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20247 * configure: Regenerated.
20248
8e1472d2
FW
202492017-12-18 Florian Weimer <fweimer@redhat.com>
20250
20251 [BZ #20204]
20252 ld.so: Harden dl-libc/libdl hooks.
20253 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20254 (rtld_active): New function.
20255 * dlfcn/dladdr.c (__dladdr): Call it.
20256 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20257 * dlfcn/dlclose.c (__dlcose): Likewise.
20258 * dlfcn/dlerror.c (__dlerror): Likewise.
20259 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20260 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20261 * dlfcn/dlopen.c (__dlopen): Likewise.
20262 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20263 * dlfcn/dlsym.c (__dlsym): Likewise.
20264 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20265 * libio/vtables.c (_IO_vtable_check): Likewise.
20266 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20267 (__libc_dlclose): Likewise.
20268 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20269 assignment.
20270
49b036bc
JM
202712017-12-18 Joseph Myers <joseph@codesourcery.com>
20272
20273 [BZ #22446]
20274 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20275 buffers for readlink input and output.
20276
368b6c8d
ST
202772017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20278
c85c564d
ST
20279 [BZ #22624]
20280 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20281 inhibit_stack_protector.
20282
368b6c8d
ST
20283 [BZ #22624]
20284 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20285 inhibit_stack_protector.
20286
bb195224
DL
202872017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20288
20289 [BZ #22627]
20290 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20291 code and invocation.
20292
14d886ed
SN
202932017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20294
20295 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20296
7d38eb38
AJ
202972017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20298
20299 [BZ #22505]
20300 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20301
2e77deef
RS
203022017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20303
20304 * sysdeps/s390/fpu/libm-test-ulps: Update.
20305
0b9bef6d
RS
203062017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20307
20308 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20309
984ae996
RS
203102017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20311
20312 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20313 constants to s_sincosf.h file.
20314 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20315 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20316 implementation.
20317 * sysdeps/ieee754/flt-32/s_sincosf.h:
20318 New file.
20319
363e4519 203202017-12-12 Carlos O'Donell <carlos@redhat.com>
93930ea9
CD
20321
20322 [BZ #14681]
20323 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20324 before mtrace.
20325
9d7a3741
L
203262017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20327
20328 [BZ #19574]
20329 * INSTALL: Regenerated.
20330 * Makeconfig (real-static-start-installed-name): New.
20331 (pic-default): Updated for --enable-static-pie.
20332 (pie-default): New for --enable-static-pie.
20333 (default-pie-ldflag): Likewise.
20334 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20335 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20336 Replace $(static-start-installed-name) with
20337 $(real-static-start-installed-name).
20338 (+prectorT): Updated for --enable-static-pie.
20339 (+postctorT): Likewise.
20340 (CFLAGS-.o): Add $(pie-default).
20341 (CFLAGS-.op): Likewise.
20342 * NEWS: Mention --enable-static-pie.
20343 * config.h.in (ENABLE_STATIC_PIE): New.
20344 * configure.ac (--enable-static-pie): New configure option.
20345 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20346 (have-static-pie): Likewise.
20347 Enable static PIE if linker supports --no-dynamic-linker.
20348 (ENABLE_STATIC_PIE): New AC_DEFINE.
20349 (enable-static-pie): New LIBC_CONFIG_VAR.
20350 * configure: Regenerated.
20351 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20352 gr$(start-installed-name) for --enable-static-pie.
20353 (extra-objs): Likewise.
20354 (install-lib): Likewise.
20355 (extra-objs): Add static-reloc.o and static-reloc.os
20356 ($(objpfx)$(start-installed-name)): Also depend on
20357 $(objpfx)static-reloc.o.
20358 ($(objpfx)r$(start-installed-name)): New.
20359 ($(objpfx)g$(start-installed-name)): Also depend on
20360 $(objpfx)static-reloc.os.
20361 ($(objpfx)gr$(start-installed-name)): New.
20362 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20363 in libc.a.
20364 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20365 initimage.
20366 * csu/static-reloc.c: New file.
20367 * elf/Makefile (routines): Add dl-reloc-static-pie.
20368 (elide-routines.os): Likewise.
20369 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20370 (tst-tls1-static-non-pie-no-pie): New.
20371 * elf/dl-reloc-static-pie.c: New file.
20372 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20373 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20374 STATIC_PIE_BOOTSTRAP.
20375 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20376 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20377 (tests-static): Likewise.
20378 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20379 (tst-gmon-static-no-pie): New.
20380 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20381 (CRT-tst-gmon-static-pie): Likewise.
20382 (tst-gmon-static-pie-ENV): Likewise.
20383 (tests-special): Likewise.
20384 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20385 (clean-tst-gmon-static-pie-data): Likewise.
20386 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20387 * gmon/tst-gmon-static-pie.c: New file.
20388 * manual/install.texi: Document --enable-static-pie.
20389 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20390 (_dl_get_dl_main_map): Likewise.
20391 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20392 * sysdeps/x86_64/configure.ac: Likewise.
20393 * sysdeps/i386/configure: Regenerated.
20394 * sysdeps/x86_64/configure: Likewise.
20395 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20396 (ASFLAGS-.op): Likewise.
20397
95511aab
JM
203982017-12-15 Joseph Myers <joseph@codesourcery.com>
20399
20400 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20401 * posix/tst-mmap-offset.c (fname): Use /tmp.
20402 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20403
a7e3edf4
SE
204042017-12-15 Steve Ellcey <sellcey@cavium.com>
20405
20406 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20407
d232f2e1
TS
204082017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20409
20410 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20411 errno.
20412
174edbde
JM
204132017-12-15 Joseph Myers <joseph@codesourcery.com>
20414
5170fa49
JM
20415 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20416 --with-float=hard for arm-linux-gnueabihf configurations.
20417
f2da2fd8
JM
20418 [BZ #14121]
20419 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20420 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20421 ($(mo-installed)): Use $(objpfx)%.mo.
20422 (realclean): Remove rule.
20423
0c4fe28d
JM
20424 * po/Makefile (linguas): Remove rule and dependencies.
20425 (linguas.mo): Likewise.
20426 (.PHONY): Do not depend on linguas and linguas.mo.
20427 (podir): Remove variable.
20428 (pofiles): Likewise.
20429 [$(pofiles)] (%.po): Remove rule.
20430
174edbde
JM
20431 * sysdeps/sparc/sparc32/Makefile
20432 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20433 start-of-line whitespace in argument of echo.
20434 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20435 with whitespace. Generate __wrap_.udiv alias.
20436 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20437 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20438 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20439 * sysdeps/sparc/sparc32/urem.S: Likewise.
20440
1e36806f
RS
204412017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20442
20443 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20444 for aligned inputs.
20445
aa6932aa
SP
204462017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20447
5f1603c3
SP
20448 * benchtests/bench-strcmp.c: Print output in JSON format.
20449
aa6932aa
SP
20450 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20451
3ff3dfa5
FW
204522017-12-14 Florian Weimer <fweimer@redhat.com>
20453
20454 [BZ #22607]
20455 CVE-2017-1000409
20456 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20457 the expanded path string.
20458
8a0b17e4
FW
204592017-12-14 Florian Weimer <fweimer@redhat.com>
20460
20461 [BZ #22606]
20462 CVE-2017-1000408
20463 * elf/dl-load.c (system_dirs): Update comment.
20464 (nsystem_dirs_len): Use array_length.
20465 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20466
f58bd7f0
FW
204672017-12-14 Florian Weimer <fweimer@redhat.com>
20468
20469 Simplify compiling most of support/ outside of glibc.
20470 * support/check_addrinfo.c: Include <string.h>.
20471 * support/check_dns_packet.c: Likewise.
20472 * support/check_hostent.c: Likewise.
20473 * support/support_can_chroot.c: Include <support/xunistd.h>.
20474 * support/support_format_addrinfo.c: Include <stdlib.h>
20475 * support/support_format_dns_packet.c: Include <stdbool.h>.
20476 * support/support_format_hostent.c: Include <stdlib.h>.
20477 * support/support_format_netent.c: Likewise.
20478 * support/support_write_string.c: Include <support/xunistd.h>.
20479 * support/xdlfcn.c: Include <stddef.h>.
20480
4ca945e9
L
204812017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20482
20483 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20484
1b6e07f8
PM
204852017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20486 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20487
e6a1c5dc
PM
20488 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20489 (sysdeps_routines): Add memset-niagara7.
20490 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20491 Likewise.
20492 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20493 file.
20494 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20495 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20496 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20497 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20498 Add niagara7 option.
20499 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20500 memset.
20501
1b6e07f8
PM
20502 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20503 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20504 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20505 Likewise.
20506 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20507 New file.
20508 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20509 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20510 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20511 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20512 and __memmove_niagara7.
20513 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20514 Add niagara7 option.
20515 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20516 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20517 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20518 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20519 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20520
bfb7bf22
JM
205212017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20522
767a26d6
JM
20523 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20524 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20525 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20526 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20527
bfb7bf22
JM
20528 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20529 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20530 _dl_sparc_cap_flags array.
20531 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20532
2bce01eb
SP
205332017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20534
20535 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20536 time whenever possible.
20537
363e4519 205382017-12-12 Carlos O'Donell <carlos@redhat.com>
243b6333
CD
20539
20540 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20541 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20542
6f7c0092
JM
205432017-12-12 Joseph Myers <joseph@codesourcery.com>
20544
20545 * soft-fp/fmadf4.c: Move to ....
20546 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20547 * soft-fp/fmasf4.c: Move to ....
20548 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20549 * soft-fp/fmatf4.c: Move to ....
20550 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20551 * sysdeps/ieee754/soft-fp/Makefile: New file.
20552 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20553 * sysdeps/arm/preconfigure: Regenerated.
20554 * sysdeps/arm/nofpu/Implies: New file.
20555 * sysdeps/arm/s_fma.c: Remove file.
20556 * sysdeps/arm/s_fmaf.c: Likewise.
20557 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20558 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20559 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20560 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20561 * sysdeps/microblaze/s_fma.c: Remove file.
20562 * sysdeps/microblaze/s_fmaf.c: Likewise.
20563 * sysdeps/mips/mips32/nofpu/Implies: New file.
20564 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20565 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20566 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20567 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20568 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20569 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20570 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20571 implementation.
20572 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20573 * sysdeps/nios2/s_fma.c: Remove file.
20574 * sysdeps/nios2/s_fmaf.c: Likewise.
20575 * sysdeps/sh/nofpu/Implies: New file.
20576 * sysdeps/sh/s_fma.c: Remove file.
20577 * sysdeps/sh/s_fmaf.c: Likewise.
20578 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20579 * sysdeps/tile/s_fma.c: Remove file.
20580 * sysdeps/tile/s_fmaf.c: Likewise.
20581
ac817e08
L
205822017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20583
20584 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20585 Add s_cosf-sse2 and s_cosf-fma.
20586 (CFLAGS-s_cosf-fma.c): New.
20587 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20588 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20589 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20590
eb428576
SE
205912017-12-12 Steve Ellcey <sellcey@cavium.com>
20592
20593 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20594
c80acdc3
AZ
205952017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20596
cc683f7e
AZ
20597 * libio/Makefile (tests): Add tst-bz22415.
20598 (tst-bz22415-ENV): New rule.
20599 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20600 (tests-special): Add tst-bz22415-mem.out.
20601 ($(objpfx)tst-bz22415-mem.out): New rule.
20602 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20603 in case of a successful seek operation.
20604 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20605 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20606 buffer is required.
20607 * libio/tst-bz22415.c: New test.
20608
c80acdc3
AZ
20609 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20610
363e4519 206112017-12-12 James Clarke <jrtc27@jrtc27.com>
89bd8016
JC
20612
20613 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20614 __IPC_64 to 0 to avoid IPC_64 being set.
20615
4e0dca54
SN
206162017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20617
20618 [BZ #22593]
20619 * math/bits/mathcalls.h (nextafter): Remove const.
20620 (nexttoward): Likewise.
20621
8df5d347
JM
206222017-12-12 Joseph Myers <joseph@codesourcery.com>
20623
20624 * configure.ac (--with-fp): Remove configure option.
20625 (with_fp_cond): New variable.
20626 (libc_cv_with_fp): New configure test. Use this variable instead
20627 of with_fp.
20628 * configure: Regenerated.
20629 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20630 * manual/install.texi (Configuring and compiling): Remove
20631 --without-fp.
20632 * INSTALL: Regenerated.
20633 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20634 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20635 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20636 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20637 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20638 use --without-fp to configure glibc.
20639
0cee1257
RJ
206402017-12-12 Rical Jasan <ricaljasan@pacific.net>
20641
20642 * manual/locale.texi (nl_langinfo): Fix a typo.
20643
363e4519 206442017-12-12 Aurelien Jarno <aurelien@aurel32.net>
f54ad2f9
AJ
20645
20646 [BZ #22588]
20647 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20648
36975e8e
L
206492017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20650
20651 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20652 (CFLAGS-argp-parse.c): Likewise.
20653 (CFLAGS-argp-fmtstream.c): Likewise.
20654 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20655 (CPPFLAGS-sha512-crypt.c): Likewise.
20656 (CPPFLAGS-md5-crypt.c): Likewise.
20657 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20658 (CFLAGS-stack_chk_fail_local.c): Likewise.
20659 (CFLAGS-backtrace.c): Likewise.
20660 (CFLAGS-sprintf_chk.c): Likewise.
20661 (CFLAGS-snprintf_chk.c): Likewise.
20662 (CFLAGS-vsprintf_chk.c): Likewise.
20663 (CFLAGS-vsnprintf_chk.c): Likewise.
20664 (CFLAGS-asprintf_chk.c): Likewise.
20665 (CFLAGS-vasprintf_chk.c): Likewise.
20666 (CFLAGS-obprintf_chk.c): Likewise.
20667 (CFLAGS-dprintf_chk.c): Likewise.
20668 (CFLAGS-vdprintf_chk.c): Likewise.
20669 (CFLAGS-printf_chk.c): Likewise.
20670 (CFLAGS-fprintf_chk.c): Likewise.
20671 (CFLAGS-vprintf_chk.c): Likewise.
20672 (CFLAGS-vfprintf_chk.c): Likewise.
20673 (CFLAGS-gets_chk.c): Likewise.
20674 (CFLAGS-fgets_chk.c): Likewise.
20675 (CFLAGS-fgets_u_chk.c): Likewise.
20676 (CFLAGS-fread_chk.c): Likewise.
20677 (CFLAGS-fread_u_chk.c): Likewise.
20678 (CFLAGS-swprintf_chk.c): Likewise.
20679 (CFLAGS-vswprintf_chk.c): Likewise.
20680 (CFLAGS-wprintf_chk.c): Likewise.
20681 (CFLAGS-fwprintf_chk.c): Likewise.
20682 (CFLAGS-vwprintf_chk.c): Likewise.
20683 (CFLAGS-vfwprintf_chk.c): Likewise.
20684 (CFLAGS-fgetws_chk.c): Likewise.
20685 (CFLAGS-fgetws_u_chk.c): Likewise.
20686 (CFLAGS-read_chk.c): Likewise.
20687 (CFLAGS-pread_chk.c): Likewise.
20688 (CFLAGS-pread64_chk.c): Likewise.
20689 (CFLAGS-recv_chk.c): Likewise.
20690 (CFLAGS-recvfrom_chk.c): Likewise.
20691 (CFLAGS-tst-longjmp_chk.c): Likewise.
20692 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20693 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20694 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20695 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20696 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20697 (CFLAGS-tst-chk1.c): Likewise.
20698 (CFLAGS-tst-chk2.c): Likewise.
20699 (CFLAGS-tst-chk3.c): Likewise.
20700 (CFLAGS-tst-chk4.cc): Likewise.
20701 (CFLAGS-tst-chk5.cc): Likewise.
20702 (CFLAGS-tst-chk6.cc): Likewise.
20703 (CFLAGS-tst-lfschk1.c): Likewise.
20704 (CFLAGS-tst-lfschk2.c): Likewise.
20705 (CFLAGS-tst-lfschk3.c): Likewise.
20706 (CFLAGS-tst-lfschk4.cc): Likewise.
20707 (CFLAGS-tst-lfschk5.cc): Likewise.
20708 (CFLAGS-tst-lfschk6.cc): Likewise.
20709 (CFLAGS-tst-ssp-1.c): Likewise.
20710 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20711 (CFLAGS-scandir64.c): Likewise.
20712 (CFLAGS-scandir-tail.c): Likewise.
20713 (CFLAGS-scandir64-tail.c): Likewise.
20714 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20715 (CFLAGS-dl-tunables.c): Likewise.
20716 (CFLAGS-dl-runtime.c): Likewise.
20717 (CFLAGS-dl-lookup.c): Likewise.
20718 (CFLAGS-dl-iterate-phdr.c): Likewise.
20719 (CFLAGS-vismain.c): Likewise.
20720 (CFLAGS-tst-linkall-static.c): Likewise.
20721 (CFLAGS-tst-linkall-static.c): Likewise.
20722 (CPPFLAGS-dl-load.c): Likewise.
20723 (CFLAGS-ldconfig.c): Likewise.
20724 (CFLAGS-dl-cache.c): Likewise.
20725 (CFLAGS-cache.c): Likewise.
20726 (CFLAGS-rtld.c): Likewise.
20727 (CFLAGS-multiload.c): Likewise.
20728 (CFLAGS-filtmod1.c): Likewise.
20729 (CFLAGS-tst-align.c): Likewise.
20730 (CFLAGS-tst-align2.c): Likewise.
20731 (CFLAGS-tst-alignmod.c): Likewise.
20732 (CFLAGS-tst-alignmod2.c): Likewise.
20733 (CPPFLAGS-tst-execstack.c): Likewise.
20734 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20735 (CFLAGS-tst-latepthreadmod.c): Likewise.
20736 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20737 (CFLAGS-getgrnam_r.c): Likewise.
20738 (CFLAGS-getgrent_r.c): Likewise.
20739 (CFLAGS-getgrent.c): Likewise.
20740 (CFLAGS-fgetgrent.c): Likewise.
20741 (CFLAGS-fgetgrent_r.c): Likewise.
20742 (CFLAGS-putgrent.c): Likewise.
20743 (CFLAGS-initgroups.c): Likewise.
20744 (CFLAGS-getgrgid.c): Likewise.
20745 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20746 (CFLAGS-getsgent.c): Likewise.
20747 (CFLAGS-fgetsgent.c): Likewise.
20748 (CFLAGS-fgetsgent_r.c): Likewise.
20749 (CFLAGS-putsgent.c): Likewise.
20750 (CFLAGS-getsgnam.c): Likewise.
20751 (CFLAGS-getsgnam_r.c): Likewise.
20752 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20753 (CFLAGS-iconv_charmap.c): Likewise.
20754 (CFLAGS-dummy-repertoire.c): Likewise.
20755 (CFLAGS-charmap.c): Likewise.
20756 (CFLAGS-linereader.c): Likewise.
20757 (CFLAGS-simple-hash.c): Likewise.
20758 (CFLAGS-gconv_conf.c): Likewise.
20759 (CFLAGS-iconvconfig.c): Likewise.
20760 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20761 (CFLAGS-gethstbyad.c): Likewise.
20762 (CFLAGS-gethstbynm_r.c): Likewise.
20763 (CFLAGS-gethstbynm.c): Likewise.
20764 (CFLAGS-gethstbynm2_r.c): Likewise.
20765 (CFLAGS-gethstbynm2.c): Likewise.
20766 (CFLAGS-gethstent_r.c): Likewise.
20767 (CFLAGS-gethstent.c): Likewise.
20768 (CFLAGS-rcmd.c): Likewise.
20769 (CFLAGS-getnetbynm_r.c): Likewise.
20770 (CFLAGS-getnetbynm.c): Likewise.
20771 (CFLAGS-getnetbyad_r.c): Likewise.
20772 (CFLAGS-getnetbyad.c): Likewise.
20773 (CFLAGS-getnetent_r.c): Likewise.
20774 (CFLAGS-getnetent.c): Likewise.
20775 (CFLAGS-getaliasent_r.c): Likewise.
20776 (CFLAGS-getaliasent.c): Likewise.
20777 (CFLAGS-getrpcent_r.c): Likewise.
20778 (CFLAGS-getrpcent.c): Likewise.
20779 (CFLAGS-getservent_r.c): Likewise.
20780 (CFLAGS-getservent.c): Likewise.
20781 (CFLAGS-getprtent_r.c): Likewise.
20782 (CFLAGS-getprtent.c): Likewise.
20783 (CFLAGS-either_ntoh.c): Likewise.
20784 (CFLAGS-either_hton.c): Likewise.
20785 (CFLAGS-getnetgrent.c): Likewise.
20786 (CFLAGS-getnetgrent_r.c): Likewise.
20787 (CFLAGS-tst-checks-posix.c): Likewise.
20788 (CFLAGS-tst-sockaddr.c): Likewise.
20789 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20790 (CFLAGS-tst-translit.c): Likewise.
20791 (CFLAGS-tst-gettext2.c): Likewise.
20792 (CFLAGS-tst-codeset.c): Likewise.
20793 (CFLAGS-tst-gettext3.c): Likewise.
20794 (CFLAGS-tst-gettext4.c): Likewise.
20795 (CFLAGS-tst-gettext5.c): Likewise.
20796 (CFLAGS-tst-gettext6.c): Likewise.
20797 * io/Makefile (CFLAGS-open.c): Likewise.
20798 (CFLAGS-open64.c): Likewise.
20799 (CFLAGS-creat.c): Likewise.
20800 (CFLAGS-creat64.c): Likewise.
20801 (CFLAGS-fcntl.c): Likewise.
20802 (CFLAGS-poll.c): Likewise.
20803 (CFLAGS-ppoll.c): Likewise.
20804 (CFLAGS-lockf.c): Likewise.
20805 (CFLAGS-statfs.c): Likewise.
20806 (CFLAGS-fstatfs.c): Likewise.
20807 (CFLAGS-statvfs.c): Likewise.
20808 (CFLAGS-fstatvfs.c): Likewise.
20809 (CFLAGS-fts.c): Likewise.
20810 (CFLAGS-fts64.c): Likewise.
20811 (CFLAGS-ftw.c): Likewise.
20812 (CFLAGS-ftw64.c): Likewise.
20813 (CFLAGS-lockf.c): Likewise.
20814 (CFLAGS-posix_fallocate.c): Likewise.
20815 (CFLAGS-posix_fallocate64.c): Likewise.
20816 (CFLAGS-fallocate.c): Likewise.
20817 (CFLAGS-fallocate64.c): Likewise.
20818 (CFLAGS-read.c): Likewise.
20819 (CFLAGS-write.c): Likewise.
20820 (CFLAGS-test-stat.c): Likewise.
20821 (CFLAGS-test-lfs.c): Likewise.
20822 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20823 (CFLAGS-fputc.c): Likewise.
20824 (CFLAGS-fputwc.c): Likewise.
20825 (CFLAGS-freopen64.c): Likewise.
20826 (CFLAGS-freopen.c): Likewise.
20827 (CFLAGS-fseek.c): Likewise.
20828 (CFLAGS-fseeko64.c): Likewise.
20829 (CFLAGS-fseeko.c): Likewise.
20830 (CFLAGS-ftello64.c): Likewise.
20831 (CFLAGS-ftello.c): Likewise.
20832 (CFLAGS-fwide.c): Likewise.
20833 (CFLAGS-genops.c): Likewise.
20834 (CFLAGS-getc.c): Likewise.
20835 (CFLAGS-getchar.c): Likewise.
20836 (CFLAGS-getwc.c): Likewise.
20837 (CFLAGS-getwchar.c): Likewise.
20838 (CFLAGS-iofclose.c): Likewise.
20839 (CFLAGS-iofflush.c): Likewise.
20840 (CFLAGS-iofgetpos64.c): Likewise.
20841 (CFLAGS-iofgetpos.c): Likewise.
20842 (CFLAGS-iofgets.c): Likewise.
20843 (CFLAGS-iofgetws.c): Likewise.
20844 (CFLAGS-iofputs.c): Likewise.
20845 (CFLAGS-iofputws.c): Likewise.
20846 (CFLAGS-iofread.c): Likewise.
20847 (CFLAGS-iofsetpos64.c): Likewise.
20848 (CFLAGS-iofsetpos.c): Likewise.
20849 (CFLAGS-ioftell.c): Likewise.
20850 (CFLAGS-iofwrite.c): Likewise.
20851 (CFLAGS-iogetdelim.c): Likewise.
20852 (CFLAGS-iogetline.c): Likewise.
20853 (CFLAGS-iogets.c): Likewise.
20854 (CFLAGS-iogetwline.c): Likewise.
20855 (CFLAGS-ioputs.c): Likewise.
20856 (CFLAGS-ioseekoff.c): Likewise.
20857 (CFLAGS-ioseekpos.c): Likewise.
20858 (CFLAGS-iosetbuffer.c): Likewise.
20859 (CFLAGS-iosetvbuf.c): Likewise.
20860 (CFLAGS-ioungetc.c): Likewise.
20861 (CFLAGS-ioungetwc.c): Likewise.
20862 (CFLAGS-oldfileops.c): Likewise.
20863 (CFLAGS-oldiofclose.c): Likewise.
20864 (CFLAGS-oldiofgetpos64.c): Likewise.
20865 (CFLAGS-oldiofgetpos.c): Likewise.
20866 (CFLAGS-oldiofsetpos64.c): Likewise.
20867 (CFLAGS-oldiofsetpos.c): Likewise.
20868 (CFLAGS-peekc.c): Likewise.
20869 (CFLAGS-putc.c): Likewise.
20870 (CFLAGS-putchar.c): Likewise.
20871 (CFLAGS-putwc.c): Likewise.
20872 (CFLAGS-putwchar.c): Likewise.
20873 (CFLAGS-rewind.c): Likewise.
20874 (CFLAGS-wfileops.c): Likewise.
20875 (CFLAGS-wgenops.c): Likewise.
20876 (CFLAGS-oldiofopen.c): Likewise.
20877 (CFLAGS-iofopen.c): Likewise.
20878 (CFLAGS-iofopen64.c): Likewise.
20879 (CFLAGS-oldtmpfile.c): Likewise.
20880 (CFLAGS-tst_putwc.c): Likewise.
20881 * locale/Makefile (CFLAGS-md5.c): Likewise.
20882 (CFLAGS-charmap.c): Likewise.
20883 (CFLAGS-locfile.c): Likewise.
20884 (CFLAGS-charmap-dir.c): Likewise.
20885 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20886 (CFLAGS-getpt.c): Likewise.
20887 (CFLAGS-pt_chown.c): Likewise.
20888 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20889 (CFLAGS-obstack.c): Likewise.
20890 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20891 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20892 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20893 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20894 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20895 (CFLAGS-test-tgmath.c): Likewise.
20896 (CFLAGS-test-tgmath2.c): Likewise.
20897 (CFLAGS-test-tgmath-ret.c): Likewise.
20898 (CFLAGS-test-powl.c): Likewise.
20899 (CFLAGS-test-snan.c): Likewise.
20900 (CFLAGS-test-signgam-finite.c): Likewise.
20901 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20902 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20903 (CFLAGS-test-signgam-uchar.c): Likewise.
20904 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20905 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20906 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20907 (CFLAGS-test-signgam-uint.c): Likewise.
20908 (CFLAGS-test-signgam-uint-init.c): Likewise.
20909 (CFLAGS-test-signgam-uint-static.c): Likewise.
20910 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20911 (CFLAGS-test-signgam-ullong.c): Likewise.
20912 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20913 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20914 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20915 (CFLAGS-test-math-cxx11.cc): Likewise.
20916 (CFLAGS-test-math-isinff.cc): Likewise.
20917 (CFLAGS-test-math-iszero.cc): Likewise.
20918 (CFLAGS-test-math-issignaling.cc): Likewise.
20919 (CFLAGS-test-math-iscanonical.cc): Likewise.
20920 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20921 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20922 (CFLAGS-test-flt-eval-method.c): Likewise.
20923 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20924 (CFLAGS-test-finite-macros.c): Likewise.
20925 * misc/Makefile (CFLAGS-select.c): Likewise.
20926 (CFLAGS-tsearch.c): Likewise.
20927 (CFLAGS-lsearch.c): Likewise.
20928 (CFLAGS-pselect.c): Likewise.
20929 (CFLAGS-readv.c): Likewise.
20930 (CFLAGS-writev.c): Likewise.
20931 (CFLAGS-preadv.c): Likewise.
20932 (CFLAGS-preadv64.c): Likewise.
20933 (CFLAGS-pwritev.c): Likewise.
20934 (CFLAGS-pwritev64.c): Likewise.
20935 (CFLAGS-preadv2.c): Likewise.
20936 (CFLAGS-preadv64v2.c): Likewise.
20937 (CFLAGS-pwritev2.c): Likewise.
20938 (CFLAGS-pwritev64v2.c): Likewise.
20939 (CFLAGS-usleep.c): Likewise.
20940 (CFLAGS-syslog.c): Likewise.
20941 (CFLAGS-error.c): Likewise.
20942 (CFLAGS-getpass.c): Likewise.
20943 (CFLAGS-mkstemp.c): Likewise.
20944 (CFLAGS-mkstemp64.c): Likewise.
20945 (CFLAGS-getsysstats.c): Likewise.
20946 (CFLAGS-getusershell.c): Likewise.
20947 (CFLAGS-err.c): Likewise.
20948 (CFLAGS-tst-tsearch.c): Likewise.
20949 (CFLAGS-msync.c): Likewise.
20950 (CFLAGS-fdatasync.c): Likewise.
20951 (CFLAGS-fsync.c): Likewise.
20952 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
20953 (CFLAGS-unwind.c): Likewise.
20954 (CFLAGS-unwind-forcedunwind.c): Likewise.
20955 (CFLAGS-pthread_cancel.c): Likewise.
20956 (CFLAGS-pthread_setcancelstate.c): Likewise.
20957 (CFLAGS-pthread_setcanceltype.c): Likewise.
20958 (CFLAGS-cancellation.c): Likewise.
20959 (CFLAGS-libc-cancellation.c): Likewise.
20960 (CFLAGS-pthread_exit.c): Likewise.
20961 (CFLAGS-forward.c): Likewise.
20962 (CFLAGS-pthread_testcancel.c): Likewise.
20963 (CFLAGS-pthread_join.c): Likewise.
20964 (CFLAGS-pthread_timedjoin.c): Likewise.
20965 (CFLAGS-pthread_once.c): Likewise.
20966 (CFLAGS-pthread_cond_wait.c): Likewise.
20967 (CFLAGS-sem_wait.c): Likewise.
20968 (CFLAGS-sem_timedwait.c): Likewise.
20969 (CFLAGS-fcntl.c): Likewise.
20970 (CFLAGS-lockf.c): Likewise.
20971 (CFLAGS-pread.c): Likewise.
20972 (CFLAGS-pread64.c): Likewise.
20973 (CFLAGS-pwrite.c): Likewise.
20974 (CFLAGS-pwrite64.c): Likewise.
20975 (CFLAGS-wait.c): Likewise.
20976 (CFLAGS-waitpid.c): Likewise.
20977 (CFLAGS-sigwait.c): Likewise.
20978 (CFLAGS-msgrcv.c): Likewise.
20979 (CFLAGS-msgsnd.c): Likewise.
20980 (CFLAGS-tcdrain.c): Likewise.
20981 (CFLAGS-open.c): Likewise.
20982 (CFLAGS-open64.c): Likewise.
20983 (CFLAGS-pause.c): Likewise.
20984 (CFLAGS-recv.c): Likewise.
20985 (CFLAGS-send.c): Likewise.
20986 (CFLAGS-accept.c): Likewise.
20987 (CFLAGS-sendto.c): Likewise.
20988 (CFLAGS-connect.c): Likewise.
20989 (CFLAGS-recvfrom.c): Likewise.
20990 (CFLAGS-recvmsg.c): Likewise.
20991 (CFLAGS-sendmsg.c): Likewise.
20992 (CFLAGS-close.c): Likewise.
20993 (CFLAGS-read.c): Likewise.
20994 (CFLAGS-write.c): Likewise.
20995 (CFLAGS-nanosleep.c): Likewise.
20996 (CFLAGS-sigsuspend.c): Likewise.
20997 (CFLAGS-msync.c): Likewise.
20998 (CFLAGS-fdatasync.c): Likewise.
20999 (CFLAGS-fsync.c): Likewise.
21000 (CFLAGS-pt-system.c): Likewise.
21001 (CFLAGS-tst-cleanup2.c): Likewise.
21002 (CFLAGS-tst-cleanupx2.c): Likewise.
21003 (CFLAGS-flockfile.c): Likewise.
21004 (CFLAGS-ftrylockfile.c): Likewise.
21005 (CFLAGS-funlockfile.c): Likewise.
21006 (CFLAGS-tst-initializers1.c): Likewise.
21007 (CFLAGS-tst-initializers1-c89.c): Likewise.
21008 (CFLAGS-tst-initializers1-c99.c): Likewise.
21009 (CFLAGS-tst-initializers1-c11.c): Likewise.
21010 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21011 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21012 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21013 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21014 (CFLAGS-nscd_getgr_r.c): Likewise.
21015 (CFLAGS-nscd_gethst_r.c): Likewise.
21016 (CFLAGS-nscd_getai.c): Likewise.
21017 (CFLAGS-nscd_initgroups.c): Likewise.
21018 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21019 (CFLAGS-pause.c): Likewise.
21020 (CFLAGS-pread.c): Likewise.
21021 (CFLAGS-pread64.c): Likewise.
21022 (CFLAGS-pwrite.c): Likewise.
21023 (CFLAGS-pwrite64.c): Likewise.
21024 (CFLAGS-sleep.c): Likewise.
21025 (CFLAGS-wait.c): Likewise.
21026 (CFLAGS-waitid.c): Likewise.
21027 (CFLAGS-waitpid.c): Likewise.
21028 (CFLAGS-getopt.c): Likewise.
21029 (CFLAGS-wordexp.c): Likewise.
21030 (CFLAGS-sysconf.c): Likewise.
21031 (CFLAGS-pathconf.c): Likewise.
21032 (CFLAGS-fpathconf.c): Likewise.
21033 (CFLAGS-spawn.c): Likewise.
21034 (CFLAGS-spawnp.c): Likewise.
21035 (CFLAGS-spawni.c): Likewise.
21036 (CFLAGS-glob.c): Likewise.
21037 (CFLAGS-glob64.c): Likewise.
21038 (CFLAGS-getconf.c): Likewise.
21039 (CFLAGS-nanosleep.c): Likewise.
21040 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21041 (CFLAGS-getpwent.c): Likewise.
21042 (CFLAGS-getpw.c): Likewise.
21043 (CFLAGS-fgetpwent_r.c): Likewise.
21044 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21045 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21046 (CFLAGS-mq_timedreceive.c): Likewise.
21047 (CFLAGS-mq_timedsend.c): Likewise.
21048 (CFLAGS-clock_nanosleep.c): Likewise.
21049 (CFLAGS-librt-cancellation.c): Likewise.
21050 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21051 (CFLAGS-getspent.c): Likewise.
21052 (CFLAGS-fgetspent.c): Likewise.
21053 (CFLAGS-fgetspent_r.c): Likewise.
21054 (CFLAGS-putspent.c): Likewise.
21055 (CFLAGS-getspnam.c): Likewise.
21056 (CFLAGS-getspnam_r.c): Likewise.
21057 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21058 (CFLAGS-sigsuspend.c): Likewise.
21059 (CFLAGS-sigtimedwait.c): Likewise.
21060 (CFLAGS-sigwait.c): Likewise.
21061 (CFLAGS-sigwaitinfo.c): Likewise.
21062 (CFLAGS-sigreturn.c): Likewise.
21063 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21064 (CFLAGS-vfwprintf.c): Likewise.
21065 (CFLAGS-tmpfile.c): Likewise.
21066 (CFLAGS-tmpfile64.c): Likewise.
21067 (CFLAGS-tempname.c): Likewise.
21068 (CFLAGS-psignal.c): Likewise.
21069 (CFLAGS-vprintf.c): Likewise.
21070 (CFLAGS-cuserid.c): Likewise.
21071 (CFLAGS-errlist.c): Likewise.
21072 (CFLAGS-siglist.c): Likewise.
21073 (CFLAGS-scanf15.c): Likewise.
21074 (CFLAGS-scanf17.c): Likewise.
21075 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21076 (CFLAGS-msort.c): Likewise.
21077 (CFLAGS-qsort.c): Likewise.
21078 (CFLAGS-system.c): Likewise.
21079 (CFLAGS-fmtmsg.c): Likewise.
21080 (CFLAGS-strfmon.c): Likewise.
21081 (CFLAGS-strfmon_l.c): Likewise.
21082 (CFLAGS-strfromd.c): Likewise.
21083 (CFLAGS-strfromf.c): Likewise.
21084 (CFLAGS-strfroml.c): Likewise.
21085 (CFLAGS-tst-bsearch.c): Likewise.
21086 (CFLAGS-tst-qsort.c): Likewise.
21087 (CFLAGS-tst-makecontext2.c): Likewise.
21088 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21089 (CFLAGS-xnlm_prot.c): Likewise.
21090 (CFLAGS-xrstat.c): Likewise.
21091 (CFLAGS-xyppasswd.c): Likewise.
21092 (CFLAGS-xklm_prot.c): Likewise.
21093 (CFLAGS-xrex.c): Likewise.
21094 (CFLAGS-xsm_inter.c): Likewise.
21095 (CFLAGS-xmount.c): Likewise.
21096 (CFLAGS-xrusers.c): Likewise.
21097 (CFLAGS-xspray.c): Likewise.
21098 (CFLAGS-xnfs_prot.c): Likewise.
21099 (CFLAGS-xrquota.c): Likewise.
21100 (CFLAGS-xkey_prot.c): Likewise.
21101 (CFLAGS-auth_unix.c): Likewise.
21102 (CFLAGS-key_call.c): Likewise.
21103 (CFLAGS-pmap_rmt.c): Likewise.
21104 (CFLAGS-clnt_perr.c): Likewise.
21105 (CFLAGS-openchild.c): Likewise.
21106 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21107 (CFLAGS-msgsnd.c): Likewise.
21108 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21109 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21110 (CFLAGS-tzset.c): Likewise.
21111 (CFLAGS-getdate.c): Likewise.
21112 (CFLAGS-test_time.c): Likewise.
21113 (CPPFLAGS-tst-tzname.c): Likewise.
21114 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21115 (CFLAGS-zic.c): Likewise.
21116 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21117 (CFLAGS-wcswidth.c): Likewise.
21118 (CFLAGS-wcstol.c): Likewise.
21119 (CFLAGS-wcstoul.c): Likewise.
21120 (CFLAGS-wcstoll.c): Likewise.
21121 (CFLAGS-wcstoull.c): Likewise.
21122 (CFLAGS-wcstod.c): Likewise.
21123 (CFLAGS-wcstold.c): Likewise.
21124 (CFLAGS-wcstof128.c): Likewise.
21125 (CFLAGS-wcstof.c): Likewise.
21126 (CFLAGS-wcstol_l.c): Likewise.
21127 (CFLAGS-wcstoul_l.c): Likewise.
21128 (CFLAGS-wcstoll_l.c): Likewise.
21129 (CFLAGS-wcstoull_l.c): Likewise.
21130 (CFLAGS-wcstod_l.c): Likewise.
21131 (CFLAGS-wcstold_l.c): Likewise.
21132 (CFLAGS-wcstof128_l.c): Likewise.
21133 (CFLAGS-wcstof_l.c): Likewise.
21134 (CPPFLAGS-tst-wchar-h.c): Likewise.
21135 (CPPFLAGS-wcstold_l.c): Likewise.
583dd860 21136
f4b2aea6
PC
211372017-12-11 Paul A. Clarke <pc@us.ibm.com>
21138
21139 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21140
c9cd7b0c
AZ
211412017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21142 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21143
21144 * manual/tunables.texi (Hardware Capability Tunables): Document
21145 glibc.tune.cached_memopt.
21146 * sysdeps/powerpc/cpu-features.c: New file.
21147 * sysdeps/powerpc/cpu-features.h: New file.
21148 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21149 _dl_powerpc_cpu_features.
21150 * sysdeps/powerpc/dl-tunables.list: New file.
21151 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21152 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21153 (INIT_ARCH): Initialize use_aligned_memopt.
21154 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21155 IS_IN(rtld))]: Restrict dl_platform_init availability and
21156 initialize CPU features used by tunables.
21157 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21158 Add memcpy-power8-cached.
21159 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21160 __memcpy_power8_cached.
21161 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21162 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21163 New file.
21164
e70c6fee
L
211652017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21166
21167 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21168 (CFLAGS-noinl-tester.c): Likewise.
21169 (CFLAGS-tst-strlen.c): Likewise.
21170 (CFLAGS-stratcliff.c): Likewise.
21171 (CFLAGS-test-ffs.c): Likewise.
21172 (CFLAGS-tst-inlcall.c): Likewise.
21173 (CFLAGS-tst-xbzero-opt.c): Likewise.
21174 (CFLAGS-memcpy.c): Likewise.
21175 (CFLAGS-wordcopy.c): Likewise.
21176
dee94366
SL
211772017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21178
21179 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21180 Store r15 on stack and add cfi rule.
21181 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21182 Likewise.
21183
363e4519 211842017-12-10 Aurelien Jarno <aurelien@aurel32.net>
f648728c
AJ
21185
21186 [BZ #22577]
21187 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21188 call.
21189
9d0ffa60
L
211902017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21191
21192 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21193 Add s_sinf-sse2 and s_sinf-fma.
21194 (CFLAGS-s_sinf-fma.c): New.
21195 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21196 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21197 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21198
9574c7b6
L
211992017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21200
21201 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21202
d15e83c5
JM
212032017-12-07 Joseph Myers <joseph@codesourcery.com>
21204
21205 [BZ #22568]
21206 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21207 part of result to imaginary part of argument if it is zero and the
21208 real part of the argument is not finite.
21209 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21210 of result to real part of argument if it is zero and the imaginary
21211 part of the argument is not finite.
21212
d89756eb
MF
212132017-12-07 Mike FABIAN <mfabian@redhat.com>
21214
21215 [BZ #22524]
21216 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21217 and to the list of locales to be built for testing.
21218 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21219 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21220 and build the collation rules upon that.
21221
1f9055ce
JM
212222017-12-07 Joseph Myers <joseph@codesourcery.com>
21223
21224 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21225 * manual/math.texi (Mathematics): Document support for _Float32.
21226 * math/Makefile (test-types): Add float32.
21227 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21228 * stdlib/Versions (GLIBC_2.27): Likewise.
21229 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21230 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21231 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21232 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21233 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21234 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21235 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21236 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21237 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21238 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21239 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21240 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21241 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21242 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21243 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21244 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21245 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21246 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21247 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21248 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21249 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21250 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21251 Likewise.
21252 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21253 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21254 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21255 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21256 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21258 Likewise.
21259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21260 Likewise.
21261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21262 Likewise.
21263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21264 Likewise.
21265
21266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21267 Likewise.
21268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21269 Likewise.
21270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21271 Likewise.
21272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21273 Likewise.
21274 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21275 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21276 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21277 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21278 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21279 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21280 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21281 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21282 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21283 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21284 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21285 Likewise.
21286 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21287 Likewise.
21288 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21289 Likewise.
21290 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21291 Likewise.
21292 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21293 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21294 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21295 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21296 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21297 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21298 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21299 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21300
5244527d
JM
213012017-12-06 Joseph Myers <joseph@codesourcery.com>
21302
fb1ca2aa
JM
21303 * stdlib/strtof.c: Include <bits/floatn.h>
21304 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21305 and later undefine as macro. Define as weak alias if
21306 [!USE_WIDE_CHAR].
21307 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21308 and later undefine as macro. Define as weak alias if
21309 [USE_WIDE_CHAR].
21310 * stdlib/strtof_l.c: Include <bits/floatn.h>
21311 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21312 and later undefine as macro. Define as weak alias if
21313 [!USE_WIDE_CHAR].
21314 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21315 and later undefine as macro. Define as weak alias if
21316 [USE_WIDE_CHAR].
21317
fc10cc3f
JM
21318 * stdlib/strfromf.c: Include <bits/floatn.h>.
21319 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21320 and later undefine as macro and define as weak alias.
21321
e420d228
JM
21322 * math/test-float32.h: New file.
21323
26007a2f
JM
21324 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21325 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21326 (libm_alias_float_other_r): Create f32 alias.
21327 (libm_alias_float_r): Use semicolon before call to
21328 libm_alias_float_other_r.
21329
c191f64c
JM
21330 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21331 second argument to libm_alias_float_other.
21332 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21333 second argument to libm_alias_float_other.
21334 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21335 argument to libm_alias_float_other.
21336
5244527d
JM
21337 [BZ #22561]
21338 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21339 real part of result for argument 0 + i * NaN.
21340 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21341 results for tests of 0 + i * NaN.
21342
d73fac82
AZ
213432017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21344
21345 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21346
7ec094e8
DM
213472017-12-06 David S. Miller <davem@davemloft.net>
21348
21349 * sysdeps/sparc/fpu/libm-test-ulps: Update
21350 exp_{downward,towardzero,upward} ulps.
21351
53994f12
JM
213522017-12-06 Joseph Myers <joseph@codesourcery.com>
21353
1dbe6f64
JM
21354 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21355 variables static.
21356
53994f12
JM
21357 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21358 (Y0_2D): Likewise.
21359 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21360 (Y0_2D): Likewise.
21361 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21362 (Y0_2D): Likewise.
21363 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21364 (Y0_2D): Likewise.
21365
62ea2193
MF
213662017-12-06 Mike FABIAN <mfabian@redhat.com>
21367
21368 [BZ #22515]
21369 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21370 and to the list of locales to be built for testing.
21371 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21372 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21373 and build the collation rules upon that.
21374
87235d70
RS
213752017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21376
21377 * NEWS: Add sinf to list of optimized functions.
21378
0d93b7fd
JM
213792017-12-06 Joseph Myers <joseph@codesourcery.com>
21380
21381 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21382 (__HAVE_FLOAT32X): Likewise.
21383 * manual/math.texi (Mathematics): Document support for _Float64
21384 and _Float32x.
21385 * math/Makefile (test-types): Add float64 and float32x.
21386 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21387 functions.
21388 * stdlib/Versions (GLIBC_2.27): Likewise.
21389 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21390 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21391 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21392 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21393 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21394 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21395 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21396 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21397 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21398 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21399 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21400 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21401 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21402 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21403 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21404 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21405 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21406 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21407 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21408 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21409 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21410 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21411 Likewise.
21412 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21413 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21414 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21415 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21416 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21418 Likewise.
21419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21420 Likewise.
21421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21422 Likewise.
21423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21424 Likewise.
21425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21426 Likewise.
21427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21428 Likewise.
21429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21430 Likewise.
21431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21432 Likewise.
21433 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21434 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21435 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21436 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21437 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21438 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21439 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21440 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21441 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21442 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21443 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21444 Likewise.
21445 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21446 Likewise.
21447 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21448 Likewise.
21449 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21450 Likewise.
21451 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21452 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21453 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21454 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21455 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21456 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21457 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21458 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21459
f7787234
JM
214602017-12-05 Joseph Myers <joseph@codesourcery.com>
21461
21462 * bits/floatn-common.h: Include <bits/long-double.h>.
21463 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21464 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21465 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21466 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21467 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21468 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21469 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21470 (__builtin_huge_valf64): Use __builtin_huge_vall.
21471 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21472 (__builtin_inff64): Use __builtin_infl.
21473 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21474 (__builtin_nanf64): Use __builtin_nanl.
21475 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21476 (__builtin_nansf64): Use __builtin_nansl.
21477
363e4519
DL
214782017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21479 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
6b5c8607 21480 Carlos O'Donnell <carlos@redhat.com>
07ed18d2
RA
21481
21482 * elf/dl-tunables.list: Add elision parameters.
21483 * manual/tunables.texi: Add entries about elision tunable.
21484 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21485 Add callback functions to dynamically enable/disable elision.
21486 Add multiple callbacks functions to set elision parameters.
21487 Deleted __libc_enable_secure check.
21488 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21489 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21490 * configure: Regenerated.
21491 * configure.ac: Option enable_lock_elision was deleted.
21492 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21493 * config.make.in: Remove references to enable_lock_elision.
21494 * manual/install.texi: Elision configure option was removed.
21495 * INSTALL: Regenerated to remove enable_lock_elision.
21496 * nptl/Makefile:
21497 Disable elision so it can verify error case for destroying a mutex.
21498 * sysdeps/powerpc/nptl/elide.h:
21499 Cleanup ENABLE_LOCK_ELISION check.
21500 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21501 * sysdeps/s390/configure: Regenerated.
21502 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21503 * nptl/tst-mutex8.c:
21504 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21505 * sysdeps/powerpc/powerpc32/sysdep.h:
21506 Deleted all ENABLE_LOCK_ELISION checks.
21507 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21508 * sysdeps/powerpc/sysdep.h: Likewise.
21509 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21510 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21511 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21512 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21513 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21514 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21515 enable-lock-elision.
21516
a5a2a76b
JM
215172017-12-05 Joseph Myers <joseph@codesourcery.com>
21518
21519 * stdlib/strtod.c: Include <bits/floatn.h>.
21520 (BUILD_DOUBLE): New macro.
21521 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21522 (strtof64): Define and later undefine as macro. Define as weak
21523 alias if [!USE_WIDE_CHAR].
21524 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21525 (wcstof64): Define and later undefine as macro. Define as weak
21526 alias if [USE_WIDE_CHAR].
21527 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21528 (strtof32x): Define and later undefine as macro. Define as weak
21529 alias if [!USE_WIDE_CHAR].
21530 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21531 (wcstof32x): Define and later undefine as macro. Define as weak
21532 alias if [USE_WIDE_CHAR].
21533 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21534 (BUILD_DOUBLE): New macro.
21535 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21536 (strtof64_l): Define and later undefine as macro. Define as weak
21537 alias if [!USE_WIDE_CHAR].
21538 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21539 (wcstof64_l): Define and later undefine as macro. Define as weak
21540 alias if [USE_WIDE_CHAR].
21541 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21542 (strtof32x_l): Define and later undefine as macro. Define as weak
21543 alias if [!USE_WIDE_CHAR].
21544 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21545 (wcstof32x_l): Define and later undefine as macro. Define as weak
21546 alias if [USE_WIDE_CHAR].
21547
94d80dfc
AZ
215482017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21549
21550 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21551 (reduced): Use ones as double instead of integer.
21552
00d54af7
SN
215532017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21554
21555 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21556
f2d64d62
JM
215572017-12-05 Joseph Myers <joseph@codesourcery.com>
21558
1f70eae4
JM
21559 * stdlib/strfromd.c: Include <bits/floatn.h>.
21560 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21561 and later undefine as macro and define as weak alias.
21562 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21563 Likewise.
21564
e2c4dce5
JM
21565 * math/test-float32x.h: New file.
21566 * math/test-float64.h: Likewise.
21567
f2d64d62
JM
21568 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21569 (libm_alias_double_other_r_f64): New macro.
21570 (libm_alias_double_other_r_f32x): Likewise.
21571 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21572 libm_alias_double_other_r_f32x.
21573 (libm_alias_double_r): Use semicolon before call to
21574 libm_alias_double_other_r.
21575 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21576 <bits/floatn.h>.
21577 (libm_alias_double_other_r_f64): New macro.
21578 (libm_alias_double_other_r_f32x): Likewise.
21579 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21580 libm_alias_double_other_r_f32x.
21581
91c318e7
L
215822017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21583
21584 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21585 int.
21586 (SINF_FUNC): Likewise. Replace floor with simple casts.
21587
de9661d6
MF
215882017-12-05 Mike FABIAN <mfabian@redhat.com>
21589
21590 [BZ #22517]
21591 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21592 and to the list of locales to be built for testing.
21593 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21594 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21595 and build the collation rules upon that.
21596
f18b8dc7
CM
215972017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21598
21599 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21600 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21601 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21602 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21603 instead of __insn__xxx.
21604 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21605 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21606 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21607 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21608 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21609 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21610
446d22e9
FW
216112017-12-05 Florian Weimer <fweimer@redhat.com>
21612
21613 Linux: Implement interfaces for memory protection keys
21614 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21615 xsignal, xsysconf.
21616 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21617 * support/xunistd.h (xsysconf): Declare.
21618 * support/xraise.c: New file.
21619 * support/xsigaction.c: Likewise.
21620 * support/xsignal.c: Likewise.
21621 * support/xsysconf.c: Likewise.
21622 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21623 pkey_set, pkey_get, pkey_mprotect.
21624 [misc] (tests): Add tst-pkey.
21625 (tst-pkey): Link with -lpthread.
21626 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21627 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21628 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21629 (PKEY_DISABLE_WRITE): Define.
21630 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21631 Declare.
21632 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21633 (SEGV_PKUERR): Add.
21634 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21635 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21636 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21637 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21638 Add.
21639 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21640 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21641 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21642 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21643 * sysdeps/unix/sysv/linux/**.abilist: Update.
21644
da616c14
FW
216452017-12-05 Florian Weimer <fweimer@redhat.com>
21646
21647 * support/tst-test_compare.c (subprocess): Use long long instead
21648 of long argument for consistent type width across 32-bit and
21649 64-bit architectures.
21650 (do_test): Adjust expected output.
21651
216933b2
JM
216522017-12-05 Joseph Myers <joseph@codesourcery.com>
21653
21654 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21655 (cosf): Define using libm_alias_float.
21656 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21657 (fabsf): Define using libm_alias_float.
21658 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21659 (fmaf): Define using libm_alias_float.
21660 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21661 (rintf): Define using libm_alias_float.
21662 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21663 (sinf): Define using libm_alias_float.
21664 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21665 <libm-alias-float.h>.
21666 (modff): Define using libm_alias_float.
21667 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21668 <libm-alias-float.h>.
21669 (logbf): Define using libm_alias_float.
21670 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21671 <libm-alias-float.h>.
21672 (ceilf): Define using libm_alias_float.
21673 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21674 <libm-alias-float.h>.
21675 (copysignf): Define using libm_alias_float.
21676 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21677 <libm-alias-float.h>.
21678 (floorf): Define using libm_alias_float.
21679 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21680 <libm-alias-float.h>.
21681 (llrintf): Define using libm_alias_float.
21682 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21683 <libm-alias-float.h>.
21684 (llroundf): Define using libm_alias_float.
21685 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21686 <libm-alias-float.h>.
21687 (lrintf): Define using libm_alias_float.
21688 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21689 <libm-alias-float.h>.
21690 (lroundf): Define using libm_alias_float.
21691 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21692 <libm-alias-float.h>.
21693 (nearbyintf): Define using libm_alias_float.
21694 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21695 <libm-alias-float.h>.
21696 (rintf): Define using libm_alias_float.
21697 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21698 <libm-alias-float.h>.
21699 (roundf): Define using libm_alias_float.
21700 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21701 <libm-alias-float.h>.
21702 (truncf): Define using libm_alias_float.
21703 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21704 Include <libm-alias-float.h>.
21705 (ceilf): Define using libm_alias_float.
21706 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21707 Include <libm-alias-float.h>.
21708 (copysignf): Define using libm_alias_float.
21709 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21710 Include <libm-alias-float.h>.
21711 (floorf): Define using libm_alias_float.
21712 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21713 Include <libm-alias-float.h>.
21714 (llrintf): Define using libm_alias_float.
21715 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21716 Include <libm-alias-float.h>.
21717 (llroundf): Define using libm_alias_float.
21718 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21719 Include <libm-alias-float.h>.
21720 (logbf): Define using libm_alias_float.
21721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21722 Include <libm-alias-float.h>.
21723 (lrintf): Define using libm_alias_float.
21724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21725 Include <libm-alias-float.h>.
21726 (lroundf): Define using libm_alias_float.
21727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21728 Include <libm-alias-float.h>.
21729 (modff): Define using libm_alias_float.
21730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21731 Include <libm-alias-float.h>.
21732 (roundf): Define using libm_alias_float.
21733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21734 Include <libm-alias-float.h>.
21735 (truncf): Define using libm_alias_float.
21736 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21737 <libm-alias-float.h>.
21738 (llrintf): Define using libm_alias_float.
21739 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21740 <libm-alias-float.h>.
21741 (llroundf): Define using libm_alias_float.
21742 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21743 <libm-alias-float.h>.
21744 (ceilf): Define using libm_alias_float.
21745 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21746 <libm-alias-float.h>.
21747 (floorf): Define using libm_alias_float.
21748 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21749 <libm-alias-float.h>.
21750 (llroundf): Define using libm_alias_float.
21751 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21752 <libm-alias-float.h>.
21753 (lroundf): Define using libm_alias_float.
21754 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21755 <libm-alias-float.h>.
21756 (roundf): Define using libm_alias_float.
21757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21758 <libm-alias-float.h>.
21759 (truncf): Define using libm_alias_float.
21760 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21761 <libm-alias-float.h>.
21762 (copysignf): Define using libm_alias_float.
21763 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21764 <libm-alias-float.h>.
21765 (llrintf): Define using libm_alias_float.
21766 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21767 <libm-alias-float.h>.
21768 (llroundf): Define using libm_alias_float.
21769 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21770 <libm-alias-float.h>.
21771 (lrintf): Define using libm_alias_float.
21772 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21773 <libm-alias-float.h>.
21774 (lroundf): Define using libm_alias_float.
21775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21776 <libm-alias-float.h>.
21777 (ceilf): Define using libm_alias_float.
21778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21779 <libm-alias-float.h>.
21780 (copysignf): Define using libm_alias_float.
21781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21782 <libm-alias-float.h>.
21783 (cosf): Define using libm_alias_float.
21784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21785 <libm-alias-float.h>.
21786 (floorf): Define using libm_alias_float.
21787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21788 <libm-alias-float.h>.
21789 (llrintf): Define using libm_alias_float.
21790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21791 <libm-alias-float.h>.
21792 (llroundf): Define using libm_alias_float.
21793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21794 <libm-alias-float.h>.
21795 (logbf): Define using libm_alias_float.
21796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21797 <libm-alias-float.h>.
21798 (modff): Define using libm_alias_float.
21799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21800 <libm-alias-float.h>.
21801 (roundf): Define using libm_alias_float.
21802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21803 <libm-alias-float.h>.
21804 (sinf): Define using libm_alias_float.
21805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21806 <libm-alias-float.h>.
21807 (truncf): Define using libm_alias_float.
21808 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21809 <libm-alias-float.h>.
21810 (ceilf): Define using libm_alias_float.
21811 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21812 <libm-alias-float.h>.
21813 (copysignf): Define using libm_alias_float.
21814 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21815 <libm-alias-float.h>.
21816 (floorf): Define using libm_alias_float.
21817 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21818 <libm-alias-float.h>.
21819 (llrintf): Define using libm_alias_float.
21820 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21821 <libm-alias-float.h>.
21822 (llroundf): Define using libm_alias_float.
21823 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21824 <libm-alias-float.h>.
21825 (nearbyintf): Define using libm_alias_float.
21826 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21827 <libm-alias-float.h>.
21828 (rintf): Define using libm_alias_float.
21829 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21830 <libm-alias-float.h>.
21831 (roundf): Define using libm_alias_float.
21832 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21833 <libm-alias-float.h>.
21834 (truncf): Define using libm_alias_float.
21835 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21836 <libm-alias-float.h>.
21837 (ceilf): Define using libm_alias_float.
21838 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21839 <libm-alias-float.h>.
21840 (floorf): Define using libm_alias_float.
21841 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21842 <libm-alias-float.h>.
21843 (llroundf): Define using libm_alias_float.
21844 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21845 <libm-alias-float.h>.
21846 (roundf): Define using libm_alias_float.
21847 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21848 <libm-alias-float.h>.
21849 (truncf): Define using libm_alias_float.
21850 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21851 <libm-alias-float.h>.
21852 (copysignf): Define using libm_alias_float.
21853 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21854 <libm-alias-float.h>.
21855 (llrintf): Define using libm_alias_float.
21856 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21857 <libm-alias-float.h>.
21858 (llroundf): Define using libm_alias_float.
21859 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21860 <libm-alias-float.h>.
21861 (cosf): Define using libm_alias_float.
21862 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21863 <libm-alias-float.h>.
21864 (llrintf): Define using libm_alias_float.
21865 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21866 <libm-alias-float.h>.
21867 (llroundf): Define using libm_alias_float.
21868 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21869 <libm-alias-float.h>.
21870 (sinf): Define using libm_alias_float.
21871
93485524
FW
218722017-12-04 Florian Weimer <fweimer@redhat.com>
21873
21874 * support/check.h (TEST_COMPARE): Define.
21875 (support_test_compare_failure): Declare.
21876 * support/Makefile (libsupport-routines): Add
21877 support_test_compare_failure.
21878 (tests): Add tst-test_compare.
21879 * support /support_test_compare_failure.c: New file.
21880 * support/tst-test_compare.c: Likewise.
21881
96b06a19
MF
218822017-12-04 Mike FABIAN <mfabian@redhat.com>
21883
21884 [BZ #22527]
21885 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21886 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21887 available, this rewrite of the collation rules does reproduce
21888 the test file in the same order.
21889
1f6d91f3
MF
218902017-12-04 Mike FABIAN <mfabian@redhat.com>
21891
21892 [BZ #10580]
21893 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21894 digraphs in the month and day names. Using single code points for
21895 digraphs is deprecated. While there are dedicated Unicode
21896 codepoints, for the digraphs, these are included for backwards
21897 compatibility and modern texts use a sequence of Basic Latin
21898 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21899 This makes the month and day names agree exactly with CLDR now,
21900 CLDR does not use the single code points for the digraphs either.
21901
2e49fed8
CM
219022017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21903
21904 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21905
73895b49
JM
219062017-12-04 Joseph Myers <joseph@codesourcery.com>
21907
21908 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21909 of floor.
21910
4c1d801a
SP
219112017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21912
21913 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21914 Define only for libc.so.
21915
478593e6
SL
219162017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21917
21918 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21919 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6b5c8607 21920 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
478593e6
SL
21921 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21922 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21923
7863a711
RS
219242017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21925
21926 [BZ #5997]
21927 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21928
800a496a
JDA
219292017-12-02 John David Anglin <danglin@gcc.gnu.org>
21930
b3f7fb12
JDA
21931 [BZ libc/19170]
21932 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21933 PREINIT_FUNCTION_WEAK is nonzero.
21934 (gmon_initializer): New function. Put procedure label for it in
21935 .init_array section.
21936 (_init): Don't call PREINIT_FUNCTION.
21937 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
21938 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
21939 value when map argument is null.
21940
800a496a
JDA
21941 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
21942 depi instruction from PIC pc-relative sequence.
21943 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
21944 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
21945 (elf_machine_load_address): Likewise.
21946 (elf_machine_runtime_setup): Likewise.
21947
d17542d2
JM
219482017-12-02 Joseph Myers <joseph@codesourcery.com>
21949
21950 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
21951 <libm-alias-double.h>.
21952 (logb): Define using libm_alias_double.
21953 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21954 <libm-alias-double.h>.
21955 (copysign): Define using libm_alias_double.
21956 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
21957 <libm-alias-double.h>.
21958 (llrint): Define using libm_alias_double.
21959 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
21960 <libm-alias-double.h>.
21961 (llround): Define using libm_alias_double.
21962 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21963 <libm-alias-double.h>.
21964 (lrint): Define using libm_alias_double.
21965 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21966 <libm-alias-double.h>.
21967 (lround): Define using libm_alias_double.
21968 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
21969 Include <libm-alias-double.h>.
21970 (copysign): Define using libm_alias_double.
21971 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
21972 Include <libm-alias-double.h>.
21973 (llrint): Define using libm_alias_double.
21974 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
21975 Include <libm-alias-double.h>.
21976 (llround): Define using libm_alias_double.
21977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
21978 <libm-alias-double.h>.
21979 (logb): Define using libm_alias_double.
21980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
21981 Include <libm-alias-double.h>.
21982 (lrint): Define using libm_alias_double.
21983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
21984 Include <libm-alias-double.h>.
21985 (lround): Define using libm_alias_double.
21986 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
21987 <libm-alias-double.h>.
21988 (llrint): Define using libm_alias_double.
21989 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21990 <libm-alias-double.h>.
21991 (llround): Define using libm_alias_double.
21992 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21993 <libm-alias-double.h>.
21994 (llround): Define using libm_alias_double.
21995 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21996 <libm-alias-double.h>.
21997 (lround): Define using libm_alias_double.
21998 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21999 <libm-alias-double.h>.
22000 (copysign): Define using libm_alias_double.
22001 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22002 <libm-alias-double.h>.
22003 (llrint): Define using libm_alias_double.
22004 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22005 <libm-alias-double.h>.
22006 (llround): Define using libm_alias_double.
22007 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22008 <libm-alias-double.h>.
22009 (lrint): Define using libm_alias_double.
22010 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22011 <libm-alias-double.h>.
22012 (lround): Define using libm_alias_double.
22013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22014 <libm-alias-double.h>.
22015 (copysign): Define using libm_alias_double.
22016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22017 <libm-alias-double.h>.
22018 (llrint): Define using libm_alias_double.
22019 (lrint): Likewise.
22020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22021 <libm-alias-double.h>.
22022 (llround): Define using libm_alias_double.
22023 (lround): Likewise.
22024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22025 <libm-alias-double.h>.
22026 (logb): Define using libm_alias_double.
22027 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22028 <libm-alias-double.h>.
22029 (copysign): Define using libm_alias_double.
22030 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22031 <libm-alias-double.h>.
22032 (llrint): Define using libm_alias_double.
22033 (lrint): Likewise.
22034 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22035 <libm-alias-double.h>.
22036 (llround): Define using libm_alias_double.
22037 (lround): Likewise.
22038 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22039 <libm-alias-double.h>.
22040 (llround): Define using libm_alias_double.
22041 (lround): Likewise.
22042 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22043 <libm-alias-double.h>.
22044 (copysign): Define using libm_alias_double.
22045 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22046 <libm-alias-double.h>.
22047 (llrint): Define using libm_alias_double.
22048 (lrint): Likewise.
22049 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22050 <libm-alias-double.h>.
22051 (llround): Define using libm_alias_double.
22052 (lround): Likewise.
22053 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22054 <libm-alias-double.h>.
22055 (llrint): Define using libm_alias_double.
22056 (lrint): Likewise.
22057 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22058 <libm-alias-double.h>.
22059 (llround): Define using libm_alias_double.
22060 (lround): Likewise.
22061
ec2cf3f4
JM
220622017-12-01 Joseph Myers <joseph@codesourcery.com>
22063
0ddde474
JM
22064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22065 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22066 compat symbol based on llround.
22067
0d5ba561
JM
22068 * sysdeps/powerpc/power7/fpu/s_logb.c
22069 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22070 symbol based on __logb, not on logb.
22071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22072 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22074 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22075
51ea3b20
JM
22076 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22077 (rint): Define using libm_alias_double.
22078 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22079 <libm-alias-double.h>.
22080 (modf): Define using libm_alias_double.
22081 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22082 <libm-alias-double.h>.
22083 (ceil): Define using libm_alias_double.
22084 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22085 <libm-alias-double.h>.
22086 (floor): Define using libm_alias_double.
22087 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22088 <libm-alias-double.h>.
22089 (nearbyint): Define using libm_alias_double.
22090 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22091 <libm-alias-double.h>.
22092 (rint): Define using libm_alias_double.
22093 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22094 <libm-alias-double.h>.
22095 (round): Define using libm_alias_double.
22096 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22097 <libm-alias-double.h>.
22098 (trunc): Define using libm_alias_double.
22099 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22100 <libm-alias-double.h>.
22101 (ceil): Define using libm_alias_double.
22102 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22103 Include <libm-alias-double.h>.
22104 (floor): Define using libm_alias_double.
22105 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22106 <libm-alias-double.h>.
22107 (modf): Define using libm_alias_double.
22108 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22109 Include <libm-alias-double.h>.
22110 (round): Define using libm_alias_double.
22111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22112 Include <libm-alias-double.h>.
22113 (trunc): Define using libm_alias_double.
22114 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22115 <libm-alias-double.h>.
22116 (ceil): Define using libm_alias_double.
22117 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22118 <libm-alias-double.h>.
22119 (floor): Define using libm_alias_double.
22120 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22121 <libm-alias-double.h>.
22122 (round): Define using libm_alias_double.
22123 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22124 <libm-alias-double.h>.
22125 (trunc): Define using libm_alias_double.
22126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22127 <libm-alias-double.h>.
22128 (ceil): Define using libm_alias_double.
22129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22130 <libm-alias-double.h>.
22131 (floor): Define using libm_alias_double.
22132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22133 <libm-alias-double.h>.
22134 (modf): Define using libm_alias_double.
22135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22136 <libm-alias-double.h>.
22137 (round): Define using libm_alias_double.
22138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22139 <libm-alias-double.h>.
22140 (trunc): Define using libm_alias_double.
22141 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22142 <libm-alias-double.h>.
22143 (ceil): Define using libm_alias_double.
22144 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22145 <libm-alias-double.h>.
22146 (floor): Define using libm_alias_double.
22147 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22148 <libm-alias-double.h>.
22149 (nearbyint): Define using libm_alias_double.
22150 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22151 <libm-alias-double.h>.
22152 (rint): Define using libm_alias_double.
22153 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22154 <libm-alias-double.h>.
22155 (round): Define using libm_alias_double.
22156 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22157 <libm-alias-double.h>.
22158 (trunc): Define using libm_alias_double.
22159 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22160 <libm-alias-double.h>.
22161 (ceil): Define using libm_alias_double.
22162 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22163 <libm-alias-double.h>.
22164 (floor): Define using libm_alias_double.
22165 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22166 <libm-alias-double.h>.
22167 (round): Define using libm_alias_double.
22168 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22169 <libm-alias-double.h>.
22170 (trunc): Define using libm_alias_double.
22171
ec2cf3f4
JM
22172 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22173 (fabs): Define using libm_alias_double.
22174 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22175 (fma): Define using libm_alias_double.
22176 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22177 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22178 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22179 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22180
5b7bd975
AZ
221812017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22182
0594b13f
AZ
22183 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22184
dbdfcf3b
AZ
22185 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22186 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22187 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22188
5b7bd975
AZ
22189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22190 due redirect macro.
22191
ef9ecfa6
AS
221922017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22193
22194 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22195
5b4e5e78
AZ
221962017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22197
2a14526b
AZ
22198 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22199 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22200 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22201 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22202
dbeb74ef 22203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1c051a9b
AZ
22204 (libm-sysdep_routines): Add s_nearbyintf-generic and
22205 s_nearbyint-generic.
22206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22207 New file.
22208 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22210 Likewise.
22211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22212 Likewise.
22213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22214 file.
22215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22216 Likewise.
22217
22218 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
dbeb74ef
AZ
22219 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22221 file.
22222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22223 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22224 Likewise.
22225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22228
fa7ded96
AZ
22229 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22230 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22232 file.
22233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22235 Likewise.
22236 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22239
e240cf0e
AZ
22240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22241 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22243 file.
22244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22246 Likewise.
22247 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22250
5b4e5e78
AZ
22251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22252 (sysdep_calls): New rule.
22253 (sysdep_routines): Use sysdep_calls as base.
22254 (libm-sysdep_routines): Add generic rule for symbols shared with
22255 libc. Add s_copysign-generic and s_copysign-generic objects.
22256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22257 New file.
22258 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22260 Likewise.
22261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22262 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22264
d985adae
MF
222652017-12-01 Mike FABIAN <mfabian@redhat.com>
22266
22267 [BZ #22519]
22268 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22269 the list of locales to be built for testing.
22270 * localedata/is_IS.UTF-8.in: New file.
22271 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22272 on iso14651_t1.
22273
ff84a0e0
JM
222742017-12-01 Joseph Myers <joseph@codesourcery.com>
22275
22276 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22277 <libm-alias-float.h>.
22278 (fabsf): Define using libm_alias_float.
22279
ef5d8b43
L
222802017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22281
22282 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22283
c0535adf
JM
222842017-11-30 Joseph Myers <joseph@codesourcery.com>
22285
f938b397
JM
22286 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22287 <libm-alias-float.h>.
22288 (fabsf): Define using libm_alias_float.
22289 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22290 <libm-alias-float.h>.
22291 (lrintf): Define using libm_alias_float.
22292 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22293 <libm-alias-float.h>.
22294 (rintf): Define using libm_alias_float.
22295
2251fad0
JM
22296 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22297 <libm-alias-double.h>.
22298 (fabs): Define using libm_alias_double.
22299 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22300 <libm-alias-double.h>.
22301 (lrint): Define using libm_alias_double.
22302 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22303 <libm-alias-double.h>.
22304 (rint): Define using libm_alias_double.
22305
e53df1de
JM
22306 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22307 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22308 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22309 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22310 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22311 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22312 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22313 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22314 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22315 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22316 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22317 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22318 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22319 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22320 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22321 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22322 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22323 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22324 s_atan_template.c.
22325 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22326 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22327 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22328 s_ceil_template.c.
22329 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22330 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22331 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22332 s_cos_template.c.
22333 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22334 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22335 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22336 s_expm1_template.c.
22337 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22338 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22339 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22340 s_fabs_template.c.
22341 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22342 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22343 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22344 s_floor_template.c.
22345 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22346 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22347 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22348 s_frexp_template.c.
22349 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22350 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22351 s_lrint_template.c.
22352 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22353 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22354 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22355 s_modf_template.c.
22356 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22357 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22358 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22359 s_nearbyint_template.c.
22360 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22361 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22362 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22363 s_remquo_template.c.
22364 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22365 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22366 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22367 s_rint_template.c.
22368 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22369 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22370 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22371 s_sin_template.c.
22372 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22373 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22374 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22375 s_sincos_template.c.
22376 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22377 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22378 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22379 s_tan_template.c.
22380 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22381 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22382 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22383 s_tanh_template.c.
22384 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22385 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22386 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22387 s_trunc_template.c.
22388 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22389 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22390 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22391 s_atan.c instead of including s_atan.c.
22392 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22393 s_atanf.c instead of including s_atanf.c.
22394 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22395 s_atanl.c instead of including s_atanl.c.
22396 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22397 instead of s_atan.c.
22398 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22399 instead of s_atanf.c.
22400 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22401 instead of s_atanl.c.
22402
c0535adf
JM
22403 * scripts/update-copyrights: Do not handle intl/plural.c
22404 specially.
22405
1faaf703
JB
224062017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22407
22408 [BZ #22432]
22409 * configure.ac (BISON): Require to be present.
22410 * configure: Regenerated.
22411 * intl/Makefile (generated): Add plural.c.
22412 [$(BISON) != no]: Make code unconditional.
22413 (plural.c): Change rule to $(objpfx)plural.c.
22414 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22415 * intl/plural.c: Remove.
22416 * manual/install.texi (Tools for Compilation): Document bison as
22417 required.
22418 * INSTALL: Regenerated.
22419
faec6323
JM
224202017-11-30 Joseph Myers <joseph@codesourcery.com>
22421
bd6ea9ed
JM
22422 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22423 <libm-alias-double.h>.
22424 (llrint): Define using libm_alias_double.
22425 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22426 <libm-alias-float.h>.
22427 (llrintf): Define using libm_alias_float.
22428 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22429 <libm-alias-ldouble.h>.
22430 (llrintl): Define using libm_alias_ldouble.
22431
faec6323
JM
22432 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22433 declare_mgen_alias instead of weak_alias.
22434 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22435 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22436 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22437
023cade3
AZ
224382017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22439
9e2279a0
AZ
22440 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22441 Add add_n-generic.
22442 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22443 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22444 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22445
75f37c71
AZ
22446 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22447 Add submul_1-generic.
22448 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22449 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22450 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22451
b70cbbfc 22452 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
dda1d2e8
AZ
22453 Add addmul_1-generic.
22454 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22455 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22456 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22457
22458 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
b70cbbfc
AZ
22459 Add sub_n-generic.
22460 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22461 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22462 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22463
023cade3
AZ
22464 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22465 Add mul_1-generic.
22466 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22467 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22468 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22469
fbb5fd03
MF
224702017-11-30 Mike FABIAN <mfabian@redhat.com>
22471
22472 According to CLDR, collation rules for Serbian and Bosnian
22473 should be the same as for Croatian.
22474
22475 [BZ #22534]
22476 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22477 and to the list of locales to be built for testing.
22478 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22479 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22480 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22481 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22482
5e56e937
MF
224832017-11-30 Mike FABIAN <mfabian@redhat.com>
22484
22485 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22486 to make test case pass.
22487 * localedata/hr_HR.UTF-8.in: Add more test strings.
22488
cf4341ca
MF
224892017-11-30 Mike FABIAN <mfabian@redhat.com>
22490
22491 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22492
363e4519 224932017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
9ca6b343
DSN
22494
22495 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22496 the list of locales to built for testing.
22497 * localedata/hr_HR.UTF-8.in: New file.
22498
363e4519 224992017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
37075ae1
DSN
22500
22501 [BZ #10580]
22502 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22503 iso14651_t1.
22504 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22505 CLDR (except use ligatures for the digraphs, CLDR does not use
22506 the ligatures), add first_workday, some fixes in the date and time
22507 formats.
22508 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22509 for Đ and đ.
22510 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22511 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22512 Add int_p_cs_precedes and int_n_cs_precedes.
22513 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22514 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22515 LC_MONETARY now).
22516 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22517 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22518 name_miss.
22519 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22520 and lang_lib. Change postal_fmt.
22521
f33632cc
L
225222017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22523
22524 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22525 <setjmp.h>.
22526 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22527 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22528 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22529 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22530 * sysdeps/generic/setjmpP.h: New file.
22531 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22532 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22533 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22534 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22535 Add jmp_buf-ssp.sym.
22536 (tests): Add tst-saved_mask-1.
22537
34697694
AS
225382017-11-30 Arjun Shankar <arjun@redhat.com>
22539
22540 [BZ #22375]
37ac8e63 22541 CVE-2017-17426
34697694
AS
22542 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22543 instead of request2size.
22544
3e5efdbd
JM
225452017-11-30 Joseph Myers <joseph@codesourcery.com>
22546
18305fba
JM
22547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22548 (__lllrint): Remove alias.
22549 (lllrint): Likewise.
22550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22551 (__lllrintf): Likewise.
22552 (lllrintf): Likewise.
22553
3e5efdbd
JM
22554 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22555 <libm-alias-float.h>.
22556 (copysignf): Define using libm_alias_float.
22557 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22558 <libm-alias-float.h>.
22559 (fabsf): Define using libm_alias_float.
22560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22561 Include <libm-alias-float.h>.
22562 (copysignf): Define using libm_alias_float.
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22564 <libm-alias-float.h>.
22565 (fabsf): Define using libm_alias_float.
22566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22567 <libm-alias-float.h>.
22568 (fdimf): Define using libm_alias_float.
22569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22570 <libm-alias-float.h>.
22571 (fmaf): Define using libm_alias_float.
22572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22573 <libm-alias-float.h>.
22574 (llrintf): Define using libm_alias_float.
22575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22576 Include <libm-alias-float.h>.
22577 (nearbyintf): Define using libm_alias_float.
22578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22579 <libm-alias-float.h>.
22580 (rintf): Define using libm_alias_float.
22581 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22582 <libm-alias-float.h>.
22583 (llrintf): Define using libm_alias_float.
22584 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22585 <libm-alias-float.h>.
22586 (lrintf): Define using libm_alias_float.
22587 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22588 <libm-alias-float.h>.
22589 (nearbyintf): Define using libm_alias_float.
22590 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22591 <libm-alias-float.h>.
22592 (rintf): Define using libm_alias_float.
22593 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22594 <libm-alias-float.h>.
22595 (ceilf): Define using libm_alias_float.
22596 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22597 <libm-alias-float.h>.
22598 (floorf): Define using libm_alias_float.
22599 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22600 <libm-alias-float.h>.
22601 (fmaf): Define using libm_alias_float.
22602 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22603 <libm-alias-float.h>.
22604 (lrintf): Define using libm_alias_float.
22605 (llrintf): Likewise.
22606 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22607 <libm-alias-float.h>.
22608 (nearbyintf): Define using libm_alias_float.
22609 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22610 <libm-alias-float.h>.
22611 (rintf): Define using libm_alias_float.
22612 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22613 <libm-alias-float.h>.
22614 (truncf): Define using libm_alias_float.
22615 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22616 <libm-alias-float.h>.
22617 (copysignf): Define using libm_alias_float.
22618 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22619 <libm-alias-float.h>.
22620 (fabsf): Define using libm_alias_float.
22621 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22622 <libm-alias-float.h>.
22623 (lrintf): Define using libm_alias_float.
22624 (llrintf): Likewise.
22625 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22626 <libm-alias-float.h>.
22627 (nearbyintf): Define using libm_alias_float.
22628 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22629 <libm-alias-float.h>.
22630 (rintf): Define using libm_alias_float.
22631
011fba7e
JM
226322017-11-29 Joseph Myers <joseph@codesourcery.com>
22633
875cd548
JM
22634 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22635 <libm-alias-double.h>.
22636 (copysign): Define using libm_alias_double.
22637 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22638 <libm-alias-double.h>.
22639 (fabs): Define using libm_alias_double.
22640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22641 Include <libm-alias-double.h>.
22642 (copysign): Define using libm_alias_double.
22643 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22644 <libm-alias-double.h>.
22645 (fabs): Define using libm_alias_double.
22646 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22647 <libm-alias-double.h>.
22648 (fdim): Define using libm_alias_double.
22649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22650 <libm-alias-double.h>.
22651 (fma): Define using libm_alias_double.
22652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22653 <libm-alias-double.h>.
22654 (llrint): Define using libm_alias_double.
22655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22656 Include <libm-alias-double.h>.
22657 (nearbyint): Define using libm_alias_double.
22658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22659 <libm-alias-double.h>.
22660 (rint): Define using libm_alias_double.
22661 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22662 <libm-alias-double.h>.
22663 (fabs): Define using libm_alias_double.
22664 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22665 <libm-alias-double.h>.
22666 (llrint): Define using libm_alias_double.
22667 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22668 <libm-alias-double.h>.
22669 (nearbyint): Define using libm_alias_double.
22670 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22671 <libm-alias-double.h>.
22672 (rint): Define using libm_alias_double.
22673 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22674 <libm-alias-double.h>.
22675 (ceil): Define using libm_alias_double.
22676 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22677 <libm-alias-double.h>.
22678 (floor): Define using libm_alias_double.
22679 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22680 <libm-alias-double.h>.
22681 (fma): Define using libm_alias_double.
22682 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22683 <libm-alias-double.h>.
22684 (lrint): Define using libm_alias_double.
22685 (llrint): Likewise.
22686 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22687 <libm-alias-double.h>.
22688 (nearbyint): Define using libm_alias_double.
22689 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22690 <libm-alias-double.h>.
22691 (rint): Define using libm_alias_double.
22692 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22693 <libm-alias-double.h>.
22694 (trunc): Define using libm_alias_double.
22695 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22696 <libm-alias-double.h>.
22697 (copysign): Define using libm_alias_double.
22698 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22699 <libm-alias-double.h>.
22700 (fabs): Define using libm_alias_double.
22701 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22702 <libm-alias-double.h>.
22703 (lrint): Define using libm_alias_double.
22704 (llrint): Likewise.
22705 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22706 <libm-alias-double.h>.
22707 (nearbyint): Define using libm_alias_double.
22708 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22709 <libm-alias-double.h>.
22710 (rint): Define using libm_alias_double.
22711
cf4ebc27
JM
22712 [BZ #22229]
22713 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22714 <math_ldbl_opt.h>.
22715 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22716
0c097378
JM
22717 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22718 SPARC --disable-multi-arch glibc variants.
22719
34bb10aa
JM
22720 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22721 <libm-alias-float.h>.
22722 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22723 if [SHARED].
22724 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22725 <libm-alias-float.h>.
22726 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22727 if [SHARED].
22728 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22729 <libm-alias-float.h>.
22730 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22731 if [SHARED].
22732 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22733 <libm-alias-float.h>.
22734 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22735 if [SHARED].
22736 * sysdeps/x86_64/fpu/multiarch/e_powf.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/s_ceilf.c: Include
22741 <libm-alias-float.h>.
22742 (ceilf): Define using libm_alias_float.
22743 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22744 <libm-alias-float.h>.
22745 (floorf): Define using libm_alias_float.
22746 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22747 <libm-alias-float.h>.
22748 (fmaf): Define using libm_alias_float.
22749 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22750 <libm-alias-float.h>.
22751 (nearbyintf): Define using libm_alias_float.
22752 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22753 <libm-alias-float.h>.
22754 (rintf): Define using libm_alias_float.
22755 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22756 <libm-alias-float.h>.
22757 (truncf): Define using libm_alias_float.
22758 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22759 (copysignf): Define using libm_alias_float.
22760 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22761 (cosf): Define using libm_alias_float.
22762 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22763 (fabsf): Define using libm_alias_float.
22764 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22765 (fmaxf): Define using libm_alias_float.
22766 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22767 (fminf): Define using libm_alias_float.
22768 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22769 (llrintf): Define using libm_alias_float.
22770 [!__ILP32__] (lrintf): Likewise.
22771 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22772 (sincosf): Define using libm_alias_float.
22773 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22774 (sinf): Define using libm_alias_float.
22775 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22776 (lrintf): Define using libm_alias_float.
22777
011fba7e
JM
22778 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22779 <libm-alias-double.h>.
22780 (atan): Define using libm_alias_double.
22781 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22782 <libm-alias-double.h>.
22783 (ceil): Define using libm_alias_double.
22784 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22785 <libm-alias-double.h>.
22786 (floor): Define using libm_alias_double.
22787 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22788 <libm-alias-double.h>.
22789 (fma): Define using libm_alias_double.
22790 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22791 <libm-alias-double.h>.
22792 (nearbyint): Define using libm_alias_double.
22793 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22794 <libm-alias-double.h>.
22795 (rint): Define using libm_alias_double.
22796 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22797 <libm-alias-double.h>.
22798 (sin): Define using libm_alias_double.
22799 (cos): Likewise.
22800 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22801 <libm-alias-double.h>.
22802 (tan): Define using libm_alias_double.
22803 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22804 <libm-alias-double.h>.
22805 (trunc): Define using libm_alias_double.
22806 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22807 (copysign): Define using libm_alias_double.
22808 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22809 (fabs): Define using libm_alias_double.
22810 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22811 (fmax): Define using libm_alias_double.
22812 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22813 (fmin): Define using libm_alias_double.
22814 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22815 (llrint): Define using libm_alias_double.
22816 [!__ILP32__] (lrint): Likewise.
22817 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22818 (lrint): Define using libm_alias_double.
22819
1cbd7bfe
AZ
228202017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22821
21bfcc3d
AZ
22822 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22823 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22824 objects.
22825 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22826 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22827 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22828 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22829 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22830 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22831
522228dd
AZ
22832 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22833 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22834 objects.
22835 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22836 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22837 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22838 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22839 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22840 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22841
2a6f4fab
AZ
22842 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22843 (libm-sysdep_routines): Add s_nearbyint-generic and
22844 s_nearbyintf-generic objects.
22845 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22846 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22847 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22848 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22849 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22850 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22851
712b5b83
AZ
22852 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22853 Add s_finitef-generic and s_finite-generic objects.
22854 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22855 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22856 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22857 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22858 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22859 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22860
c96d3335
AZ
22861 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22862 Add s_isinff-generic and s_isinf-generic objects.
22863 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22864 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22865 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22866 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22867 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22868 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22869
c6862a23
AZ
22870 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22871 Add s_isnanf-generic and s_isnan-generic objects.
22872 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22873 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22874 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22875 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22876 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22877 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22878
1cbd7bfe
AZ
22879 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22880 macro.
22881 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22882 rule.
22883 (sysdep_routines): Use sysdep_calls as base.
22884 (libm-sysdep_routines): Add generic rule for symbols shared with
22885 libc. Add s_signbit-generic and s_signbitf-generic objects.
22886 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22887 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22888 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22889 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22890 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22891 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22892
aa1142c5
JM
228932017-11-29 Joseph Myers <joseph@codesourcery.com>
22894
22895 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22896 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22897 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22898 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22899 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22900 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22901 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22902 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22903 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22904 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22905 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22906 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22907 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22908 libm_alias_float_r.
22909 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22910 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22911 (logf): Likewise.
22912 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22913 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22914 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22915 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22916 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22917 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22918 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22919 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22920 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22921 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22922 libm_alias_float.
22923 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22924 (cosf): Likewise.
22925 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22926 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22927 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22928 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22929 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22930 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22931 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22932 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22933 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22934 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22935 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22936 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22937 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
22938 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
22939 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
22940 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
22941 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
22942 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
22943 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
22944 libm_alias_float.
22945 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
22946 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
22947 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
22948 * sysdeps/ia64/fpu/w_lgammaf_main.c
22949 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
22950 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
22951
363e4519
DL
229522017-11-28 Mike FABIAN <mfabian@redhat.com>
22953 Alexandre Oliva <aoliva@redhat.com>
8da25eec
AO
22954
22955 [BZ #17750]
22956 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
22957 * localedata/fr_CA.UTF-8.in: New file with test data for backward
22958 accents sorting.
22959 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
22960 sorting.
22961 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
22962 * localedata/locales/de_DE (LC_COLLATE): Likewise.
22963 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
22964 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
22965 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
22966 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
22967 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
22968 instead of “ifdef DIACRIT_BACKWARD”.
22969
a55430cb
AZ
229702017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22971
22972 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
22973 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
22974 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
22975 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
22976 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
22977 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
22978 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
22979 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
22980 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
22981 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
22982 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
22983 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
22984 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
22985 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
22986 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
22987 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22988 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
22989 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
22990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22991 ($(have-as-vis3) == yes): Remove conditional.
22992 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
22993 Likewise.
22994 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
22995 file.
22996 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
22997 file.
22998 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
22999 file.
23000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23001 file.
23002 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23003 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23004 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23005 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23006 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23007 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23008 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23009 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23010
0609ec0a
JM
230112017-11-29 Joseph Myers <joseph@codesourcery.com>
23012
23013 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23014 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23015 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23016 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23017 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23018 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23019 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23020 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23021 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23022 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23023 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23024 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23025 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23026 libm_alias_double_r.
23027 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23028 (log): Likewise.
23029 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23030 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23031 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23032 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23033 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23034 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23035 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23036 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23037 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23038 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23039 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23040 libm_alias_double.
23041 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23042 (cos): Likewise.
23043 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23044 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23045 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23046 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23047 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23048 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23049 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23050 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23051 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23052 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23053 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23054 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23055 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23056 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23057 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23058 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23059 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23060 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23061 libm_alias_double.
23062 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23063 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23064 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23065 * sysdeps/ia64/fpu/w_lgamma_main.c
23066 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23067 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23068
d5bfa34a
JDA
230692017-11-28 John David Anglin <danglin@gcc.gnu.org>
23070
23071 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23072 address of $global$ into %dp register earlier. Use pc-relative
23073 instruction sequence for PIC case.
23074
bc4e8f9b
JM
230752017-11-28 Joseph Myers <joseph@codesourcery.com>
23076
e4602cba
JM
23077 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23078 (asinhf): Define using libm_alias_float.
23079 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23080 (atanf): Define using libm_alias_float.
23081 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23082 (cbrtf): Define using libm_alias_float.
23083 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23084 (ceilf): Define using libm_alias_float.
23085 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23086 (copysignf): Define using libm_alias_float.
23087 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23088 (expm1f): Define using libm_alias_float.
23089 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23090 (fabsf): Define using libm_alias_float.
23091 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23092 (floorf): Define using libm_alias_float.
23093 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23094 (fmaxf): Define using libm_alias_float.
23095 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23096 (fminf): Define using libm_alias_float.
23097 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23098 (frexpf): Define using libm_alias_float.
23099 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23100 (llrintf): Define using libm_alias_float.
23101 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23102 (logbf): Define using libm_alias_float.
23103 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23104 (lrintf): Define using libm_alias_float.
23105 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23106 (nearbyintf): Define using libm_alias_float.
23107 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23108 (remquof): Define using libm_alias_float.
23109 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23110 (rintf): Define using libm_alias_float.
23111 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23112 (truncf): Define using libm_alias_float.
23113 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23114 <libm-alias-float.h>.
23115 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23116 if [SHARED].
23117 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23118 <libm-alias-float.h>.
23119 (expf): Define using libm_alias_float, or libm_alias_float_other
23120 if [SHARED].
23121 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23122 <libm-alias-float.h>.
23123 (log2f): Define using libm_alias_float, or libm_alias_float_other
23124 if [SHARED].
23125 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23126 <libm-alias-float.h>.
23127 (logf): Define using libm_alias_float, or libm_alias_float_other
23128 if [SHARED].
23129 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23130 <libm-alias-float.h>.
23131 (powf): Define using libm_alias_float, or libm_alias_float_other
23132 if [SHARED].
23133 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23134 <libm-alias-float.h>.
23135 (cosf): Define using libm_alias_float.
23136 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23137 <libm-alias-float.h>.
23138 (sincosf): Define using libm_alias_float.
23139 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23140 <libm-alias-float.h>.
23141 (sinf): Define using libm_alias_float.
23142 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23143 (fmaxf): Define using libm_alias_float.
23144 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23145 (fminf): Define using libm_alias_float.
23146 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23147 <libm-alias-float.h>.
23148 (fmaf): Define using libm_alias_float.
23149
bc4e8f9b
JM
23150 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23151 (asinh): Define using libm_alias_double.
23152 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23153 (atan): Define using libm_alias_double.
23154 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23155 (cbrt): Define using libm_alias_double.
23156 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23157 (ceil): Define using libm_alias_double.
23158 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23159 (copysign): Define using libm_alias_double.
23160 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23161 (expm1): Define using libm_alias_double.
23162 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23163 (fabs): Define using libm_alias_double.
23164 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23165 (fdim): Define using libm_alias_double.
23166 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23167 (floor): Define using libm_alias_double.
23168 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23169 (fmax): Define using libm_alias_double.
23170 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23171 (fmin): Define using libm_alias_double.
23172 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23173 (frexp): Define using libm_alias_double.
23174 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23175 (llrint): Define using libm_alias_double.
23176 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23177 (logb): Define using libm_alias_double.
23178 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23179 (lrint): Define using libm_alias_double.
23180 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23181 (nearbyint): Define using libm_alias_double.
23182 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23183 (remquo): Define using libm_alias_double.
23184 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23185 (rint): Define using libm_alias_double.
23186 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23187 (trunc): Define using libm_alias_double.
23188 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23189 (fmax): Define using libm_alias_double.
23190 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23191 (fmin): Define using libm_alias_double.
23192 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23193 (fma): Define using libm_alias_double.
23194
8d81ce0c
L
231952017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23196
23197 [BZ #22370]
23198 * elf/dl-hwcaps.c (ROUND): Removed.
23199 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23200 and ELF_NOTE_NEXT_OFFSET.
23201 * elf/dl-load.c (ROUND): Removed.
23202 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23203 * elf/readelflib.c (ROUND): Removed.
23204 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23205 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23206 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23207 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23208
6940bd96
JM
232092017-11-28 Joseph Myers <joseph@codesourcery.com>
23210
313ba463
JM
23211 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23212 [!__fmaf] (fmaf): Define using libm_alias_float.
23213
6940bd96
JM
23214 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23215 [!__fma] (fma): Define using libm_alias_double.
23216 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23217
22c69b6a
MF
232182017-11-28 Mike FABIAN <mfabian@redhat.com>
23219
23220 [BZ #22336]
23221 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23222 and implement the collation rules for cs from CLDR on top of that.
23223 * Makefile: Add cs_CZ.UTF-8 to test-input.
23224 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23225
8d7d3ba8
SP
232262017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23227
23228 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23229
0422ed1e
VR
232302017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23231 Icarus Sparry <icarus.w.sparry@intel.com>
23232
23233 * benchtests/Makefile:Add BENCHSET to allow subsets of
23234 benchmarks to be run.
23235 * benchtests/README: Add documentation for: Running subsets of
23236 benchmarks.
23237
0595e360
VR
232382017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23239
d5090db3
VR
23240 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23241 range of tests names.
23242
0595e360
VR
23243 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23244 result from property and remove "max", min" and "mean" from
23245 required properties based on benchtests/bench-skeleton.c.
23246
b4c645c2
FW
232472017-11-28 Florian Weimer <fweimer@redhat.com>
23248
23249 [BZ #20826]
23250 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23251 due to Internet requirement.
23252 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23253 tst-getaddrinfo5.
23254 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23255
88684de7
AZ
232562017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23257
69056564
AZ
23258 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23259 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23260 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23261 (sysdep_routines): Add memset-ultra1.
23262 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23263 file.
23264 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23265 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23266 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23267 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23268 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23269 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23270 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23271 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23272
88684de7
AZ
23273 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23274 file.
23275 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23276 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23277 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23278 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23279 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23280 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23281 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23282 macro.
23283 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23284 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23285 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23286 (sysdep_routines): Add memcpy-ultra1.
23287 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23288 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23289
d8124864
JM
232902017-11-28 Joseph Myers <joseph@codesourcery.com>
23291
f433d0b3
JM
23292 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23293 (cfloat_versions): Take function argument without trailing 'f'.
23294 Call libm_alias_float_other.
23295 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23296 * sysdeps/alpha/fpu/cargf.c: Likewise.
23297 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23298 * sysdeps/alpha/fpu/conjf.c: Likewise.
23299 * sysdeps/alpha/fpu/crealf.c: Likewise.
23300 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23301 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23302 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23303 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23304 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23305 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23306 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23307 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23308 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23309 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23310 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23311 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23312 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23313 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23314 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23315 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23316 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23317 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23318 (clog10f): Use libm_alias_float_other.
23319 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23320 (ceilf): Define using libm_alias_float.
23321 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23322 (copysignf): Define using libm_alias_float.
23323 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23324 (fabsf): Define using libm_alias_float.
23325 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23326 (floorf): Define using libm_alias_float.
23327 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23328 (fmaxf): Define using libm_alias_float.
23329 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23330 (fminf): Define using libm_alias_float.
23331 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23332 (lrintf): Define using libm_alias_float.
23333 (llrintf): Likewise.
23334 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23335 (lroundf): Define using libm_alias_float.
23336 (llroundf): Likewise.
23337 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23338 (rintf): Define using libm_alias_float.
23339 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23340 (truncf): Define using libm_alias_float.
23341
15ff4900
JM
23342 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23343 (ceilf): Define using libm_alias_float.
23344 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23345 (floorf): Define using libm_alias_float.
23346 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23347 (fmaf): Define using libm_alias_float.
23348 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23349 (fmaxf): Define using libm_alias_float.
23350 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23351 (fminf): Define using libm_alias_float.
23352 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23353 (llrintf): Define using libm_alias_float.
23354 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23355 (llroundf): Define using libm_alias_float.
23356 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23357 (lrintf): Define using libm_alias_float.
23358 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23359 (lroundf): Define using libm_alias_float.
23360 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23361 <libm-alias-float.h>.
23362 (nearbyintf): Define using libm_alias_float.
23363 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23364 (rintf): Define using libm_alias_float.
23365 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23366 (roundf): Define using libm_alias_float.
23367 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23368 (truncf): Define using libm_alias_float.
23369
5de60638
JM
23370 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23371 (ceil): Define using libm_alias_double.
23372 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23373 (copysign): Define using libm_alias_double.
23374 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23375 (fabs): Define using libm_alias_double.
23376 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23377 (floor): Define using libm_alias_double.
23378 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23379 (fmax): Define using libm_alias_double.
23380 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23381 (fmin): Define using libm_alias_double.
23382 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23383 (lrint): Define using libm_alias_double.
23384 (llrint): Likewise.
23385 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23386 (lround): Define using libm_alias_double.
23387 (llround): Likewise.
23388 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23389 (rint): Define using libm_alias_double.
23390 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23391 (trunc): Define using libm_alias_double.
23392
d8124864
JM
23393 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23394 (libm_alias_double_r): Add semicolon after weak_alias call.
23395
f07d2ec8
JM
233962017-11-27 Joseph Myers <joseph@codesourcery.com>
23397
23398 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23399 (ceil): Define using libm_alias_double.
23400 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23401 (floor): Define using libm_alias_double.
23402 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23403 (fma): Define using libm_alias_double.
23404 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23405 (fmax): Define using libm_alias_double.
23406 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23407 (fmin): Define using libm_alias_double.
23408 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23409 (llrint): Define using libm_alias_double.
23410 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23411 (llround): Define using libm_alias_double.
23412 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23413 (lrint): Define using libm_alias_double.
23414 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23415 (lround): Define using libm_alias_double.
23416 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23417 (nearbyint): Define using libm_alias_double.
23418 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23419 (rint): Define using libm_alias_double.
23420 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23421 (round): Define using libm_alias_double.
23422 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23423 (trunc): Define using libm_alias_double.
23424
4bab0224
FW
234252017-11-27 Florian Weimer <fweimer@redhat.com>
23426
23427 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23428 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23429 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23430 (tests): Add tst-mlock2.
23431 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23432 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23433 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23434 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23435 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23436 for mlock. Document mlock2.
23437
a23aa5b7
JM
234382017-11-27 Joseph Myers <joseph@codesourcery.com>
23439
23440 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23441 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23442 Likewise.
23443 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23444 Likewise.
23445 * sysdeps/x86/Makeconfig: New file.
23446 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23447 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23448 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23449 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23450 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23451 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23452 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23453 Likewise.
23454 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23455 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23456 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23457 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23458 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23459 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23460 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23461 * manual/math.texi (Mathematics): Document support for _Float64x.
23462 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23463 * stdlib/Versions (GLIBC_2.27): Likewise.
23464 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23465 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23466 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23467 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23468 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23469 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23470 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23471 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23472 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23473 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23474 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23475 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23477 Likewise.
23478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23479 Likewise.
23480 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23481 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23482 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23483 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23484 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23485 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23486 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23487 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23488 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23489 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23490 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23491 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23492 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23493 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23494
c2c299fd
AS
234952017-11-27 Andreas Schwab <schwab@suse.de>
23496
23497 * elf/Makefile (dl-routines): Add dl-sort-maps.
23498 * elf/dl-sort-maps.c: New file.
23499 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23500 (_dl_sort_maps): Declare.
23501 * elf/dl-fini.c (_dl_sort_fini): Remove.
23502 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23503 * elf/dl-close.c (_dl_close_worker): Likewise.
23504 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23505 open-coding it.
23506 * elf/dl-open.c (dl_open_worker): Likewise.
23507
9d4b0117
JM
235082017-11-24 Joseph Myers <joseph@codesourcery.com>
23509
de61465c
JM
23510 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23511 using libm_alias_float128.
23512 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23513 Likewise.
23514 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23515 Likewise.
23516 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23517 (setpayloadsigf128): Likewise.
23518 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23519 Likewise.
23520 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23521 Likewise.
23522
9ae6d171
JM
23523 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23524 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23525 -mfloat128 to CFLAGS.
23526 ($(foreach
23527 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23528 Likewise.
23529 (CFLAGS-libm-test-support-float64x.c): New variable.
23530 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23531 $(f128-loader-link) to gnulib-tests.
23532
6e70d156
JM
23533 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23534 (libm_alias_float128_other_r): If
23535 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23536 alias.
23537 (libm_alias_float128_r): Add semicolon after weak_alias call.
23538 * sysdeps/generic/libm-alias-ldouble.h
23539 (libm_alias_ldouble_other_r_f128): New macro.
23540 (libm_alias_ldouble_other_r_f64x): Likewise.
23541 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23542 and libm_alias_ldouble_other_r_f64x.
23543 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23544 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23545 (libm_alias_ldouble_other_r_f128): New macro.
23546 (libm_alias_ldouble_other_r_f64x): Likewise.
23547 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23548 and libm_alias_ldouble_other_r_f64x.
23549
df2806cd
JM
23550 * stdlib/strfroml.c: Always include <stdlib.h>.
23551 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23552 undefine as macro and define as weak alias.
23553 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23554 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23555 <stdlib.h>.
23556 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23557 Define and later undefine as macro and define as weak alias.
23558
0df4fe35
JM
23559 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23560 Define and later undefine as macro. Define as weak alias if
23561 [!USE_WIDE_CHAR].
23562 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23563 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23564 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23565 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23566 Define and later undefine as macro. Define as weak alias if
23567 [!USE_WIDE_CHAR].
23568 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23569 Define and later undefine as macro. Define as weak alias if
23570 [USE_WIDE_CHAR].
23571 * sysdeps/ieee754/float128/strtof128_l.c
23572 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23573 Define and later undefine as macro. Define as weak alias if
23574 [!USE_WIDE_CHAR].
23575 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23576 Define and later undefine as macro. Define as weak alias if
23577 [USE_WIDE_CHAR].
23578 * sysdeps/ieee754/ldbl-128/strtold_l.c
23579 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23580 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23581 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23582 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23583 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23584 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23585 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23586 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23587 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23588 * sysdeps/ieee754/ldbl-96/strtold_l.c
23589 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23590 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23591 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23592 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23593
ae7207d0
JM
23594 * math/test-float64x.h: New file.
23595 * math/Makefile (type-float64x-yes): New variable.
23596 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23597
9596fc69
JM
23598 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23599 function-like macro.
23600 (min_of_type_): Likewise.
23601 (min_of_type_l): Likewise.
23602 (min_of_type_f128): Likewise.
23603 (min_of_type): Pass () as last argument of __MATH_TG.
23604
46453c3c
JM
23605 * stdlib/tst-strtod-round-skeleton.c
23606 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23607 headers.
23608
01e659e7
JM
23609 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23610 for combinations of long double with _Float64 and _Float64x.
23611
5c60afdd
JM
23612 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23613 (__DECL_SIMD_cosf32): Likewise.
23614 (__DECL_SIMD_cosf64): Likewise.
23615 (__DECL_SIMD_cosf32x): Likewise.
23616 (__DECL_SIMD_cosf64x): Likewise.
23617 (__DECL_SIMD_cosf128x): Likewise.
23618 (__DECL_SIMD_sinf16): Likewise.
23619 (__DECL_SIMD_sinf32): Likewise.
23620 (__DECL_SIMD_sinf64): Likewise.
23621 (__DECL_SIMD_sinf32x): Likewise.
23622 (__DECL_SIMD_sinf64x): Likewise.
23623 (__DECL_SIMD_sinf128x): Likewise.
23624 (__DECL_SIMD_sincosf16): Likewise.
23625 (__DECL_SIMD_sincosf32): Likewise.
23626 (__DECL_SIMD_sincosf64): Likewise.
23627 (__DECL_SIMD_sincosf32x): Likewise.
23628 (__DECL_SIMD_sincosf64x): Likewise.
23629 (__DECL_SIMD_sincosf128x): Likewise.
23630 (__DECL_SIMD_logf16): Likewise.
23631 (__DECL_SIMD_logf32): Likewise.
23632 (__DECL_SIMD_logf64): Likewise.
23633 (__DECL_SIMD_logf32x): Likewise.
23634 (__DECL_SIMD_logf64x): Likewise.
23635 (__DECL_SIMD_logf128x): Likewise.
23636 (__DECL_SIMD_expf16): Likewise.
23637 (__DECL_SIMD_expf32): Likewise.
23638 (__DECL_SIMD_expf64): Likewise.
23639 (__DECL_SIMD_expf32x): Likewise.
23640 (__DECL_SIMD_expf64x): Likewise.
23641 (__DECL_SIMD_expf128x): Likewise.
23642 (__DECL_SIMD_powf16): Likewise.
23643 (__DECL_SIMD_powf32): Likewise.
23644 (__DECL_SIMD_powf64): Likewise.
23645 (__DECL_SIMD_powf32x): Likewise.
23646 (__DECL_SIMD_powf64x): Likewise.
23647 (__DECL_SIMD_powf128x): Likewise.
23648
9d4b0117
JM
23649 * stdlib/Versions (libc): Move entries for wcstof128 and
23650 wcstof128_l to ....
23651 * wcsmbs/Versions (libc): ... here.
23652 Include <float128-abi.h>.
23653
7911dd47
FW
236542017-11-24 Florian Weimer <fweimer@redhat.com>
23655
23656 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23657 bits/mman-shared.h.
23658 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23659 <bits/mman-shared.h>.
23660 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23661 to ...
23662 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23663 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23664 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23665 <bits/mman-shared.h>.
23666
c45d78aa
AZ
236672017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23668
23669 [BZ #22457]
23670 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23671 posix_memalign/free.
23672 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23673
3ffc4cc1
MF
236742017-11-22 Mike FABIAN <mfabian@redhat.com>
23675
23676 [BZ #22469]
23677 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23678 and implement the collation rules for pl from CLDR on top of that.
23679 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23680 of locales to be built for testing.
23681 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23682
3a327316
JM
236832017-11-23 Joseph Myers <joseph@codesourcery.com>
23684
23685 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23686 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23687 libm_alias_ldouble_other.
23688 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23689 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23690 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23691 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23692 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23693 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23694 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23695 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23696 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23697 libm_alias_ldouble_r.
23698 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23699 libm_alias_ldouble_other.
23700 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23701 (log10l): Likewise.
23702 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23703 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23704 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23705 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23706 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23707 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23708 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23709 (atan2l): Likewise.
23710 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23711 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23712 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23713 libm_alias_ldouble.
23714 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23715 (cosl): Likewise.
23716 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23717 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23718 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23719 (expl): Likewise.
23720 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23721 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23722 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23723 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23724 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23725 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23726 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23727 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23728 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23729 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23730 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23731 libm_alias_ldouble.
23732 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23733 libm_alias_ldouble_other.
23734 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23735 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23736 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23737 libm_alias_ldouble.
23738 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23739 libm_alias_ldouble_other.
23740 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23741 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23742 * sysdeps/ia64/fpu/w_lgammal_main.c
23743 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23744 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23745
0a947e06
FW
237462017-11-23 Florian Weimer <fweimer@redhat.com>
23747
23748 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23749 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23750 alike. Remove freeres marker.
23751 * malloc/arena.c (arena_thread_freeres): Call
23752 tcache_thread_shutdown.
23753
67f36c79
FW
237542017-11-23 Florian Weimer <fweimer@redhat.com>
23755
23756 [BZ #22459]
23757 Export nscd hash function as __nss_hash.
23758 * include/nss.h (__nss_hash): Declare.
23759 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23760 symbol.
23761 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23762 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23763 of __nscd_hash.
23764 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23765 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23766 * nss/Makefiles (routines): Add nss_hash.
23767 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23768 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23769 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23770 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23771
cccb6d4e
FW
237722017-11-23 Florian Weimer <fweimer@redhat.com>
23773
23774 [BZ #22478]
23775 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23776 Return error code, not -1.
23777 * signal/tst-sigwait-eintr.c: New file.
23778 * signal/Makefile (tests): Add tst-sigwait-eintr.
23779
59d2cbb1
FW
237802017-11-23 Florian Weimer <fweimer@redhat.com>
23781
23782 Linux: Add memfd_create system call wrapper
23783 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23784 tst-memfd_create.
23785 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23786 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23787 [__USE_GNU] (memfd_create): Declare.
23788 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23789 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23790 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23791 * sysdeps/unix/sysv/linux/**.abilist: Update.
23792 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23793
a90d1ac2
JM
237942017-11-22 Joseph Myers <joseph@codesourcery.com>
23795
0a9d1d62
JM
23796 * localedata/gen-locale.sh: Fix typo in variable name.
23797
754034c4
JM
23798 * resolv/res_debug.c (p_secstodate): Condition definition on
23799 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23800 directly as __p_secstodate, and as a compat symbol. Do not use
23801 libresolv_hidden_def.
23802 * resolv/resolv.h (p_secstodate): Remove macro and function
23803 declaration.
23804 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23805 using p_secstodate.
23806 * include/resolv.h (__p_secstodate): Do not use
23807 libresolv_hidden_proto.
23808 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23809 (tests-internal): ... here.
23810 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23811 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23812 and declare and use __p_secstodate and use compat_symbol_reference
23813 in that case.
23814 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23815 implementation returning 77.
23816
f120cda6
JM
23817 [BZ #22463]
23818 * resolv/res_debug.c: Include <libc-diag.h>.
23819 (p_secstodate): Assert time_t at least as wide as u_long. On
23820 overflow, use integer seconds since the epoch as output, or use
23821 "<overflow>" as output and set errno to EOVERFLOW if integer
23822 seconds since the epoch would be 14 or more characters.
23823 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23824 for sprintf call.
23825 * resolv/tst-p_secstodate.c: New file.
23826 * resolv/Makefile (tests): Add tst-p_secstodate.
23827 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23828
a90d1ac2
JM
23829 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23830 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23831 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23832
0285e6bd
PE
238332017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23834
23835 * posix/regcomp.c (init_word_char): Add comments.
23836
4bae6150
JM
238372017-11-22 Joseph Myers <joseph@codesourcery.com>
23838
23839 [BZ #22447]
23840 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23841 strlen to compute length of ut_user and set trailing NUL byte of
23842 result explicitly.
23843
4b7af5fc
MF
238442017-11-21 Mike FABIAN <mfabian@redhat.com>
23845
23846 [BZ #15537]
23847 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23848 using “copy "iso14651_t1"” and then implementing the
23849 collation rules for lv from CLDR on top of that.
23850 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23851 of locales to be built for testing.
23852 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23853 sorting.
23854
922bb78c
JM
238552017-11-21 Joseph Myers <joseph@codesourcery.com>
23856
23857 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23858 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23859 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23860 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23861 [__USE_MISC] (MADV_HWPOISON): New macro.
23862 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23863
a3aaa598
AZ
238642017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23865
23866 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23867 -Wmissing-braces on GCC 4.9.
23868
8beba15d
SL
238692017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23870
23871 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23872 * sysdeps/s390/s390-32/start.S (_start): Likewise
23873 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23874 (thread_start): Likewise.
23875 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23876 (thread_start): Likewise.
23877 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23878 (__makecontext_ret): Likewise.
23879 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23880 (__makecontext_ret): Likewise.
23881
80eb52e3
SL
238822017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23883
23884 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23885 __wcschrnul): Remove attribute_hidden.
23886
567d8c1f
PE
238872017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23888
23889 regex: don't assume uint64_t or uint32_t
23890 This avoids -Werror=overflow errors for 32-bit systems in
23891 the 64-bit case. Problem reported by Joseph Myers in:
23892 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23893 Also, when this code is used in Gnulib it ports to platforms
23894 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23895 them, and on some 32-bit compilers there is no uint64_t.
23896 Problem reported by Gianluigi Tiesi in:
23897 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23898 * posix/regcomp.c (init_word_char): Don't assume that the types
23899 uint64_t and uint32_t exist. Adapted from Gnulib patch
23900 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23901 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23902
4d7632ff
SP
239032017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23904
5a67c4fa
SP
23905 * sysdeps/aarch64/memset-reg.h: New file.
23906 * sysdeps/aarch64/memset.S: Use it.
23907 (__memset): Rename to MEMSET macro.
23908 [ZVA_MACRO]: Use zva_macro.
23909 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23910 Add memset_generic and memset_falkor.
23911 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23912 (__libc_ifunc_impl_list): Add memset ifuncs.
23913 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23914 local variable zva_size.
23915 * sysdeps/aarch64/multiarch/memset.c: New file.
23916 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23917 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23918 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23919 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23920 (DCZID_DZP_MASK): New macro.
23921 (DCZID_BS_MASK): Likewise.
23922 (init_cpu_features): Read and set zva_size.
23923 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23924 (struct cpu_features): New member zva_size.
23925
eb332f9f
SP
23926 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23927 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23928 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23929
4d7632ff
SP
23930 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23931 backwards. Fix timing computation.
23932 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23933 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23934 on memset by N at a time. Fix timing computation.
23935
a465b89e
FW
239362017-11-20 Florian Weimer <fweimer@redhat.com>
23937
23938 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
23939 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
23940
0f74bbf5
FW
239412017-11-19 Florian Weimer <fweimer@redhat.com>
23942
23943 manual: Document mprotect
23944 * manual/memory.texi (Memory Protection): New section.
23945 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
23946 documentation of PROT_* flags and reference the Memory Protection
23947 section instead.
23948
f6e965ee
FW
239492017-11-19 Florian Weimer <fweimer@redhat.com>
23950
23951 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
23952 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
23953 (Scatter-Gather): ... to here. Remove misleading comment.
23954
363e4519 239552017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
ea69a5c8 23956
5f9d1949
CB
23957 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
23958 style.
23959
ea69a5c8
CB
23960 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
23961 when /proc/<pid>/setgroups does not exist.
23962
8db7f48c
FW
239632017-11-18 Florian Weimer <fweimer@redhat.com>
23964
23965 * sysdeps/unix/sysv/linux/tst-ttyname.c
23966 (become_root_in_mount_ns): Remove.
23967 (do_in_chroot_1): Call support_enter_mount_namespace.
23968 (do_in_chroot_2): Likewise.
23969 (do_test): Call support_become_root early.
23970
273a0c49
FW
239712017-11-18 Florian Weimer <fweimer@redhat.com>
23972
23973 * support/namespace.h (support_enter_mount_namespace): Declare.
23974 * support/support_enter_mount_namespace.c: New file.
23975 * support/Makefile (libsupport-routines): Add
23976 support_enter_mount_namespace.
23977
8adfb0ee
FW
239782017-11-18 Florian Weimer <fweimer@redhat.com>
23979
23980 * support/temp_file.c (support_create_temp_directory): Use
23981 test_dir and do not rely on the presence of the XXXXXX suffix.
23982 * support/temp_file.h (support_create_temp_directory): Update
23983 comment.
23984 * support/tst-xreadlink.c (do_test): Adjust.
23985 * support/support_chroot.c (support_chroot_create): Likewise.
23986
df0c40ee
TMQMF
239872017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23988
23989 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
23990 macro.
23991 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
23992 htm-no-suspend.
23993
015c6dc2
JM
239942017-11-17 Joseph Myers <joseph@codesourcery.com>
23995
f58e5f48
JM
23996 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
23997 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
23998 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
23999 (ceill): Define using libm_alias_ldouble.
24000 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24001 <libm-alias-ldouble.h>.
24002 (copysignl): Define using libm_alias_ldouble.
24003 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24004 (fabsl): Define using libm_alias_ldouble.
24005 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24006 (floorl): Define using libm_alias_ldouble.
24007 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24008 (fmaxl): Define using libm_alias_ldouble.
24009 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24010 (fminl): Define using libm_alias_ldouble.
24011 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24012 (llrintl): Define using libm_alias_ldouble.
24013 (lrintl): Likewise.
24014 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24015 <libm-alias-ldouble.h>.
24016 (nearbyintl): Define using libm_alias_ldouble.
24017 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24018 (truncl): Define using libm_alias_ldouble.
24019 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24020 <libm-alias-ldouble.h>.
24021 (lrintl): Define using libm_alias_ldouble.
24022
2ce30701
JM
24023 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24024 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24025 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24026 (asinhl): Define using libm_alias_ldouble.
24027 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24028 (atanl): Define using libm_alias_ldouble.
24029 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24030 (cbrtl): Define using libm_alias_ldouble.
24031 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24032 (ceill): Define using libm_alias_ldouble.
24033 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24034 (copysignl): Define using libm_alias_ldouble.
24035 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24036 (fabsl): Define using libm_alias_ldouble.
24037 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24038 (floorl): Define using libm_alias_ldouble.
24039 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24040 (fmaxl): Define using libm_alias_ldouble.
24041 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24042 (fminl): Define using libm_alias_ldouble.
24043 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24044 (frexpl): Define using libm_alias_ldouble.
24045 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24046 (llrintl): Define using libm_alias_ldouble.
24047 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24048 (logbl): Define using libm_alias_ldouble.
24049 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24050 (lrintl): Define using libm_alias_ldouble.
24051 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24052 (nearbyintl): Define using libm_alias_ldouble.
24053 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24054 (nextafterl): Define using libm_alias_ldouble.
24055 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24056 (remquol): Define using libm_alias_ldouble.
24057 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24058 (rintl): Define using libm_alias_ldouble.
24059 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24060 (truncl): Define using libm_alias_ldouble.
24061 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24062 (fmaxl): Define using libm_alias_ldouble.
24063 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24064 (fminl): Define using libm_alias_ldouble.
24065
015c6dc2
JM
24066 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24067 to C syntax instead of availability and properties of types.
24068 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24069 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24070 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24071 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24072 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24073 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24074
ce003e5d
FW
240752017-11-17 Florian Weimer <fweimer@redhat.com>
24076
24077 support_become_root: Enable file creation in namespaces.
24078 * support/support_become_root.c (setup_mapping): New function.
24079 (support_become_root): Call it.
24080
e7df6c5c
JM
240812017-11-17 Joseph Myers <joseph@codesourcery.com>
24082
24083 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24084 macro.
24085
58a813bf
AZ
240862017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24087
24088 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24089 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24090
f97773d1
JM
240912017-11-16 Joseph Myers <joseph@codesourcery.com>
24092
6a6aa1f3
JM
24093 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24094
f97773d1
JM
24095 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24096 version to 4.14.
24097
a306c790
SP
240982017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24099
7b0fb870
SP
24100 * INSTALL: Fix botched up regeneration.
24101
24102 * NEWS: Update sourceare link to https.
a306c790
SP
24103 * configure.ac: Likewise.
24104 * crypt/md5test-giant.c: Likewise.
24105 * dlfcn/bug-atexit1.c: Likewise.
24106 * dlfcn/bug-atexit2.c: Likewise.
24107 * localedata/README: Likewise.
24108 * malloc/tst-mallocfork.c: Likewise.
24109 * manual/install.texi: Likewise.
24110 * nptl/tst-pthread-getattr.c: Likewise.
24111 * stdio-common/tst-fgets.c: Likewise.
24112 * stdio-common/tst-fwrite.c: Likewise.
24113 * sunrpc/Makefile: Likewise.
24114 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24115 * wcsmbs/tst-mbrtowc2.c: Likewise.
7b0fb870
SP
24116 * configure: Regenerate.
24117 * INSTALL: Regenerate.
a306c790 24118
7532837d
MS
241192017-11-15 Martin Sebor <msebor@redhat.com>
24120
24121 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24122 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24123 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24124
495a56fd
LS
241252017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24126
d9611e30
LS
24127 [BZ #22145]
24128 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24129 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24130
a09dfc19
LS
24131 [BZ #22145]
24132 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24133 Defer is_pty check until end of the function.
24134 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24135
2fbce9c2
LS
24136 [BZ #22145]
24137 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24138 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24139 (ttyname): Likewise.
24140 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24141 (__ttyname_r): Likewise.
24142
d10d6cab
LS
24143 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24144 int to bool.
24145
9b5a8750
LS
24146 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24147
495a56fd
LS
24148 * manual/terminal.texi (Is It a Terminal):
24149 Mention ENODEV for ttyname and ttyname_r.
24150
fa680dc6
JM
241512017-11-15 Joseph Myers <joseph@codesourcery.com>
24152
78cde19f
JM
24153 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24154 constant and macro.
24155
fa680dc6
JM
24156 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24157 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24158 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24159 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24160 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24161 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24162
ad4f43a2
AZ
241632017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24164
1ba1d8a4
AZ
24165 * signal/sigrelse.c (sigrelse): Optimize implementation.
24166
ad4f43a2
AZ
24167 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24168 (__sigpause): Rely on __sigsuspend to implement single thread
24169 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24170
d0212d42
JM
241712017-11-15 Joseph Myers <joseph@codesourcery.com>
24172
24173 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24174 kernel version to 4.14.
24175
2180fee1
SE
241762017-11-15 Steve Ellcey <sellcey@cavium.com>
24177
24178 [BZ #22442]
24179 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24180 Check if ifname is too long.
24181
cad7ca39
LS
241822017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24183
24184 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24185
58c9f659
MF
241862017-11-15 Mike FABIAN <mfabian@redhat.com>
24187
24188 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24189 was accidentally lost.
24190
0fa87c01
MF
241912017-11-15 Mike FABIAN <mfabian@redhat.com>
24192
24193 * localedata/locales/az_IR: Add standard copyright header.
24194
34eb4157
FW
241952017-11-15 Florian Weimer <fweimer@redhat.com>
24196
24197 [BZ #22439]
24198 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24199 not just the top one. Output a new "subheaps" statistic.
24200
7a9368a1
FW
242012017-11-15 Florian Weimer <fweimer@redhat.com>
24202
24203 [BZ #22408]
24204 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24205 under the per-arena lock.
24206 * malloc/Makefile (tests): Add tst-malloc_info.
24207 (tst-malloc_info): Link with libpthread.
24208 * malloc/tst-malloc_info.c: New file.
24209
be3a79a3
JM
242102017-11-15 Joseph Myers <joseph@codesourcery.com>
24211
24212 [BZ #21660]
24213 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24214 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24215 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24216 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24217 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24218 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24219 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24220 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24221 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24222 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24223 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24224 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24225 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24226 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24227 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24228 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24229 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24230 (__floating_type): Likewise.
24231 (__real_integer_type): Likewise.
24232 (__complex_integer_type): Likewise.
24233 (__expr_is_real): Likewise.
24234 (__tgmath_real_type_sub): Likewise.
24235 (__tgmath_real_type): Likewise.
24236 (__tgmath_complex_type_sub): Likewise.
24237 (__tgmath_complex_type): Likewise.
24238 (__TGMATH_F128): Likewise.
24239 (__TGMATH_CF128): Likewise.
24240 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24241 new macros.
24242 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24243 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24244 Likewise.
24245 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24246 Likewise.
24247 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24248 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24249 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24250 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24251 Likewise.
24252 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24253 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24254 Likewise.
24255 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24256 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24257 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24258 Likewise.
24259 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24260 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24261 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24262 (cimag): Likewise.
24263 (creal): Likewise.
24264
ec72135e
JM
242652017-11-14 Joseph Myers <joseph@codesourcery.com>
24266
2e64ec9c
JM
24267 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24268 for stpncpy calls for GCC 8.
24269 (test_strncat): Disable -Wstringop-truncation warning for strncat
24270 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24271 strncat call for GCC 7.
24272 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24273 calls for GCC 8.
24274 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24275 trailing NUL.
24276
ec72135e
JM
24277 * string/bug-strncat1.c: Include <libc-diag.h>.
24278 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24279
363e4519 242802017-11-13 Claude Paroz <claude@2xlibre.net>
a259f5d3
CP
24281
24282 [BZ #22387]
24283 * localedata/locales/aa_DJ: Improved readibility by replacing
24284 <Uxxxx> sequences in the ASCII printable range by their ASCII
24285 character equivalents.
24286 * localedata/locales/aa_ER: Likewise.
24287 * localedata/locales/aa_ER@saaho: Likewise.
24288 * localedata/locales/aa_ET: Likewise.
24289 * localedata/locales/af_ZA: Likewise.
24290 * localedata/locales/agr_PE: Likewise.
24291 * localedata/locales/ak_GH: Likewise.
24292 * localedata/locales/am_ET: Likewise.
24293 * localedata/locales/anp_IN: Likewise.
24294 * localedata/locales/ar_AE: Likewise.
24295 * localedata/locales/ar_BH: Likewise.
24296 * localedata/locales/ar_DZ: Likewise.
24297 * localedata/locales/ar_EG: Likewise.
24298 * localedata/locales/ar_IN: Likewise.
24299 * localedata/locales/ar_IQ: Likewise.
24300 * localedata/locales/ar_JO: Likewise.
24301 * localedata/locales/ar_KW: Likewise.
24302 * localedata/locales/ar_LB: Likewise.
24303 * localedata/locales/ar_LY: Likewise.
24304 * localedata/locales/ar_MA: Likewise.
24305 * localedata/locales/ar_OM: Likewise.
24306 * localedata/locales/ar_QA: Likewise.
24307 * localedata/locales/ar_SA: Likewise.
24308 * localedata/locales/ar_SD: Likewise.
24309 * localedata/locales/ar_SS: Likewise.
24310 * localedata/locales/ar_SY: Likewise.
24311 * localedata/locales/ar_TN: Likewise.
24312 * localedata/locales/ar_YE: Likewise.
24313 * localedata/locales/as_IN: Likewise.
24314 * localedata/locales/ast_ES: Likewise.
24315 * localedata/locales/ayc_PE: Likewise.
24316 * localedata/locales/az_AZ: Likewise.
24317 * localedata/locales/az_IR: Likewise.
24318 * localedata/locales/be_BY: Likewise.
24319 * localedata/locales/be_BY@latin: Likewise.
24320 * localedata/locales/bem_ZM: Likewise.
24321 * localedata/locales/ber_DZ: Likewise.
24322 * localedata/locales/ber_MA: Likewise.
24323 * localedata/locales/bg_BG: Likewise.
24324 * localedata/locales/bhb_IN: Likewise.
24325 * localedata/locales/bho_IN: Likewise.
24326 * localedata/locales/bi_VU: Likewise.
24327 * localedata/locales/bn_BD: Likewise.
24328 * localedata/locales/bn_IN: Likewise.
24329 * localedata/locales/bo_CN: Likewise.
24330 * localedata/locales/bo_IN: Likewise.
24331 * localedata/locales/br_FR: Likewise.
24332 * localedata/locales/brx_IN: Likewise.
24333 * localedata/locales/bs_BA: Likewise.
24334 * localedata/locales/byn_ER: Likewise.
24335 * localedata/locales/ca_AD: Likewise.
24336 * localedata/locales/ca_ES: Likewise.
24337 * localedata/locales/ca_FR: Likewise.
24338 * localedata/locales/ca_IT: Likewise.
24339 * localedata/locales/ce_RU: Likewise.
24340 * localedata/locales/chr_US: Likewise.
24341 * localedata/locales/cmn_TW: Likewise.
24342 * localedata/locales/crh_UA: Likewise.
24343 * localedata/locales/cs_CZ: Likewise.
24344 * localedata/locales/csb_PL: Likewise.
24345 * localedata/locales/cv_RU: Likewise.
24346 * localedata/locales/cy_GB: Likewise.
24347 * localedata/locales/da_DK: Likewise.
24348 * localedata/locales/de_AT: Likewise.
24349 * localedata/locales/de_BE: Likewise.
24350 * localedata/locales/de_CH: Likewise.
24351 * localedata/locales/de_DE: Likewise.
24352 * localedata/locales/de_IT: Likewise.
24353 * localedata/locales/de_LI: Likewise.
24354 * localedata/locales/de_LU: Likewise.
24355 * localedata/locales/doi_IN: Likewise.
24356 * localedata/locales/dv_MV: Likewise.
24357 * localedata/locales/dz_BT: Likewise.
24358 * localedata/locales/el_CY: Likewise.
24359 * localedata/locales/el_GR: Likewise.
24360 * localedata/locales/en_AG: Likewise.
24361 * localedata/locales/en_AU: Likewise.
24362 * localedata/locales/en_BW: Likewise.
24363 * localedata/locales/en_CA: Likewise.
24364 * localedata/locales/en_DK: Likewise.
24365 * localedata/locales/en_GB: Likewise.
24366 * localedata/locales/en_HK: Likewise.
24367 * localedata/locales/en_IE: Likewise.
24368 * localedata/locales/en_IL: Likewise.
24369 * localedata/locales/en_IN: Likewise.
24370 * localedata/locales/en_NG: Likewise.
24371 * localedata/locales/en_NZ: Likewise.
24372 * localedata/locales/en_PH: Likewise.
24373 * localedata/locales/en_SG: Likewise.
24374 * localedata/locales/en_US: Likewise.
24375 * localedata/locales/en_ZA: Likewise.
24376 * localedata/locales/en_ZM: Likewise.
24377 * localedata/locales/en_ZW: Likewise.
24378 * localedata/locales/eo: Likewise.
24379 * localedata/locales/es_AR: Likewise.
24380 * localedata/locales/es_BO: Likewise.
24381 * localedata/locales/es_CL: Likewise.
24382 * localedata/locales/es_CO: Likewise.
24383 * localedata/locales/es_CR: Likewise.
24384 * localedata/locales/es_CU: Likewise.
24385 * localedata/locales/es_DO: Likewise.
24386 * localedata/locales/es_EC: Likewise.
24387 * localedata/locales/es_ES: Likewise.
24388 * localedata/locales/es_GT: Likewise.
24389 * localedata/locales/es_HN: Likewise.
24390 * localedata/locales/es_MX: Likewise.
24391 * localedata/locales/es_NI: Likewise.
24392 * localedata/locales/es_PA: Likewise.
24393 * localedata/locales/es_PE: Likewise.
24394 * localedata/locales/es_PR: Likewise.
24395 * localedata/locales/es_PY: Likewise.
24396 * localedata/locales/es_SV: Likewise.
24397 * localedata/locales/es_US: Likewise.
24398 * localedata/locales/es_UY: Likewise.
24399 * localedata/locales/es_VE: Likewise.
24400 * localedata/locales/et_EE: Likewise.
24401 * localedata/locales/eu_ES: Likewise.
24402 * localedata/locales/eu_ES@euro: Likewise.
24403 * localedata/locales/fa_IR: Likewise.
24404 * localedata/locales/ff_SN: Likewise.
24405 * localedata/locales/fi_FI: Likewise.
24406 * localedata/locales/fil_PH: Likewise.
24407 * localedata/locales/fo_FO: Likewise.
24408 * localedata/locales/fr_BE: Likewise.
24409 * localedata/locales/fr_CA: Likewise.
24410 * localedata/locales/fr_CH: Likewise.
24411 * localedata/locales/fr_FR: Likewise.
24412 * localedata/locales/fr_LU: Likewise.
24413 * localedata/locales/fur_IT: Likewise.
24414 * localedata/locales/fy_DE: Likewise.
24415 * localedata/locales/fy_NL: Likewise.
24416 * localedata/locales/ga_IE: Likewise.
24417 * localedata/locales/gd_GB: Likewise.
24418 * localedata/locales/gez_ER: Likewise.
24419 * localedata/locales/gez_ET: Likewise.
24420 * localedata/locales/gl_ES: Likewise.
24421 * localedata/locales/gu_IN: Likewise.
24422 * localedata/locales/gv_GB: Likewise.
24423 * localedata/locales/ha_NG: Likewise.
24424 * localedata/locales/hak_TW: Likewise.
24425 * localedata/locales/he_IL: Likewise.
24426 * localedata/locales/hi_IN: Likewise.
24427 * localedata/locales/hif_FJ: Likewise.
24428 * localedata/locales/hne_IN: Likewise.
24429 * localedata/locales/hr_HR: Likewise.
24430 * localedata/locales/hsb_DE: Likewise.
24431 * localedata/locales/ht_HT: Likewise.
24432 * localedata/locales/hu_HU: Likewise.
24433 * localedata/locales/hy_AM: Likewise.
24434 * localedata/locales/i18n: Likewise.
24435 * localedata/locales/ia_FR: Likewise.
24436 * localedata/locales/id_ID: Likewise.
24437 * localedata/locales/ig_NG: Likewise.
24438 * localedata/locales/ik_CA: Likewise.
24439 * localedata/locales/is_IS: Likewise.
24440 * localedata/locales/it_CH: Likewise.
24441 * localedata/locales/it_IT: Likewise.
24442 * localedata/locales/iu_CA: Likewise.
24443 * localedata/locales/ja_JP: Likewise.
24444 * localedata/locales/ka_GE: Likewise.
24445 * localedata/locales/kk_KZ: Likewise.
24446 * localedata/locales/kl_GL: Likewise.
24447 * localedata/locales/kn_IN: Likewise.
24448 * localedata/locales/ko_KR: Likewise.
24449 * localedata/locales/kok_IN: Likewise.
24450 * localedata/locales/ks_IN: Likewise.
24451 * localedata/locales/ks_IN@devanagari: Likewise.
24452 * localedata/locales/ku_TR: Likewise.
24453 * localedata/locales/kw_GB: Likewise.
24454 * localedata/locales/ky_KG: Likewise.
24455 * localedata/locales/lb_LU: Likewise.
24456 * localedata/locales/lg_UG: Likewise.
24457 * localedata/locales/li_BE: Likewise.
24458 * localedata/locales/li_NL: Likewise.
24459 * localedata/locales/lij_IT: Likewise.
24460 * localedata/locales/ln_CD: Likewise.
24461 * localedata/locales/lo_LA: Likewise.
24462 * localedata/locales/lt_LT: Likewise.
24463 * localedata/locales/lv_LV: Likewise.
24464 * localedata/locales/lzh_TW: Likewise.
24465 * localedata/locales/mag_IN: Likewise.
24466 * localedata/locales/mai_IN: Likewise.
24467 * localedata/locales/mg_MG: Likewise.
24468 * localedata/locales/mhr_RU: Likewise.
24469 * localedata/locales/mi_NZ: Likewise.
24470 * localedata/locales/mk_MK: Likewise.
24471 * localedata/locales/ml_IN: Likewise.
24472 * localedata/locales/mn_MN: Likewise.
24473 * localedata/locales/mni_IN: Likewise.
24474 * localedata/locales/mr_IN: Likewise.
24475 * localedata/locales/ms_MY: Likewise.
24476 * localedata/locales/mt_MT: Likewise.
24477 * localedata/locales/my_MM: Likewise.
24478 * localedata/locales/nan_TW: Likewise.
24479 * localedata/locales/nan_TW@latin: Likewise.
24480 * localedata/locales/nb_NO: Likewise.
24481 * localedata/locales/nds_DE: Likewise.
24482 * localedata/locales/nds_NL: Likewise.
24483 * localedata/locales/ne_NP: Likewise.
24484 * localedata/locales/nhn_MX: Likewise.
24485 * localedata/locales/niu_NU: Likewise.
24486 * localedata/locales/niu_NZ: Likewise.
24487 * localedata/locales/nl_AW: Likewise.
24488 * localedata/locales/nl_BE: Likewise.
24489 * localedata/locales/nl_NL: Likewise.
24490 * localedata/locales/nn_NO: Likewise.
24491 * localedata/locales/nr_ZA: Likewise.
24492 * localedata/locales/nso_ZA: Likewise.
24493 * localedata/locales/oc_FR: Likewise.
24494 * localedata/locales/om_ET: Likewise.
24495 * localedata/locales/om_KE: Likewise.
24496 * localedata/locales/or_IN: Likewise.
24497 * localedata/locales/os_RU: Likewise.
24498 * localedata/locales/pa_IN: Likewise.
24499 * localedata/locales/pa_PK: Likewise.
24500 * localedata/locales/pap_AW: Likewise.
24501 * localedata/locales/pap_CW: Likewise.
24502 * localedata/locales/pl_PL: Likewise.
24503 * localedata/locales/ps_AF: Likewise.
24504 * localedata/locales/pt_BR: Likewise.
24505 * localedata/locales/pt_PT: Likewise.
24506 * localedata/locales/quz_PE: Likewise.
24507 * localedata/locales/raj_IN: Likewise.
24508 * localedata/locales/ro_RO: Likewise.
24509 * localedata/locales/ru_RU: Likewise.
24510 * localedata/locales/ru_UA: Likewise.
24511 * localedata/locales/rw_RW: Likewise.
24512 * localedata/locales/sa_IN: Likewise.
24513 * localedata/locales/sat_IN: Likewise.
24514 * localedata/locales/sc_IT: Likewise.
24515 * localedata/locales/sd_IN: Likewise.
24516 * localedata/locales/sd_IN@devanagari: Likewise.
24517 * localedata/locales/se_NO: Likewise.
24518 * localedata/locales/sgs_LT: Likewise.
24519 * localedata/locales/shs_CA: Likewise.
24520 * localedata/locales/si_LK: Likewise.
24521 * localedata/locales/sid_ET: Likewise.
24522 * localedata/locales/sk_SK: Likewise.
24523 * localedata/locales/sl_SI: Likewise.
24524 * localedata/locales/sm_WS: Likewise.
24525 * localedata/locales/so_DJ: Likewise.
24526 * localedata/locales/so_ET: Likewise.
24527 * localedata/locales/so_KE: Likewise.
24528 * localedata/locales/so_SO: Likewise.
24529 * localedata/locales/sq_AL: Likewise.
24530 * localedata/locales/sq_MK: Likewise.
24531 * localedata/locales/sr_ME: Likewise.
24532 * localedata/locales/sr_RS: Likewise.
24533 * localedata/locales/sr_RS@latin: Likewise.
24534 * localedata/locales/ss_ZA: Likewise.
24535 * localedata/locales/st_ZA: Likewise.
24536 * localedata/locales/sv_FI: Likewise.
24537 * localedata/locales/sv_SE: Likewise.
24538 * localedata/locales/sw_KE: Likewise.
24539 * localedata/locales/sw_TZ: Likewise.
24540 * localedata/locales/szl_PL: Likewise.
24541 * localedata/locales/ta_IN: Likewise.
24542 * localedata/locales/ta_LK: Likewise.
24543 * localedata/locales/tcy_IN: Likewise.
24544 * localedata/locales/te_IN: Likewise.
24545 * localedata/locales/tg_TJ: Likewise.
24546 * localedata/locales/th_TH: Likewise.
24547 * localedata/locales/the_NP: Likewise.
24548 * localedata/locales/ti_ER: Likewise.
24549 * localedata/locales/ti_ET: Likewise.
24550 * localedata/locales/tig_ER: Likewise.
24551 * localedata/locales/tk_TM: Likewise.
24552 * localedata/locales/tl_PH: Likewise.
24553 * localedata/locales/tn_ZA: Likewise.
24554 * localedata/locales/to_TO: Likewise.
24555 * localedata/locales/tpi_PG: Likewise.
24556 * localedata/locales/tr_CY: Likewise.
24557 * localedata/locales/tr_TR: Likewise.
24558 * localedata/locales/ts_ZA: Likewise.
24559 * localedata/locales/tt_RU: Likewise.
24560 * localedata/locales/tt_RU@iqtelif: Likewise.
24561 * localedata/locales/ug_CN: Likewise.
24562 * localedata/locales/uk_UA: Likewise.
24563 * localedata/locales/unm_US: Likewise.
24564 * localedata/locales/ur_IN: Likewise.
24565 * localedata/locales/ur_PK: Likewise.
24566 * localedata/locales/uz_UZ: Likewise.
24567 * localedata/locales/uz_UZ@cyrillic: Likewise.
24568 * localedata/locales/ve_ZA: Likewise.
24569 * localedata/locales/vi_VN: Likewise.
24570 * localedata/locales/wa_BE: Likewise.
24571 * localedata/locales/wae_CH: Likewise.
24572 * localedata/locales/wal_ET: Likewise.
24573 * localedata/locales/wo_SN: Likewise.
24574 * localedata/locales/xh_ZA: Likewise.
24575 * localedata/locales/yi_US: Likewise.
24576 * localedata/locales/yo_NG: Likewise.
24577 * localedata/locales/yue_HK: Likewise.
24578 * localedata/locales/yuw_PG: Likewise.
24579 * localedata/locales/zh_CN: Likewise.
24580 * localedata/locales/zh_HK: Likewise.
24581 * localedata/locales/zh_SG: Likewise.
24582 * localedata/locales/zh_TW: Likewise.
24583 * localedata/locales/zu_ZA: Likewise.
24584
cae87e64
FW
245852017-11-13 Florian Weimer <fweimer@redhat.com>
24586
24587 * support/next_to_fault.h, support/next_to_fault.c: New files.
24588 * support/Makefile (libsupport-routines): Add next_to_fault.
24589 * resolv/tst-inet_pton.c (struct next_to_fault)
24590 (next_to_fault_allocate, next_to_fault_free): Remove.
24591 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24592
4a306ef1
L
245932017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24594
24595 * elf/dl-support.c: Include <dl-procruntime.c>.
24596 * include/link.h: Include <link_map.h>.
24597 * sysdeps/generic/dl-procruntime.c: New file.
24598 * sysdeps/generic/link_map.h: Likewise.
24599 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24600 the writable ld.so namespace.
24601
e69897bf
PE
246022017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24603
24604 timezone: pacify GCC -Wstringop-truncation
24605 Problem reported by Martin Sebor in:
24606 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24607 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24608
1ffe1ccb
FW
246092017-11-12 Florian Weimer <fweimer@redhat.com>
24610
eceed671
FW
24611 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24612 tst-xreadlink.
24613 (tests): Add tst-xreadlink.
1ffe1ccb
FW
24614 * support/support.h (xstrndup): Declare.
24615 * support/xunistd.h (xunlink, xreadlink): Declare.
24616 * support/temp_file.h (support_create_temp_directory): Declare.
24617 * support/temp_file.c (support_create_temp_directory): New function.
24618 * support/support_chroot.c (support_chroot_create): Use it.
24619 * support/xreadlink.c: New file.
24620 * support/xstrndup.c: Likewise.
24621 * support/xunlink.c: Likewise.
24622 * support/tst-xreadlink.c: Likewise.
24623
456b40a9
JDA
246242017-11-11 John David Anglin <danglin@gcc.gnu.org>
24625
24626 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24627
c0a25aa9
FW
246282017-11-11 Florian Weimer <fweimer@redhat.com>
24629
24630 [BZ #22409]
24631 [BZ #22412]
24632 * resolv/res_comp.c (printable_string, binary_hnok)
24633 (binary_leading_dash): New functions.
24634 (res_hnok): Reimplement using these functions and ns_name_pton.
24635 (res_ownok): Likewise.
24636 (res_mailok): Reimplement using printable_string, ns_name_pton and
24637 binary_hnok.
24638 (res_dnok): Reimplement using printable_string and ns_name_pton.
24639 * resolv/tst-res_hnok.c (tests): Add additional tests.
24640 (LETTERDIGITS, PRINTABLE): Define.
24641 (do_test): Adjust one_char results.
24642
9e0ad304
FW
246432017-11-11 Florian Weimer <fweimer@redhat.com>
24644
24645 [BZ #22413]
24646 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24647 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24648
e2a9fca8
FW
246492017-11-11 Florian Weimer <fweimer@redhat.com>
24650
24651 * resolv/tst-ns_name_pton.c: New file.
24652 * resolv/Makefile (tests): Add tst-ns_name_pton.
24653 (tst-ns_name_pton): Link against libresolv.
24654
5c1a6923
FW
246552017-11-11 Florian Weimer <fweimer@redhat.com>
24656
24657 * resolv/tst-res_hnok.c: New file.
24658 * resolv/Makefile (tests): Add tst-res_hnok.
24659 (tst-res_hnok): Link against libresolv.
24660
a19c0a1d
FW
246612017-11-11 Florian Weimer <fweimer@redhat.com>
24662
24663 * resolv/tst-resolv-network.c: Use test framework instead explicit
24664 main function.
24665
8cb5295d
L
246662017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24667
24668 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24669 <jmp_buf-macros.h>.
24670 [!_ISOMAC] (STR_HELPER): New.
24671 [!_ISOMAC] (STR): Likewise.
24672 [!_ISOMAC] (TEST_SIZE): Likewise.
24673 [!_ISOMAC] (TEST_ALIGN): Likewise.
24674 [!_ISOMAC] (TEST_OFFSET): Likewise.
24675 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24676 field offsets of jmp_buf as well as sigjmp_buf.
24677 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24678 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24679 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24680 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24681 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24682 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24683 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24684 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24685 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24686 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24687 Likewise.
24688 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24689 Likewise.
24690 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24692 Likewise.
24693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24694 Likewise.
24695 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24696 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24697 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24698 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24699 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24700 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24701 Likewise.
24702 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24703 Likewise.
24704 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24705 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24706 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24707
58c4a161
JM
247082017-11-07 Joseph Myers <joseph@codesourcery.com>
24709
3683b423
JM
24710 * include/float.h
24711 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24712 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24713 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24714 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24715 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24716 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24717 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24718 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24719 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24720 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24721 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24722 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24723 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24724 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24725 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24726 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24727 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24728 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24729 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24730 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24731 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24732 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24733 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24734 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24735 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24736 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24737 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24738 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24739 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24740 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24741 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24742 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24743 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24744 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24745 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24746 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24747 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24748 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24749 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24750 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24751 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24752 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24753 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24754 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24755 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24756 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24757 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24758 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24759 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24760 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24761 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24762 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24763 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24764 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24765 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24766 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24767 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24768 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24769 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24770 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24771 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24772 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24774 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24776 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24778 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24779 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24780 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24781 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24782 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24783 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24784 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24785 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24786 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24787 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24788 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24789 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24790 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24791 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24792 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24793 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24794 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24795 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24796 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24797 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24798 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24799
58c4a161
JM
24800 * stdlib/tst-strtod.h (F16): New macro.
24801 (F32): Likewise.
24802 (F64): Likewise.
24803 (F32X): Likewise.
24804 (F64X): Likewise.
24805 (F128X): Likewise.
24806 (IF_FLOAT16): Likewise.
24807 (IF_FLOAT32): Likewise.
24808 (IF_FLOAT64): Likewise.
24809 (IF_FLOAT32X): Likewise.
24810 (IF_FLOAT64X): Likewise.
24811 (IF_FLOAT128X): Likewise.
24812 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24813 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24814 (STRTOD_TEST_FOREACH): Likewise.
24815 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24816 (CHOOSE_f64): Likewise.
24817 (CHOOSE_f32x): Likewise.
24818 (CHOOSE_f64x): Likewise.
24819
feda96a1
AS
248202017-11-07 Andreas Schwab <schwab@suse.de>
24821
24822 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24823
1bd0cbb8
MF
248242017-11-07 Mike FABIAN <mfabian@redhat.com>
24825
24826 [BZ #22403]
24827 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24828 to be escaped.
24829 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24830 to be escaped.
24831
363e4519 248322017-11-07 Claude Paroz <claude@2xlibre.net>
d8301314
CP
24833
24834 [BZ #22403]
24835 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24836 to be escaped.
24837 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24838 to be escaped.
24839 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24840 to be escaped.
24841
dff91cd4
AZ
248422017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24843
06be6368
AZ
24844 [BZ #22298]
24845 * nptl/allocatestack.c (allocate_stack): Check if
24846 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24847 __PTHREAD_MUTEX_HAVE_PREV is defined.
24848 * nptl/descr.h (pthread): Likewise.
24849 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24850 Likewise.
24851 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24852 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24853 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24854 * sysdeps/nptl/bits/thread-shared-types.h
24855 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24856 defines.
24857 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24858 of __WORDSIZE for internal layout.
24859 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24860 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24861 instead of __WORDSIZE whether to use an union for __spins and __list
24862 fields.
24863 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24864 case.
24865 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24866 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24867 defines.
24868 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24869 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24870 Likewise.
24871 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24872 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24873 Likewise.
24874 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24875 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24876 Likewise.
24877 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24878 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24879 Likewise.
24880 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24881 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24882 Likewise.
24883 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24884 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24885 Likewise.
24886 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24887 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24888 Likewise.
24889 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24890 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24891 Likewise.
24892 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24893 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24894 Likewise.
24895 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24896 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24897 Likewise.
24898 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24899 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24900 Likewise.
24901 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24902 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24903 Likewise.
24904 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24905 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24906 Likewise.
24907 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24908 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24909 Likewise.
24910
72b3c6ee
AZ
24911 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24912 New macros.
24913 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24914 checks for expected input type size.
24915 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24916 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24917 Likewise.
24918 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24919 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24920 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24921 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24922 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24923 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24924 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24925 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24926 superflous runtime assert check.
24927 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24928 Likewise.
24929 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24930 Likewise.
24931 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24932 Likewise.
24933 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24934 Likewise.
24935 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24936 Likewise.
24937 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
24938 Likewise.
24939 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
24940 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
24941 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
24942 Likewise.
24943 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
24944 Likewise.
24945 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
24946 Likewise.
24947 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
24948 Likewise.
24949 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
24950 Likewise.
24951 * nptl/pthread_attr_setinheritsched.c
24952 (__pthread_attr_setinheritsched): Likewise.
24953 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
24954 Likewise.
24955 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
24956 Likewise.
24957 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
24958 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
24959 __old_pthread_attr_setstack): Likewise.
24960 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
24961 Likewise.
24962 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
24963 Likewise.
24964 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
24965 Likewise.
24966 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
24967 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
24968 Likewise.
24969 * nptl/tst-typesizes.c: Remove file.
24970
dff91cd4
AZ
24971 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
24972 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
24973 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
24974 checks for internal pthread_mutex_t offsets.
24975 * sysdeps/aarch64/nptl/pthread-offsets.h
24976 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
24977 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
24978 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
24979 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
24980 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
24981 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
24982 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
24983 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
24984 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
24985 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
24986 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
24987 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
24988 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
24989 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
24990 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
24991 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
24992 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
24993 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
24994
b7fc95f8
FW
249952017-11-07 Florian Weimer <fweimer@redhat.com>
24996
24997 * bits/mman-linux.h: Move ...
24998 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
24999 comment.
25000 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25001 outdated comment.
25002
6b860364
RS
250032017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25004
25005 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25006 Redefine STRNLEN as __strnlen_power8.
25007
802c1f16
AZ
250082017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25009
d83da3a4
AZ
25010 * signal/sighold.c (sighold): Optimize implementation.
25011
6a4235f1
AZ
25012 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25013 __NR_rt_sigqueueinfo.
25014
8b0e795a
AZ
25015 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25016 __sigtimedwait.
25017 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25018 assume __NR_rt_sigtimedwait.
25019 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25020 and add LIBC_CANCEL_HANDLED for cancellation marking.
25021 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25022
a1a638dd
AZ
25023 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25024 (sysdeps_routines): Add memchr_noneon.
25025 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25026 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25027 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25028 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25029 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25030 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25031 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25032
802c1f16
AZ
25033 * sysdeps/arm/arm-ifunc.h: New file.
25034 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25035 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25036 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25037 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25038 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25039 (__memcpy_neon): Avoid create hidden alias.
25040 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25041 (__memcpy_vfp): Likewise.
25042 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25043 (sysdep_routines): Add memcpy_arm.
25044 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25045
abcb584d
L
250462017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25047
25048 [BZ #22362]
25049 * Makerules (make-link-multidir): New.
25050 * config.make.in (multidir): New.
25051 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25052 * configure: Regenerated.
25053 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25054 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25055 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25056 New target.
25057
4e2dff67
JM
250582017-11-06 Joseph Myers <joseph@codesourcery.com>
25059
25060 [BZ #22402]
25061 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25062 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25063
a1c7cd3c
MF
250642017-11-04 Mike FABIAN <mfabian@redhat.com>
25065
25066 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25067 to be escaped.
25068
b9af29c0
FW
250692017-11-04 Florian Weimer <fweimer@redhat.com>
25070
25071 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25072
4ca70e1a
JM
250732017-11-03 Joseph Myers <joseph@codesourcery.com>
25074
25075 * math/math.h [__HAVE_DISTINCT_FLOAT16
25076 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25077 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25078 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25079 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25080 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25081 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25082 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25083 (__MATH_TG_F32): New macro.
25084 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25085 (__MATH_TG_F64X): Likewise.
25086 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25087 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25088
ba0e6668
DL
250892017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25090
25091 * po/de.po: Update translations.
25092 * po/ru.po: Likewise.
25093
bc18a6d3
FW
250942017-11-03 Florian Weimer <fweimer@redhat.com>
25095
25096 * manual/filesys.texi (Hard Links): Document linkat.
25097
97255170
JM
250982017-11-03 Joseph Myers <joseph@codesourcery.com>
25099
86ec4865
JM
25100 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25101 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25102 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25103 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25104 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25105 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25106 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25107 the same as _Float128.
25108 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25109 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25110 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25111
97255170
JM
25112 * stdlib/stdlib.h
25113 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25114 Declare.
25115 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25116 Likewise.
25117 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25118 Likewise.
25119 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25120 (strtof32x): Likewise.
25121 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25122 (strtof64x): Likewise.
25123 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25124 (strtof128x): Likewise.
25125 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25126 (strfromf16): Likewise.
25127 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25128 (strfromf32): Likewise.
25129 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25130 (strfromf64): Likewise.
25131 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25132 (strfromf32x): Likewise.
25133 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25134 (strfromf64x): Likewise.
25135 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25136 (strfromf128x): Likewise.
25137 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25138 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25139 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25140 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25141 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25142 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25143
6d58ce5e
RH
251442017-11-03 Richard Henderson <rth@twiddle.net>
25145
25146 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25147
659ca267
SN
251482017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25149
25150 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25151
94d2f0af
SN
251522017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25153
25154 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25155 DT_TLSDESC_GOT initialization.
25156 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25157 (_dl_tlsdesc_resolve_hold): Likewise.
25158 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25159 (_dl_tlsdesc_resolve_hold): Likewise.
25160 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25161 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25162
28e1ddf3
SN
251632017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25164
25165 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25166
0ca3d1d6
SN
251672017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25168
25169 [BZ #18572]
25170 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25171 non-lazily for R_ARM_TLS_DESC.
25172
2c1d4e5f
SN
251732017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25174
25175 [BZ #17078]
25176 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25177 R_ARM_TLS_DESC case.
25178 (elf_machine_lazy_rel): Remove the prelink check.
25179
91c5a366
SN
251802017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25181
25182 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25183 DT_TLSDESC_GOT initialization.
25184 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25185 (_dl_tlsdesc_resolve_rela): Likewise.
25186 (_dl_tlsdesc_resolve_hold): Likewise.
25187 (_dl_tlsdesc_undefweak): Remove ldar.
25188 (_dl_tlsdesc_dynamic): Likewise.
25189 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25190 (_dl_tlsdesc_resolve_rela): Likewise.
25191 (_dl_tlsdesc_resolve_hold): Likewise.
25192 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25193 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25194 (_dl_tlsdesc_resolve_rela): Likewise.
25195 (_dl_tlsdesc_resolve_hold): Likewise.
25196
b7cf203b
SN
251972017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25198
25199 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25200 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25201
0cc5b022
SN
252022017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25203
25204 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25205 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25206
43ddff2e
JM
252072017-11-02 Joseph Myers <joseph@codesourcery.com>
25208
25209 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25210 Declare.
25211 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25212 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25213 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25214 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25215 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25216 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25217 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25218 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25219 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25220 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25221 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25222
5baac970
MF
252232017-11-02 Mike FABIAN <mfabian@redhat.com>
25224
25225 [BZ #22382]
25226 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25227 * localedata/locales/tpi_PG: Add standard header.
25228
ef11081f
FW
252292017-11-02 Florian Weimer <fweimer@redhat.com>
25230
25231 test-errno-linux: quotactl can fail with EPERM in containers.
25232 * sysdeps/unix/sysv/linux/test-errno-linux.c
25233 (LIST, LIST_FORWARD): New macros.
25234 (check_error_in_list): New function.
25235 (test_wrp_rv): Accept list of permitted error codes.
25236 (test_wrp_rv2): Remove.
25237 (test_wrp): Call test_wrp_rv with list of error codes.
25238 (test_wrp2): Accept list of error codes.
25239 (do_test): Adjust. Allow EPERM for quotactl.
25240
d10b132b
FW
252412017-11-02 Florian Weimer <fweimer@redhat.com>
25242
25243 * stdio-common/bug16.c (do_test): Use array_length.
25244 * stdio-common/errlist.c (_sys_nerr): Likewise.
25245 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25246 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25247 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25248 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25249 (do_test): Use array_length.
25250 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25251 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25252 * stdio-common/tst-printf-round.c (do_test): Likewise.
25253 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25254 (CHECK): Use array_length.
25255 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25256 * stdio-common/tstscanf.c (main): Likewise.
25257 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25258
c94a5688
FW
252592017-11-02 Florian Weimer <fweimer@redhat.com>
25260
25261 Add array_length and array_end macros.
25262 * include/array_length.h: New file.
25263
2fac6a6c
FW
252642017-11-02 Florian Weimer <fweimer@redhat.com>
25265
25266 [BZ #22332]
25267 * posix/tst-glob-tilde.c (do_noescape): New variable.
25268 (one_test): Process it.
25269 (do_test): Set do_noescape. Add unescaping test case.
25270
2f1b212e
JM
252712017-11-01 Joseph Myers <joseph@codesourcery.com>
25272
260fbd0a
JM
25273 * math/complex.h
25274 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25275 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25276 with appropriate macros defined and undefined.
25277 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25278 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25279 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25280 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25281 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25282 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25283 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25284 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25285 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25286 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25287
2f1b212e
JM
25288 * math/complex.h
25289 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25290 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25291 that for long double. Do not condition define and undefine of
25292 _Mdouble_complex_ on [__CFLOAT128].
25293
95b93c6e
L
252942017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25295
25296 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25297 of <sysdeps/generic/sysdep.h>.
25298 (ALIGNARG): Removed.
25299 (ASM_SIZE_DIRECTIVE): Likewise.
25300 (ENTRY): Likewise.
25301 (END): Likewise.
25302 (ENTRY_CHK): Likewise.
25303 (END_CHK): Likewise.
25304 (syscall_error): Likewise.
25305 (mcount): Likewise.
25306 (PSEUDO_END): Likewise.
25307 (L): Likewise.
25308 (atom_text_section): Likewise.
25309 * sysdeps/x86/sysdep.h: New file.
25310 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25311 of <sysdeps/generic/sysdep.h>.
25312 (ALIGNARG): Removed.
25313 (ASM_SIZE_DIRECTIVE): Likewise.
25314 (ENTRY): Likewise.
25315 (END): Likewise.
25316 (ENTRY_CHK): Likewise.
25317 (END_CHK): Likewise.
25318 (syscall_error): Likewise.
25319 (mcount): Likewise.
25320 (PSEUDO_END): Likewise.
25321 (L): Likewise.
25322 (atom_text_section): Likewise.
25323
1bb36539
RL
253242017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25325
25326 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25327 category of LC_CTYPE set to "i18n:2012".
25328 * localedata/locales/i18n_ctype: Regenerate.
25329
067f5d97 253302017-10-31 Yury Norov <ynorov@caviumnetworks.com>
e8681faa 25331
87bbc4cf
YN
25332 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25333 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25334 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25335 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25336
e8681faa
YN
25337 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25338 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25339 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25340 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25341
540af6e2
JM
253422017-10-31 Joseph Myers <joseph@codesourcery.com>
25343
43e66283
JM
25344 * math/complex.h
25345 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25346 New macro.
25347 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25348 Likewise.
25349 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25350 Likewise.
25351 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25352 (CMPLXF32X): Likewise.
25353 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25354 (CMPLXF64X): Likewise.
25355 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25356 (CMPLXF128X): Likewise.
25357
540af6e2
JM
25358 * math/math.h
25359 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25360 (__MATH_EVAL_FMT2): Define to add 0.0f.
25361
58af72b4
AM
253622017-10-31 Alan Modra <amodra@gmail.com>
25363
25364 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25365 include sysdep.h.
25366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25380 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25381 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25382 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25383 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25384 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25385 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25386 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25387 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25388 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25389 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25390 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25391 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25392 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25393 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25394 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25395 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25396 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25397 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25398 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25399 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25400 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25401 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25402 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25403 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25404 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25405 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25406 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25407 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25408 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25409 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25410 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25411 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25412 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25413 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25414 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25415 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25416 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25417 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25418 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25419 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25420 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25421 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25422 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25423 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25424 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25425 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25426 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25427 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25428 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25429 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25430 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25431 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25432 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25433 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25434 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25435
25436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25437 include sysdep.h and math_ldbl_opt.h.
25438
25439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25440 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25465
112f30b3
AM
254662017-10-31 Alan Modra <amodra@gmail.com>
25467
25468 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25469 string/strncase_l.c, not string/strncase.c.
25470 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25471 (libc_hidden_def): Redefine.
25472
e9e7eced
AM
254732017-10-31 Alan Modra <amodra@gmail.com>
25474
25475 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25476 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25477 (__strcasecmp): Don't define.
25478
f7b465cf
AM
254792017-10-31 Alan Modra <amodra@gmail.com>
25480
25481 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25482 IS_IN (libc).
25483 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25484 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25485 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25486
d46b09f9
AM
254872017-10-31 Alan Modra <amodra@gmail.com>
25488
25489 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25490 USE_AS_STPNCPY.
25491
e9b8e194
AM
254922017-10-31 Alan Modra <amodra@gmail.com>
25493
25494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25495 Redefine only when SHARED.
25496
eda162dd
JM
254972017-10-30 Joseph Myers <joseph@codesourcery.com>
25498
b61afe8c
JM
25499 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25500 Include <bits/math-finite.h> with appropriate macros defined and
25501 undefined.
25502 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25503 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25504 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25505 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25506 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25507
eda162dd
JM
25508 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25509 [!_Mlong_double_] (_Mlong_double_): Likewise.
25510 [!_Mfloat16_] (_Mfloat16_): Likewise.
25511 [!_Mfloat32_] (_Mfloat32_): Likewise.
25512 [!_Mfloat64_] (_Mfloat64_): Likewise.
25513 [!_Mfloat128_] (_Mfloat128_): Likewise.
25514 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25515 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25516 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25517 (_Mdouble_): Define without indirection through those macros.
25518 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25519 [!_Mfloat128_] (_Mfloat128_): Likewise.
25520 [_Mlong_double_] (_Mlong_double_): Likewise.
25521 (_Mdouble_): Define without indirection through those macros.
25522 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25523 not add -D_Mlong_double_=double.
25524 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25525 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25526
4ad5106e
L
255272017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25528
25529 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25530
fe326df7
L
255312017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25532
25533 * sysdeps/x86/libc-start.c: Reformat.
25534
c5cc4514
L
255352017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25536
25537 [BZ #22353]
25538 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25539 (1): Renamed to ...
25540 (L(Src0)): This.
25541 (L(Src1)): New.
25542 (L(Src2)): Likewise.
25543 (L(1)): Renamed to ...
25544 (L(Src3)): This.
25545
ce12269f
JM
255462017-10-30 Joseph Myers <joseph@codesourcery.com>
25547
25548 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25549 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25550 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25551 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25552 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25553 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25554 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25555 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25556 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25557 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25558 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25559 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25560 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25561 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25562 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25563 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25564 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25565 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25566 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25567 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25568 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25569 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25570 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25571 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25572 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25573 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25574 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25575 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25576 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25577 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25578 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25579 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25580 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25581 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25582 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25583 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25584 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25585 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25586 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25587 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25588 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25589 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25590 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25591 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25592 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25593 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25594 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25595 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25596 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25597 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25598 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25599 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25600 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25601 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25602 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25603 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25604 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25605 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25606 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25607 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25608 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25609 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25610 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25611 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25612 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25613 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25614
4484b9e2
FW
256152017-10-30 Florian Weimer <fweimer@redhat.com>
25616
25617 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25618 always defined.
25619 * io/tst-mkdirat.c (do_test): Likewise.
25620 * io/tst-mkfifoat.c (do_test): Likewise.
25621 * io/tst-mknodat.c (do_test): Likewise.
25622 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25623 * locale/programs/locale.c (select_dirs): Likewise.
25624 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25625 * posix/bug-glob2.c (my_readdir): Likewise.
25626 * posix/tst-dir.c (main): Likewise.
25627 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25628 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25629
68fe16dd
FW
256302017-10-30 Florian Weimer <fweimer@redhat.com>
25631
25632 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25633 just __USE_GNU.
25634
dadf23f0
FW
256352017-10-30 Florian Weimer <fweimer@redhat.com>
25636
25637 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25638 Convert to support/test-driver.c.
25639 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25640 New macro parameters.
25641 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25642 * posix/tst-gnuglob.c: New file.
25643 * posix/tst-gnuglob64.c: Likewise.
25644 * posix/Makefile (tests): Add tst-gnuglob64.
25645
363e4519 256462017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
fbcecc08
MF
25647
25648 [BZ #19485]
25649 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25650 and use a better translation for March in “mon”.
25651 * localedata/locales/csb_PL: Use more ASCII to improve the
25652 readability of the source.
25653
b110af82
MF
256542017-10-30 Mike FABIAN <mfabian@redhat.com>
25655
25656 [BZ #13953]
25657 * localedata/locales/km_KH: Use ASCII as much
25658 as possible for better readability of the source and
25659 remove useless comments.
25660 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25661 was commented out and apparently wrong anyway because it was
25662 using Lao characters. If Buddhist era should be used
25663 for km_KH, a native speaker should write the correct formaat
25664 for Khmer.
25665 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25666 (According to CLDR, the first weekday for Cambodia is Sunday).
25667 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25668 (These were using Lao characters which must be wrong. If we get
25669 the correct data from a native speaker, we could add it back, until
25670 then it is better not to have name_mr and name_mrs at all than
25671 having it wrong).
25672
f301e533
RL
256732017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25674
25675 * locale/loadlocale.c: Correct size of
25676 _nl_value_type_LC_<category> arrays.
25677
7e9d7073
JM
256782017-10-27 Joseph Myers <joseph@codesourcery.com>
25679
25680 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25681 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25682 with appropriate macros defined and undefined.
25683 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25684 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25685 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25686 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25687 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25688
63d3b468
L
256892017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25690
25691 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25692 "-O2 -march=i586".
25693
a4cc02c7
MF
256942017-10-27 Mike FABIAN <mfabian@redhat.com>
25695
25696 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25697 with lowercase letters to make it agree with CLDR.
25698
1e5971ec
MF
256992017-10-27 Mike FABIAN <mfabian@redhat.com>
25700
25701 [BZ #15260]
25702 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25703 first letters of yesstr and nostr in yesexpr and noexpr,
25704 not for the full words.
25705 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25706 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25707 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25708 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25709 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25710 first letters of yesstr and nostr in yesexpr and noexpr,
25711 until now only English was matched in yesexpr and noexpr.
25712 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25713 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25714 fil but not for tl. As tl and fil are very similar, using fil
25715 is probably better than using English.
25716
363e4519 257172017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
bc5fc7de
MF
25718
25719 [BZ #21706]
25720 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25721 in yesstr and nostr.
25722
5d220788
JM
257232017-10-26 Joseph Myers <joseph@codesourcery.com>
25724
ecc7da5b
JM
25725 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25726 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25727 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25728 Likewise.
25729 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25730 Likewise.
25731 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25732 Likewise.
25733 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25734 Likewise.
25735 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25736 (SNANF128X): Likewise.
25737
5d220788
JM
25738 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25739 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25740 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25741 (HUGE_VAL_F32): Likewise.
25742 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25743 (HUGE_VAL_F64): Likewise.
25744 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25745 (HUGE_VAL_F32X): Likewise.
25746 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25747 (HUGE_VAL_F64X): Likewise.
25748 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25749 (HUGE_VAL_F128X): Likewise.
25750
363e4519 257512017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
67ad7163
TV
25752
25753 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25754 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25755 for the br_FR locale.
25756
363e4519 257572017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
408dff7e
TV
25758
25759 [BZ #21706]
25760 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25761
337ff3c5
CD
257622017-10-25 Carlos O'Donell <carlos@redhat.com>
25763
02eec681
CD
25764 * locale/programs/record-status.h: Define globals, and function
25765 prototypes. Move function bodies...
25766 * locale/programs/record-status.c: ... to here. New file.
25767 * iconv/Makefile (iconv_prog-modules): Add record-status.
25768 * locale/Makefile (lib-modules): Likewise.
25769 * iconv/iconv_prog.c: Remove verbose.
25770 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25771 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25772 record a warning about ASCII compatibility.
25773 * locale/programs/ld-monetary.c (monetary_finish): If
25774 warn_int_curr_symbol is true then record a warning about the symbol
25775 not being in our ISO 4217 list.
25776 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25777 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25778 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25779 (OPT_NO_WARN): Define.
25780 (OPT_WARN): Define.
25781 (options): Add entry for --no-warnings, and --warnings.
25782 (set_warnings): New function to enable/disable warnings.
25783 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25784 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25785 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25786 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25787 Pass flags to generate_locale.
25788 (generate_locale): Accept new flag argument and pass it to localedef
25789 invocation.
25790 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25791 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25792
56fa555a
CD
25793 * localedata/Makefile (test-input-data): Use full file name.
25794 * localedata/da_DK.in: Rename to...
25795 * localedata/da_DK.ISO-8859-1.in: ...this.
25796 * localedata/de_DE.in: Rename to...
25797 * localedata/de_DE.ISO-8859-1.in: ...this.
25798 * localedata/en_US.in: Rename to...
25799 * localedata/en_US.ISO-8859-1.in: ...this.
25800 * localedata/fr_FR.in: Rename to...
25801 * localedata/fr_FR.UTF-8.in: ... this.
25802 * localedata/hr_HR.in: Rename to...
25803 * localedata/hr_HR.ISO-8859-2.in: ...this.
25804 * localedata/hu_HU.in: Rename to...
25805 * localedata/hu_HU.UTF-8.in: ...this.
25806 * localedata/si_LK.in: Rename to...
25807 * localedata/si_LK.UTF-8.in: ...this.
25808 * localedata/sv_SE.in: Rename to...
25809 * localedata/sv_SE.ISO-8859-1.in: ...this.
25810 * localedata/tr_TR.in: Rename to...
25811 * localedata/tr_TR.UTF-8.in: ...this.
25812 * localedata/uk_UA.in: Rename to...
25813 * localedata/uk_UA.UTF-8.in: ...this.
25814 * localedata/sort-test.sh: Test file is locale name with the
25815 suffix.
25816
337ff3c5
CD
25817 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25818 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25819 file.
25820 * localedata/locales/i18n_ctype: Regenerate.
25821 * localedata/locales/tr_TR: Likewise.
25822 * localedata/locales/translit_circle: Likewise.
25823 * localedata/locales/translit_cjk_compat: Likewise.
25824 * localedata/locales/translit_combining: Likewise.
25825 * localedata/locales/translit_compat: Likewise.
25826 * localedata/locales/translit_font: Likewise.
25827 * localedata/locales/translit_fraction: Likewise.
25828
63da5cd4
RS
258292017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25830
25831 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25832 lxvd2x/stxvd2x with lvx/stvx.
25833 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25834
a122dbfb
L
258352017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25836
25837 * include/alloc_buffer.h: Replace "if if " with "if " in
25838 comments.
25839 * sysdeps/mips/memcpy.S: Likkewise.
25840 * sysdeps/mips/memset.S: Likewise.
25841 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25842 Likewise.
25843 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25844 Likewise.
25845 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25846 Likewise.
25847
9be7530c
MF
258482017-10-25 Mike FABIAN <mfabian@redhat.com>
25849
25850 [BZ #15261]
25851 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25852 yesexpr and noexpr.
25853 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25854 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25855 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25856 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25857 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25858 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25859 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25860
6ccbf6ff
MF
258612017-10-25 Mike FABIAN <mfabian@redhat.com>
25862
25863 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25864 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25865 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25866 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25867 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25868 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25869 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25870 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25871 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25872 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25873 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25874 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25875
58b1a7ea
MF
258762017-10-25 Mike FABIAN <mfabian@redhat.com>
25877
25878 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25879 as possible for better readability of the source.
25880 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25881 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25882 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25883 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25884 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25885 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25886 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25887 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25888 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25889 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25890 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25891 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25892 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25893 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25894 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25895 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25896 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25897 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25898 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25899 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25900 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25901 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25902 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25903 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25904 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25905 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25906 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25907 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25908 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25909 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25910 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25911 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25912 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25913 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25914 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25915 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25916 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25917 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25918 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25919 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25920 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25921 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25922 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25923 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25924 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25925 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25926 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25927 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25928 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25929 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25930 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25931 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25932 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25933 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25934 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25935 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25936 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25937 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25938 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
25939 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
25940 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
25941 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
25942 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
25943 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
25944 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
25945 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
25946 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
25947 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
25948 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
25949 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
25950 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
25951 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
25952 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
25953 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
25954 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25955 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
25956 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
25957 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
25958 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
25959 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
25960 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
25961 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
25962 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
25963 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25964 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
25965 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
25966 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
25967 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25968 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
25969 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
25970 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
25971 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
25972 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25973 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
25974 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
25975 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25976 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
25977 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25978 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
25979 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
25980 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
25981 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
25982 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
25983 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
25984 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
25985 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
25986 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
25987 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
25988 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
25989 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
25990 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
25991 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
25992 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25993 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
25994 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
25995 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
25996 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
25997 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
25998 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
25999 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26000 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26001 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26002 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26003 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26004 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26005 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26006 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26007 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26008 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26009 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26010 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26011 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26012 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26013 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26014 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26015 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26016 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26017 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26018 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26019 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26020 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26021 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26022 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26023 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26024 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26025 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26026 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26027 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26028 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26029 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26030 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26031 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26032 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26033 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26034 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26035 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26036 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26037 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26038 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26039 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26040 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26041 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26042 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26043 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26044 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26045 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26046 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26047 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26048 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26049 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26050 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26051 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26052 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26053 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26054
17e78edb
MF
260552017-10-25 Mike FABIAN <mfabian@redhat.com>
26056
26057 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26058 (Use first letters of yesstr and nostr correctly instead of using
26059 full words).
26060
74e7284f
MF
260612017-10-25 Mike FABIAN <mfabian@redhat.com>
26062
26063 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26064 (Use first letters of yesstr and nostr correctly).
26065
b41a0ff1
MF
260662017-10-25 Mike FABIAN <mfabian@redhat.com>
26067
26068 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26069 also check for the first characters of yesstr and nostr.
26070 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26071 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26072
d971f380
MF
260732017-10-25 Mike FABIAN <mfabian@redhat.com>
26074
26075 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26076 also check for Chinese characters.
26077
effc9e1d
MF
260782017-10-25 Mike FABIAN <mfabian@redhat.com>
26079
26080 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26081 match also for the contents of yesstr and nostr. As the first letter
26082 of yesstr and nostr is equal, checking only for the first letter
26083 is not enough.
26084
10320881
MF
260852017-10-25 Mike FABIAN <mfabian@redhat.com>
26086
26087 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26088 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26089
d8682a15
MF
260902017-10-25 Mike FABIAN <mfabian@redhat.com>
26091
26092 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26093 of main contributor.
26094
1bfb86ae
MF
260952017-10-25 Mike FABIAN <mfabian@redhat.com>
26096
26097 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26098 instead of using English.
26099
da33d60b
MF
261002017-10-25 Mike FABIAN <mfabian@redhat.com>
26101
26102 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26103 by including the first letters of nostr and yesexpr in the regexp.
26104 Also make it more readable by using ASCII where possible.
26105
725bbb3e
MF
261062017-10-25 Mike FABIAN <mfabian@redhat.com>
26107
26108 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26109 the first letter of nostr in the regexp. It agrees with CLDR now.
26110 Also make it more readable by using ASCII where possible.
26111
fe043d8a
MF
261122017-10-24 Mike FABIAN <mfabian@redhat.com>
26113
26114 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26115 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26116 these strings contain a U+17D6 (which somewhat looks like a colon)
26117 instead of a real colon to separate the full words for “yes”
26118 and “no” from the single letter responses.
26119
360a8df3
MF
261202017-10-24 Mike FABIAN <mfabian@redhat.com>
26121
26122 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26123 it agree with CLDR (include the first letter of yesstr).
26124 Also make it more readable by using ASCII where possible.
26125
bab7b6b0
MF
261262017-10-24 Mike FABIAN <mfabian@redhat.com>
26127
26128 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26129 and improve yesexpr and noexpr. The yesstr and nostr apparently
26130 came from CLDR. And CLDR has a bug there: these strings contain
26131 a U+0903 (which looks like a colon) instead of a real colon
26132 to separate the full words for “yes” and “no” from the single
26133 letter responses.
26134
3e79f758
MF
261352017-10-24 Mike FABIAN <mfabian@redhat.com>
26136
26137 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26138 letters of the full yesstr and nostr in yesexpr and noexpr.
26139
4960c879
MF
261402017-10-24 Mike FABIAN <mfabian@redhat.com>
26141
26142 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26143 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26144 * localedata/locales/an_ES: Make source more readable by using ASCII
26145 where possible.
26146
b06a054f
MF
261472017-10-24 Mike FABIAN <mfabian@redhat.com>
26148
26149 [BZ #20952]
26150 * localedata/locales/yuw_PG: New file.
26151 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26152 * locale/iso-639.def: Add Yau (Uruwa).
26153
905a7725
WD
261542017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26155
26156 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26157
3f6bb8a3
WD
261582017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26159
26160 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26161 (__libc_realloc): Likewise.
26162 (_mid_memalign): Likewise.
26163 (__libc_calloc): Likewise.
26164
1d479c8c
MF
261652017-10-23 Mike FABIAN <mfabian@redhat.com>
26166
26167 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26168 by adding the generic +1 and -0 as in all other locales.
26169 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26170 day names and make it more readable by using ASCII where possible.
26171
91c3985c
JM
261722017-10-24 Joseph Myers <joseph@codesourcery.com>
26173
26174 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26175 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26176
aa95a241
AZ
261772017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26178
26179 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26180 WNOHANG in waitpid call.
26181
db9bab09
SP
261822017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26183
a2e0a7f1
SP
26184 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26185 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26186
db9bab09
SP
26187 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26188 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26189 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26190 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26191 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26192 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26193 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26194 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26195 variables.
26196
5062680c
MC
261972017-10-23 Michael Collison <michael.collison@arm.com>
26198
26199 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26200 with __builtin_sqrt.
26201 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26202 with __builtin_sqrtf.
26203 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26204 with __builtin_ceil.
26205 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26206 with __builtin_ceilf.
26207 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26208 with __builtin_floor.
26209 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26210 with __builtin_floorf.
26211 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26212 with __builtin_fma.
26213 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26214 with __builtin_fmaf.
26215 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26216 with __builtin_fmax.
26217 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26218 with __builtin_fmaxf.
26219 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26220 with __builtin_fmin.
26221 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26222 with __builtin_fminf.
26223 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26224 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26225 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26226 with builtin_rint and conversion to int.
26227 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26228 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26229 with builtin_llround.
26230 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26231 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26232 with builtin_rint and conversion to long int.
26233 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26234 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26235 with builtin_lround.
26236 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26237 with builtin_lroundf.
26238 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26239 statements with __builtin_nearbyint.
26240 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26241 statements with __builtin_nearbyintf.
26242 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26243 with __builtin_rint.
26244 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26245 with __builtin_rintf.
26246 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26247 with __builtin_round.
26248 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26249 with __builtin_roundf.
26250 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26251 with __builtin_trunc.
26252 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26253 with __builtin_truncf.
be080b6c
SN
26254 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26255 and s_l[l]round[f].c too.
5062680c 26256
174935af
AM
262572017-10-23 Alan Modra <amodra@gmail.com>
26258
26259 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26260 Adjust stack after restoring regs. Add missing LR cfi_restore.
26261
750a0e49
AM
262622017-10-23 Alan Modra <amodra@gmail.com>
26263
26264 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26265 Move LR save and frame setup/teardown and LR restore to
26266 immediately around memset call. Provide cfi.
26267
5313581c
L
262682017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26269
26270 * sysdeps/i386/fpu/e_powf.S: Removed.
26271 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26272 * sysdeps/i386/fpu/w_powf.c: Likewise.
26273 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26274 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26275 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26276 Add e_powf-sse2.
26277 (CFLAGS-e_powf-sse2.c): New.
26278 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26279 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26280
6089a3ee
L
262812017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26282
26283 * sysdeps/i386/fpu/e_log2f.S: Removed.
26284 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26285 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26286 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26287 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26288 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26289 Add e_log2f-sse2.
26290 (CFLAGS-e_log2f-sse2.c): New.
26291 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26292 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26293
80bb5935
L
262942017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26297 Add e_powf-fma.
26298 (CFLAGS-e_powf-fma.c): New.
26299 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26300 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26301
5c7adbd8
L
263022017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26303
26304 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26305 Add e_log2f-fma.
26306 (CFLAGS-e_log2f-fma.c): New.
26307 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26308 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26309
0ccc7153
L
263102017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26311
26312 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26313 Add e_logf-fma.
26314 (CFLAGS-e_logf-fma.c): New.
26315 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26316 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26317
fe596486
L
263182017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26319
26320 * sysdeps/i386/fpu/e_logf.S: Removed.
26321 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26322 * sysdeps/i386/fpu/w_logf.c: Likewise.
26323 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26324 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26325 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26326 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26327 Add e_logf-sse2.
26328 (CFLAGS-e_logf-sse2.c): New.
26329 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26330 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26331
7eda65f6
L
263322017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26333
26334 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26335 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26336 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26337 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26338 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26339 Add e_exp2f-sse2.
26340 (CFLAGS-e_exp2f-sse2.c): New.
26341 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26342 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26343
5d15c969
L
263442017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26347 Add e_exp2f-fma.
26348 (CFLAGS-e_exp2f-fma.c): New.
26349 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26350 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26351
b2f6137e
L
263522017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26355 * sysdeps/i386/fpu/e_expf.S: Likewise.
26356 * sysdeps/i386/fpu/math_errf.c: Likewise.
26357 * sysdeps/i386/fpu/w_expf.c: Likewise.
26358 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26359 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26360 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26361 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26362 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26363 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26364 Remove e_expf-ia32.
26365 (CFLAGS-e_expf-sse2.c): New.
26366 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26367 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26368
e1f59beb
L
263692017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26370
26371 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26372 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26373 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26374 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26375 e_expf.c.
26376 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26377 New.
26378 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26379 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26380 Renamed to ...
26381 (__redirect_expf): This.
26382 (SYMBOL_NAME): Changed to expf.
26383 (__ieee754_expf): Renamed to ...
26384 (__expf): This.
26385 (__GI___expf): This.
26386 (__ieee754_expf): Add strong_alias.
26387 (__expf_finite): Likewise.
26388 (__expf): New.
26389 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26390
363e4519 263912017-10-22 Paul Eggert <eggert@cs.ucla.edu>
a159b53f
PE
26392
26393 [BZ #22332]
26394 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26395 unescaping.
26396
e80fc1fc
FW
263972017-10-21 Florian Weimer <fweimer@redhat.com>
26398
26399 * posix/Makefile (tests): Add tst-glob-tilde.
26400 (tests-special): Add tst-glob-tilde-mem.out
26401 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26402 (tst-glob-tilde-mem.out): Add mtrace check.
26403 * posix/tst-glob-tilde.c: New file.
26404
797ba44b
JM
264052017-10-20 Joseph Myers <joseph@codesourcery.com>
26406
26407 * bits/floatn-common.h: New file.
26408 * math/Makefile (headers): Add bits/floatn-common.h.
26409 * bits/floatn.h: Include <bits/floatn-common.h>.
26410 * sysdeps/ia64/bits/floatn.h: Likewise.
26411 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26412 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26413 * sysdeps/powerpc/bits/floatn.h: Likewise.
26414 * sysdeps/x86/bits/floatn.h: Likewise.
26415
fe05e1cb
AZ
264162017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26417
8f6f5362
AZ
26418 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26419 indicates whether compiler emits an warning for alias for
26420 functions with incompatible types.
26421
fe05e1cb
AZ
26422 [BZ #22273]
26423 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26424 the auxiliary process is terminated by a signal before calling _exit
26425 or execve.
26426
b52b0d79
L
264272017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26428
26429 [BZ #21265]
26430 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26431 New.
26432 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26433 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26434 and bit_arch_XSAVEC_Usable if needed.
26435 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26436 and bit_arch_Use_dl_runtime_resolve_opt.
26437 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26438 Removed.
26439 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26440 (bit_arch_Prefer_No_AVX512): Updated.
26441 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26442 (bit_arch_XSAVEC_Usable): New.
26443 (STATE_SAVE_OFFSET): Likewise.
26444 (STATE_SAVE_MASK): Likewise.
26445 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26446 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26447 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26448 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26449 (index_arch_XSAVEC_Usable): New.
26450 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26451 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26452 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26453 is enabled.
26454 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26455 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26456 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26457 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26458 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26459 _dl_runtime_resolve_xsavec.
26460 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26461 Removed.
26462 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26463 instead of VEC_SIZE.
26464 (REGISTER_SAVE_BND0): Removed.
26465 (REGISTER_SAVE_BND1): Likewise.
26466 (REGISTER_SAVE_BND3): Likewise.
26467 (REGISTER_SAVE_RAX): Always defined to 0.
26468 (VMOV): Removed.
26469 (_dl_runtime_resolve_avx): Likewise.
26470 (_dl_runtime_resolve_avx_slow): Likewise.
26471 (_dl_runtime_resolve_avx_opt): Likewise.
26472 (_dl_runtime_resolve_avx512): Likewise.
26473 (_dl_runtime_resolve_avx512_opt): Likewise.
26474 (_dl_runtime_resolve_sse): Likewise.
26475 (_dl_runtime_resolve_sse_vex): Likewise.
26476 (USE_FXSAVE): New.
26477 (_dl_runtime_resolve_fxsave): Likewise.
26478 (USE_XSAVE): Likewise.
26479 (_dl_runtime_resolve_xsave): Likewise.
26480 (USE_XSAVEC): Likewise.
26481 (_dl_runtime_resolve_xsavec): Likewise.
26482 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26483 Removed.
26484 (_dl_runtime_resolve_avx512_opt): Likewise.
26485 (_dl_runtime_resolve_avx): Likewise.
26486 (_dl_runtime_resolve_avx_opt): Likewise.
26487 (_dl_runtime_resolve_sse): Likewise.
26488 (_dl_runtime_resolve_sse_vex): Likewise.
26489 (_dl_runtime_resolve_fxsave): New.
26490 (_dl_runtime_resolve_xsave): Likewise.
26491 (_dl_runtime_resolve_xsavec): Likewise.
26492
363e4519 264932017-10-20 Paul Eggert <eggert@cs.ucla.edu>
c369d66e
PE
26494
26495 [BZ #22320]
26496 CVE-2017-15670
26497 * posix/glob.c (__glob): Fix one-byte overflow.
26498
6d43de4b
WD
264992017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26500
26501 * malloc/malloc.c (sysdep-cancel.h): Add include.
26502
a15d53e2
WD
265032017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26504
26505 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26506
b9a558e7
WH
265072017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26508
26509 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26510 (tests): Remove $(objpfx)ga_test depdendency.
26511 * resolv/ga_test.c: Remove file.
26512
b6b08b8e
MF
265132017-10-20 Mike FABIAN <mfabian@redhat.com>
26514
26515 [BZ #18812]
26516 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26517 * localedata/locales/kab_DZ: New file.
26518
9ba7e810
L
265192017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26520
26521 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26522 _dl_relocate_static_pie instead of _dl_start to compute load
26523 address in static PIE.
26524
4027a4fd
L
265252017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26526
26527 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26528
2f9314b4
MF
265292017-10-20 Mike FABIAN <mfabian@redhat.com>
26530
26531 [BZ #13605]
26532 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26533 * localedata/locales/shn_MM: New file.
26534
63b4baa4
FW
265352017-10-20 Florian Weimer <fweimer@redhat.com>
26536
26537 [BZ #22321]
26538 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26539 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26540 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26541 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26542 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26543 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26544
95ccb619
L
265452017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26546
26547 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26548
37bb78cb
JM
265492017-10-19 Joseph Myers <joseph@codesourcery.com>
26550
76f2ed92
JM
26551 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26552
37bb78cb
JM
26553 [BZ #22322]
26554 * sysdeps/mips/bits/long-double.h: Move to ....
26555 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26556
d74e6f6c
WD
265572017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26558
26559 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26560
363e4519 265612017-10-19 Valery Reznic <valery_reznic@yahoo.com>
4d916f0f
L
26562 H.J. Lu <hongjiu.lu@intel.com>
26563
26564 [BZ #22299]
26565 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26566 GLRO(dl_platform) to NULL.
26567 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26568 (modules-names): Add tst-platformmod-1 and
26569 x86_64/tst-platformmod-2.
26570 (CFLAGS-tst-platform-1.c): New.
26571 (CFLAGS-tst-platformmod-1.c): Likewise.
26572 (CFLAGS-tst-platformmod-2.c): Likewise.
26573 (LDFLAGS-tst-platformmod-2.so): Likewise.
26574 ($(objpfx)tst-platform-1): Likewise.
26575 ($(objpfx)tst-platform-1.out): Likewise.
26576 (tst-platform-1-ENV): Likewise.
26577 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26578 * sysdeps/x86_64/tst-platform-1.c: New file.
26579 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26580 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26581
4b0fa403
MF
265822017-10-19 Mike FABIAN <mfabian@redhat.com>
26583
26584 [BZ #13994]
26585 * locale/iso-639.def: Add Karbi.
26586 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26587 * localedata/locales/mjw_IN: New file.
26588
81325b12
JM
265892017-10-18 Joseph Myers <joseph@codesourcery.com>
26590
26591 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26592 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26593 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26594 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26595 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26596 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26597 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26598 <bits/floatn.h>.
26599 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26600 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26601 * manual/math.texi (Mathematics): Document additional architecture
26602 support for _Float128.
26603 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26604 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26605 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26606 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26608 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26609 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26610 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26611 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26612 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26613 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26614 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26615 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26616 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26617 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26618
a68ba2f3
SN
266192017-10-18 Renlin Li <renlin.li@arm.com>
26620
26621 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26622 _DYNAMIC symbol to calculate load address.
26623
346729f6
PC
266242017-10-18 Paul A. Clarke <pc@us.ibm.com>
26625
26626 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26627 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26628 summary bits.
26629 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26630 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26631
508b1e71
MF
266322017-10-18 Mike FABIAN <mfabian@redhat.com>
26633
26634 [BZ #16777]
26635 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26636 and improve readability by using more ASCII.
26637 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26638 and improve readability by using more ASCII.
26639
2c2245b9
WD
266402017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26641
26642 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26643 not all targets support atomics on bool.
26644
13c92696
JM
266452017-10-17 Joseph Myers <joseph@codesourcery.com>
26646
26647 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26648 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26649 __f128.
26650 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26651 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26652 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26653 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26654 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26655 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26656
71d85045
AZ
266572017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26658
26659 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26660 defines.
26661
3381be5c
WD
266622017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26663
26664 [BZ #22159]
26665 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26666 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26667 (do_check_remalloced_chunk): Fix build bug.
26668 (do_check_malloc_state): Add assert that checks arena->top.
26669 (malloc_consolidate): Remove initialization.
26670 (int_mallinfo): Remove call to malloc_consolidate.
6b5c8607 26671 (__libc_mallopt): Clarify why malloc_consolidate is needed.
3381be5c 26672
e956075a
WD
266732017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26674
26675 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26676 (have_fastchunks): Remove.
26677 (clear_fastchunks): Remove.
26678 (set_fastchunks): Remove.
26679 (malloc_state): Add have_fastchunks.
26680 (malloc_init_state): Use have_fastchunks.
26681 (do_check_malloc_state): Remove incorrect invariant checks.
26682 (_int_malloc): Use have_fastchunks.
26683 (_int_free): Likewise.
26684 (malloc_consolidate): Likewise.
26685
e4dd4ace
WD
266862017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26687
26688 * malloc/malloc.c (tcache_put): Inline.
26689 (tcache_get): Inline.
26690
5bf58bc7
AJ
266912017-10-17 Jordi Mallach <jordi@gnu.org>
26692
26693 Aurelien Jarno <aurelien@aurel32.net>
26694 [BZ #2522]
26695 * localedata/locales/ca_ES@valencia: New file.
26696 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26697
386e1c26
RN
266982017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26699
26700 [BZ #22296]
26701 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26702 < 6.x
26703
4e17c78e
AZ
267042017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26705
3d265601
AZ
26706 * scripts/build-many-glibcs.py (Context.add_all_configs):
26707 Add arm-linux-gnueabihf multiarch extra_glibcs.
26708
4e17c78e
AZ
26709 * sysdeps/generic/ifunc-init.h: New file.
26710 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26711
56a752ab
MF
267122017-10-17 Mike FABIAN <mfabian@redhat.com>
26713
26714 [BZ #22019]
26715 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26716 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26717 * stdlib/tst-strfmon_l.c: adapt test case.
26718
c38a4bfd
JM
267192017-10-16 Joseph Myers <joseph@codesourcery.com>
26720
26721 * sysdeps/generic/float128-abi.h: New file.
26722 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26723 non-__prefixed symbols to ....
26724 * math/Versions: ... here. Include <float128-abi.h>.
26725 * stdlib/Versions ... and here. Include <float128-abi.h>
26726
76009b26
FW
267272017-10-16 Florian Weimer <fweimer@redhat.com>
26728
26729 * version.h (VERSION): Switch to ".9000" as the development
26730 version suffix.
26731
7ece6cd5
FW
267322017-10-16 Florian Weimer <fweimer@redhat.com>
26733
26734 [BZ #22050]
26735 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26736 compat_symbol_reference to access non-default version.
26737
d8287b36
FW
267382017-10-16 Florian Weimer <fweimer@redhat.com>
26739
26740 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26741
3480ddc4
CD
267422017-10-16 Carlos O'Donell <carlos@redhat.com>
26743
26744 * include/shlib-compat.h (compat_symbol_reference): Update
26745 comment.
26746
02010e79
JM
267472017-10-16 Joseph Myers <joseph@codesourcery.com>
26748
596f7013
JM
26749 * math/Makefile (test-types): Add
26750 $(type-float128-$(float128-alias-fcts)).
26751 * math/test-float128.h (TYPE_STR): Define conditional on
26752 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26753 (ULP_IDX): Likewise.
26754 (ULP_I_IDX): Likewise.
26755
02010e79
JM
26756 * stdlib/strtold.c: Include <bits/floatn.h>
26757 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26758 and later undefine as macro. Define as weak alias if
26759 [!USE_WIDE_CHAR].
26760 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26761 and later undefine as macro. Define as weak alias if
26762 [USE_WIDE_CHAR].
26763 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26764 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26765 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26766 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26767 Define and later undefine as macro. Define as weak alias if
26768 [USE_WIDE_CHAR].
26769 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26770 <bits/floatn.h>.
26771 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26772 Define and later undefine as macro. Define as weak alias if
26773 [!USE_WIDE_CHAR].
26774 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26775 Define and later undefine as macro. Define as weak alias if
26776 [USE_WIDE_CHAR].
26777
ea91c315
CD
267782017-10-15 Carlos O'Donell <carlos@redhat.com>
26779
26780 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26781 record_verbose messages.
26782
8e57c943
L
267832017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26784
26785 [BZ #22052]
26786 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26787 to silence -O3 -Wall warning with GCC 7.
26788
a4777c46
L
267892017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26790
26791 * Makeconfig (+link-static-before-libc): Use the first of
26792 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26793 * gmon/Makefile (tests): Add tst-gmon-static.
26794 (tests-static): Likewise.
26795 (CFLAGS-tst-gmon-static.c): New.
26796 (CRT-tst-gmon-static): Likewise.
26797 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26798 (tst-gmon-static-ENV): Likewise.
26799 (tests-special): Likewise.
26800 ($(objpfx)tst-gmon-static.out): Likewise.
26801 (clean-tst-gmon-static-data): Likewise.
26802 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26803 * gmon/tst-gmon-static-gprof.sh: New file.
26804 * gmon/tst-gmon-static.c: Likewise.
26805
bc3821bb
CD
268062017-10-13 Carlos O'Donell <carlos@redhat.com>
26807
26808 [BZ #22295]
26809 * locale/programs/linereader.c (get_string): Don't warn on
26810 non-symbolic character.
26811
a3e23a2c
CD
26812 [BZ #22294]
26813 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26814 int_curr_symbol.
26815
f16491eb
CD
26816 [BZ #22292]
26817 * locale/programs/record-status.h: New file
26818 * locale/programs/locale.c: Add comment.
26819 * locale/programs/charmap-dir.c: Don't include error.h.
26820 (charmap_opendir): Use record_error.
26821 * locale/programs/charmap.c: Don't include error.h.
26822 (charmap_read): Use record_error, and record_warning.
26823 (parse_charmap): Likewise.
26824 * locale/programs/ld-address.c: Don't include error.h.
26825 (address_finish): Use record_error, and record_warning.
26826 * locale/programs/ld-collate.c: Don't include error.h.
26827 (collate_finish): Use record_error, and record_error_at_line.
26828 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26829 (ctype_class_new): Likewise.
26830 (ctype_map_new): Likewise.
26831 (set_one_default): Likewise.
26832 (set_class_defaults): Likewise.
26833 (translit_flatten): Likewise.
26834 (allocate_arrays): Use record_error, and record_verbose.
26835 * locale/programs/ld-identification.c: Don't include error.h.
26836 (indentation_finish): Use record_error and record_warning.
26837 * locale/programs/ld-measurement.c: Don't include error.h.
26838 (measurement_finish): Use record_error.
26839 * locale/programs/ld-messages.c
26840 (message_finish): Likewise.
26841 * locale/programs/ld-monetary.c
26842 (monetary_finish): Likewise.
26843 * locale/programs/ld-name.c (name_finish): Use record_error
26844 and record_warning.
26845 * locale/programs/ld-numeric.c
26846 (numeric_finish): Use record_error.
26847 * locale/programs/ld-paper.c: Don't include error.h.
26848 (paper_finish): Use record_error.
26849 * locale/programs/ld-telephone.c: Don't include error.h.
26850 (telephone_finish): Use record_error.
26851 * locale/programs/ld-time.c (time_finish): Likewise.
26852 * locale/programs/linereader.h (lr_error): Make inline func.
26853 * locale/programs/localedef.c: Define recorded_warning_count,
26854 and recorded_error_count.
26855 (main): Use record_error. Use recorded_error_count and
26856 recorded_warning_count to issue correct error returns.
26857 (add_to_readlist): Use record_error.
26858 (find_locale): Likewise.
26859 (load_locale): Likewise.
26860 * locale/programs/localedef.h: Remove be_quiet
26861 and WITH_CUR_LOCALE.
26862 * locale/programs/locarchive.c (compare_from_file): Use
26863 record_error.
26864 * locale/programs/locfile.c (write_locale_data): Use
26865 record_error.
26866 * locale/programs/repertoire.c: Dont include error.h.
26867 (repertoire_complain): Use record_error.
26868 * localedata/tst-fmon.sh: Expect failures from localedef.
26869 * localedata/tst-locale.sh: Likewise.
26870 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26871
8dc8be75
CD
26872 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26873 (REPORTS): Likewise.
26874 (check): Likewise.
26875 (i18n): Rename to...
26876 (i18n_ctype): ...this.
26877 (i18n-report): Rename to...
26878 (i18n_ctype-report): ...this.
26879 * localedata/locales/i18n_ctype: Regenerate.
26880 * localedata/locales/i18n: copy i18n_ctype.
26881
f8718a9e
JM
268822017-10-13 Joseph Myers <joseph@codesourcery.com>
26883
18c08b96
JM
26884 * stdlib/strfroml.c: Include <bits/floatn.h>.
26885 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26886 Define before include of <stdlib.h> and undefine afterwards, then
26887 define as weak alias.
26888
f8718a9e
JM
26889 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26890 Undefine and restore default definition. Use
26891 libm_alias_ldouble_other.
26892
e4f530da
PZ
268932017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26894
26895 [BZ #22153]
26896 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26897 in coredumps.
26898
86445888
JC
268992017-10-13 James Clarke <jrtc27@jrtc27.com>
26900
26901 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26902 Assign sym_map to be map for local symbols, as TLS relocations
26903 use sym_map to determine whether the symbol is defined and to
26904 extract the TLS information.
26905 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26906 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26907
179dcdb7
TMQMF
269082017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26909
e8dbd6a3
TMQMF
26910 [BZ #22189]
26911 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26912 (math_force_eval): Add powerpc version.
26913
179dcdb7
TMQMF
26914 [BZ #22142]
26915 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26916 -DBL_MAX.
26917 (do_test): Likewise.
26918 * stdio-common/tst-printf.sh: Likewise.
26919 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26920 ifdef clause in order to set the carry bit right. Replace r0 by
26921 0 without changing the behavior.
26922
7d25d410
JM
269232017-10-13 Joseph Myers <joseph@codesourcery.com>
26924
006e7664
JM
26925 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26926 <libm-alias-ldouble.h>.
26927 (fabsl): Define using libm_alias_ldouble.
26928 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26929 <libm-alias-ldouble.h>.
26930 (fabsl): Define using libm_alias_ldouble.
26931
1def91b3
JM
26932 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26933 Remove conditional code.
26934
7d25d410
JM
26935 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26936 Rename to __clog10_internal_l.
26937 (__clog10_internal_l): Define aliases using
26938 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
26939 with __clog10.
26940
077ee129
RS
269412017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26942
26943 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
26944 * benchtests/sincosf-inputs: New file.
26945 * benchtests/cosf-inputs: New file.
26946 * benchtests/sinf-inputs: New file.
26947
5ba41de9
SN
269482017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
26949
26950 * posix/tst-spawn.c (do_test): Wait for both children.
26951
d165ca64
L
269522017-10-12 H.J. Lu <hongjiu.lu@intel.com>
26953
26954 [BZ #22284]
26955 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
26956 tests-pie): Add tst-gmon-pie.
26957 (CFLAGS-tst-gmon-pie.c): New.
26958 (CRT-tst-gmon-pie): Likewise.
26959 (tst-gmon-pie-ENV): Likewise.
26960 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
26961 ($(objpfx)tst-gmon-pie.out): Likewise.
26962 (clean-tst-gmon-pie-data): Likewise.
26963 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
26964 * gmon/gmon.c [PIC]: Include <link.h>.
26965 [PIC] (callback): New function.
26966 (write_hist): Add an argument for load address. Subtract load
26967 address from PCs.
26968 (write_call_graph): Likewise.
26969 (write_gmon): Call __dl_iterate_phdr to get load address, pass
26970 it to write_hist and write_call_graph.
7bacdcfc 26971 * gmon/tst-gmon-pie.c: New file.
d165ca64 26972
bc9620d0
JM
269732017-10-11 Joseph Myers <joseph@codesourcery.com>
26974
26975 * math/Makefile (test-types-basic): New variable.
26976 (test-types): Likewise.
26977 (libm-test-support): Use $(test-types) instead of $(types).
26978 (libm-tests-base-normal): Likewise.
26979 (libm-tests-base-finite): Likewise.
26980 (libm-tests-base-inline): Likewise.
26981 (generated): Likewise.
26982 ($(objpfx)libm-test-support-$(t).c): Likewise.
26983 (libm-tests-for-type iterator): Likewise.
26984 (libm-test-support iterator): Likewise.
26985 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
26986 (ulp_idx): Use ULP_IDX.
26987 * math/test-ldouble.h: Include <float.h>.
26988 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
26989 (ULP_IDX): New macro.
26990 (ULP_I_IDX): Likewise.
26991 * math/test-double.h (ULP_IDX): Likewise.
26992 (ULP_I_IDX): Likewise.
26993 * math/test-float.h (ULP_IDX): Likewise.
26994 (ULP_I_IDX): Likewise.
26995 * math/test-float128.h (ULP_IDX): Likewise.
26996 (ULP_I_IDX): Likewise.
26997
09c76a74
AZ
269982017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26999
27000 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27001 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27002 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27003 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27004 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27005 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27006 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27007 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27008 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27009 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27010 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27011 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27012 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27013 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27014 (SINGLE_THREAD_BY_GLOBAL): Define.
27015 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27016 Likewise.
27017 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27018 Likewise.
27019 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27020 Likewise.
27021 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27022 Likewise.
27023 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27024 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27025 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27026 Likewise.
27027
2faa42da
AS
270282017-10-11 Andreas Schwab <schwab@suse.de>
27029
27030 * nis/Makefile (aux): Remove.
27031 * nscd/Makefile (aux): Add nscd_hash.
27032 (nscd-modules): Likewise.
27033 ($(objpfx)nscd): Don't depend on libnsl.
27034 * nscd/nscd_hash.c: New file.
27035 * nscd/nscd_hash.h: Likewise.
27036 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27037 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27038 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27039 instead of <nis/rpcsvc/nis.h>.
27040 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27041
d8425e11
FW
270422017-10-11 Florian Weimer <fweimer@redhat.com>
27043
27044 [BZ #22078]
27045 Avoid large NSS buffers with many addresses, aliases.
27046 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27047 using dynarrays and struct alloc_buffer.
27048 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27049 (tst-nss-files-hosts-multi): Link with -ldl.
27050 * nss/tst-nss-files-hosts-multi.c: New file.
27051
78e806fd
FW
270522017-10-11 Florian Weimer <fweimer@redhat.com>
27053
27054 [BZ #18023]
27055 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27056 scratch_buffer. Eliminate gotos.
27057
541f19ba
JM
270582017-10-11 Joseph Myers <joseph@codesourcery.com>
27059
0ff64d3a
JM
27060 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27061 libm_alias_ldouble_other.
27062 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27063 undefine and redefine.
27064 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27065 (exp10l): Do not define here.
27066 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27067 (weak_alias): Undefine and redefine.
27068 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27069 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27070 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27071 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27072
541f19ba
JM
27073 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27074 [!__fma] (fma): Define using libm_alias_double.
27075 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27076 [!__fmaf] (fmaf): Define using libm_alias_float.
27077 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27078 (fmal): Define using libm_alias_ldouble.
27079
24b6515d
JM
270802017-10-10 Joseph Myers <joseph@codesourcery.com>
27081
27082 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27083 New macro.
27084 (libm_alias_double_other): Likewise.
27085 (libm_alias_double_r): Use libm_alias_double_other_r.
27086 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27087 New macro.
27088 (libm_alias_float_other): Likewise.
27089 (libm_alias_float_r): Use libm_alias_float_other_r.
27090 * sysdeps/generic/libm-alias-float128.h
27091 (libm_alias_float128_other_r): New macro.
27092 (libm_alias_float128_other): Likewise.
27093 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27094 * sysdeps/generic/libm-alias-ldouble.h
27095 (libm_alias_ldouble_other_r): New macro.
27096 (libm_alias_ldouble_other): Likewise.
27097 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27098 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27099 (libm_alias_double_other_r): New macro.
27100 (libm_alias_double_other): Likewise.
27101 (libm_alias_double_r): Use libm_alias_double_other_r.
27102 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27103 (libm_alias_ldouble_other_r): New macro.
27104 (libm_alias_ldouble_other): Likewise.
27105 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27106 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27107 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27108 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27109 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27110 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27111 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27112 * math/w_exp2f.c: Use libm_alias_float_other.
27113 * math/w_expf.c: Likewise.
27114 * math/w_log2f.c: Likewise.
27115 * math/w_logf.c: Likewise.
27116 * math/w_powf.c: Likewise.
27117 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27118 [!__exp2f]: Use libm_alias_float_other.
27119 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27120 [!__expf]: Use libm_alias_float_other.
27121 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27122 [!__log2f]: Use libm_alias_float_other.
27123 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27124 [!__logf]: Use libm_alias_float_other.
27125 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27126 [!__powf]: Use libm_alias_float_other.
27127
8ed70de2
FW
271282017-10-10 Florian Weimer <fweimer@redhat.com>
27129
27130 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27131 function.
27132 (_nss_files_gethostbyname3_r): Call it.
27133
a8dce619
JM
271342017-10-09 Joseph Myers <joseph@codesourcery.com>
27135
27136 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27137 error. Remove default definition of declare_mgen_alias.
27138 [!declare_mgen_alias_r]: Likewise.
27139 * sysdeps/generic/math-type-macros-double.h
27140 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27141 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27142 (declare_mgen_alias_r): Likewise.
27143 * sysdeps/generic/math-type-macros-float128.h
27144 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27145 * sysdeps/generic/math-type-macros-ldouble.h
27146 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27147 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27148 macro.
27149 (declare_mgen_alias_r_s): Likewise.
27150 (declare_mgen_alias_r): Likewise.
27151 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27152 (lgamma_r): Define using libm_alias_double_r.
27153 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27154 (lgammaf_r): Define using libm_alias_float_r.
27155 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27156 (lgammal_r): Define using libm_alias_ldouble_r.
27157 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27158 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27159
bedac136
AZ
271602017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27161
27162 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27163 extern declaration.
27164
c7509db2
JM
271652017-10-09 Joseph Myers <joseph@codesourcery.com>
27166
27167 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27168
d6c064e9
JW
271692017-10-09 Jonathan Wakely <jwakely@redhat.com>
27170
27171 [BZ #21326]
27172 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27173 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27174 * math/Makefile (test-math-cxx11): New test.
27175 * math/test-math-cxx11.cc: New file.
27176
98e07420
CB
271772017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27178
27179 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27180
645ac9aa
CB
27181 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27182 call to allocate the slave pty file descriptor.
27183
fd3b4e7c
JM
271842017-10-06 Joseph Myers <joseph@codesourcery.com>
27185
f85a176f
JM
27186 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27187 [!__fma] (fma): Define using libm_alias_double.
27188 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27189 [!__fma] (fma): Define using libm_alias_double.
27190
fd3b4e7c
JM
27191 * sysdeps/ieee754/float128/float128_private.h: Include
27192 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27193 (libm_alias_ldouble_r): Undefine and redefine.
27194 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27195 <libm-alias-ldouble.h>.
27196 (asinhl): Define using libm_alias_ldouble.
27197 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27198 <libm-alias-ldouble.h>.
27199 (atanl): Define using libm_alias_ldouble.
27200 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27201 <libm-alias-ldouble.h>.
27202 (cbrtl): Define using libm_alias_ldouble.
27203 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27204 <libm-alias-ldouble.h>.
27205 (ceill): Define using libm_alias_ldouble.
27206 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27207 <libm-alias-ldouble.h>.
27208 (copysignl): Define using libm_alias_ldouble.
27209 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27210 <libm-alias-ldouble.h>.
27211 (cosl): Define using libm_alias_ldouble.
27212 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27213 <libm-alias-ldouble.h>.
27214 (erfl): Define using libm_alias_ldouble.
27215 (erfcl): Likewise.
27216 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27217 <libm-alias-ldouble.h>.
27218 (expm1l): Define using libm_alias_ldouble.
27219 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27220 <libm-alias-ldouble.h>.
27221 (fabsl): Define using libm_alias_ldouble.
27222 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27223 <libm-alias-ldouble.h>.
27224 (floorl): Define using libm_alias_ldouble.
27225 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27226 <libm-alias-ldouble.h>.
27227 (fmal): Define using libm_alias_ldouble.
27228 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27229 <libm-alias-ldouble.h>.
27230 (frexpl): Define using libm_alias_ldouble.
27231 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27232 libm_alias_ldouble.
27233 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27234 <libm-alias-ldouble.h>.
27235 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27236 libm_alias_ldouble.
27237 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27238 <libm-alias-ldouble.h>.
27239 (getpayloadl): Define using libm_alias_ldouble.
27240 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27241 <libm-alias-ldouble.h>.
27242 (llrintl): Define using libm_alias_ldouble.
27243 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27244 <libm-alias-ldouble.h>.
27245 (llroundl): Define using libm_alias_ldouble.
27246 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27247 <libm-alias-ldouble.h>.
27248 (logbl): Define using libm_alias_ldouble.
27249 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27250 <libm-alias-ldouble.h>.
27251 (lrintl): Define using libm_alias_ldouble.
27252 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27253 <libm-alias-ldouble.h>.
27254 (lroundl): Define using libm_alias_ldouble.
27255 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27256 <libm-alias-ldouble.h>.
27257 (modfl): Define using libm_alias_ldouble.
27258 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27259 <libm-alias-ldouble.h>.
27260 (nearbyintl): Define using libm_alias_ldouble.
27261 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27262 <libm-alias-ldouble.h>.
27263 (nextafterl): Define using libm_alias_ldouble.
27264 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27265 <libm-alias-ldouble.h>.
27266 (nextupl): Define using libm_alias_ldouble.
27267 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27268 <libm-alias-ldouble.h>.
27269 (remquol): Define using libm_alias_ldouble.
27270 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27271 <libm-alias-ldouble.h>.
27272 (rintl): Define using libm_alias_ldouble.
27273 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27274 <libm-alias-ldouble.h>.
27275 (roundevenl): Define using libm_alias_ldouble.
27276 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27277 <libm-alias-ldouble.h>.
27278 (roundl): Define using libm_alias_ldouble.
27279 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27280 using libm_alias_ldouble.
27281 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27282 <libm-alias-ldouble.h>.
27283 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27284 Define using libm_alias_ldouble.
27285 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27286 <libm-alias-ldouble.h>.
27287 (sincosl): Define using libm_alias_ldouble.
27288 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27289 <libm-alias-ldouble.h>.
27290 (sinl): Define using libm_alias_ldouble.
27291 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27292 <libm-alias-ldouble.h>.
27293 (tanhl): Define using libm_alias_ldouble.
27294 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27295 <libm-alias-ldouble.h>.
27296 (tanl): Define using libm_alias_ldouble.
27297 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27298 <libm-alias-ldouble.h>.
27299 (totalorderl): Define using libm_alias_ldouble.
27300 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27301 <libm-alias-ldouble.h>.
27302 (totalordermagl): Define using libm_alias_ldouble.
27303 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27304 <libm-alias-ldouble.h>.
27305 (truncl): Define using libm_alias_ldouble.
27306 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27307 libm_alias_ldouble.
27308 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27309 libm_alias_ldouble.
27310 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27311 <libm-alias-ldouble.h>.
27312 (weak_alias): Do not undefine and redefine.
27313 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27314 (copysignl): Define with long_double_symbol only if [IS_IN
27315 (libc)].
27316 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27317 <libm-alias-ldouble.h>.
27318 (weak_alias): Do not undefine and redefine.
27319 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27320 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27321 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27322 <libm-alias-ldouble.h>.
27323 (weak_alias): Do not undefine and redefine.
27324 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27325 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27326 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27327 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27328 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27329 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27330 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27331 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27332 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27333 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27334 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27335 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27336 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27337 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27338 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27339 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27340 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27341 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27342 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27343 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27344 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27345 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27346 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27347 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27348 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27349 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27350
1e26d351
CD
273512017-10-06 Carlos O'Donell <carlos@redhat.com>
27352
27353 [BZ #22111]
27354 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27355 (tcache_thread_freeres): Set tcache_shutting_down before
27356 freeing the tcache.
27357 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27358 * malloc/tst-malloc-tcache-leak.c: New file.
27359
d1386762
RS
273602017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27361
27362 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27363 back to powerpc32 file.
27364 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27365 (memrchr): Add __memrchr_power8 to ifunc list.
27366 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27367 extra bytes for unaligned inputs.
27368
6dff1983
JM
273692017-10-06 Joseph Myers <joseph@codesourcery.com>
27370
27371 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27372 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27373 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27374 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27375 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27376
86f9568a
JM
273772017-10-05 Joseph Myers <joseph@codesourcery.com>
27378
0db0b931
JM
27379 * sysdeps/arm/libm-test-ulps: Update.
27380
86f9568a
JM
27381 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27382 <libm-alias-ldouble.h>.
27383 (asinhl): Define using libm_alias_ldouble.
27384 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27385 <libm-alias-ldouble.h>.
27386 (cbrtl): Define using libm_alias_ldouble.
27387 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27388 <libm-alias-ldouble.h>.
27389 (copysignl): Define using libm_alias_ldouble.
27390 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27391 <libm-alias-ldouble.h>.
27392 (cosl): Define using libm_alias_ldouble.
27393 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27394 <libm-alias-ldouble.h>.
27395 (erfl): Define using libm_alias_ldouble.
27396 (erfcl): Likewise.
27397 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27398 <libm-alias-ldouble.h>.
27399 (fmal): Define using libm_alias_ldouble.
27400 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27401 <libm-alias-ldouble.h>.
27402 (frexpl): Define using libm_alias_ldouble.
27403 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27404 libm_alias_ldouble.
27405 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27406 <libm-alias-ldouble.h>.
27407 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27408 libm_alias_ldouble.
27409 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27410 <libm-alias-ldouble.h>.
27411 (getpayloadl): Define using libm_alias_ldouble.
27412 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27413 <libm-alias-ldouble.h>.
27414 (llrintl): Define using libm_alias_ldouble.
27415 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27416 <libm-alias-ldouble.h>.
27417 (llroundl): Define using libm_alias_ldouble.
27418 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27419 <libm-alias-ldouble.h>.
27420 (lrintl): Define using libm_alias_ldouble.
27421 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27422 <libm-alias-ldouble.h>.
27423 (lroundl): Define using libm_alias_ldouble.
27424 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27425 <libm-alias-ldouble.h>.
27426 (modfl): Define using libm_alias_ldouble.
27427 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27428 <libm-alias-ldouble.h>.
27429 (nextupl): Define using libm_alias_ldouble.
27430 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27431 <libm-alias-ldouble.h>.
27432 (remquol): Define using libm_alias_ldouble.
27433 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27434 <libm-alias-ldouble.h>.
27435 (roundevenl): Define using libm_alias_ldouble.
27436 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27437 <libm-alias-ldouble.h>.
27438 (roundl): Define using libm_alias_ldouble.
27439 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27440 using libm_alias_ldouble.
27441 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27442 <libm-alias-ldouble.h>.
27443 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27444 <libm-alias-ldouble.h>.
27445 (setpayloadsigl): Define using libm_alias_ldouble.
27446 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27447 <libm-alias-ldouble.h>.
27448 (sincosl): Define using libm_alias_ldouble.
27449 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27450 <libm-alias-ldouble.h>.
27451 (sinl): Define using libm_alias_ldouble.
27452 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27453 <libm-alias-ldouble.h>.
27454 (tanhl): Define using libm_alias_ldouble.
27455 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27456 <libm-alias-ldouble.h>.
27457 (tanl): Define using libm_alias_ldouble.
27458 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27459 <libm-alias-ldouble.h>.
27460 (totalorderl): Define using libm_alias_ldouble.
27461 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27462 <libm-alias-ldouble.h>.
27463 (totalordermagl): Define using libm_alias_ldouble.
27464 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27465 libm_alias_ldouble.
27466 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27467 libm_alias_ldouble.
27468
9ec87fd2
SP
274692017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27470
dd5bc7f1
SP
27471 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27472 memmove_falkor.
27473 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27474 (__libc_ifunc_impl_list): Likewise.
27475 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27476 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27477
5bfb0404
SP
27478 * benchtests/bench-memmove-walk.c: New file.
27479 * benchtests/Makefile (string-benchset): Add it.
27480
36bb8edf
SP
27481 * benchtests/bench-memset-walk.c: New file.
27482 * benchtests/Makefile (string-benchset): Add it.
27483
9ec87fd2
SP
27484 * benchtests/bench-memcpy-walk.c: New file.
27485 * benchtests/Makefile (string-benchset): Add it.
27486
1e9522c6
FW
274872017-10-05 Florian Weimer <fweimer@redhat.com>
27488
27489 nscd: Eliminate compilation time dependency in the build output.
27490 * nscd/nscd_stat.c (STATDATA_VERSION)
27491 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27492 (STATDATA_VERSION_FULL): New macro definitions.
27493 (compilation): Remove.
27494 (struct statdata): Adjust version member.
27495 (send_stats): Set version from STATDATA_VERSION_FULL.
27496 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27497
644d3857
JM
274982017-10-05 Joseph Myers <joseph@codesourcery.com>
27499
27500 * configure.ac (--enable-add-ons): Remove option.
27501 (machine): Do not mention add-ons in comment.
27502 (LIBC_PRECONFIGURE): Likewise.
27503 (add_ons): Remove variable and sanity checks and logic to locate
27504 add-ons.
27505 (add_ons_automatic): Remove variable.
27506 (configured_add_ons): Likewise.
27507 (add_ons_sfx): Likewise.
27508 (add_ons_pfx): Likewise.
27509 (add_on_subdirs): Likewise.
27510 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27511 consideration of add-ons in Implies handling.
27512 (sysdeps_add_ons): Likewise.
27513 * configure: Regenerated.
27514 * libidn/configure.ac: Remove.
27515 * libidn/configure: Likewise.
27516 * sysdeps/unix/inet/configure.ac: New file.
27517 * sysdeps/unix/inet/configure: New generated file.
27518 * sysdeps/unix/inet/Subdirs: Add libidn.
27519 * Makeconfig (sysdeps-srcdirs): Remove variable.
27520 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27521 ($(common-objpfx)config.status): Do not depend on add-on files.
27522 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27523 comment.
27524 (all-subdirs): Do not include $(add-on-subdirs).
27525 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27526 * config.make.in (add-ons): Remove variable.
27527 (add-on-subdirs): Likewise.
27528 (sysdeps-add-ons): Likewise.
27529 * manual/Makefile (add-chapters): Remove.
27530 ($(objpfx)texis): Do not depend on $(add-chapters).
27531 (nonexamples): Do not handle $(add-chapters).
27532 (examples): Do not handle $(add-ons).
27533 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27534 libc-texinfo.sh.
27535 * manual/install.texi (Installation): Do not mention add-ons.
27536 (--enable-add-ons): Do not document configure option.
27537 * INSTALL: Regenerated.
27538 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27539 * manual/maint.texi (Hierarchy Conventions): Do not mention
27540 add-ons.
27541 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27542 --enable-add-ons.
27543 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27544 add-ons.
27545 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27546 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27547
19f82f35
AS
275482017-10-05 Andreas Schwab <schwab@suse.de>
27549
27550 [BZ #15142]
27551 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27552 (_IO_flush_all_lockp): Always lock list_all_lock.
27553 (_IO_flush_all_linebuffered): Likewise.
27554 (_IO_unbuffer_all): Likewise.
27555
91e7cf98
FW
275562017-10-05 Florian Weimer <fweimer@redhat.com>
27557
27558 [BZ #15436]
27559 Do not flush stdio streams on abort.
27560 * stdlib/abort.c (fflush): Remove macro definition.
27561 (abort): Remove stages related to stdio flushing.
27562
0c251257
FW
275632017-10-05 Florian Weimer <fweimer@redhat.com>
27564
27565 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27566
7ea59e3e
SL
275672017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27568
27569 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27570
84d0e6f0
FW
275712017-10-05 Florian Weimer <fweimer@redhat.com>
27572
27573 * support/support_format_hostent.c (support_format_hostent): Add
27574 more error information for NETDB_INTERNAL.
27575
ee417882
L
275762017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27577
27578 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27579 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27580 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27581 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27582 AC_DEFINE if multi-arch is enabled.
27583 * sysdeps/i386/configure: Regenerated.
27584
a67029ff
L
275852017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27586
27587 * Makeconfig (+link-static-before-libc): Use
27588 $(DEFAULT-LDFLAGS-$(@F)).
27589 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27590 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27591 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27592
5dba84b3
L
275932017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27594
27595 * elf/Makefile (tests): Add tst-main1.
27596 (modules-names): Add tst-main1mod.
27597 ($(objpfx)tst-main1): New.
27598 (CRT-tst-main1): Likewise.
27599 (LDFLAGS-tst-main1): Likewise.
27600 (LDLIBS-tst-main1): Likewise.
27601 (tst-main1mod.so-no-z-defs): Likewise.
27602 * elf/tst-main1.c: New file.
27603 * elf/tst-main1mod.c: Likewise.
27604
758f1bfa
L
276052017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27606
27607 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27608
7e16a5d1
JM
276092017-10-04 Joseph Myers <joseph@codesourcery.com>
27610
27611 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27612 (fma): Define using libm_alias_double.
27613 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27614 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27615 <math_ldbl_opt.h>.
27616 (fmal): Do not define as compat symbol here.
27617 * sysdeps/alpha/fpu/s_fma.c: New file.
27618
db4f87ba
SN
276192017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27620
27621 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27622
72d13ed1
JM
276232017-10-04 Joseph Myers <joseph@codesourcery.com>
27624
32d372d5
JM
27625 [BZ #22229]
27626 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27627 <math_ldbl_opt.h>
27628 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27629 and libc.
27630 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27631 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27632 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27633 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27635 Include <math_ldbl_opt.h>
27636 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27637 and libc.
27638 (compat_symbol): Undefine and redefine.
27639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27640 <math_ldbl_opt.h>
27641 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27642 (compat_symbol): Undefine and redefine.
27643 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27644 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27645 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27646 GLIBC_2_1 for libm.
27647 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27648 GLIBC_2.0 copysignl symbol.
27649 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27650 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27651
72d13ed1
JM
27652 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27653
11c4f501
FW
276542017-10-04 Florian Weimer <fweimer@redhat.com>
27655
27656 * scripts/check-local-headers.sh: Ignore nspr4 header file
27657 directory in addition to nspr.
27658
57b4af19
GT
276592017-10-04 Guido Trentalancia <guido@trentalancia.net>
27660
27661 [BZ #17956]
27662 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27663 * configure: Regenerate.
27664 * crypt/Makefile (nss-cpp-flags): New variable.
27665 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27666 (CPPFLAGS-md5-crypt.c): Use it.
27667 * scripts/check-local-headers.sh: Ignore nspr header file
27668 directory.
27669
64d1e08e
AS
276702017-10-04 Andreas Schwab <schwab@suse.de>
27671
27672 * nis/Makefile (services): Remove compat.
27673 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27674 ($(objpfx)libnss_compat.so): Remove rule.
27675 * nis/Versions (libnss_compat): Remove.
27676 * nss/Makefile (services): Add compat.
27677 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27678 * nss/Versions (libnss_compat): Define.
27679 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27680 Don't include <rpc/types.h>. Replace bool_t by bool.
27681 * nss/nss_compat/compat-initgroups.c: Likewise.
27682 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27683 instead of <rpcsrv/ypclnt.h>.
27684 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27685 yp_get_default_domain.
27686 * nss/nss_compat/compat-pwd.c: Likewise.
27687 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27688 yp_get_default_domain.
27689 * nss/nss_compat/nisdomain.c: New file.
27690 * nss/nss_compat/nisdomain.h: Likewise.
27691
86c27ade
SN
276922017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27693
27694 [BZ #22244]
27695 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27696 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27697
8f8f8ef7
SN
276982017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27699
27700 [BZ #22243]
27701 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27702 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27703
95577475
L
277042017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27705
27706 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27707 "movl main@GOTOFF(%ebx), %eax".
27708
02d2d892
L
277092017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27710
27711 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27712 allow undefined _DYNAMIC in PIE libc.a.
27713 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27714 Likewse.
27715
0c609d19
L
277162017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27717
27718 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27719 check _DYNAMIC.
27720
c34a19ed
L
277212017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27722
27723 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27724 check _DYNAMIC.
27725
cdd4155d
L
277262017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27727
27728 * math/test-math-iscanonical.cc (error): Replace bool with int.
27729
4699cb8b
JM
277302017-10-03 Joseph Myers <joseph@codesourcery.com>
27731
d8f619b3
JM
27732 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27733 (modf): Define using libm_alias_double, only if [!__modf].
27734 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27735 <libm-alias-double.h>.
27736 (modf): Define using libm_alias_double, only if [!__modf].
27737 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27738 compat symbol here.
27739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27740 (weak_alias): Do not undefine and redefine.
27741 (strong_alias): Likewise.
27742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27743 (weak_alias): Likewise.
27744 (strong_alias): Likewise.
27745
4699cb8b
JM
27746 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27747 (logb): Define using libm_alias_double, only if [!__logb].
27748 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27749 <libm-alias-double.h>.
27750 (logb): Define using libm_alias_double, only if [!__logb].
27751 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27753 (weak_alias): Do not undefine and redefine.
27754 (strong_alias): Likewise.
27755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27756 (weak_alias): Likewise.
27757 (strong_alias): Likewise.
27758
bcc4e4bb
L
277592017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27760
27761 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27762 Check SHARED instead PIC.
27763
39793865
JM
277642017-10-03 Joseph Myers <joseph@codesourcery.com>
27765
7f1cbdf8
JM
27766 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27767 [!__fmaf] (fmaf): Define using libm_alias_float.
27768
39793865
JM
27769 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27770 (frexp): Define using libm_alias_double.
27771 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27772 <libm-alias-double.h>.
27773 (frexp): Define using libm_alias_double.
27774 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27775 compat symbol here.
27776
aa0235df
GG
277772017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27778
27779 [BZ #22235]
27780 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27781 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27782 (CFLAGS-test-math-iscanonical.cc): New variable.
27783 * math/test-math-iscanonical.cc: New file.
27784 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27785 Provide a C++ implementation based on function overloading,
27786 rather than using __MATH_TG, which uses C-only builtins.
27787 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27788 Likewise.
27789 * sysdeps/powerpc/powerpc64le/Makefile
27790 (CFLAGS-test-math-iscanonical.cc): New variable.
27791
a1132b5e
JM
277922017-10-03 Joseph Myers <joseph@codesourcery.com>
27793
27794 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27795 (ceil): Define using libm_alias_double.
27796 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27797 (floor): Define using libm_alias_double.
27798 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27799 <libm-alias-double.h>.
27800 (llround): Define using libm_alias_double.
27801 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27802 <libm-alias-double.h>.
27803 (lround): Define using libm_alias_double.
27804 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27805 <libm-alias-double.h>.
27806 (nearbyint): Define using libm_alias_double.
27807 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27808 <libm-alias-double.h>.
27809 (remquo): Define using libm_alias_double.
27810 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27811 (rint): Define using libm_alias_double.
27812 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27813 (round): Define using libm_alias_double.
27814 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27815 (trunc): Define using libm_alias_double.
27816 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27817 <libm-alias-double.h>.
27818 (ceil): Define using libm_alias_double.
27819 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27820 <libm-alias-double.h>.
27821 (floor): Define using libm_alias_double.
27822 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27823 <libm-alias-double.h>.
27824 (llround): Define using libm_alias_double.
27825 [_LP64] (lround): Likewise.
27826 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27827 <libm-alias-double.h>.
27828 [!_LP64] (lround): Define using libm_alias_double.
27829 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27830 <libm-alias-double.h>.
27831 (nearbyint): Define using libm_alias_double.
27832 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27833 <libm-alias-double.h>.
27834 (remquo): Define using libm_alias_double.
27835 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27836 <libm-alias-double.h>.
27837 (rint): Define using libm_alias_double.
27838 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27839 <libm-alias-double.h>.
27840 (round): Define using libm_alias_double.
27841 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27842 <libm-alias-double.h>.
27843 (trunc): Define using libm_alias_double.
27844 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27845 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27846 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27847 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27848 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27849 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27850 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27851 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27852 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27853
f275f64e
SN
278542017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27855
27856 * math/w_remainder.c: New file.
27857 * math/w_remainderf.c: New file.
27858 * math/w_remainderl.c: New file.
27859
b8818ab5
L
278602017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27861
27862 * elf/rtld.c (BOOTSTRAP_MAP): New.
27863 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27864 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27865 Likewise.
27866 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27867 Likewise.
27868 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27869 Likewise.
27870
3d1870fa
ST
278712017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27872
27873 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27874 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27875 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27876 rtld_hidden_data_ver): Define to empty.
27877 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27878 __assert_perror_fail): Likewise.
27879 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27880 (__rewinddir): Likewise.
27881 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27882 (__profile_frequency): Likewise.
27883 * include/setjmp.h (__sigsetjmp): Likewise.
27884 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27885 __libc_sigaction): Likewise.
27886 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27887 not set hidden attribute.
27888 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27889 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27890 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27891 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27892 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27893 __fxstatat64): Likewise.
27894 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27895 (__uname): Likewise.
27896 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27897 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27898 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27899 (NO_RTLD_HIDDEN): Set.
27900 * sysdeps/mach/hurd/configure: Refresh.
27901 * config.h.in: Refresh.
27902
527cd19c
JM
279032017-10-02 Joseph Myers <joseph@codesourcery.com>
27904
38722448
JM
27905 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27906 (atan): Define using libm_alias_double.
27907 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27908 (tan): Define using libm_alias_double.
27909 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27910 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27911
527cd19c
JM
27912 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27913 define as weak alias of __atan. Do not define any aliases if
27914 [__atan].
27915 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27916 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27917 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27918 as weak alias of __tan. Do not define any aliases if [__tan].
27919 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27920 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27921 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27922 __atan.
27923 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27924 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27925 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27926 and define as weak alias of __atan.
27927 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27928 __atan.
27929 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27930 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27931 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27932 define as weak alias of __tan.
27933
bdc5c592
SN
279342017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27935
27936 * math/w_lgamma.c: New file.
27937 * math/w_lgammaf.c: New file.
27938 * math/w_lgammal.c: New file.
27939
bd4430c2
SN
279402017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27941
27942 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
27943 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
27944 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
27945 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
27946 * sysdeps/ieee754/flt-32/w_logf.c: New file.
27947 * sysdeps/ieee754/flt-32/w_powf.c: New file.
27948 * sysdeps/i386/fpu/w_log2f.c: New file.
27949 * sysdeps/i386/fpu/w_logf.c: New file.
27950 * sysdeps/i386/fpu/w_powf.c: New file.
27951 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
27952 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
27953 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
27954
f7a0b063
SN
279552017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27956 H.J. Lu <hongjiu.lu@intel.com>
27957
27958 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
27959 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
27960 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
27961 * sysdeps/ieee754/flt-32/w_expf.c: New file.
27962 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
27963 the new expf code.
27964 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
27965 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
27966 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
27967 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
27968 * sysdeps/i386/fpu/w_exp2f.c: New file.
27969 * sysdeps/i386/fpu/w_expf.c: New file.
27970 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
27971 * sysdeps/x86_64/fpu/w_expf.c: New file.
27972
72d3d281
SN
279732017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27974
27975 * math/Versions (logf): New libm symbol at GLIBC_2.27.
27976 (log2f): Likewise.
27977 (powf): Likewise.
27978 * math/w_log2f.c: New file.
27979 * math/w_logf.c: New file.
27980 * math/w_powf.c: New file.
27981 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
27982 * math/w_logf_compat.c (__logf_compat): Likewise.
27983 * math/w_powf_compat.c (__powf_compat): Likewise.
27984 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
27985 * sysdeps/ia64/fpu/e_logf.S: Likewise.
27986 * sysdeps/ia64/fpu/e_powf.S: Likewise.
27987 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27988 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27989 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27990 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27991 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27992 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27993 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27994 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27995 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27996 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27997 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27998 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28000 Likewise.
28001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28002 Likewise.
28003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28004 Likewise.
28005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28006 Likewise.
28007 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28008 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28009 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28010 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28011 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28012 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28013 Likewise.
28014 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28015 Likewise.
28016 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28017 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28018 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28019
59ba2d2b
RS
280202017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28021
28022 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28023 (sysdep_routines): Add memrchr_power8.
28024 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28025 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28026 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28027 New file.
28028 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28029 (memrchr): Add __memrchr_power8 to ifunc list.
28030 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28031
397286ea
L
280322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28033
28034 [BZ #18822]
28035 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28036 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28037 libc_hidden_def.
28038 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28039 (__posix_fallocate64_l64): Likewise.
28040
d0a4512b
L
280412017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28042
28043 [BZ #18822]
28044 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28045 (__sched_setaffinity_new): Add libc_hidden_proto and
28046 libc_hidden_def.
28047
c0769f70
L
280482017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28049
28050 [BZ #18822]
28051 * include/glob.h (__glob64): Add libc_hidden_proto.
28052 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28053 libc_hidden_def.
28054
0e7d5b6e
L
280552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28056
28057 [BZ #18822]
28058 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28059 attribute_hidden.
28060
bde06c87
L
280612017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28062
28063 [BZ #18822]
28064 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28065
fa426590
L
280662017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28067
28068 [BZ #18822]
28069 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28070 libc_hidden_def.
28071
2f8a05d8
L
280722017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28073
28074 [BZ #18822]
28075 * csu/version.c (__libc_print_version): Add attribute_hidden.
28076
7bfd08ac
L
280772017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28078
28079 [BZ #18822]
28080 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28081
0e1fd06c
L
280822017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28083
28084 [BZ #18822]
28085 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28086
36e7ae1e
L
280872017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28088
28089 [BZ #18822]
28090 * nscd/nscd_helper.c (__nis_hash): New prototype.
28091
87078544
L
280922017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28093
28094 [BZ #18822]
28095 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28096 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28097 libc_hidden_def.
28098 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28099 * termios/tcgetattr.c (__tcgetattr): Likewise.
28100
dd3121df
L
281012017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28102
28103 [BZ #18822]
28104 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28105 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28106 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28107 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28108 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28109
047d1a81
L
281102017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28111
28112 [BZ #18822]
28113 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28114
fd331b11
L
281152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28116
28117 [BZ #18822]
28118 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28119 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28120
57f859bd
L
281212017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28122
28123 [BZ #18822]
28124 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28125
d1903329
L
281262017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28127
28128 [BZ #18822]
28129 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28130 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28131
b4744101
L
281322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28133
28134 [BZ #18822]
28135 * include/ifreq.h: New file.
28136 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28137 (__ifreq): Likewise.
28138 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28139 (__ifreq): Likewise.
28140
43b7dfd1
L
281412017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28142
28143 [BZ #18822]
28144 * include/idna.h: New file.
28145 * inet/getnameinfo.c: Include <idna.h> instead of
28146 <libidn/idna.h>.
28147 (__idna_to_unicode_lzlz): Removed.
28148 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28149 <libidn/idna.h>.
28150 (__idna_to_ascii_lz): Removed.
28151 (__idna_to_unicode_lzlz): Likewise.
28152
2c0cd8f8
L
281532017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28154
28155 [BZ #18822]
28156 * include/plural-exp.h: New file.
28157 * intl/plural-exp.c: Include <plural-exp.h> instead of
28158 "plural-exp.h".
28159
8369d216
L
281602017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28161
28162 [BZ #18822]
28163 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28164 "getsourcefilter.h".
28165 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28166 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28167 "getsourcefilter.h".
28168 (__get_sol): Removed.
28169
a0aef783
L
281702017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28171
28172 [BZ #18822]
28173 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28174 to ...
28175 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28176
3ee8209b
L
281772017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28178
28179 [BZ #18822]
28180 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28181 attribute_hidden.
28182
6036fc38
L
281832017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28184
28185 [BZ #18822]
28186 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28187
fe84fed0
L
281882017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28189
28190 [BZ #18822]
28191 * include/search.h (__tdestroy): Add libc_hidden_proto.
28192 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28193
048dd681
L
281942017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28195
28196 [BZ #18822]
28197 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28198
6e342af6
L
281992017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28200
28201 [BZ #18822]
28202 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28203 attribute_hidden.
28204
6a088436
L
282052017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28206
28207 [BZ #18822]
28208 * include/signal.h (__kill): Add libc_hidden_proto.
28209 (__sigblock): Likewise.
28210 (__sigprocmask): Likewise.
28211 (__sigaltstack): Likewise.
28212 * signal/kill.c (__kill): Add libc_hidden_def.
28213 * signal/sigblock.c (__sigblock): Likewise.
28214 * signal/sigprocmask.c (__sigprocmask): Likewise.
28215 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28216 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28217 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28218 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28219 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28220 Likewise.
28221 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28222 Likewise.
28223 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28224 (__sigprocmask): Likewise.
28225 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28226 Likewise.
28227 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28228 (__sigprocmask): Likewise.
28229 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28230 Likewise.
28231
78cf1d74
L
282322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28233
28234 [BZ #18822]
28235 * include/string.h (__strsep): Add libc_hidden_proto.
28236 * string/strsep.c (__strsep): Add libc_hidden_def.
28237
85b35894
L
282382017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28239
28240 [BZ #18822]
28241 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28242 attribute_hidden.
28243 (__spawni): Likewise.
28244
225f7eec
L
282452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28246
28247 [BZ #18822]
28248 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28249 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28250 libc_hidden_def.
28251
372fe247
L
282522017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28253
28254 [BZ #18822]
28255 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28256
9e5ee8b8
L
282572017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28258
28259 [BZ #18822]
28260 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28261 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28262 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28263 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28264 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28265 Likewise.
28266 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28267 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28268
2ff16592
L
282692017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28270
28271 [BZ #18822]
28272 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28273 (__dcigettext): Likewise.
28274
b5648377
L
282752017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28276
28277 [BZ #18822]
28278 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28279 libc_hidden_proto.
28280 (__get_nprocs): Likewise.
28281 (__get_phys_pages): Likewise.
28282 (__get_avphys_pages): Likewise.
28283 (__get_child_max): Add attribute_hidden.
28284 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28285 (__get_nprocs): Likewise.
28286 (__get_phys_pages): Likewise.
28287 (__get_avphys_pages): Likewise.
28288 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28289 libc_hidden_def.
28290 (__get_nprocs): Likewise.
28291 (__get_phys_pages): Likewise.
28292 (__get_avphys_pages): Likewise.
28293 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28294 libc_hidden_def.
28295 (__get_nprocs_conf): Likewise.
28296 (__get_phys_pages): Likewise.
28297 (__get_avphys_pages): Likewise.
28298
0389a6aa
L
282992017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28300
28301 [BZ #18822]
28302 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28303 attribute_hidden.
28304 (__netlink_close): Likewise.
28305 (__netlink_free_handle): Likewise.
28306 (__netlink_request): Likewise.
28307
d48354d8
L
283082017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28309
28310 [BZ #18822]
28311 * include/rpc/rpc.h (__rpc_thread_variables): Add
28312 attribute_hidden.
28313 (__rpc_thread_svc_cleanup): Likewise.
28314 (__rpc_thread_clnt_cleanup): Likewise.
28315 (__rpc_thread_key_cleanup): Likewise.
28316
d6daff12
L
283172017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28318
28319 [BZ #18822]
28320 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28321 (__writev): Likewise.
28322 * misc/readv.c (__readv): Add libc_hidden_def.
28323 * misc/writev.c (__writev): Likewise.
28324 * sysdeps/posix/readv.c (__readv): Likewise.
28325 * sysdeps/posix/writev.c (__writev): Likewise.
28326 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28327 (__readv): Likewise.
28328 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28329 (__writev): Likewise.
28330
b68f8620
L
283312017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28332
28333 [BZ #18822]
28334 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28335 (__regcomp): Add libc_hidden_proto.
28336 (__regexec): Likewise.
28337 (__regfree): Likewise.
28338 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28339 (__regfree): Likewise.
28340 * posix/regexec.c (__regexec): Likewise.
28341
59c04e67
L
283422017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28343
28344 [BZ #18822]
28345 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28346 (__getutent): Likewise.
28347 (__getutid): Likewise.
28348 (__getutline): Likewise.
28349 (__pututline): Likewise.
28350 (__getutent_r): Likewise.
28351 (__getutid_r): Likewise.
28352 (__getutline_r): Likewise.
28353 (__utmpname): Add attribute_hidden.
28354 (__setutent): Likewise.
28355 (__endutent): Likewise.
28356 * login/getutent.c (__getutent): Add libc_hidden_def.
28357 * login/getutent_r.c (__getutent_r): Likewise.
28358 (__pututline): Likewise.
28359 * login/getutid.c (__getutid): Likewise.
28360 * login/getutid_r.c (__getutid_r): Likewise.
28361 * login/getutline.c (__getutline): Likewise.
28362 * login/getutline_r.c (__getutline_r): Likewise.
28363 * login/updwtmp.c (__updwtmp): Likewise.
28364
4587a421
L
283652017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28366
28367 [BZ #18822]
28368 * include/dirent.h (__opendir): Always add attribute_hidden.
28369 (__fdopendir): Likewise.
28370 (__closedir): Likewise.
28371 (__readdir): Likewise.
28372 (__readdir64): Add libc_hidden_proto.
28373 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28374 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28375 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28376 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28377 New alias.
28378
9635ce69
L
283792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28380
28381 [BZ #18822]
28382 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28383 * include/netdb.h (__gethostbyaddr_r): Likewise.
28384 (__gethostbyname_r): Likewise.
28385 (__gethostbyname2_r): Likewise.
28386 (__getnetbyaddr_r): Likewise.
28387 (__getnetbyname_r): Likewise.
28388 (__getservbyname_r): Likewise.
28389 (__getservbyport_r): Likewise.
28390 (__getprotobyname_r): Likewise.
28391 (__getprotobynumber_r): Likewise.
28392 (__getnetgrent_r): Likewise.
28393 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28394 (__getrpcbynumber_r): Likewise.
28395 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28396
2e0a6909
L
283972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28398
28399 [BZ #18822]
28400 * include/stdio.h (__fcloseall): Add attribute_hidden.
28401 (__getline): Likewise.
28402 (__path_search): Likewise.
28403 (__gen_tempname): Likewise.
28404 (__libc_message): Likewise.
28405 (__flockfile): Likewise.
28406 (__funlockfile): Likewise.
28407 (__fxprintf): Likewise.
28408 (__fxprintf_nocancel): Likewise.
28409
94fd682c
L
284102017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28411
28412 [BZ #18822]
28413 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28414 (__sgetsgent_r): Likewise.
28415
e1b33bba
L
284162017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28417
28418 [BZ #18822]
28419 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28420 (__statfs64): Likewise.
28421 (__fstatfs64): Likewise.
28422 * include/sys/statvfs.h (__statvfs64): Likewise.
28423 (__fstatvfs64): Likewise.
28424 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28425 (__statfs_filesize_max): Likewise.
28426 (__statfs_symlinks): Likewise.
28427 (__statfs_chown_restricted): Likewise.
28428
b0f56784
L
284292017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28430
28431 [BZ #18822]
28432 * include/time.h (__tzstring): Add attribute_hidden.
28433 (__tzfile_read): Likewise.
28434 (__tzfile_compute): Likewise.
28435 (__tzfile_default): Likewise.
28436 (__tzset_parse_tz): Likewise.
28437 (__offtime): Likewise.
28438 (__asctime_r): Likewise.
28439 (__tzset): Likewise.
28440 (__tz_convert): Likewise.
28441 (__getdate_r): Likewise.
28442 (__getclktck): Likewise.
28443
a4338d99
L
284442017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28445
28446 [BZ #18822]
28447 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28448 (__nscd_unmap): Likewise.
28449 (__nscd_cache_search): Likewise.
28450 (__nscd_get_nl_timestamp): Likewise.
28451 (__nscd_getpwnam_r): Likewise.
28452 (__nscd_getpwuid_r): Likewise.
28453 (__nscd_getgrnam_r): Likewise.
28454 (__nscd_getgrgid_r): Likewise.
28455 (__nscd_gethostbyname_r): Likewise.
28456 (__nscd_gethostbyname2_r): Likewise.
28457 (__nscd_gethostbyaddr_r): Likewise.
28458 (__nscd_getai): Likewise.
28459 (__nscd_getgrouplist): Likewise.
28460 (__nscd_getservbyname_r): Likewise.
28461 (__nscd_getservbyport_r): Likewise.
28462 (__nscd_innetgr): Likewise.
28463 (__nscd_setnetgrent): Likewise.
28464
a2ca1652
L
284652017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28466
28467 [BZ #18822]
28468 * include/gmp.h: Declare internal functions only if _ISOMAC is
28469 undefined.
28470 (__mpn_extract_double): Add attribute_hidden.
28471 (__mpn_extract_long_double): Likewise.
28472 (__mpn_extract_float128): Likewise.
28473 (__mpn_construct_float): Likewise.
28474 (__mpn_construct_double): Likewise.
28475 (__mpn_construct_long_double): Likewise.
28476 (__mpn_construct_float128): Likewise.
28477 (mpn_add_1): Likewise.
28478 (mpn_addmul_1): Likewise.
28479 (mpn_add_n): Likewise.
28480 (mpn_cmp): Likewise.
28481 (mpn_divrem): Likewise.
28482 (mpn_lshift): Likewise.
28483 (mpn_mul): Likewise.
28484 (mpn_mul_1): Likewise.
28485 (mpn_rshift): Likewise.
28486 (mpn_sub_1): Likewise.
28487 (mpn_submul_1): Likewise.
28488 (mpn_sub_n): Likewise.
28489
44af8a32
L
284902017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28491
28492 [BZ #18822]
28493 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28494 (__wcscat): Likewise.
28495 (__btowc): Likewise.
28496 (__wcrtomb): Likewise.
28497 (__mbsrtowcs): Likewise.
28498 (__wcsrtombs): Likewise.
28499 (__mbsnrtowcs): Likewise.
28500 (__wcsnrtombs): Likewise.
28501 (__wcsncpy): Likewise.
28502 (__wcpncpy): Likewise.
28503 (__wmemcpy): Likewise.
28504 (__wmempcpy): Likewise.
28505 (__wmemmove): Likewise.
28506 (__wcschrnul): Likewise.
28507 (__vfwscanf): Likewise.
28508 (__vswprintf): Likewise.
28509 (__fwprintf): Likewise.
28510 (__vfwprintf): Likewise.
28511
783cd767
L
285122017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28513
28514 [BZ #18822]
28515 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28516 (__getgrgid_r): Likewise.
28517 (__getgrnam_r): Likewise.
28518 * include/pwd.h (__getpwuid_r): Likewise.
28519 (__getpwnam_r): Likewise.
28520 (__fgetpwent_r): Likewise.
28521 * include/shadow.h (__getspnam_r): Likewise.
28522 (__sgetspent_r): Likewise.
28523 (__fgetspent_r): Likewise.
28524
7ec4b39a
L
285252017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28526
28527 [BZ #18822]
28528 * include/unistd.h (__access): Add attribute_hidden.
28529 (__lseek64): Likewise.
28530 (__libc_pread64): Likewise.
28531 (__pipe2): Likewise.
28532 (__sleep): Likewise.
28533 (__chdir): Likewise.
28534 (__fchdir): Likewise.
28535 (__getcwd): Likewise.
28536 (__rmdir): Likewise.
28537 (__execvpe): Likewise.
28538 (__execve): Likewise.
28539 (__setsid): Likewise.
28540 (__getuid): Likewise.
28541 (__geteuid): Likewise.
28542 (__getgid): Likewise.
28543 (__getegid): Likewise.
28544 (__getgroups): Likewise.
28545 (__group_member): Likewise.
28546 (__ttyname_r): Likewise.
28547 (__isatty): Likewise.
28548 (__readlink): Likewise.
28549 (__unlink): Likewise.
28550 (__gethostname): Likewise.
28551 (__profil): Likewise.
28552 (__getdtablesize): Likewise.
28553 (__brk): Likewise.
28554 (__ftruncate): Likewise.
28555 (__ftruncate64): Likewise.
28556
8345a760
L
285572017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28558
28559 [BZ #18822]
28560 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28561 * argp/argp-fs-xinl.c: Likewise.
28562 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28563 * argp/argp-parse.c: Include <argp.h>.
28564 * argp/argp-xinl.c: Likewise.
28565 * include/argp-fmtstream.h: New file.
28566 * include/argp.h (__argp_error): Add attribute_hidden.
28567 (__argp_failure): Likewise.
28568 (__argp_input): Likewise.
28569 (__argp_state_help): Likewise.
28570
c26dd7c6
L
285712017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28572
28573 [BZ #18822]
28574 * include/wchar.h (____wcstof_l_internal): New prototype.
28575 (____wcstod_l_internal): Likewise.
28576 (____wcstold_l_internal): Likewise.
28577 (____wcstol_l_internal): Likewise.
28578 (____wcstoul_l_internal): Likewise.
28579 (____wcstoll_l_internal): Likewise.
28580 (____wcstoull_l_internal): Likewise.
28581 (____wcstof128_l_internal): Likewise.
28582 * sysdeps/ieee754/float128/wcstof128.c
28583 (____wcstof128_l_internal): Removed.
28584 * sysdeps/ieee754/float128/wcstof128_l.c
28585 (____wcstof128_l_internal): Likewise.
28586 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28587 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28588 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28589 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28590 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28591 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28592 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28593 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28594 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28595 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28596
3aff5644
L
285972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28598
28599 [BZ #18822]
28600 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28601 instead of <sys/statvfs.h>.
28602 (__internal_statvfs): Removed.
28603 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28604 instead of <sys/statvfs.h>.
28605 (__internal_statvfs64): Removed.
28606 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28607 "internal_statvfs.h" instead of <sys/statvfs.h>.
28608 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28609 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28610 instead of <sys/statvfs.h>.
28611 (__internal_statvfs): Removed.
28612 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28613 instead of <sys/statvfs.h>.
28614 (__internal_statvfs64): Removed.
28615
8bcdb7e0
L
286162017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28617
28618 [BZ #18822]
28619 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28620 (__gconv_close): Likewise.
28621 (__gconv): Likewise.
28622 (__gconv_find_transform): Likewise.
28623 (__gconv_lookup_cache): Likewise.
28624 (__gconv_compare_alias_cache): Likewise.
28625 (__gconv_load_cache): Likewise.
28626 (__gconv_get_path): Likewise.
28627 (__gconv_close_transform): Likewise.
28628 (__gconv_release_cache): Likewise.
28629 (__gconv_find_shlib): Likewise.
28630 (__gconv_release_shlib): Likewise.
28631 (__gconv_get_builtin_trans): Likewise.
28632 (__gconv_compare_alias): Likewise.
28633 * include/dlfcn.h (_dlerror_run): Likewise.
28634 * include/stdio.h (__fortify_fail_abort): Likewise.
28635 * include/time.h (__tz_compute): Likewise.
28636 (__strptime_internal): Likewise.
28637 * intl/gettextP.h (_nl_find_domain): Likewise.
28638 (_nl_load_domain): Likewise.
28639 (_nl_find_msg): Likewise.
28640 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28641 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28642 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28643 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28644 (__gai_find_request): Likewise.
28645 (__gai_remove_request): Likewise.
28646 (__gai_notify): Likewise.
28647 (__gai_notify_only): Likewise.
28648 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28649 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28650 (_dl_non_dynamic_init): Likewise.
28651 (_dl_aux_init): Likewise.
28652 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28653 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28654 Likewise.
28655 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28656 (__wcsmbs_clone_conv): Likewise.
28657 (__wcsmbs_named_conv): Likewise.
28658
8ed3b643
L
286592017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28660
28661 [BZ #18822]
28662 * include/stdlib.h (__random): Add attribute_hidden.
28663 (__random_r): Likewise.
28664 (__srandom_r): Likewise.
28665 (__initstate_r): Likewise.
28666 (__setstate_r): Likewise.
28667 (__erand48_r): Likewise.
28668 (__nrand48_r): Likewise.
28669 (__jrand48_r): Likewise.
28670 (__srand48_r): Likewise.
28671 (__seed48_r): Likewise.
28672 (__lcong48_r): Likewise.
28673 (__drand48_iterate): Likewise.
28674 (__setenv): Likewise.
28675 (__unsetenv): Likewise.
28676 (__clearenv): Likewise.
28677 (__ptsname_r): Likewise.
28678 (__posix_openpt): Likewise.
28679 (__add_to_environ): Likewise.
28680 (__realpath): Add libc_hidden_proto.
28681 (__ecvt_r): Likewise.
28682 (__fcvt_r): Likewise.
28683 (__qecvt_r): Likewise.
28684 (__qfcvt_r): Likewise.
28685 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28686 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28687
ef9b6f73
L
286882017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28689
28690 [BZ #18822]
28691 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28692 * include/time.h (__mktime_internal): Likewise.
28693 * libio/iolibio.h (__fopen_internal): Likewise.
28694
8da92e72
JDA
286952017-10-01 John David Anglin <danglin@gcc.gnu.org>
28696
28697 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28698 pointer in frame.
28699 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28700 Correct offset used to restore PIC register.
28701
388784cf
JDA
287022017-09-30 John David Anglin <danglin@gcc.gnu.org>
28703
28704 [BZ libc/22165]
28705 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28706 code to load address of __getcontext_ret when generating PIC code.
28707
2000067a
L
287082017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28709
28710 * elf/Makefile (tests-static-internal): Add
28711 tst-tls1-static-non-pie.
28712 (LDFLAGS-tst-tls1-static-non-pie): New.
28713 * elf/tst-tls1-static-non-pie.c: New file.
28714
1e2bffd0
JM
287152017-09-29 Joseph Myers <joseph@codesourcery.com>
28716
28717 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28718 (asinh): Define using libm_alias_double.
28719 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28720 (cbrt): Define using libm_alias_double.
28721 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28722 <libm-alias-double.h>.
28723 (copysign): Define using libm_alias_double.
28724 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28725 (erf): Define using libm_alias_double.
28726 (erfc): Likewise.
28727 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28728 (expm1): Define using libm_alias_double.
28729 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28730 (fabs): Define using libm_alias_double.
28731 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28732 libm_alias_double.
28733 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28734 <libm-alias-double.h>.
28735 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28736 libm_alias_double.
28737 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28738 <libm-alias-double.h>.
28739 (getpayload): Define using libm_alias_double.
28740 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28741 <libm-alias-double.h>.
28742 (llrint): Define using libm_alias_double.
28743 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28744 (lrint): Define using libm_alias_double.
28745 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28746 <libm-alias-double.h>.
28747 (nextup): Define using libm_alias_double.
28748 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28749 <libm-alias-double.h>.
28750 (roundeven): Define using libm_alias_double.
28751 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28752 libm_alias_double.
28753 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28754 <libm-alias-double.h>.
28755 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28756 using libm_alias_double.
28757 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28758 (cos): Define using libm_alias_double.
28759 (sin): Likewise.
28760 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28761 <libm-alias-double.h>.
28762 (sincos): Define using libm_alias_double.
28763 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28764 (tanh): Define using libm_alias_double.
28765 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28766 <libm-alias-double.h>.
28767 (totalorder): Define using libm_alias_double.
28768 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28769 <libm-alias-double.h>.
28770 (totalordermag): Define using libm_alias_double.
28771 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28772 libm_alias_double.
28773 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28774 libm_alias_double.
28775 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28776 <libm-alias-double.h>.
28777 (getpayload): Define using libm_alias_double.
28778 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28779 <libm-alias-double.h>.
28780 (roundeven): Define using libm_alias_double.
28781 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28782 <libm-alias-double.h>.
28783 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28784 <libm-alias-double.h>.
28785 (totalorder): Define using libm_alias_double.
28786 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28787 <libm-alias-double.h>.
28788 (totalordermag): Define using libm_alias_double.
28789 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28790 libc compat symbol here.
28791 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28792 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28793 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28794 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28795 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28796 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28797 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28798 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28799 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28800 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28801
8172aad9
L
288022017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28803
28804 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28805 _dl_relocate_static_pie instead of _dl_start to compute load
28806 address in static PIE. Return 0 if _DYNAMIC is undefined for
28807 static executable.
28808
54464e74
L
288092017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28810
28811 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28812 _DYNAMIC is undefined for static executable.
28813
f6c5e5bc
L
288142017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28815
28816 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28817
2f92505d
JM
288182017-09-29 Joseph Myers <joseph@codesourcery.com>
28819
28820 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28821
bd8d53bb
WD
288222017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28823
28824 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28825 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28826 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28827 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28828 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28829 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28830 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28831 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28832 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28833 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28834 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28835 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28836 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28837 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28838 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28839 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28840 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28841
fffb1507
WD
288422017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28843
28844 * math/bits/cmathcalls.h (cimag): Remove inline.
28845 (creal): Remove inline.
28846 (conj): Remove inline.
28847
4ea49f4c
SN
288482017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28849
28850 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28851 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28852 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28853 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28854 (issignalingf_inline): Likewise.
28855 (POWF_LOG2_TABLE_BITS): Likewise.
28856 (POWF_LOG2_POLY_ORDER): Likewise.
28857 (POWF_SCALE_BITS): Likewise.
28858 (POWF_SCALE): Likewise.
28859 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28860 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28861 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28862
875c76c7
SN
288632017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28864
28865 * math/Makefile (type-float-routines): Add e_log2f_data.
28866 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28867 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28868 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28869 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28870 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28871 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28872 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28873
90c42e40
SN
288742017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28875
28876 * math/Makefile (type-float-routines): Add e_logf_data.
28877 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28878 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28879 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28880 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28881 * sysdeps/i386/fpu/e_logf_data.c: New file.
28882 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28883 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28884
4088d8dd
L
288852017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28886
28887 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28888 undefined _DYNAMIC in PIE libc.a.
28889 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28890 Likewse.
28891
4d3693ec
WD
288922017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28893
28894 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28895 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28896 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28897 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28898 (__signbit): Remove.
28899 (__signbitl): Remove.
28900 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28901 (__signbit): Remove.
28902 (__signbitl): Remove.
28903 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28904 (__signbit): Remove.
28905 (__signbitl): Remove.
28906 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28907 (__signbit): Remove.
28908 (__signbitl): Remove.
28909 * sysdeps/tile/bits/mathinline.h: Delete file.
28910 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28911 (__signbit): Remove.
28912 (__signbitl): Remove.
28913
1e6d0723
WD
289142017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28915
28916 * math/math.h: Improve handling of C99 isgreater macros.
28917 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28918 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28919 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28920 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28921 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28922
b2f03cf3
SN
289232017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28924
28925 * sysdeps/aarch64/libm-test-ulps: Update.
28926
f124cb38
JM
289272017-09-28 Joseph Myers <joseph@codesourcery.com>
28928
28929 [BZ #22225]
28930 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28931 math_opt_barrier on argument when doing arithmetic on it.
28932 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28933 Likewise. Use math_force_eval not math_opt_barrier after
28934 arithmetic.
28935 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28936 math_opt_barrier on argument when doing arithmetic on it.
28937 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28938 Likewise.
28939
7edd0691
L
289402017-09-27 H.J. Lu <hongjiu.lu@intel.com>
28941
28942 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
28943 libc_hidden_def.
28944 (__freeifaddrs): Likewise.
28945
2c7bbfaf
ST
289462017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
28947
28948 * include/dirent.h (__dirfd): New declaration.
28949 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
28950 alias.
28951 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
28952 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
28953 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
28954 * include/unistd.h (__revoke): New declaration.
28955 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
28956 alias.
28957 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
28958 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
28959 revoke.
64a4af28
ST
28960 * include/dirent.h (__seekdir): New declaration.
28961 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
28962 redefine as weak alias.
28963 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
28964 of seekdir.
4009ddc6
ST
28965 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
28966 and use libc_hidden_def on them.
28967 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
28968 them.
28969 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
28970 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
28971 instead of getifaddrs and freeifaddrs.
2c7bbfaf 28972
825adeee
L
289732017-09-26 H.J. Lu <hongjiu.lu@intel.com>
28974
28975 [BZ #18822]
28976 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
28977 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
28978 (__dso_handle): Remove declaration.
28979 * dlfcn/tstatexit.c (__dso_handle): Removed.
28980 (main): Don't check __dso_handle.
28981 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
28982 (main): Don't check __dso_handle.
28983 * include/dso_handle.h: New file.
28984 * malloc/mtrace.c: Include <dso_handle.h>.
28985 (mtrace): Pass __dso_handle directly.
28986 * nptl/pthread_atfork.c: Include <dso_handle.h>.
28987 (__dso_handle): Remove declaration.
28988 (__pthread_atfork): Pass __dso_handle directly.
28989 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
28990 (__dso_handle): Removed.
28991 * posix/wordexp-test.c: Include <dso_handle.h>.
28992 (__dso_handle): Remove declaration.
28993 (__app_register_atfork): Pass __dso_handle directly.
28994 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
28995 (__dso_handle): Remove declaration.
28996 (at_quick_exit): Pass __dso_handle directly.
28997 * stdlib/atexit.c: Include <dso_handle.h>.
28998 (__dso_handle): Remove declaration.
28999 (atexit): Pass __dso_handle directly.
29000 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29001 (__dso_handle): Removed.
29002
bfb0deb3
JM
290032017-09-26 Joseph Myers <joseph@codesourcery.com>
29004
29005 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29006 using VDSO.
29007
cebcb9f8
AM
290082017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29009
29010 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29011 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29012 values to correct default value for given type.
29013
592d5c75
L
290142017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29015
29016 [BZ #22101]
29017 * elf/Makefile (tests): Add tst-debug1.
29018 ($(objpfx)tst-debug1): New.
29019 ($(objpfx)tst-debug1.out): Likewise.
29020 ($(objpfx)tst-debug1mod1.so): Likewise.
29021 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29022 with p_filesz == 0.
29023 * elf/tst-debug1.c: New file.
29024
2d9193f2
JM
290252017-09-26 Joseph Myers <joseph@codesourcery.com>
29026
29027 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29028 Define using __ifunc.
29029
4c5a7a02
TMQMF
290302017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29031
29032 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29033 exp2f() values.
29034
12ef66c4
JM
290352017-09-26 Joseph Myers <joseph@codesourcery.com>
29036
29037 [BZ #22156]
29038 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29039
44dade71
FW
290402017-09-26 Florian Weimer <fweimer@redhat.com>
29041
29042 * resolv/Makefile (tests-internal): Fix typo in comment.
29043
eaca16f1
FW
290442017-09-26 Florian Weimer <fweimer@redhat.com>
29045
29046 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29047
ccf970c7
AZ
290482017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29049
5f9f31ad
AZ
29050 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29051 Use an union instead of a max_align_t array for __space,
29052 so that __space is the same size on all platforms.
29053 * malloc/scratch_buffer_grow_preserve.c
29054 (__libc_scratch_buffer_grow_preserve): Likewise.
29055
ccf970c7
AZ
29056 [BZ #22183]
29057 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29058 version to 2.
29059 * posix/Makefile (routines): Add glob-lstat-compat and
29060 glob64-lstat-compat.
29061 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29062 * posix/glob-lstat-compat.c: New file.
29063 * posix/glob64-lstat-compat.c: Likewise.
29064 * posix/tst-glob_lstat_compat.c: Likewise.
29065 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29066 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29067 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29068 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29069 Likewise.
29070 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29071 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29072 * posix/glob.c (glob_lstat): New function.
29073 (glob): Rename to __glob and add versioned symbol to 2.27.
29074 (glob_in_dir): Use glob_lstat.
29075 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29076 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29077 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29078 2.27.
29079 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29080 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29081 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29082 gl_lstat on glob call.
29083 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29084 and glob64 symbols.
29085 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29086 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29087 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29088 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29089 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29090 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29091 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29092 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29093 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29094 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29095 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29096 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29098 Likewise.
29099 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29101 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29102 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29103 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29104 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29105 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29106 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29107 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29108 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29109 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29110 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29111
b4396163
L
291122017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29113
29114 * configure.ac (AS): Require binutils 2.25 or later.
29115 * configure: Regenerated.
29116
8f834987
PP
291172017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29118
29119 [BZ #22207]
29120 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29121 VM size.
29122
3de93d19
DD
291232017-09-25 DJ Delorie <dj@redhat.com>
29124
29125 [BZ #22161]
29126 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29127 resetting timeout.
29128
9947638d
SL
291292017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29130
29131 * sysdeps/ieee754/dbl-64/sincos32.h
29132 [SINCCOS32_H]: Remove define.
29133 [SINCOS32_H]: Define.
29134
f5f0f526
SN
291352017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29136
29137 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29138 (exp2f): Likewise.
29139 * math/w_exp2f.c: New file.
29140 * math/w_expf.c: New file.
29141 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29142 * math/w_expf_compat.c (__expf_compat): Likewise.
29143 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29144 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29145 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29146 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29147 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29148 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29149 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29150 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29151 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29152 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29153 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29154 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29155 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29156 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29158 Likewise.
29159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29160 Likewise.
29161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29162 Likewise.
29163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29164 Likewise.
29165 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29166 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29167 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29168 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29169 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29170 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29171 Likewise.
29172 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29173 Likewise.
29174 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29175 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29176 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29177
72aa6233
SN
291782017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29179
29180 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29181 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29182 (roundtoint, converttoint): Likewise.
29183 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29184 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29185 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29186 * sysdeps/ieee754/flt-32/math_config.h: New file.
29187 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29188 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29189 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29190 * sysdeps/i386/fpu/math_errf.c: New file.
29191 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29192 * sysdeps/ia64/fpu/math_errf.c: New file.
29193 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29194 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29195
5e6f3253
ST
291962017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29197
29198 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29199 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29200 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29201 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29202 to make sure that these symbols are defined.
b38a42a0
ST
29203 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29204 of <limits.h>
29205 (__need_NULL): Do not define.
29206 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29207 alignment.
29208 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29209 CMGROUP_MAX, cmsgcred): Do not define.
29210 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29211 NULL.
29212 * bits/socket.h: Likewise.
fcafcd16
ST
29213 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29214 __gettimeofday instead of gettimeofday.
29215 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29216 instead of settimeofday.
5e6f3253 29217
2f49ce7d
JM
292182017-09-22 Joseph Myers <joseph@codesourcery.com>
29219
29220 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29221 (asinhf): Define using libm_alias_float.
29222 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29223 (atanf): Define using libm_alias_float.
29224 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29225 (cbrtf): Define using libm_alias_float.
29226 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29227 (ceilf): Define using libm_alias_float.
29228 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29229 <libm-alias-float.h>.
29230 (copysignf): Define using libm_alias_float.
29231 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29232 (cosf): Define using libm_alias_float.
29233 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29234 (erff): Define using libm_alias_float.
29235 (erfcf): Likewise.
29236 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29237 (expm1f): Define using libm_alias_float.
29238 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29239 (fabsf): Define using libm_alias_float.
29240 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29241 (floorf): Define using libm_alias_float.
29242 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29243 (frexpf): Define using libm_alias_float.
29244 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29245 libm_alias_float.
29246 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29247 <libm-alias-float.h>.
29248 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29249 libm_alias_float.
29250 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29251 <libm-alias-float.h>.
29252 (getpayloadf): Define using libm_alias_float.
29253 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29254 <libm-alias-float.h>.
29255 (llrintf): Define using libm_alias_float.
29256 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29257 <libm-alias-float.h>.
29258 (llroundf): Define using libm_alias_float.
29259 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29260 (logbf): Define using libm_alias_float.
29261 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29262 (lrintf): Define using libm_alias_float.
29263 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29264 (lroundf): Define using libm_alias_float.
29265 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29266 (modff): Define using libm_alias_float.
29267 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29268 <libm-alias-float.h>.
29269 (nearbyintf): Define using libm_alias_float.
29270 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29271 <libm-alias-float.h>.
29272 (nextafterf): Define using libm_alias_float.
29273 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29274 <libm-alias-float.h>.
29275 (nextupf): Define using libm_alias_float.
29276 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29277 <libm-alias-float.h>.
29278 (remquof): Define using libm_alias_float.
29279 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29280 (rintf): Define using libm_alias_float.
29281 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29282 <libm-alias-float.h>.
29283 (roundevenf): Define using libm_alias_float.
29284 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29285 (roundf): Define using libm_alias_float.
29286 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29287 using libm_alias_float.
29288 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29289 <libm-alias-float.h>.
29290 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29291 Define using libm_alias_float.
29292 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29293 <libm-alias-float.h>.
29294 (sincosf): Define using libm_alias_float.
29295 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29296 (sinf): Define using libm_alias_float.
29297 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29298 (tanf): Define using libm_alias_float.
29299 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29300 (tanhf): Define using libm_alias_float.
29301 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29302 <libm-alias-float.h>.
29303 (totalorderf): Define using libm_alias_float.
29304 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29305 <libm-alias-float.h>.
29306 (totalordermagf): Define using libm_alias_float.
29307 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29308 (truncf): Define using libm_alias_float.
29309 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29310 libm_alias_float.
29311 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29312 libm_alias_float.
29313
c5c4a626
GG
293142017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29315
29316 [BZ #22146]
29317 math/math.h: Let fpclassify use the builtin in C++ mode, even
29318 when optimazing for size.
29319
23947846
JM
293202017-09-22 Joseph Myers <joseph@codesourcery.com>
29321
29322 * csu/Makefile (generated): Do not add version-info.h.
29323 (before-compile): Likewise.
29324 (all-Banner-files): Remove variable.
29325 ($(objpfx)version-info.h): Remove rule.
29326 * csu/version.c (banner): Do not include "version-info.h".
29327 * libidn/Banner: Remove.
29328 * manual/contrib.texi (Simon Josefsson): New entry.
29329
9ac3c682
GG
293302017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29331
29332 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29333 Remove conditionals on LDBL_MANT_DIG.
29334 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29335 (__ieee754_lgammal_r): Likewise.
29336
d2f0ed09
GG
293372017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29338
29339 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29340 _Float128 and L().
29341 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29342 _Float128 and L(). Replace _Float128 with long double and L(x)
29343 with xL, throughout the file.
29344 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29345 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29346 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29347 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29348
c5c2e667
GG
293492017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29350
29351 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29352 sysdeps/ieee754/ldbl-128ibm.
29353 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29354 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29355 of including it. Keep _Float128 and L() intact. These will be
29356 reviewed by a separate patch.
29357 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29358 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29359 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29360 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29361
e010deb2
GG
293622017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29363
29364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29365 (__finitef128): Define to __redirect___finitef128.
29366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29367 (__isinff128): Define to __redirect___isinff128.
29368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29369 (__isnanf128): Define to __redirect___isnanf128.
29370
ffa44804
GG
293712017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29372
29373 * sysdeps/powerpc/powerpc64le/Makefile
29374 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29375 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29376
e5e4d7cc
PP
293772017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29378 Carlos O'Donell <carlos@redhat.com>
29379
29380 [BZ #22180]
29381 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29382 * stdlib/test-dlclose-exit-race.c: New file.
29383 * stdlib/test-dlclose-exit-race-helper.c: New file.
29384 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29385
c10c5267
JM
293862017-09-21 Joseph Myers <joseph@codesourcery.com>
29387
29388 * crypt/Banner: Remove file.
29389 * nptl/Banner: Likewise.
29390 * resolv/Banner: Likewise.
29391 * soft-fp/Banner: Likewise.
29392 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29393 ($(objpfx)version.d): Remove dependency on banner.h.
29394 ($(objpfx)version.os): Likewise.
29395 * nptl/version.c (banner): Do not include banner.h.
29396 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29397 Jelinek and BIND code.
29398
1cc9e59a
PP
293992017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29400 Carlos O'Donell <carlos@redhat.com>
29401
29402 * support/xdlfcn.h: New file.
29403 * support/xdlfcn.c: New file.
29404 * support/Makefile (libsupport-routines): Add xdlfcn.
29405 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29406
ae8372d7
JM
294072017-09-20 Joseph Myers <joseph@codesourcery.com>
29408
29409 [BZ #20142]
29410 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29411 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29412 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29413 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29414 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29415 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29416 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29417 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29418
26e70aec 294192017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
b39d961c
TS
29420 Ricky Zhou <rickyz@google.com>
29421 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26e70aec
PP
29422
29423 [BZ #14333]
29424 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29425 Remove atomics.
29426 (__new_exitfn): Fail registration when we finished at_exit processing.
29427 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29428 * stdlib/on_exit.c (__on_exit): Likewise.
29429 * stdlib/exit.c (__exit_funcs_done): New variable.
29430 (__run_exit_handlers): Use __exit_funcs_lock.
29431 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29432 declarations.
29433 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29434 (test-cxa_atexit-race, test-on_exit-race): New tests.
29435 * stdlib/test-atexit-race-common.c: New file.
29436 * stdlib/test-atexit-race.c: New file.
29437 * stdlib/test-at_quick_exit-race.c: New file.
29438 * stdlib/test-cxa_atexit-race.c: New file.
29439 * stdlib/test-on_exit-race.c: New file.
29440
0525ce48
SN
294412017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29442
29443 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29444 * benchtests/exp2f-inputs: Copy of expf-inputs.
29445 * benchtests/log2f-inputs: Copy of logf-inputs.
29446
d82468d1
JM
294472017-09-19 Joseph Myers <joseph@codesourcery.com>
29448
29449 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29450 Explicitly take address of first element of array arguments in
29451 call to INLINE_SYSCALL.
29452
43ffc53a
AS
294532017-09-19 Andreas Schwab <schwab@suse.de>
29454
29455 [BZ #22134]
29456 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29457 execveat first.
29458 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29459 unimplemented.
29460 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29461 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29462 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29463 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29464 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29465 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29466 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29467 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29468 * posix/Makefile (tests): Add tst-fexecve.
29469 * posix/tst-fexecve.c: New file.
29470
a5dcc87e
WD
294712017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29472
29473 * benchtests/Makefile: Add logf benchmark.
29474 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29475
7024d544
WD
294762017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29477
29478 * benchtests/Makefile: Add expf benchmark.
29479 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29480
ca3a382e
WD
294812017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29482
29483 * csu/Makefile: Add -funwind-tables to libc-start.c.
29484 * debug/Makefile: Add -funwind-tables to backtrace.c.
29485 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29486 * sysdeps/arm/Makefile: Likewise.
29487 * sysdeps/i386/Makefile: Likewise.
29488 * sysdeps/m68k/Makefile: Likewise.
29489 * sysdeps/mips/Makefile: Likewise.
29490 * sysdeps/nios2/Makefile: Likewise.
29491 * sysdeps/sh/Makefile: Likewise.
29492 * sysdeps/sparc/Makefile: Likewise.
29493
eb375def
JM
294942017-09-19 Joseph Myers <joseph@codesourcery.com>
29495
29496 * benchtests/Makefile (bench-math): Add trunc and truncf.
29497 (CFLAGS-bench-trunc.c): New variable.
29498 (CFLAGS-bench-truncf.c): Likewise.
29499 * benchtests/trunc-inputs: New file.
29500 * benchtests/truncf-inputs: Likewise.
29501
bd17ba29
RS
295022017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29503
29504 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29505
92892fdb
JM
295062017-09-18 Joseph Myers <joseph@codesourcery.com>
29507
6d9b0b5a
JM
29508 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29509 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29510 redefine.
29511 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29512 (exp10l): Define as weak alias.
29513 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29514 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29515 and redefine.
29516 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29517 (remainderl): Define as weak alias.
29518
92892fdb
JM
29519 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29520 (fmal): Define using libm_alias_ldouble.
29521 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29522 (acoshl): Define using libm_alias_ldouble.
29523 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29524 (acosl): Define using libm_alias_ldouble.
29525 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29526 (asinl): Define using libm_alias_ldouble.
29527 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29528 (atan2l): Define using libm_alias_ldouble.
29529 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29530 (atanhl): Define using libm_alias_ldouble.
29531 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29532 (coshl): Define using libm_alias_ldouble.
29533 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29534 (exp10l): Define using libm_alias_ldouble.
29535 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29536 (exp2l): Define using libm_alias_ldouble.
29537 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29538 (expl): Define using libm_alias_ldouble.
29539 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29540 (fmodl): Define using libm_alias_ldouble.
29541 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29542 (hypotl): Define using libm_alias_ldouble.
29543 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29544 (j0l): Define using libm_alias_ldouble.
29545 (y0l): Likewise.
29546 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29547 (j1l): Define using libm_alias_ldouble.
29548 (y1l): Likewise.
29549 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29550 (jnl): Define using libm_alias_ldouble.
29551 (ynl): Likewise.
29552 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29553 (log10l): Define using libm_alias_ldouble.
29554 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29555 (log2l): Define using libm_alias_ldouble.
29556 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29557 (logl): Define using libm_alias_ldouble.
29558 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29559 (powl): Define using libm_alias_ldouble.
29560 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29561 (remainderl): Define using libm_alias_ldouble.
29562 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29563 (sinhl): Define using libm_alias_ldouble.
29564 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29565 (sqrtl): Define using libm_alias_ldouble.
29566 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29567 (tgammal): Define using libm_alias_ldouble.
29568 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29569 (exp10l): Do not use long_double_symbol here.
29570 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29571 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29572 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29573 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29574 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29575 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29576 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29577 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29578 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29579 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29580 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29581 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29582 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29583 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29584 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29585 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29586 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29587 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29588 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29589 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29590 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29591 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29592
6cd380dd
WB
295932017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29594
29595 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29596 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29597
1c6d89e9
ST
295982017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29599
29600 * io/read.c (read): Add libc_hidden_weak.
29601 * sysdeps/mach/hurd/read.c (read): Likewise.
29602 * io/write.c (write): Likewise.
29603 * sysdeps/mach/hurd/write.c (write): Likewise.
29604 * io/pread64.c (__pread64): Likewise.
29605 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29606 * posix/pread64.c (__pread64): Add libc_hidden_def.
29607
06b1de23
SP
296082017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29609
140647ea
SP
29610 * benchtests/scripts/compare_strings.py: New option -g.
29611 (draw_graph): Print a message that a graph is being generated.
29612 (process_results): Generate graph only if -g is passed.
29613 (main): Process option -g.
29614
5a6547b7
SP
29615 * benchtests/scripts/compare_strings.py (process_results):
29616 Better spacing for output.
29617
06b1de23
SP
29618 * benchtests/scripts/compare_strings.py: Use argparse.
29619 * benchtests/README: Document existence of compare_strings.py.
29620
c67a2328
JM
296212017-09-15 Joseph Myers <joseph@codesourcery.com>
29622
9ac44708
JM
29623 * math/s_fma.c: Include <libm-alias-double.h>.
29624 (fma): Define using libm_alias_double.
29625 * math/s_nextafter.c: Include <libm-alias-double.h>.
29626 (nextafter): Define using libm_alias_double.
29627 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29628 (acos): Define using libm_alias_double.
29629 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29630 (aocsh): Define using libm_alias_double.
29631 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29632 (asin): Define using libm_alias_double.
29633 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29634 (atan2): Define using libm_alias_double.
29635 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29636 (atanh): Define using libm_alias_double.
29637 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29638 (cosh): Define using libm_alias_double.
29639 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29640 (exp10): Define using libm_alias_double.
29641 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29642 (exp2): Define using libm_alias_double.
29643 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29644 (exp): Define using libm_alias_double.
29645 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29646 (fmod): Define using libm_alias_double.
29647 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29648 (hypot): Define using libm_alias_double.
29649 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29650 (j0): Define using libm_alias_double.
29651 (y0): Likewise.
29652 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29653 (j1): Define using libm_alias_double.
29654 (y1): Likewise.
29655 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29656 (jn): Define using libm_alias_double.
29657 (yn): Likewise.
29658 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29659 (log10): Define using libm_alias_double.
29660 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29661 (log2): Define using libm_alias_double.
29662 * math/w_log_compat.c: Include <libm-alias-double.h>.
29663 (log): Define using libm_alias_double.
29664 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29665 (pow): Define using libm_alias_double.
29666 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29667 (remainder): Define using libm_alias_double.
29668 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29669 (sinh): Define using libm_alias_double.
29670 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29671 (sqrt): Define using libm_alias_double.
29672 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29673 (tgamma): Define using libm_alias_double.
29674 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29675 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29676 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29677 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29678 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29679 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29680 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29681 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29682 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29683 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29684 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29685 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29686 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29687 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29688 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29689 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29690 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29691 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29692 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29693 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29694 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29695 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29696 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29697 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29698 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29699
c67a2328
JM
29700 * math/e_acoshl.c: Remove.
29701 * math/e_acosl.c: Likewise.
29702 * math/e_asinl.c: Likewise.
29703 * math/e_atan2l.c: Likewise.
29704 * math/e_atanhl.c: Likewise.
29705 * math/e_coshl.c: Likewise.
29706 * math/e_expl.c: Likewise.
29707 * math/e_fmodl.c: Likewise.
29708 * math/e_gammal_r.c: Likewise.
29709 * math/e_hypotl.c: Likewise.
29710 * math/e_j0l.c: Likewise.
29711 * math/e_j1l.c: Likewise.
29712 * math/e_jnl.c: Likewise.
29713 * math/e_lgammal_r.c: Likewise.
29714 * math/e_log10l.c: Likewise.
29715 * math/e_log2l.c: Likewise.
29716 * math/e_logl.c: Likewise.
29717 * math/e_powl.c: Likewise.
29718 * math/e_rem_pio2l.c: Likewise.
29719 * math/e_sinhl.c: Likewise.
29720 * math/e_sqrtf128.c: Likewise.
29721 * math/e_sqrtl.c: Likewise.
29722 * math/k_cosl.c: Likewise.
29723 * math/k_sinl.c: Likewise.
29724 * math/k_tanl.c: Likewise.
29725 * math/s_asinhl.c: Likewise.
29726 * math/s_atanl.c: Likewise.
29727 * math/s_cbrtl.c: Likewise.
29728 * math/s_erfl.c: Likewise.
29729 * math/s_expm1l.c: Likewise.
29730 * math/s_log1pl.c: Likewise.
29731 * math/s_tanhl.c: Likewise.
29732
61c45f25
TMQMF
297332017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29734
29735 [BZ #21745]
29736 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29737 [$(subdir) = math] (sysdep_calls): New variable. Has the
29738 previous contents of sysdep_routines, but re-sorted..
29739 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29740 sysdep_calls.
29741 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29742 defined in sysdep_calls and replace by the respective m_* names.
29743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29744 (compat_symbol): Undefine to avoid duplicated compat symbols in
29745 libc.
29746
5bcdb315
JM
297472017-09-15 Joseph Myers <joseph@codesourcery.com>
29748
29749 * math/s_fmaf.c: Include <libm-alias-float.h>.
29750 (fmaf): Define using libm_alias_float.
29751 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29752 (acosf): Define using libm_alias_float.
29753 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29754 (acoshf): Define using libm_alias_float.
29755 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29756 (asinf): Define using libm_alias_float.
29757 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29758 (atan2f): Define using libm_alias_float.
29759 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29760 (atanhf): Define using libm_alias_float.
29761 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29762 (coshf): Define using libm_alias_float.
29763 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29764 (exp10f): Define using libm_alias_float.
29765 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29766 (fmodf): Define using libm_alias_float.
29767 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29768 (hypotf): Define using libm_alias_float.
29769 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29770 (j0f): Define using libm_alias_float.
29771 (y0f): Likewise.
29772 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29773 (j1f): Define using libm_alias_float.
29774 (y1f): Likewise.
29775 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29776 (jnf): Define using libm_alias_float.
29777 (ynf): Likewise.
29778 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29779 (log10f): Define using libm_alias_float.
29780 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29781 (log2f): Define using libm_alias_float.
29782 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29783 (logf): Define using libm_alias_float.
29784 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29785 (powf): Define using libm_alias_float.
29786 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29787 (remainderf): Define using libm_alias_float.
29788 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29789 (sinhf): Define using libm_alias_float.
29790 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29791 (sqrtf): Define using libm_alias_float.
29792 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29793 (tgammaf): Define using libm_alias_float.
29794
01f28812
JM
297952017-09-14 Joseph Myers <joseph@codesourcery.com>
29796
29797 * include/math.h (roundeven): Change hidden_proto call to
29798 __roundeven.
29799 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29800 alias.
29801 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29802 (y0): Rename to __y0 and define as weak alias.
29803 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29804 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29805 alias.
29806 (y0f): Rename to __y0f and define as weak alias.
29807 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29808 alias.
29809 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29810 (y1): Rename to __y1 and define as weak alias.
29811 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29812 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29813 alias.
29814 (y1f): Rename to __y1f and define as weak alias.
29815 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29816 alias.
29817 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29818 (yn): Rename to __yn and define as weak alias.
29819 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29820 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29821 alias.
29822 (ynf): Rename to __ynf and define as weak alias.
29823 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29824 (fromfp): Define as weak alias.
29825 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29826 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29827 (fromfpx): Define as weak alias.
29828 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29829 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29830 __getpayload and define as weak alias.
29831 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29832 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29833 __roundeven and define as weak alias.
29834 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29835 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29836 __setpayload.
29837 (setpayload): Define as weak alias.
29838 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29839 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29840 __setpayloadsig.
29841 (setpayloadsig): Define as weak alias.
29842 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29843 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29844 __totalorder and define as weak alias.
29845 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29846 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29847 to __totalordermag and define as weak alias.
29848 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29849 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29850 (ufromfp): Define as weak alias.
29851 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29852 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29853 __ufromfpx.
29854 (ufromfpx): Define as weak alias.
29855 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29856 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29857 Rename to __getpayload and define as weak alias.
29858 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29859 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29860 Rename to __roundeven and define as weak alias.
29861 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29862 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29863 Rename to __totalorder and define as weak alias.
29864 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29865 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29866 (totalordermag): Rename to __totalordermag and define as weak
29867 alias.
29868 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29869 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29870 macro.
29871 (__roundevenl): Likewise.
29872 (__totalorderl): Likewise.
29873 (__totalordermagl): Likewise
29874 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29875 __fromfpf128.
29876 (fromfpf128): Define as weak alias.
29877 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29878 __fromfpxf128.
29879 (fromfpxf128): Define as weak alias.
29880 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29881 __setpayloadf128.
29882 (setpayloadf128): Define as weak alias.
29883 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29884 __setpayloadsigf128.
29885 (setpayloadsigf128): Define as weak alias.
29886 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29887 __ufromfpf128.
29888 (ufromfpf128): Define as weak alias.
29889 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29890 __ufromfpxf128.
29891 (ufromfpxf128): Define as weak alias.
29892 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29893 (fromfpf): Define as weak alias.
29894 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29895 __fromfpxf.
29896 (fromfpxf): Define as weak alias.
29897 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29898 __getpayloadf and define as weak alias.
29899 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29900 __roundevenf and define as weak alias.
29901 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29902 __setpayloadf.
29903 (setpayloadf): Define as weak alias.
29904 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29905 __setpayloadsigf.
29906 (setpayloadsigf): Define as weak alias.
29907 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29908 __totalorderf and define as weak alias.
29909 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29910 Rename to __totalordermagf and define as weak alias.
29911 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29912 __ufromfpf.
29913 (ufromfpf): Define as weak alias.
29914 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29915 __ufromfpxf.
29916 (ufromfpxf): Define as weak alias.
29917 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29918 __fromfpl.
29919 (fromfpl): Define as weak alias.
29920 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29921 __fromfpxl.
29922 (fromfpxl): Define as weak alias.
29923 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29924 to __getpayloadl and define as weak alias.
29925 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29926 __roundevenl and define as weak alias.
29927 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29928 __setpayloadl.
29929 (setpayloadl): Define as weak alias.
29930 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29931 __setpayloadsigl.
29932 (setpayloadsigl): Define as weak alias.
29933 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29934 to __totalorderl and define as weak alias.
29935 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29936 Rename to __totalordermagl and define as weak alias.
29937 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
29938 __ufromfpl.
29939 (ufromfpl): Define as weak alias.
29940 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
29941 __ufromfpxl.
29942 (ufromfpxl): Define as weak alias.
29943 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
29944 __fromfpl.
29945 (fromfpl): Define as weak alias.
29946 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
29947 __fromfpxl.
29948 (fromfpxl): Define as weak alias.
29949 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
29950 Rename to __getpayloadl and define as weak alias.
29951 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
29952 to __roundevenl and define as weak alias. Call __roundeven
29953 instead of roundeven.
29954 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
29955 __setpayloadl.
29956 (setpayloadl): Define as weak alias.
29957 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
29958 __setpayloadsigl.
29959 (setpayloadsigl): Define as weak alias.
29960 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
29961 Rename to __totalorderl and define as weak alias.
29962 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
29963 Rename to __totalordermagl and define as weak alias.
29964 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
29965 __ufromfpl.
29966 (ufromfpl): Define as weak alias.
29967 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
29968 __ufromfpxl.
29969 (ufromfpxl): Define as weak alias.
29970 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
29971 __fromfpl.
29972 (fromfpl): Define as weak alias.
29973 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
29974 __fromfpxl.
29975 (fromfpxl): Define as weak alias.
29976 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
29977 __getpayloadl and define as weak alias.
29978 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
29979 __roundevenl and define as weak alias.
29980 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
29981 __setpayloadl.
29982 (setpayloadl): Define as weak alias.
29983 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
29984 __setpayloadsigl.
29985 (setpayloadsigl): Define as weak alias.
29986 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
29987 __totalorderl and define as weak alias.
29988 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
29989 Rename to __totalordermagl and define as weak alias.
29990 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
29991 __ufromfpl.
29992 (ufromfpl): Define as weak alias.
29993 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
29994 __ufromfpxl.
29995 (ufromfpxl): Define as weak alias.
29996
29c933fb
SP
299972017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
29998
503c92c3
SP
29999 * benchtests/bench-string.h (realloc_bufs): New function.
30000 (test_init): Call it.
30001 * benchtests/bench-memset-large.c (do_test): Likewise.
30002 * benchtests/bench-memset.c (do_test): Likewise.
30003
29c933fb
SP
30004 * benchtests/bench-memset-large.c: Print output in JSON
30005 format.
30006 * benchtests/bench-memset.c: Likewise.
30007
799c8d69
MF
300082017-09-14 Mike FABIAN <mfabian@redhat.com>
30009
30010 [BZ #21084]
30011 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30012 * iconvdata/Makefile: Add IBM858.
30013 * iconvdata/gconv-modules: Likewise.
30014 * iconvdata/tst-tables.sh: Likewise.
30015 * iconvdata/ibm858.c: New file.
30016 * localedata/charmaps/IBM858: Likewise.
30017
c207f7ce 300182017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
30019
30020 [BZ #22023]
30021 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30022 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30023
f28a0926
AK
300242017-09-14 Mike FABIAN <mfabian@redhat.com>
30025
30026 [BZ #22112]
30027 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30028 and add tel_int_fmt.
30029
02093e62
JM
300302017-09-14 Joseph Myers <joseph@codesourcery.com>
30031
30032 * sysdeps/generic/libm-alias-float128.h: New file.
30033 * sysdeps/generic/math-type-macros-float128.h: Include
30034 <libm-alias-float128.h>.
30035 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30036
1aae75ef
JM
300372017-09-13 Joseph Myers <joseph@codesourcery.com>
30038
30039 * sysdeps/generic/libm-alias-ldouble.h: New file.
30040 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30041 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30042 * sysdeps/generic/math-type-macros-ldouble.h: Include
30043 <libm-alias-ldouble.h>.
30044 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30045 libm_alias_ldouble.
30046
bcea7ad6
SN
300472017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30048
30049 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30050 * math/w_exp_compat.c: ... here.
30051 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30052 * math/w_expf_compat.c: ... here.
30053 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30054 * math/w_expl_compat.c: ... here.
30055 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30056 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30057 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30058 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30059
0fc56478
JM
300602017-09-13 Joseph Myers <joseph@codesourcery.com>
30061
30062 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30063 redefine.
30064 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30065 macro.
30066 (ldexpl): Only define as compat symbol for libc, not libm.
30067 (scalbnl): Define as compat symbol for libc here.
30068 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30069 define for [IS_IN (libc)].
30070 (__ldexpl_2): Remove alias.
30071 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30072 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30073 name in long_double_symbol call.
30074 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30075 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30076 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30077 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30078 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30079 Remove macro.
30080 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30081 Define as compat symbol.
30082
3ca622e4
AZ
300832017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30084
30085 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30086 * sysdeps/unix/sysv/linux/alpha/Makefile
30087 [$(subdir) = csu] (sysdep_routines): Remove rule.
30088
620ff9ee
JM
300892017-09-13 Joseph Myers <joseph@codesourcery.com>
30090
30091 * sysdeps/generic/libm-alias-double.h: New file.
30092 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30093 * sysdeps/generic/math-type-macros-double.h: Include
30094 <libm-alias-double.h>.
30095 [declare_mgen_alias] (declare_mgen_alias): Define to use
30096 libm_alias_double.
30097 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30098 (M_LIBM_NEED_COMPAT): Remove macro.
30099 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30100 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30101 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30102 code.
30103 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30104 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30105 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30106 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30107 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30108 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30109 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30110 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30111 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30112 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30113 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30114 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30115 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30116 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30117 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30118 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30119 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30120 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30121 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30122 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30123 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30124 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30125 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30126 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30127 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30128 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30129 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30130 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30131 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30132 macro.
30133 (declare_mgen_alias): New macro.
30134 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30135 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30137 (M_LIBM_NEED_COMPAT): Remove macro.
30138 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30139 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30140 <first-versions.h>.
30141 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30142 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30143
a891caff
JM
301442017-09-12 Joseph Myers <joseph@codesourcery.com>
30145
30146 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30147 (declare_mgen_alias_2): Remove.
30148 * sysdeps/generic/math-type-macros-double.h
30149 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30150 Likewise.
30151 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30152 alias.
30153 (ldexp): Define with declare_mgen_alias.
30154 (scalbn): Likewise.
30155
a1a78204
SE
301562017-09-12 Steve Ellcey <sellcey@cavium.com>
30157
30158 * grp/initgroups.c: Include config.h.
30159 (DEFAULT_CONFIG): New macro.
30160 (internal_getgrouplist): Use DEFAULT_CONFIG.
30161 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30162 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30163 (DEFAULT_DEFCONFIG): New macro.
30164 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30165 * nss/grp-lookup.c: Include config.h
30166 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30167 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30168 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30169 * manual/nss.texi: Update default values section.
30170
ef8adeb0
L
301712017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30172
30173 [BZ #21967]
30174 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30175 New.
30176 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30177 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30178 Handle MathVec_Prefer_No_AVX512.
30179 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30180 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30181 is set.
30182
a166531f
ST
301832017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30184
30185 * posix/sched_primax.c (__sched_get_priority_max): Add
30186 libc_hidden_def.
30187 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30188 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30189 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30190 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30191 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30192 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30193 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30194 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30195 Add aliases.
30196
4b7d1efb
JM
301972017-09-11 Joseph Myers <joseph@codesourcery.com>
30198
30199 * sysdeps/generic/libm-alias-float.h: New file.
30200 * sysdeps/generic/math-type-macros-float.h: Include
30201 <libm-alias-float.h>.
30202 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30203
45ff3463
L
302042017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30205
30206 [BZ #22093]
30207 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30208 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30209 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30210 (HWCAP_IMPORTANT): Likewise.
30211 (HWCAP_X86_64): New enum.
30212 (HWCAP_X86_AVX512_1): Updated.
30213 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30214 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30215 (modules-names): Add x86_64/tst-x86_64mod-1.
30216 (LDFLAGS-tst-x86_64mod-1.so): New.
30217 ($(objpfx)tst-x86_64-1): Likewise.
30218 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30219 (tst-x86_64-1-clean): Likewise.
30220 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30221 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30222
891abfd3
SP
302232017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30224
30225 * po/sv.po: Update translations.
30226 * po/fr.po: Likewise.
30227
00c3da43
ST
302282017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30229
30230 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30231 seconds.
3bdfd9fb
ST
30232 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30233 seconds.
65b22ebc 30234 * elf/rtld-Rules: Fix $(error) use.
00c3da43 30235
96480903
MF
302362017-09-09 Mike FABIAN <mfabian@redhat.com>
30237
30238 [BZ #14925]
30239 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30240 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30241 * localedata/locales/bn_BD: “Bengali” was still used in some
30242 comments. Change it to “Bangla”.
30243
4c03a696
MT
302442017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30245
30246 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30247
9c9ec581
SE
302482017-09-08 Steve Ellcey <sellcey@cavium.com>
30249
30250 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30251 thunderx2t99p1 to list of cpu names.
30252 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30253 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30254
f00bce74
SE
302552017-09-08 Steve Ellcey <sellcey@cavium.com>
30256
30257 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30258 Use strcmp instead of tunable_is_name.
30259
27342d17
JM
302602017-09-08 Joseph Myers <joseph@codesourcery.com>
30261
af1b7c8c
JM
30262 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30263 (F_GET_RW_HINT): New macro.
30264 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30265 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30266 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30267 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30268 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30269 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30270 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30271 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30272 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30273
27342d17
JM
30274 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30275 (F_ADD_SEALS): New macro.
30276 [__USE_GNU] (F_GET_SEALS): Likewise.
30277 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30278 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30279 [__USE_GNU] (F_SEAL_GROW): Likewise.
30280 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30281
c66c9082
AZ
302822017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30283
07b4f49d
AZ
30284 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30285 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30286 * posix/glob_internal.h (__glob_pattern_type):
30287 * posix/glob.c (glob):
30288 * posix/glob_pattern_p.c (__glob_pattern_p):
30289 Use them.
30290
116f1c64
AZ
30291 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30292 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30293 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30294 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30295 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30297 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30298 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30299 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30300 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30301 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30302 * sysdeps/wordsize-64/glob.c: Likewise.
30303 * sysdeps/wordsize-64/glob64.c: Likewise.
30304 * sysdeps/wordsize-64/globfree.c: Likewise.
30305 * sysdeps/wordsize-64/globfree64.c: Likewise.
30306 * sysdeps/unix/sysv/linux/glob.c: New file.
30307 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30308 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30309 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30310 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30311 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30312 adds !GLOB_NO_OLD_VERSION as an extra condition.
30313 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30314 using relative path instead of absolute one.
30315 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30316 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30317 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30318 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30319 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30320 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30321
ffca8901
AZ
30322 [BZ #1062]
30323 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30324 (glob): Use the same scratch buffer for both getlogin_r and
30325 getpwnam_r. Don’t require preallocation of the login name. This
30326 simplifies storage allocation, and corrects the handling of
30327 long login names.
30328
5a79f975
AZ
30329 [BZ #1062]
30330 * posix/glob.c (glob): Port recent patches to platforms
30331 lacking getpwnam_r.
30332 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30333 returns an error number rather than setting errno.
30334
e00f2425
AZ
30335 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30336 instead of GCC extension.
30337 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30338 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30339 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30340
5554304f
AZ
30341 [BZ #866]
30342 [BZ #1062]
30343 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30344 * posix/bug-glob1.c: Remove file.
30345 * posix/tst-glob_symlinks.c: New file.
30346 * posix/glob.c (__lstat64): New macro.
30347 (is_dir): New function.
30348 (glob, glob_in_dir): Match symlinks even if they are dangling.
30349 (link_stat, link_exists_p): Remove. All uses removed.
30350
686f2ea1
AZ
30351 [BZ #1062]
30352 [BZ #19971]
30353 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30354 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30355 All uses removed.
30356
c66c9082 30357 [BZ #1062]
914c9994 30358 CVE-2017-15671
c66c9082
AZ
30359 * posix/Makefile (routines): Add globfree, globfree64, and
30360 glob_pattern_p.
30361 * posix/flexmember.h: New file.
30362 * posix/glob_internal.h: Likewise.
30363 * posix/glob_pattern_p.c: Likewise.
30364 * posix/globfree.c: Likewise.
30365 * posix/globfree64.c: Likewise.
30366 * sysdeps/gnu/globfree64.c: Likewise.
30367 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30368 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30369 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30370 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30371 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30372 * sysdeps/wordsize-64/globfree.c: Likewise.
30373 * sysdeps/wordsize-64/globfree64.c: Likewise.
30374 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30375 [NDEBUG): Remove comments.
30376 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30377 (dirent_type): New type. Use uint_fast8_t not
30378 uint8_t, as C99 does not require uint8_t.
30379 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30380 (struct readdir_result): Use dirent_type. Do not define skip_entry
30381 unless it is needed; this saves a byte on platforms lacking d_ino.
30382 (readdir_result_type, readdir_result_skip_entry):
30383 New functions, replacing ...
30384 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6b5c8607 30385 these functions, which were removed. This makes the callers
c66c9082
AZ
30386 easier to read. All callers changed.
30387 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30388 (size_add_wrapv, glob_use_alloca): New static functions.
30389 (glob, glob_in_dir): Check for size_t overflow in several places,
30390 and fix some size_t checks that were not quite right.
30391 Remove old code using SHELL since Bash no longer
30392 uses this.
30393 (glob, prefix_array): Separate MS code better.
30394 (glob_in_dir): Remove old Amiga and VMS code.
30395 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30396 separate files.
30397 (glob_in_dir): Do not rely on undefined behavior in accessing
30398 struct members beyond their bounds. Use a flexible array member
30399 instead
30400 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30401 0/1. Caller changed.
30402 (glob): Fix memory leaks.
30403 * posix/glob64 (globfree64): Move to separate file.
30404 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30405 (globfree64): Remove hidden alias.
30406 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30407 oldglob.
30408 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30409 separate file.
30410 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30411 define.
30412 Move compat code to separate file.
30413 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30414 separate file.
30415
78bfa877
L
304162017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30417
30418 * resolv/tst-resolv-qtypes.c (domain): Changed to
30419 "const char domain[] =".
30420
05f0011f
JM
304212017-09-07 Joseph Myers <joseph@codesourcery.com>
30422
85bec0f2
JM
30423 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30424 version to 3.1.6.
30425
5c23ee6e
JM
30426 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30427 (TCP_MD5SIG_EXT): Likewise.
30428 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30429 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30430 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30431
05f0011f
JM
30432 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30433
7c9c5be9
MF
304342017-09-07 Mike FABIAN <mfabian@redhat.com>
30435
30436 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30437
c207f7ce 304382017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
30439
30440 [BZ #22100]
30441 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30442
507fe027
ST
304432017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30444
30445 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30446 before assuming that the file is empty. Avoid testing buffer content
30447 when nread == 0.
30448
65687ac7
AZ
304492017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30450
7bbbb4b9 30451 [BZ #18858]
65687ac7
AZ
30452 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30453 Remove define.
30454 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30455 Likewise.
30456 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30457 Likewise.
30458 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30459 Likewise.
30460 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30461 Likewise.
30462 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30463 Likewise.
30464 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30465 Likewise.
30466
ab5ac271
FW
304672017-09-06 Florian Weimer <fweimer@redhat.com>
30468
30469 * malloc/dynarray_emplace_enlarge.c
30470 (__libc_dynarray_emplace_enlarge): Add missing else.
30471
a8304730
FW
304722017-09-06 Florian Weimer <fweimer@redhat.com>
30473
30474 [BZ #22096]
30475 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30476 case of failure to obtain the global conf object.
30477
5670c4ab
FW
304782017-09-06 Florian Weimer <fweimer@redhat.com>
30479
30480 [BZ #22095]
30481 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30482 dynarray allocation failure.
30483
c77eb969
FW
304842017-09-06 Florian Weimer <fweimer@redhat.com>
30485
30486 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30487 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30488 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30489 New functions.
30490 (response): Call them. Add 'p', '6' flag processing.
30491 (test_reverse): New function.
30492 (test_get2_any): Call it.
30493 (test_no_inet6): Add 'p' test.
30494 (test_inet6): Likewise.
30495
5e9c4d17
FW
304962017-09-06 Florian Weimer <fweimer@redhat.com>
30497
30498 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30499 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30500 the QNAME.
30501 (test_gai): Adjust query names. Add additional tests.
30502 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30503 test_get2. Adjust query names. Add additional tests.
30504 (test_no_inet6): New function, extracted from threadfunc.
30505 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30506 Add additional tests.
30507
2ae5be04
MF
305082017-09-06 Mike FABIAN <mfabian@redhat.com>
30509
30510 [BZ #22070]
30511 * localedata/unicode-gen/utf8_gen.py: Set the width for
30512 characters with Prepended_Concatenation_Mark property to 1
30513 * localedata/charmaps/UTF-8: Updated using the improved script.
30514
af83ed5c
MF
305152017-09-06 Mike FABIAN <mfabian@redhat.com>
30516
30517 [BZ #21750]
30518 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30519 use the range notation for all ranges of neighbouring characters
30520 with the same width.
30521
4f3647e4
JM
305222017-09-05 Joseph Myers <joseph@codesourcery.com>
30523
30524 * sysdeps/generic/math-type-macros-double.h: Include
30525 <math-svid-compat.h>.
30526 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30527 * sysdeps/generic/math-type-macros-float.h: Include
30528 <math-svid-compat.h>.
30529 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30530 * sysdeps/generic/math-type-macros-ldouble.h: Include
30531 <math-svid-compat.h>.
30532 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30533 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30534 condition.
30535 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30536 * math/w_acosf_compat.c: Likewise.
30537 * math/w_acosh_compat.c: Likewise.
30538 * math/w_acoshf_compat.c: Likewise.
30539 * math/w_acoshl_compat.c: Likewise.
30540 * math/w_acosl_compat.c: Likewise.
30541 * math/w_asin_compat.c: Likewise.
30542 * math/w_asinf_compat.c: Likewise.
30543 * math/w_asinl_compat.c: Likewise.
30544 * math/w_atan2_compat.c: Likewise.
30545 * math/w_atan2f_compat.c: Likewise.
30546 * math/w_atan2l_compat.c: Likewise.
30547 * math/w_atanh_compat.c: Likewise.
30548 * math/w_atanhf_compat.c: Likewise.
30549 * math/w_atanhl_compat.c: Likewise.
30550 * math/w_cosh_compat.c: Likewise.
30551 * math/w_coshf_compat.c: Likewise.
30552 * math/w_coshl_compat.c: Likewise.
30553 * math/w_exp10_compat.c: Likewise.
30554 * math/w_exp10f_compat.c: Likewise.
30555 * math/w_exp10l_compat.c: Likewise.
30556 * math/w_exp2_compat.c: Likewise.
30557 * math/w_exp2f_compat.c: Likewise.
30558 * math/w_exp2l_compat.c: Likewise.
30559 * math/w_fmod_compat.c: Likewise.
30560 * math/w_fmodf_compat.c: Likewise.
30561 * math/w_fmodl_compat.c: Likewise.
30562 * math/w_hypot_compat.c: Likewise.
30563 * math/w_hypotf_compat.c: Likewise.
30564 * math/w_hypotl_compat.c: Likewise.
30565 * math/w_j0_compat.c: Likewise.
30566 * math/w_j0f_compat.c: Likewise.
30567 * math/w_j0l_compat.c: Likewise.
30568 * math/w_j1_compat.c: Likewise.
30569 * math/w_j1f_compat.c: Likewise.
30570 * math/w_j1l_compat.c: Likewise.
30571 * math/w_jn_compat.c: Likewise.
30572 * math/w_jnf_compat.c: Likewise.
30573 * math/w_jnl_compat.c: Likewise.
30574 * math/w_lgamma_r_compat.c: Likewise.
30575 * math/w_lgammaf_r_compat.c: Likewise.
30576 * math/w_lgammal_r_compat.c: Likewise.
30577 * math/w_log10_compat.c: Likewise.
30578 * math/w_log10f_compat.c: Likewise.
30579 * math/w_log10l_compat.c: Likewise.
30580 * math/w_log2_compat.c: Likewise.
30581 * math/w_log2f_compat.c: Likewise.
30582 * math/w_log2l_compat.c: Likewise.
30583 * math/w_log_compat.c: Likewise.
30584 * math/w_logf_compat.c: Likewise.
30585 * math/w_logl_compat.c: Likewise.
30586 * math/w_pow_compat.c: Likewise.
30587 * math/w_powf_compat.c: Likewise.
30588 * math/w_powl_compat.c: Likewise.
30589 * math/w_remainder_compat.c: Likewise.
30590 * math/w_remainderf_compat.c: Likewise.
30591 * math/w_remainderl_compat.c: Likewise.
30592 * math/w_sinh_compat.c: Likewise.
30593 * math/w_sinhf_compat.c: Likewise.
30594 * math/w_sinhl_compat.c: Likewise.
30595 * math/w_sqrt_compat.c: Likewise.
30596 * math/w_sqrtf_compat.c: Likewise.
30597 * math/w_sqrtl_compat.c: Likewise.
30598 * math/w_tgamma_compat.c: Likewise.
30599 * math/w_tgammaf_compat.c: Likewise.
30600 * math/w_tgammal_compat.c: Likewise.
30601 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30602 [LIBM_SVID_COMPAT].
30603 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30604 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30605 [LIBM_SVID_COMPAT].
30606 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30607 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30608 [LIBM_SVID_COMPAT].
30609 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30610 * sysdeps/i386/fpu/w_sqrt.c: New file.
30611 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30612 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30613 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30614 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30615 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30616 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30617 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30618 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30619 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30620 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30621 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30622 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30623 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30624 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30625 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30626 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30627 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30628 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30629 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30630 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30631 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30632 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30633 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30634 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30635 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30636 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30637 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30638 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30639 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30640 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30641 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30642 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30643 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30644 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30645 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30646 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30647 * sysdeps/ia64/fpu/w_log.c: Likewise.
30648 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30649 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30650 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30651 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30652 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30653 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30654 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30655 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30656 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30657 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30658 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30659 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30660 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30661 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30662 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30663 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30664 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30665 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30666 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30667 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30668 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30669 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30670 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30671 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30672 [LIBM_SVID_COMPAT].
30673 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30674 * sysdeps/ieee754/k_standard.c: Likewise.
30675 * sysdeps/ieee754/k_standardf.c: Likewise.
30676 * sysdeps/ieee754/k_standardl.c: Likewise.
30677 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30678 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30679 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30680 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30681 long_double_symbol call on [LIBM_SVID_COMPAT].
30682 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30683 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30684 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30685 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30686 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30687 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30688 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30689 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30690 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30691 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30692 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30693 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30694 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30695 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30696 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30697 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30698 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30699 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30700 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30701 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30702 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30703 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30704
05b38d64
SE
307052017-09-05 Steve Ellcey <sellcey@cavium.com>
30706
30707 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30708 * malloc/tst-mallocstate.c: Convert from test-skeleton
30709 to test-driver. Ifdef code using TEST_COMPAT macro.
30710 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30711 * math/test-matherr.c: Likewise.
30712
99d67918
JM
307132017-09-05 Joseph Myers <joseph@codesourcery.com>
30714
30715 [BZ #22086]
30716 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30717 comparing word with byte-swapped constant.
30718
c207f7ce 307192017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
30720
30721 [BZ #20498]
30722 * locale/iso-639.def: add Miskito.
30723 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30724 * localedata/locales/miq_NI: New file.
30725
0a587a8a
L
307262017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30727
30728 [BZ #18822]
30729 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30730 (__mkdir): Likewise.
30731 * io/chmod.c (__chmod): Add libc_hidden_def.
30732 * io/mkdir.c (__mkdir): Likewise.
30733 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30734 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30735 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30736 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30737
f3a129b8
JM
307382017-09-04 Joseph Myers <joseph@codesourcery.com>
30739
1650e192
JM
30740 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30741 version to 4.13.
30742
f3a129b8
JM
30743 [BZ #22082]
30744 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30745 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30746
b38042f5
FW
307472017-09-04 Florian Weimer <fweimer@redhat.com>
30748
30749 * math/math.h: Issue warning if log is defined.
30750
059b6404
JM
307512017-09-04 Joseph Myers <joseph@codesourcery.com>
30752
30753 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30754 kernel version to 4.13.
30755
b794e16b
ST
307562017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30757
30758 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
30759 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30760 parameter.
01969395
ST
30761 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30762 just <bits/types.h>.
dd2b31de 30763 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 30764 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 30765 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 30766 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
30767 * misc/preadv2.c: Include <errno.h>.
30768 * misc/preadv64v2.c: Include <errno.h>.
30769 * misc/pwritev2.c: Include <errno.h>.
30770 * misc/pwritev64v2.c: Include <errno.h>.
30771 * sysdeps/posix/preadv2.c: Include <errno.h>.
30772 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30773 Fix <unistd.h> inclusion.
30774 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30775 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
30776 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30777 __strtoul_internal): New functions.
127e7773
ST
30778 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30779 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
30780 * sysdeps/mach/hurd/i386/Makefile
30781 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30782 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30783 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
30784 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30785 __feraiseexcept_renamed to feraiseexcept instead of
30786 __GI_feraiseexcept.
56bf5497 30787 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 30788 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
30789 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30790 RWF_NOWAIT): Define to 0 if undefined already.
30791 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30792 boils down to 0.
6547ec0a
ST
30793 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30794 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 30795
5a80d39d
JM
307962017-09-01 Joseph Myers <joseph@codesourcery.com>
30797
30798 * manual/math.texi (pow10): Do not document.
30799 (pow10f): Likewise.
30800 (pow10l): Likewise.
30801 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30802 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30803 * math/libm-test-exp10.inc (pow10_test): Remove.
30804 (do_test): Do not call pow10.
30805 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30806 [NO_LONG_DOUBLE] (pow10l): Likewise.
30807 * math/w_exp10f_compat.c (pow10f): Likewise.
30808 * math/w_exp10l_compat.c (pow10l): Likewise.
30809 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30810 (pow10): Make into compat symbol.
30811 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30812 (pow10f): Make into compat symbol.
30813 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30814 (pow10l): Make into compat symbol.
30815 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30816 pow10.
30817 (CFLAGS-nldbl-pow10.c): Remove variable..
30818 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30819 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30820 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30821 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30822 Undefine and redefine.
30823 (pow10l): Make into compat symbol.
30824 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30825 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30826 * sysdeps/arm/libm-test-ulps: Likewise.
30827 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30828 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30829 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30830 * sysdeps/microblaze/libm-test-ulps: Likewise.
30831 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30832 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30833 * sysdeps/nios2/libm-test-ulps: Likewise.
30834 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30835 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30836 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30837 * sysdeps/sh/libm-test-ulps: Likewise.
30838 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30839 * sysdeps/tile/libm-test-ulps: Likewise.
30840 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30841
3824fc38
PP
308422017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30843
30844 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30845
b3008279
L
308462017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30847
30848 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30849 "../ChangeLog.old/ChangeLog.8".
30850 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30851 "../ChangeLog.old/ChangeLog.14".
30852
136fa185
L
308532017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30854
30855 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30856 Threads Library.
30857
c18d50a2
JM
308582017-09-01 Joseph Myers <joseph@codesourcery.com>
30859
30860 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30861
bedbd859
L
308622017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30863
30864 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30865 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30866
50c66c7a
PP
308672017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30868
30869 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30870 32 atexit handlers.
30871
a617bd11
ZW
308722017-09-01 Zack Weinberg <zackw@panix.com>
30873
30874 * math/math.h (HUGE_VAL): Improve commentary.
30875
e0d2eb5a
AZ
308762017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30877 Andreas Schwab <schwab@suse.de>
30878
30879 [BZ #21530]
30880 * include/stdio.h (__gen_tempfd): New function.
30881 * stdio-common/Makefile (routines): Add gentempfd.
30882 * stdio-common/gentempfd.c: New file.
30883 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30884 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30885 unnamed file first.
30886
f4a6be25
FW
308872017-09-01 Florian Weimer <fweimer@redhat.com>
30888
30889 [BZ #21915]
30890 [BZ #21922]
30891 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30892 result to determine success or failure, not the errno value.
30893 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30894 (tst-nss-files-hosts-erange): Link with -ldl.
30895 * nss/tst-nss-files-hosts-erange.c: New file.
30896 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30897 (do_test): Add NO_DATA tests.
30898 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30899 (do_test): Call it.
30900
5f8340f5
FW
309012017-09-01 Florian Weimer <fweimer@redhat.com>
30902
30903 [BZ #21922]
30904 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30905 coming from gethostbyname2_r.
30906
65329bd2
FW
309072017-09-01 Florian Weimer <fweimer@redhat.com>
30908
30909 * support/namespace.h (struct support_chroot_configuration): Add
30910 hosts, host_conf.
30911 (struct support_chroot): Add path_hosts, path_host_conf.
30912 * support/support_chroot.c (write_file): New function.
30913 (support_chroot_create): Call it to process /etc/resolv.conf,
30914 /etc/hosts, /etc/host.conf.
30915 (support_chroot_free): Update.
30916
a2881ef0
FW
309172017-09-01 Florian Weimer <fweimer@redhat.com>
30918
30919 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30920 status indicates it is set.
30921
ad816a5e
FW
309222017-09-01 Florian Weimer <fweimer@redhat.com>
30923
63b52889 30924 [BZ #20532]
ad816a5e
FW
30925 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30926 function lookup failures more reliable.
30927
53250a21
FW
309282017-09-01 Florian Weimer <fweimer@redhat.com>
30929
30930 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30931 (getcanonname): Likewise.
30932 (gaih_inet): Likewise.
30933
924b121c
FW
309342017-09-01 Florian Weimer <fweimer@redhat.com>
30935
30936 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30937 (getcanonname): Likewise.
30938 (gaih_inet): Likewise.
30939
d9ff799a 309402017-08-31 Steve Ellcey <sellcey@cavium.com>
6b5c8607 30941 Richard Henderson <rth@twiddle.net>
d9ff799a
SE
30942
30943 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
30944 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
30945 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
30946 (IREG_SIZE, OREG_SIZE): New macros.
30947 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
30948 (IREG_SIZE, OREG_SIZE): New macros.
30949 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
30950 (IREG_SIZE): New macro.
30951 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
30952 (IREG_SIZE): New macro.
30953 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
30954 New includes.
30955 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
30956 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
30957 (__CONCATX): Handle exceptions correctly on large values that may
30958 set FE_INVALID.
30959 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
30960 Initialize if not already set.
b39d961c 30961 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
d9ff799a 30962
102dde84
AZ
309632017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30964
30965 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
30966 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
30967 Likewise.
30968 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
30969 Likewise.
30970 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
30971 Likewise.
30972 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
30973 Likewise.
30974 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
30975 Likewise.
30976 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
30977 Likewise.
30978 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
30979 Likewise.
30980 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
30981 (NO_CANCELLATION): Likewise.
30982 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
30983 Likewise.
30984 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
30987 Likewise.
30988 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
30989 (NO_CANCELLATION): Likewise.
30990 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
30991 (NO_CANCELLATION): Likewise.
30992 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
30993 Likewise
30994 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
30995 Likewise.
30996 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
30997 Likewise.
30998 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
30999 Likewise.
31000 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31001 hidden prototype.
31002 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31003 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31004
9eee633b
SE
310052017-08-31 Steve Ellcey <sellcey@cavium.com>
31006
31007 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31008 in resolver call.
31009
65284eb7
FW
310102017-08-31 Florian Weimer <fweimer@redhat.com>
31011
31012 * include/libc-symbols.h (internal_function): Remove.
31013
41ad5ca6
FW
310142017-08-31 Florian Weimer <fweimer@redhat.com>
31015
31016 * stdlib/fmtmsg.c (internal_addseverity): Remove
31017 internal_function.
31018
2fa6d086
FW
310192017-08-31 Florian Weimer <fweimer@redhat.com>
31020
31021 * stdio-common/printf_fp.c (group_number): Remove
31022 internal_function.
31023 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31024
b41bd5bc
FW
310252017-08-31 Florian Weimer <fweimer@redhat.com>
31026
31027 * posix/fnmatch.c (internal_function): Remove definition.
31028 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31029 * posix/regcomp.c (peek_token, init_word_char)
31030 (duplicate_node_closure, fetch_token, peek_token)
31031 (peek_token_bracket, build_range_exp, build_collating_symbol):
31032 Likewise.
31033 * posix/regex_internal.c (re_string_construct_common)
31034 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31035 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31036 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31037 (re_string_translate_buffer, re_string_reconstruct)
31038 (re_string_peek_byte_case, re_string_fetch_byte_case)
31039 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31040 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31041 (re_node_set_add_intersect, re_node_set_init_union)
31042 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31043 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31044 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31045 (re_acquire_state_context): Likewise.
31046 * posix/regex_internal.h (internal_function): Remove definition.
31047 (re_string_realloc_buffers, build_wcs_buffer)
31048 (build_wcs_upper_buffer, build_upper_buffer)
31049 (re_string_translate_buffer, re_string_context_at)
31050 (re_string_char_size_at, re_string_wchar_at)
31051 (re_string_elem_size_at): Likewise.
31052 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31053 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31054 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31055 (re_search_internal, re_search_2_stub, re_search_stub)
31056 (re_copy_regs, prune_impossible_nodes, check_matching)
31057 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31058 (free_fail_stack_return, sift_states_iter_mb)
31059 (sift_states_backward, build_sifted_states)
31060 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31061 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31062 (check_subexp_limits, sift_states_bkref, merge_state_array)
31063 (find_recover_state, transit_state, merge_state_with_log)
31064 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31065 (transit_state_mb, transit_state_bkref, get_subexp)
31066 (get_subexp_sub, find_subexp_node, check_arrival)
31067 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31068 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31069 (check_node_accept_bytes, find_collation_sequence_value)
31070 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31071 (acquire_init_state_context, check_halt_node_context)
31072 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31073 (sub_epsilon_src_nodes): Likewise.
31074 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31075 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31076 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31077 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31078 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31079 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31080 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31081 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31082 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31083 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31084 (PREADV): Likewise.
31085 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31086 (PREADV): Likewise.
31087 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31088 (PWRITEV): Likewise.
31089 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31090 (PWRITEV): Likewise.
31091 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31092 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31093
83b09837
FW
310942017-08-31 Florian Weimer <fweimer@redhat.com>
31095
31096 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31097 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31098 Remove internal_function.
31099 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31100 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31101 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31102 (__deallocate_stack, __libc_pthread_init)
31103 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31104 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31105 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31106 Likewise.
31107 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31108 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31109 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31110 Likewise.
31111 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31112 (__pthread_mutex_unlock_usercnt): Likewise.
31113
116ac301
FW
311142017-08-31 Florian Weimer <fweimer@redhat.com>
31115
31116 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31117 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31118 (fts_safe_changedir): Remove internal_function.
31119 * io/ftw.c (internal_function): Remove definition.
31120 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31121
9da93bd7
FW
311222017-08-31 Florian Weimer <fweimer@redhat.com>
31123
31124 * inet/deadline.c (__deadline_current_time)
31125 (__deadline_from_timeval, __deadline_to_ms): Remove
31126 internal_function.
31127 * inet/getnameinfo.c (nrl_domainname): Likewise.
31128 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31129 * inet/inet6_option.c (add_pad): Likewise.
31130 * inet/net-internal.h (__deadline_current_time)
31131 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31132 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31133 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31134 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31135
a60eca2e
JM
311362017-08-31 Joseph Myers <joseph@codesourcery.com>
31137
c0c49d60
JM
31138 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31139 include <bits/nan.h>.
31140 * math/Makefile (headers): Remove bits/nan.h.
31141 * bits/nan.h: Remove.
31142 * sysdeps/ieee754/bits/nan.h: Likewise.
31143 * sysdeps/mips/bits/nan.h: Likewise.
31144
5ef1b213
JM
31145 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31146 not include <bits/inf.h>.
31147 * math/Makefile (headers): Remove bits/inf.h.
31148 * bits/inf.h: Remove.
31149 * sysdeps/ieee754/bits/inf.h: Likewise.
31150
a60eca2e
JM
31151 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31152 bits/huge_vall.h or bits/huge_val_flt128.h.
31153 (HUGE_VAL): Define directly here.
31154 [__USE_ISOC99] (HUGE_VALF): Likewise.
31155 [__USE_ISOC99] (HUGE_VALL): Likewise.
31156 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31157 (HUGE_VAL_F128): Likewise.
31158 * math/Makefile (headers): Remove bits/huge_val.h,
31159 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31160 * bits/huge_val.h: Remove.
31161 * bits/huge_val_flt128.h: Likewise.
31162 * bits/huge_valf.h: Likewise.
31163 * bits/huge_vall.h: Likewise.
31164 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31165 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31166 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31167 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31168 * sysdeps/sh/bits/huge_val.h: Likewise.
31169 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31170 * sysdeps/x86/bits/huge_vall.h: Likewise.
31171
17e00cc6
FW
311722017-08-31 Florian Weimer <fweimer@redhat.com>
31173
31174 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31175 internal_function.
31176 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31177 Likewise.
31178 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31179 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31180 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31181 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31182 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31183 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31184 * elf/dl-libc.c (dlerror_run): Likewise.
31185 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31186 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31187 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31188 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31189 Likewise.
31190 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31191 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31192 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31193 * elf/dl-profile.c (_dl_start_profile): Likewise.
31194 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31195 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31196 Likewise.
31197 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31198 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31199 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31200 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31201 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31202 (_dl_allocate_tls_storage): Likewise.
31203 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31204 (_dl_check_all_versions): Likewise.
31205 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31206 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31207 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31208 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31209 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31210 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31211 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31212 internal_function from __dl_start.
31213 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31214 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31215 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31216 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31217 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31218 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31219 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31220 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31221 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31222 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31223 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31224 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31225 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31226 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31227 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31228 Likewise.
31229 (struct rtld_global_ro): Remove internal_function from the
31230 _dl_lookup_symbol_x member.
31231 (_dl_symbol_value): Remove. No longer defined anywhere.
31232 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31233 internal_function.
31234 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31235 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31236 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31237 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31238 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31239 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31240 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31241 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31242 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31243 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31244 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31245 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31246
8d2f9410
FW
312472017-08-31 Florian Weimer <fweimer@redhat.com>
31248
31249 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31250 Remove internal_function.
31251 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31252 Likewise.
31253 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31254 Likewise.
31255
86e4919f
FW
312562017-08-31 Florian Weimer <fweimer@redhat.com>
31257
31258 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31259 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31260 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31261
59bd52b0
FW
312622017-08-31 Florian Weimer <fweimer@redhat.com>
31263
31264 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31265 (__gai_enqueue_request): Remove internal_function.
31266 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31267 (__gai_remove_request, __gai_notify, __gai_notify_only)
31268 (__gai_sigqueue): Likewise.
31269 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31270 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31271 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31272 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31273 Likewise.
31274
fc3d9497
FW
312752017-08-31 Florian Weimer <fweimer@redhat.com>
31276
31277 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31278 * include/dirent.h (__opendirat, __getdents, __getdents64)
31279 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31280 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31281 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31282 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31283 Likewise.
31284 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31285
18c54fac
FW
312862017-08-31 Florian Weimer <fweimer@redhat.com>
31287
31288 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31289 internal_function.
31290 (GETCWD_RETURN_TYPE): Likewise.
31291
7e01f080
FW
312922017-08-31 Florian Weimer <fweimer@redhat.com>
31293
31294 * include/time.h (__tz_compute, __strptime_internal): Remove
31295 internal_function.
31296 * time/strptime_l.c (__strptime_internal): Likewise.
31297 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31298
d7ccc6c9
FW
312992017-08-31 Florian Weimer <fweimer@redhat.com>
31300
31301 * iconv/gconv.c (__gconv): Remove internal_function.
31302 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31303 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31304 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31305 (__gconv_release_cache): Likewise.
31306 * iconv/gconv_close.c (__gconv_close): Likewise.
31307 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31308 (read_conf_file, __gconv_get_path): Likewise.
31309 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31310 (__gconv_release_step, gen_steps, increment_counter)
31311 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31312 (__gconv_close_transform, free_modules_db): Likewise.
31313 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31314 Likewise.
31315 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31316 (__gconv_find_transform, __gconv_lookup_cache)
31317 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31318 (__gconv_close_transform, __gconv_release_cache)
31319 (__gconv_loaded_object, __gconv_release_shlib)
31320 (__gconv_compare_alias): Likewise.
31321 * iconv/gconv_open.c (__gconv_open): Likewise.
31322 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31323 * iconv/iconvconfig.c (add_module): Likewise.
31324 * intl/dcigettext.c (plural_lookup, guess_category_value)
31325 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31326 * intl/eval-plural.h (plural_eval): Likewise.
31327 * intl/finddomain.c (_nl_find_domain): Likewise.
31328 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31329 (_nl_load_domain, _nl_find_msg): Likewise.
31330 (internal_function): Remove definition.
31331 * intl/loadinfo.h (internal_function): Likewise.
31332 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31333 internal_function.
31334 * intl/localealias.c (internal_function): Remove definition.
31335 (read_alias_file): Remove internal_function.
31336 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31337 * intl/plural-exp.h (internal_function): Remove definition.
31338 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31339 internal_function.
31340 * intl/plural.c: Regenerate.
31341 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31342 * locale/coll-lookup.c (__collidx_table_lookup)
31343 (__collseq_table_lookup): Likewise.
31344 * locale/coll-lookup.h (__collidx_table_lookup)
31345 (__collseq_table_lookup): Likewise.
31346 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31347 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31348 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31349 (_nl_unload_locale): Likewise.
31350 * locale/localeinfo.h (struct __locale_data): Remove
31351 internal_function from cleanup member.
31352 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31353 (_nl_remove_locale, _nl_load_locale_from_archive)
31354 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31355 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31356 (_nl_cleanup_time): Remove internal_function.
31357 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31358 (_nl_parse_alt_digit): Likewise.
31359 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31360 (_nl_select_era_entry): Likewise.
31361 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31362 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31363 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
31364 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31365 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 31366
dab0eece
FW
313672017-08-31 Florian Weimer <fweimer@redhat.com>
31368
31369 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31370 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31371 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31372 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31373 Likewise.
31374 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31375 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31376 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31377 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31378 Likewise.
31379 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31380
ab5bf7cf
FW
313812017-08-31 Florian Weimer <fweimer@redhat.com>
31382
31383 * misc/getttyent.c (skip, value): Remove internal_function.
31384 * misc/syslog.c (openlog_internal): Likewise.
31385 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31386
75b3047e
FW
313872017-08-31 Florian Weimer <fweimer@redhat.com>
31388
31389 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31390 (__nss_rewrite_field): Remove internal_function.
31391 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31392 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31393 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31394 * nss/nsswitch.c (nss_parse_file, nss_getline)
31395 (nss_parse_service_list, nss_new_service): Likewise.
31396 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31397 * nss/valid_field.c (__nss_valid_field): Likewise.
31398 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31399
0c71122c
FW
314002017-08-31 Florian Weimer <fweimer@redhat.com>
31401
31402 * malloc/arena.c (__malloc_fork_lock_parent)
31403 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31404 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31405 internal_function from defintions.
31406 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31407 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31408 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31409 internal_function from declarations.
31410 * malloc/malloc.c (internal_function): Do not define.
31411 (mem2mem_check): Remove internal_function from declaration.
31412 (munmap_chunk, mremap_chunk): Remove internal_function.
31413 * malloc/mtrace.c (tr_where): Likewise.
31414
ca4ec803
FW
314152017-08-31 Florian Weimer <fweimer@redhat.com>
31416
31417 * include/rpc/pmap_clnt.h (__get_socket): Remove
31418 internal_function.
31419 * sunrpc/auth_des.c (synchronize): Likewise.
31420 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31421 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31422 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31423 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31424 (key_call): Likewise.
31425 * sunrpc/pm_getport.c (__get_socket): Likewise.
31426 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31427 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31428 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31429 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31430 (invalidate): Likewise.
31431 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31432 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31433 (set_input_fragment, get_input_bytes): Likewise.
31434
24cffce7
FW
314352017-08-31 Florian Weimer <fweimer@redhat.com>
31436
31437 * malloc/malloc.c (_int_free): Remove locked variable and related
31438 asserts.
31439
ecd0747d
L
314402017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31441
31442 [BZ #22051]
31443 * Makerules (build-module-helper-objlist): Filter out
31444 $(elf-objpfx)sofini.os.
31445 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31446 needed.
31447
5f0704b6
FW
314482017-08-31 Florian Weimer <fweimer@redhat.com>
31449
31450 * libio/fcloseall.c: Assume weak_alias is defined.
31451 * libio/feof.c: Likewise.
31452 * libio/fileno.c: Likewise.
31453 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31454 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31455 definitions.
31456 (_IO_file_open): Call __open directly.
31457 (_IO_new_file_sync): Assume ESPIPE is defined.
31458 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31459 (_IO_new_file_write): Call __write directly.
31460 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31461 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31462 * libio/genops.c: Assume _LIBC is defined.
31463 (save_for_backup): Remove internal_function.
31464 * libio/getc.c: Assume weak_alias is defined.
31465 * libio/getwc.c: Likewise.
31466 * libio/iofclose.c: Assume _LIBC is defined.
31467 * libio/iofdopen.c: Likewise.
31468 (_IO_fcntl): Remove macro definition.
31469 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31470 Call __fcntl directly.
31471 * libio/iofflush.c: Assume weak_alias is defined.
31472 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31473 defined.
31474 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31475 * libio/iofgets.c: Likewise.
31476 * libio/iofopen.c: Assume _LIBC is defined.
31477 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31478 * libio/iofputs.c: Assume weak_alias is defined.
31479 * libio/iofread.c: Likewise.
31480 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31481 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31482 * libio/ioftell.c: Assume weak_alias is defined.
31483 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31484 * libio/iofwide.c: Assume _LIBC is defined.
31485 (_IO_fwide): Drop SHARED conditional because it is implied by
31486 SHLIB_COMPAT.
31487 * libio/iofwrite.c: Assume weak_alias is defined.
31488 * libio/iogetdelim.c: Likewise.
31489 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31490 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31491 (_IO_getwline): Call __wmemcpy directly.
31492 * libio/iopopen.c: Assume _LIBC is defined.
31493 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31494 (_IO_close): Remove macro definitions.
31495 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31496 _exit directly.
31497 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31498 directly.
31499 * libio/ioputs.c: Assume weak_alias is defined.
31500 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31501 * libio/iosetbuffer.c: Assume weak_alias is defined.
31502 * libio/iosetvbuf.c: Likewise.
31503 * libio/ioungetc.c: Likewise.
31504 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31505 libc_hidden_def, libc_hidden_weak, NULL are defined.
31506 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31507 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31508 defined.
31509 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31510 definitions.
31511 (_IO_old_file_init_internal): Drop SHARED conditional because it
31512 is implied by SHLIB_COMPAT.
31513 (_IO_old_file_fopen): Call __open directly.
31514 (_IO_old_file_sync): Assume ESPIPE is defined.
31515 (_IO_old_file_write): Call __write directly.
31516 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31517 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31518 Call __fcntl directly.
31519 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31520 (_IO_old_fgetpos): Assume EIO is defined.
31521 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31522 (_IO_old_fgetpos64): Assume EIO is defined.
31523 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31524 (_IO_old_fsetpos): Assume EIO is defined.
31525 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31526 (_IO_old_fsetpos64): Assume EIO is defined.
31527 * libio/oldiopopen.c: Assume _LIBC is defined.
31528 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31529 (_IO_close): Remove macro definitions.
31530 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31531 directly.
31532 (_IO_old_proc_close): Call __close, __waitpid directly.
31533 * libio/put.c: Assume weak_alias is defined.
31534 * libio/stdfiles.c: Assume _LIBC is defined.
31535 * libio/stdio.c: Likewise.
31536 * libio/wfileops.c: Likewise.
31537 (_IO_wfile_sync): Assume ESPIPE is defined.
31538 * libio/wgenops.c: Assume _LIBC is defined.
31539 (save_for_wbackup): Remove internal_function.
31540
5129873a
FW
315412017-08-31 Florian Weimer <fweimer@redhat.com>
31542
31543 * malloc/malloc.c (top_check): Change return type to void. Remove
31544 internal_function.
31545 * malloc/hooks.c (top_check): Likewise.
31546 (malloc_check, realloc_check, memalign_check): Adjust.
31547
4fa9b3bf
JM
315482017-08-30 Joseph Myers <joseph@codesourcery.com>
31549
31550 [BZ #21457]
31551 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31552 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31553 sigcontext and namespace requirements.
31554 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31555 * sysdeps/m68k/sys/ucontext.h: Likewise.
31556 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31557 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31558 <bits/sigcontext.h>.
31559 (__ctx): Define earlier.
31560 (mcontext_t): Define structure contents rather than using struct
31561 sigcontext.
31562 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31563 __glibc_reserved1 instead of __reserved.
31564 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31565 <bits/sigcontext.h>.
31566 (__ctx): Define earlier.
31567 (mcontext_t): Define structure contents rather than using struct
31568 sigcontext.
31569 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31570 mcontext_t instead of struct sigcontext.
31571 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31572 <bits/sigcontext.h>.
31573 (__ctx): Define earlier.
31574 (mcontext_t): Define structure contents rather than using struct
31575 sigcontext.
31576 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31577 <bits/sigcontext.h>.
31578 (__ctx): Define earlier.
31579 (mcontext_t): Define structure contents rather than using struct
31580 sigcontext.
31581 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31582 mcontext_t instead of struct sigcontext.
31583 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31584 mcontext_t instead of struct sigcontext.
31585 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31586 <bits/sigcontext.h>.
31587 (__ctx): New macro.
31588 (struct __ia64_fpreg_mcontext): New type.
31589 (mcontext_t): Define structure contents rather than using struct
31590 sigcontext.
31591 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31592 (uc_sigmask): Define using __ctx.
31593 (uc_stack): Likewise.
31594 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31595 <bits/sigcontext.h>.
31596 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31597 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31598 <bits/sigcontext.h>.
31599 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31600 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31601 <bits/sigcontext.h>.
31602 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31603 <bits/sigcontext.h>.
31604 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31605 <bits/sigcontext.h>.
31606 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31607 <bits/sigcontext.h>.
31608 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31609 <bits/sigcontext.h>.
31610 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31611 <bits/sigcontext.h>.
31612 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31613 <bits/sigcontext.h>.
31614 (__ctx): Define earlier.
31615 (mcontext_t): Define structure contents rather than using struct
31616 sigcontext.
31617 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31618 <bits/sigcontext.h>. Include <bits/types.h>.
31619 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31620 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31621 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31622 (test-xfail-UNIX98/signal.h/conform): Likewise.
31623 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31624 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31625 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31626 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31627 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31628 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31629 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31630 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31631 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31632
5898f454
FW
316332017-08-30 Florian Weimer <fweimer@redhat.com>
31634
31635 * malloc/dynarray_emplace_enlarge.c
31636 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31637 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31638 * malloc/tst-dynarray.c (test_long_overflow): New function.
31639 (do_test): Call it.
31640
a9da0bb2
FW
316412017-08-30 Florian Weimer <fweimer@redhat.com>
31642
31643 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31644 (set_arena_corrupt): Remove definitions.
31645 (mtrim): Do not check for corrupt arena.
31646 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31647 Likewise.
31648
ac3ed168
FW
316492017-08-30 Florian Weimer <fweimer@redhat.com>
31650
31651 [BZ #21754]
31652 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31653 check_action.
31654 (ptmalloc_init): Do not set or use check_action.
31655 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31656 call to malloc_printerr. Remove return statement.
31657 (free_check): Likewise. Remove arena unlock.
31658 (top_check): Update comment. Adjust call to malloc_printerr.
31659 Remove heap repair code.
31660 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31661 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31662 (sysmalloc): Adjust call to malloc_printerr.
31663 (munmap_chunk, __libc_realloc): Likewise. Remove return
31664 statement.
31665 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31666 Remove errout label and corresponding gotos.
31667 (_int_free): Likewise. Remove arena unlock.
31668 (do_set_mallopt_check): Do not set check_action.
31669 (malloc_printerr): Adjust parameter list. Do not mark arena as
31670 corrupt.
31671 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31672 comment.
31673 * manual/probes.texi (Memory Allocation Probes): Remove
31674 memory_mallopt_check_action.
31675
44bcba80
SE
316762017-08-30 Steve Ellcey <sellcey@cavium.com>
31677
31678 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31679 Use pointer to uint64_t instead of long int for sp.
31680
ec2c1fce
FW
316812017-08-30 Florian Weimer <fweimer@redhat.com>
31682
31683 [BZ #21754]
31684 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31685 without printing a backtrace. Do not leak any information in the
31686 error message.
31687 * manual/memory.texi (Heap Consistency Checking): Update.
31688 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31689
9ce673b6
FW
316902017-08-30 Florian Weimer <fweimer@redhat.com>
31691
31692 Do not scale NPTL tests with available number of CPUs.
31693 * nptl/tst-cond16.c (count): Set to constant value of 8.
31694 * nptl/tst-cond18.c (count): Likewise.
31695
2f1aef19
JM
316962017-08-29 Joseph Myers <joseph@codesourcery.com>
31697
31698 [BZ #22035]
31699 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31700 Define to take a second argument that is a macro that
31701 concatentates a suffix, not the suffix itself.
31702 (__CONCAT_d): New macro.
31703 (__CONCAT_f): Likewise.
31704 (__CONCAT_l): Likewise.
31705
8325b477
PP
317062017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31707
31708 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31709 by child.
31710
319cbbf6
AZ
317112017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31712 Aurelien Jarno <aurelien@aurel32.net>
31713 Maciej W. Rozycki <macro@imgtec.com>
31714
31715 [BZ #21956]
31716 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31717 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31718 `mips16-syscall6' and `mips16-syscall7'.
31719 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31720 (CFLAGS-mips16-syscall7.c): Remove.
31721 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31722 Remove `__mips16_syscall5', `__mips16_syscall6' and
31723 `__mips16_syscall7'.
31724 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31725 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31726 `__mips_syscall_return'.
31727 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31728 (__mips16_syscall1): Likewise.
31729 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31730 (__mips16_syscall2): Likewise.
31731 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31732 (__mips16_syscall3): Likewise.
31733 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31734 (__mips16_syscall4): Likewise.
31735 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31736 Remove.
31737 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31738 Remove.
31739 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31740 Remove.
31741 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31742 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31743 `__mips16_syscall5'. Remove prototype.
31744 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31745 `__mips16_syscall6'. Remove prototype.
31746 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31747 `__mips16_syscall7'. Remove prototype.
31748 (__nomips16, __mips16_syscall_return): Move to...
31749 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31750 (__nomips16, __mips_syscall_return): ... here.
31751 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31752 `__mips16_syscall_return' to `__mips_syscall_return'.
31753 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31754 `internal_syscall##nr'.
31755 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31756 `internal_syscall##nr'.
31757 (FORCE_FRAME_POINTER): Remove.
31758 (__mips_syscall5): New prototype.
31759 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31760 (__mips_syscall6): New prototype.
31761 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31762 (__mips_syscall7): New prototype.
31763 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31764 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31765 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31766 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31767 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31768 (sysdep_routines): Add libc-do-syscall.
31769 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31770 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31771
01b87c65
AZ
317722017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31773
31774 [BZ #21672]
31775 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31776 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31777 (advise_stack_range): New function.
31778 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31779 stack non required to advise_stack_range at allocatestack.c
31780
16f138a4
SN
317812017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31782
31783 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31784
251bccfa
FW
317852017-08-29 Florian Weimer <fweimer@redhat.com>
31786
31787 [BZ #22026]
31788 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31789 __end_fct. Mangle __end_fct after setting it to NULL.
31790 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31791 (modules-names, modules-names-tests): Add
31792 tst-gconv-init-failure-mod.
31793 (gconv-modules): New target.
31794 (tst-gconv-init-failure-mod.so): Link against libsupport.
31795 (tst-gconv-init-failure): Depend on gconv-modules,
31796 tst-gconv-init-failure-mod.so.
31797 * iconv/tst-gconv-init-failure-mod.c: New file.
31798 * iconv/tst-gconv-init-failure.c: Likewise.
31799 * iconv/test-gconv-modules: Likewise.
31800
e7c18b9d
FW
318012017-08-29 Florian Weimer <fweimer@redhat.com>
31802
31803 [BZ #22025]
31804 * iconv/gconv_db.c (free_derivation): Remove redundant
31805 parentheses.
31806 (gen_steps): Unconditionally mangle __btowc_fct after
31807 initialization.
31808 (increment_counter): Likewise. Do not call init_fct for internal
31809 modules.
31810
7daada03
JM
318112017-08-29 Joseph Myers <joseph@codesourcery.com>
31812
31813 [BZ #22028]
31814 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31815 (_MSUF_): Remove macro.
31816 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31817 Likewise.
31818 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31819 (__REDIRFROM_X): New macro.
31820 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31821 Likewise.
31822 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31823 (__REDIRTO_X): Likewise.
31824 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31825 arguments.
31826 (__MATH_REDIRCALL_2): Likewise.
31827 (__MATH_REDIRCALL_INTERNAL): Likewise.
31828 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31829 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31830 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31831 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31832 * math/test-finite-macros.c: New file.
31833 * math/Makefile (tests): Add test-finite-macros.
31834 (CFLAGS-test-finite-macros.c): New variable.
31835
1cf1232c
PF
318362017-08-29 Patsy Franklin <pfrankli@redhat.com>
31837 Jeff Law <law@redhat.com>
31838
31839 [BZ #22025]
31840 Mangle NULL pointers in iconv/gconv.
31841 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31842 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31843 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31844 is non-NULL before demangling the end_fct. Check for NULL
31845 end_fct after demangling.
31846 (__gconv_release_step): Demangle the end_fct before checking
31847 it for NULL. Remove assert on __shlibc_handle != NULL.
31848 (gen_steps): Don't check btowc_fct for NULL before mangling.
31849 Demangle init_fct before checking for NULL.
31850 (increment_counter): Likewise.
31851 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31852 end_fct for NULL before mangling.
31853 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31854 for NULL.
31855
c207f7ce 318562017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
31857
31858 [BZ #21971]
31859 * locale/iso-639.def: add Morisyen.
31860
42496114
GG
318612017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31862
31863 [BZ #21930]
31864 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31865 (iszero): New C++ implementation that does not use
31866 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31867 signaling nans are enabled, since __builtin_types_compatible_p
31868 is a C-only feature.
31869 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31870 defined, include ieee754_float128.h for access to the union and
31871 member ieee854_float128.ieee.
31872 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31873 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31874 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31875 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31876 options of test-math-zero on powerpc64le.
31877
5e2bc4ff
L
318782017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31879
31880 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31881 Change double to float.
31882
a48c0fb4
JM
318832017-08-28 Joseph Myers <joseph@codesourcery.com>
31884
31885 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31886 unconditional.
31887 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31888 conditional code; define contents only for [LIBM_SVID_COMPAT].
31889
ee17d4e9
FW
318902017-08-28 Florian Weimer <fweimer@redhat.com>
31891
31892 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31893 (abi-lp64_be-options): Remove.
31894 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31895 (abi-hard-options): Likewise.
31896 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31897 (abi-o32_hard-options, abi-o32_soft_2008-options)
31898 (abi-o32_hard_2008-options, abi-n32_soft-options)
31899 (abi-n32_hard-options, abi-n32_soft_2008-options)
31900 (abi-n32_hard_2008-options, abi-n64_soft-options)
31901 (abi-n64_hard-options, abi-n64_soft_2008-options)
31902 (abi-n64_hard_2008-options): Likewise.
31903 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31904 (abi-64-v1-options, abi-64-v2-options): Likewise.
31905 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31906 (abi-64-options): Likewise.
31907 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31908 (abi-64-options): Likewise.
31909 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31910 (abi-64-options): Likewise.
31911 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31912 (abi-64-options, abi-x32-options): Likewise.
31913
2dba5ce7
FW
319142017-08-28 Florian Weimer <fweimer@redhat.com>
31915
31916 Store supported list of SYS_* system calls in the source tree.
31917 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31918 (bits/syscall.h): Generate from list file.
31919 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31920 [$(subdir) = misc] (tests): Add tst-syscall-list.
31921 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31922 [$(subdir) = misc] (tst-syscall-list-macros.list)
31923 [$(subdir) = misc] (tst-syscall-list-nr.list)
31924 (tst-syscall-list-sys.list): Helper targets for new
31925 tst-syscall-list test.
31926 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31927 tst-syscall-list.sh.
31928 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31929 target. Do not include bits/syscall.d.
31930 [$(subdir) = misc] (generated): Do not update.
31931 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31932 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31933 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31934 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31935
5f3b183d
PP
319362017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31937
31938 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
31939 (tst-cxa_atexit, tst-on_exit): Likewise.
31940 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
31941 tst-cxa_atexit, and tst-on_exit.
31942 * stdlib/tst-atexit-common.c: New file.
31943 * stdlib/tst-atexit.c: New file.
31944 * stdlib/tst-at_quick_exit.c: New file.
31945 * stdlib/tst-cxa_atexit.c: New file.
31946 * stdlib/tst-on_exit.c: New file.
31947
2ef8d469
ST
319482017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31949
31950 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
31951 * mach/stack_chk_fail_local.c: New file.
31952 * hurd/stack_chk_fail_local.c: New file.
31953 * mach/Machrules ($(interface-library)-routines): Add
31954 stack_chk_fail_local.
99ee4d26
ST
31955 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
31956 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
31957 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
31958 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
31959 * hurd/Makefile (CFLAGS-hurdstartup.o,
31960 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 31961
7ab70c98
L
319622017-08-25 H.J. Lu <hongjiu.lu@intel.com>
31963
31964 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31965 (index_cpu_*, index_arch_*): Removed.
31966
39e7a5a6
SN
319672017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31968
31969 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
31970 Use uint64_t instead of unsigned long.
31971
bba5c930
JM
319722017-08-25 Joseph Myers <joseph@codesourcery.com>
31973
a6ccdb08
JM
31974 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
31975 [__HAVE_DISTINCT_FLOAT128].
31976
23761119
JM
31977 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
31978 of <bits/math-finite.h>.
31979 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
31980 inclusion of <bits/math-finite.h>.
31981 * math/bits/math-finite.h (__REDIRTO_X): Do not define
31982 conditionally on [__MATH_DECLARING_LDOUBLE && defined
31983 __NO_LONG_DOUBLE_MATH].
31984 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
31985 (__MATH_REDIRCALL_2): Likewise.
31986 (__MATH_REDIRCALL_INTERNAL): Likewise.
31987 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31988 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
31989 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31990
bba5c930
JM
31991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
31992 Remove file.
31993 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
31994 Likewise.
31995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
31996 Likewise.
31997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
31998 Likewise.
31999 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32000 Likewise.
32001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32002 Likewise.
32003 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32004 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32005 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32006 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32008 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32009 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32010 w_sqrtf_compat-ppc32.
32011
3d7b66f6
GG
320122017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32013
32014 * math/math.h [defined __cplusplus] (issignaling): In the long
32015 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32016 is not defined. Call __issignaling, otherwise.
32017
ebd6f007
AZ
320182017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32019
32020 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32021 syscall definitions and replace __builtin_expect with __glibc_likely.
32022 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32023 syscall.
6b5c8607 32024 (SYSCALL_CANCELLABLE): Removedefinition
ebd6f007
AZ
32025 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32026 definition.
32027 (PSEUDO_END): Likewise.
32028 [IS_IN (libpthread)] (CENABLE): Likewise.
32029 [IS_IN (libpthread)] (CDISABLE): Likewise.
32030 [IS_IN (libc)] (CENABLE): Likewise.
32031 [IS_IN (libc)] (CENABLE): Likewise.
32032 [IS_IN (librt)] (CDISABLE): Likewise.
32033 [IS_IN (librt)] (CDISABLE): Likewise.
32034 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32035 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32036 definition.
32037 (PSEUDO_END): Likewise.
32038 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32039 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32040 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32041 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32042 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32043 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32044 (CENABLE): Likewise.
32045 (CDISABLE): Likewise.
32046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32047 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32048 defintion.
32049 (PSEUDO_END): Likewise.
32050 [IS_IN (libpthread)] (CENABLE): Likewise.
32051 [IS_IN (libpthread)] (CDISABLE): Likewise.
32052 [IS_IN (libc)] (CENABLE): Likewise.
32053 [IS_IN (libc)] (CENABLE): Likewise.
32054 [IS_IN (librt)] (CDISABLE): Likewise.
32055 [IS_IN (librt)] (CDISABLE): Likewise.
32056 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32057 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32058 definition.
32059 (PSEUDO_END): Likewise.
32060 [IS_IN (libpthread)] (CENABLE): Likewise.
32061 [IS_IN (libpthread)] (CDISABLE): Likewise.
32062 [IS_IN (libc)] (CENABLE): Likewise.
32063 [IS_IN (libc)] (CENABLE): Likewise.
32064 [IS_IN (librt)] (CDISABLE): Likewise.
32065 [IS_IN (librt)] (CDISABLE): Likewise.
32066 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32067 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32068 definition.
32069 (PSEUDO_END): Likewise.
32070 [IS_IN (libpthread)] (CENABLE): Likewise.
32071 [IS_IN (libpthread)] (CDISABLE): Likewise.
32072 [IS_IN (libc)] (CENABLE): Likewise.
32073 [IS_IN (libc)] (CENABLE): Likewise.
32074 [IS_IN (librt)] (CDISABLE): Likewise.
32075 [IS_IN (librt)] (CDISABLE): Likewise.
32076 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32077 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32078 definition.
32079 (PSEUDO_END): Likewise.
32080 [IS_IN (libpthread)] (CENABLE): Likewise.
32081 [IS_IN (libpthread)] (CDISABLE): Likewise.
32082 [IS_IN (libc)] (CENABLE): Likewise.
32083 [IS_IN (libc)] (CENABLE): Likewise.
32084 [IS_IN (librt)] (CDISABLE): Likewise.
32085 [IS_IN (librt)] (CDISABLE): Likewise.
32086 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32087 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32088 definition.
32089 (PSEUDO_END): Likewise.
32090 [IS_IN (libpthread)] (CENABLE): Likewise.
32091 [IS_IN (libpthread)] (CDISABLE): Likewise.
32092 [IS_IN (libc)] (CENABLE): Likewise.
32093 [IS_IN (libc)] (CENABLE): Likewise.
32094 [IS_IN (librt)] (CDISABLE): Likewise.
32095 [IS_IN (librt)] (CDISABLE): Likewise.
32096 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32097 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32098 definition.
32099 (PSEUDO_END): Likewise.
32100 [IS_IN (libpthread)] (CENABLE): Likewise.
32101 [IS_IN (libpthread)] (CDISABLE): Likewise.
32102 [IS_IN (libc)] (CENABLE): Likewise.
32103 [IS_IN (libc)] (CENABLE): Likewise.
32104 [IS_IN (librt)] (CDISABLE): Likewise.
32105 [IS_IN (librt)] (CDISABLE): Likewise.
32106 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32107 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32108 Remove definition.
32109 (PSEUDO_END): Likewise.
32110 [IS_IN (libpthread)] (CENABLE): Likewise.
32111 [IS_IN (libpthread)] (CDISABLE): Likewise.
32112 [IS_IN (libc)] (CENABLE): Likewise.
32113 [IS_IN (libc)] (CENABLE): Likewise.
32114 [IS_IN (librt)] (CDISABLE): Likewise.
32115 [IS_IN (librt)] (CDISABLE): Likewise.
32116 (SINGLE_THREAD_P): Likewise.
32117 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32118 definition.
32119 (PSEUDO_END): Likewise.
32120 [IS_IN (libpthread)] (CENABLE): Likewise.
32121 [IS_IN (libpthread)] (CDISABLE): Likewise.
32122 [IS_IN (libc)] (CENABLE): Likewise.
32123 [IS_IN (libc)] (CENABLE): Likewise.
32124 [IS_IN (librt)] (CDISABLE): Likewise.
32125 [IS_IN (librt)] (CDISABLE): Likewise.
32126 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32127 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32128 definition.
32129 (PSEUDO_END): Likewise.
32130 [IS_IN (libpthread)] (CENABLE): Likewise.
32131 [IS_IN (libpthread)] (CDISABLE): Likewise.
32132 [IS_IN (libc)] (CENABLE): Likewise.
32133 [IS_IN (libc)] (CENABLE): Likewise.
32134 [IS_IN (librt)] (CDISABLE): Likewise.
32135 [IS_IN (librt)] (CDISABLE): Likewise.
32136 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32137 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32138 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32139 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32140 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32141 definition.
32142 (PSEUDO_END): Likewise.
32143 [IS_IN (libpthread)] (CENABLE): Likewise.
32144 [IS_IN (libpthread)] (CDISABLE): Likewise.
32145 [IS_IN (libc)] (CENABLE): Likewise.
32146 [IS_IN (libc)] (CENABLE): Likewise.
32147 [IS_IN (librt)] (CDISABLE): Likewise.
32148 [IS_IN (librt)] (CDISABLE): Likewise.
32149 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32150 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32151 definition.
32152 (PSEUDO_END): Likewise.
32153 [IS_IN (libpthread)] (CENABLE): Likewise.
32154 [IS_IN (libpthread)] (CDISABLE): Likewise.
32155 [IS_IN (libc)] (CENABLE): Likewise.
32156 [IS_IN (libc)] (CENABLE): Likewise.
32157 [IS_IN (librt)] (CDISABLE): Likewise.
32158 [IS_IN (librt)] (CDISABLE): Likewise.
32159 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32160 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32161 definition.
32162 (PSEUDO_END): Likewise.
32163 [IS_IN (libpthread)] (CENABLE): Likewise.
32164 [IS_IN (libpthread)] (CDISABLE): Likewise.
32165 [IS_IN (libc)] (CENABLE): Likewise.
32166 [IS_IN (libc)] (CENABLE): Likewise.
32167 [IS_IN (librt)] (CDISABLE): Likewise.
32168 [IS_IN (librt)] (CDISABLE): Likewise.
32169 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32170 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32171 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32172 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32173 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32174 definition.
32175 (PSEUDO_END): Likewise.
32176 [IS_IN (libpthread)] (CENABLE): Likewise.
32177 [IS_IN (libpthread)] (CDISABLE): Likewise.
32178 [IS_IN (libc)] (CENABLE): Likewise.
32179 [IS_IN (libc)] (CENABLE): Likewise.
32180 [IS_IN (librt)] (CDISABLE): Likewise.
32181 [IS_IN (librt)] (CDISABLE): Likewise.
32182 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32183 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32184 definition.
32185 (PSEUDO_END): Likewise.
32186 [IS_IN (libpthread)] (CENABLE): Likewise.
32187 [IS_IN (libpthread)] (CDISABLE): Likewise.
32188 [IS_IN (libc)] (CENABLE): Likewise.
32189 [IS_IN (libc)] (CENABLE): Likewise.
32190 [IS_IN (librt)] (CDISABLE): Likewise.
32191 [IS_IN (librt)] (CDISABLE): Likewise.
32192 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32193
8aa48656
SN
321942017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32195
32196 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32197
fcaaca41
L
321982017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32199
32200 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32201
376b40a2
L
322022017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32203
32204 [BZ #21982]
32205 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32206 middle and outer with size_t instead of int. Repleace %d and
32207 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32208 "MAX (outer, nchars - 64)" to support unsigned outer and
32209 nchars. Also exit loop when outer == 0.
32210
2b0b9a1c
AZ
322112017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32212
32213 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32214 * include/signal.h (__sigsuspend_nocancel): Likewise.
32215 * include/time.h (__nanosleep_nocancel): Likewise.
32216 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32217 * login/utmp_file.c: Include non cancellable syscall header.
32218 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32219 prototype.
32220
b9eaca8f
L
322212017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32222
32223 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32224 .byte sequences with AVX512F instructions.
32225 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32226 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32227 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32228 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32229 Likewise.
32230 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32231 Likewise.
32232
5a706f64
SE
322332017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32234 Steve Ellcey <sellcey@cavium.com>
32235
32236 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32237 Use PTR_REG macro in cmp instruction.
32238
b513da7e
GG
322392017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32240
32241 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32242 Change the return type of the ifunc resolver to match the return
32243 type of the target function.
32244
78ca091c
AZ
322452017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32246
b70b6026
AZ
32247 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32248 (preadv64): Likewise.
32249 (pwrite64(: Likewise.
32250 (pwritev64): Likewise.
32251
78ca091c
AZ
32252 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32253 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32254 (LOAD_ARGS_0): Likewise.
32255 (LOAD_ARGS_1): Likewise.
32256 (LOAD_ARGS_2): Likewise.
32257 (LOAD_ARGS_3): Likewise.
32258 (LOAD_ARGS_4): Likewise.
32259 (LOAD_ARGS_5): Likewise.
32260 (LOAD_ARGS_6): Likewise.
32261 (LOAD_REGS_0): Likewise.
32262 (LOAD_REGS_1): Likewise.
32263 (LOAD_REGS_2): Likewise.
32264 (LOAD_REGS_3): Likewise.
32265 (LOAD_REGS_4): Likewise.
32266 (LOAD_REGS_5): Likewise.
32267 (LOAD_REGS_6): Likewise.
32268 (ASM_ARGS_0): Likewise.
32269 (ASM_ARGS_1): Likewise.
32270 (ASM_ARGS_2): Likewise.
32271 (ASM_ARGS_3): Likewise.
32272 (ASM_ARGS_4): Likewise.
32273 (ASM_ARGS_5): Likewise.
32274 (ASM_ARGS_6): Likewise.
32275 (LOAD_ARGS_TYPES_1): Likewise.
32276 (LOAD_ARGS_TYPES_2): Likewise.
32277 (LOAD_ARGS_TYPES_3): Likewise.
32278 (LOAD_ARGS_TYPES_4): Likewise.
32279 (LOAD_ARGS_TYPES_5): Likewise.
32280 (LOAD_ARGS_TYPES_6): Likewise.
32281 (LOAD_REGS_TYPES_1): Likewise.
32282 (LOAD_REGS_TYPES_2): Likewise.
32283 (LOAD_REGS_TYPES_3): Likewise.
32284 (LOAD_REGS_TYPES_4): Likewise.
32285 (LOAD_REGS_TYPES_5): Likewise.
32286 (LOAD_REGS_TYPES_6): Likewise.
32287 (TYPEFY): New define.
32288 (ARGIFY): Likewise.
32289 (internal_syscall0): Likewise.
32290 (internal_syscall1): Likewise.
32291 (internal_syscall2): Likewise.
32292 (internal_syscall3): Likewise.
32293 (internal_syscall4): Likewise.
32294 (internal_syscall5): Likewise.
32295 (internal_syscall6): Likewise.
32296 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32297 (INTERNAL_SYSCALL_NCS): Remove define.
32298 (internal_syscall1): Add define.
32299
453a493d
GG
323002017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32301
32302 * math/w_remainder_compat.c: Remove duplicate inclusion of
32303 math-svid-compat.h.
32304 * math/w_remainderf_compat.c: Likewise.
32305 * math/w_remainderl_compat.c: Likewise.
32306
f2f048a5
GG
323072017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32308
32309 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32310
d9bef9c0
JM
323112017-08-22 Joseph Myers <joseph@codesourcery.com>
32312
32313 [BZ #21684]
32314 * math/tgmath.h (__floating_type): Simplify definitions.
32315 (__real_integer_type): New macro.
32316 (__complex_integer_type): Likewise.
32317 (__expr_is_real): Likewise.
32318 (__tgmath_real_type_sub): Update comment to describe handling of
32319 complex types.
32320 (__tgmath_complex_type_sub): New macro.
32321 (__tgmath_complex_type): Likewise.
32322 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32323 (__TGMATH_CF128): Use __expr_is_real.
32324 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32325 __expr_is_real.
32326 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32327 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32328 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32329 integer types.
32330
08d6eb46
AZ
323312017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32332
988f991b
AZ
32333 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32334 macro.
32335 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32336 alias.
32337 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32338 Likewise.
32339
6f33fd04
AZ
32340 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32341 nanosleep_not_cancel with __nanosleep_nocancel.
32342 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32343 (__nanosleep_nocancel): New macro.
32344 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32345 function.
32346 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32347 macro.
32348 (__nanosleep_nocancel): New prototype.
32349
08d6eb46
AZ
32350 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32351 pause_not_cancel with __pause_nocancel.
32352 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32353 (__pause_nocancel): New macro.
32354 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32355 macro.
32356 (__pause_nocancel): New prototype.
32357 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32358
ee4e992e
MS
323592017-08-22 Martin Sebor <msebor@redhat.com>
32360
32361 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32362 to return a pointer to the same type as the target function.
32363
20962acb
L
323642017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32365
32366 [BZ #18822]
32367 [BZ #21986]
32368 * include/printf.h (__printf_fphex): Add attribute_hidden.
32369 (__guess_grouping): New prototype.
32370 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32371 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32372 libc_hidden_proto and libc_hidden_def.
32373 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32374 (__vstrfmon_l): Remove the third argument passed to
32375 __guess_grouping.
32376
a16e8bc0
GG
323772017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32378
32379 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32380 definition for issignaling that does not rely on __MATH_TG,
32381 since __MATH_TG uses __builtin_types_compatible_p, which is only
32382 available in C mode.
32383 (CFLAGS-test-math-issignaling.cc): New variable.
32384 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32385 * math/test-math-issignaling.cc: New test for C++ implementation
32386 of type-generic issignaling.
32387 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32388 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32389 options of test-math-issignaling on powerpc64le.
32390
8d2ec553
L
323912017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32392
32393 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32394 building libc.a.
32395 (hidden_proto): Likewise.
32396 (hidden_tls_proto): Likewise.
32397 (__hidden_proto): Likewise.
32398
a4d57b79
FW
323992017-08-22 Florian Weimer <fweimer@redhat.com>
32400
32401 math: Statically link tests of internal functionality.
32402 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32403 atest-exp2.
32404 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32405 (gmp-objs): Remove assignment.
32406 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32407
75dfe623
JM
324082017-08-22 Joseph Myers <joseph@codesourcery.com>
32409
80f91666
JM
32410 [BZ #21987]
32411 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32412 and copy to ...
32413 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32414 ... here.
32415 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32416 ... and here.
32417
75dfe623
JM
32418 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32419 variable definitions above inclusion of ../Rules.
32420
ea99fcd0
JM
324212017-08-21 Joseph Myers <joseph@codesourcery.com>
32422
32423 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32424 case calling __builtin_unreachable.
32425
19926de9
AZ
324262017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32427
a8410a5f
AZ
32428 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32429 __waitpid_nocancel.
32430 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32431 (__waitpid_nocancel): New macro.
32432 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32433 macro.
32434 (__waitpid_nocancel): Replace macro with a function.
32435 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32436 function.
32437
7369800c
AZ
32438 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32439 __fcntl_nocancel.
32440 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32441 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32442
19926de9
AZ
32443 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32444 __writev_nocancel_nostatus.
32445 (write_call_graph): Likewise.
32446 (write_bb_counts): Likewise.
32447 * resolv/herror.c (herror): Likewise.
32448 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32449 macro.
32450 (__writev_nocancel_nostatus): New macro.
32451 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32452 Remove macro.
32453 (__writev_nocancel_nostatus): New function.
32454
813378e9
JM
324552017-08-21 Joseph Myers <joseph@codesourcery.com>
32456
df1deda6
JM
32457 Revert:
32458 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32459
32460 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32461 building libc.a.
32462 (hidden_proto): Likewise.
32463 (hidden_tls_proto): Likewise.
32464 (__hidden_proto): Likewise.
32465
831bbd55
JM
32466 [BZ #21973]
32467 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32468 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32469 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32470 Likewise.
32471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32472 Likewise.
32473 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32474 Likewise.
32475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32476 Likewise.
32477 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32478 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32479 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32480 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32481 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32482 GLIBC_2.0 sqrtl symbol.
32483
813378e9
JM
32484 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32485 [__USE_MISC] (_LIB_VERSION): Likewise.
32486 [__USE_MISC] (struct exception): Likewise.
32487 [__USE_MISC] (matherr): Likewise.
32488 [__USE_MISC] (DOMAIN): Likewise.
32489 [__USE_MISC] (SING): Likewise.
32490 [__USE_MISC] (OVERFLOW): Likewise.
32491 [__USE_MISC] (UNDERFLOW): Likewise.
32492 [__USE_MISC] (TLOSS): Likewise.
32493 [__USE_MISC] (PLOSS): Likewise.
32494 [__USE_MISC] (HUGE): Likewise.
32495 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32496 * math/math-svid-compat.h: New file.
32497 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32498 and matherrl.
32499 * include/math.h [!_ISOMAC] (__matherr): Remove.
32500 * manual/arith.texi (FP Exceptions): Do not document matherr.
32501 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32502 (tests-internal): New variable.
32503 (install-lib): Do not add libieee.a.
32504 (non-lib.a): Likewise.
32505 (extra-objs): Do not add libieee.a and ieee-math.o.
32506 (CPPFLAGS-s_lib_version.c): Remove variable.
32507 ($(objpfx)libieee.a): Remove rule.
32508 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32509 * math/ieee-math.c: Remove.
32510 * math/libm-test-support.c (matherr): Remove.
32511 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32512 and license notices. Include <math-svid-compat.h> and
32513 <shlib-compat.h>.
32514 (matherr): Undefine as macro. Use compat_symbol_reference.
32515 (_LIB_VERSION): Likewise.
32516 * math/test-matherr-2.c: New file.
32517 * math/test-matherr-3.c: Likewise.
32518 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32519 declaration.
32520 (__kernel_standard_f): Likewise.
32521 (__kernel_standard_l): Likewise.
32522 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32523 <math_private.h>. Include <math-svid-compat.h>.
32524 (_LIB_VERSION): Undefine as macro.
32525 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32526 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32527 [LIBM_SVID_COMPAT], use compat_symbol.
32528 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32529 <math_private.h>. Include <math-svid-compat.h>.
32530 (matherr): Undefine as macro.
32531 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32532 compat_symbol.
32533 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32534 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32535 compat_symbol_reference.
32536 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32537 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32538 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32539 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32540 (MATHERR_D): Remove declaration.
32541 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32542 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32543 [LIBM_BUILD] (pmatherrf): Likewise.
32544 [LIBM_BUILD] (pmatherr): Likewise.
32545 [LIBM_BUILD] (pmatherrl): Likewise.
32546 (DOMAIN): Likewise.
32547 (SING): Likewise.
32548 (OVERFLOW): Likewise.
32549 (UNDERFLOW): Likewise.
32550 (TLOSS): Likewise.
32551 (PLOSS): Likewise.
32552 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32553 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32554 compat_symbol.
32555 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32556 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32557 compat_symbol.
32558 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32559 * math/w_acos_compat.c: Likewise.
32560 * math/w_acosf_compat.c: Likewise.
32561 * math/w_acosh_compat.c: Likewise.
32562 * math/w_acoshf_compat.c: Likewise.
32563 * math/w_acoshl_compat.c: Likewise.
32564 * math/w_acosl_compat.c: Likewise.
32565 * math/w_asin_compat.c: Likewise.
32566 * math/w_asinf_compat.c: Likewise.
32567 * math/w_asinl_compat.c: Likewise.
32568 * math/w_atan2_compat.c: Likewise.
32569 * math/w_atan2f_compat.c: Likewise.
32570 * math/w_atan2l_compat.c: Likewise.
32571 * math/w_atanh_compat.c: Likewise.
32572 * math/w_atanhf_compat.c: Likewise.
32573 * math/w_atanhl_compat.c: Likewise.
32574 * math/w_cosh_compat.c: Likewise.
32575 * math/w_coshf_compat.c: Likewise.
32576 * math/w_coshl_compat.c: Likewise.
32577 * math/w_exp10_compat.c: Likewise.
32578 * math/w_exp10f_compat.c: Likewise.
32579 * math/w_exp10l_compat.c: Likewise.
32580 * math/w_exp2_compat.c: Likewise.
32581 * math/w_exp2f_compat.c: Likewise.
32582 * math/w_exp2l_compat.c: Likewise.
32583 * math/w_fmod_compat.c: Likewise.
32584 * math/w_fmodf_compat.c: Likewise.
32585 * math/w_fmodl_compat.c: Likewise.
32586 * math/w_hypot_compat.c: Likewise.
32587 * math/w_hypotf_compat.c: Likewise.
32588 * math/w_hypotl_compat.c: Likewise.
32589 * math/w_j0_compat.c: Likewise.
32590 * math/w_j0f_compat.c: Likewise.
32591 * math/w_j0l_compat.c: Likewise.
32592 * math/w_j1_compat.c: Likewise.
32593 * math/w_j1f_compat.c: Likewise.
32594 * math/w_j1l_compat.c: Likewise.
32595 * math/w_jn_compat.c: Likewise.
32596 * math/w_jnf_compat.c: Likewise.
32597 * math/w_jnl_compat.c: Likewise.
32598 * math/w_lgamma_main.c: Likewise.
32599 * math/w_lgamma_r_compat.c: Likewise.
32600 * math/w_lgammaf_main.c: Likewise.
32601 * math/w_lgammaf_r_compat.c: Likewise.
32602 * math/w_lgammal_main.c: Likewise.
32603 * math/w_lgammal_r_compat.c: Likewise.
32604 * math/w_log10_compat.c: Likewise.
32605 * math/w_log10f_compat.c: Likewise.
32606 * math/w_log10l_compat.c: Likewise.
32607 * math/w_log2_compat.c: Likewise.
32608 * math/w_log2f_compat.c: Likewise.
32609 * math/w_log2l_compat.c: Likewise.
32610 * math/w_log_compat.c: Likewise.
32611 * math/w_logf_compat.c: Likewise.
32612 * math/w_logl_compat.c: Likewise.
32613 * math/w_pow_compat.c: Likewise.
32614 * math/w_powf_compat.c: Likewise.
32615 * math/w_powl_compat.c: Likewise.
32616 * math/w_remainder_compat.c: Likewise.
32617 * math/w_remainderf_compat.c: Likewise.
32618 * math/w_remainderl_compat.c: Likewise.
32619 * math/w_scalb_compat.c: Likewise.
32620 * math/w_scalbf_compat.c: Likewise.
32621 * math/w_scalbl_compat.c: Likewise.
32622 * math/w_sinh_compat.c: Likewise.
32623 * math/w_sinhf_compat.c: Likewise.
32624 * math/w_sinhl_compat.c: Likewise.
32625 * math/w_sqrt_compat.c: Likewise.
32626 * math/w_sqrtf_compat.c: Likewise.
32627 * math/w_sqrtl_compat.c: Likewise.
32628 * math/w_tgamma_compat.c: Likewise.
32629 * math/w_tgammaf_compat.c: Likewise.
32630 * math/w_tgammal_compat.c: Likewise.
32631 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32632 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32633 * sysdeps/ieee754/k_standard.c: Likewise.
32634 * sysdeps/ieee754/k_standardf.c: Likewise.
32635 * sysdeps/ieee754/k_standardl.c: Likewise.
32636 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32637 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32638 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32639 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32640 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32641 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32642 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32643 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32644 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32646 Likewise.
32647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32648 Likewise.
32649 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32650 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32651 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32652 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32653
4504783c
FW
326542017-08-21 Florian Weimer <fweimer@redhat.com>
32655
32656 [BZ #21864]
32657 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32658 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32659 Move before inclusion of ../Rules.
32660
b5889d25
FW
326612017-08-21 Florian Weimer <fweimer@redhat.com>
32662
32663 [BZ #21972]
32664 * assert/assert.h (assert): Use static_cast (bool) for C++.
32665 Use the ternary operator in the warning branch for GNU C.
32666 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32667 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32668 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32669 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32670 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32671
41e673c1
L
326722017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32673
32674 [BZ #18822]
32675 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32676 (__syscall_clock_gettime): Add attribute_hidden.
32677 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32678 (__start_context): Likewise.
32679
568ff429
L
326802017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32681
32682 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32683 building libc.a.
32684 (hidden_proto): Likewise.
32685 (hidden_tls_proto): Likewise.
32686 (__hidden_proto): Likewise.
32687
7c41b4a1
L
326882017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32689
32690 * include/libc-symbols.h (attribute_hidden): Enable hidden
32691 visibility in libc.a compiled with PIE.
32692
483d7068
L
326932017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32694
32695 [BZ #18822]
32696 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32697 Add attribute_hidden.
32698
326992017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32700
32701 [BZ #21864]
32702 * Makerules (all-nonlib): Add $(others-extras).
32703 * catgets/Makefile (others-extras): New.
32704 * elf/Makefile (others-extras): Likewise.
32705 * nss/Makefile (others-extras): Likewise.
32706
54e4b8f2
L
327072017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32708
32709 [BZ #18822]
32710 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32711 * elf/dl-open.c: Include <libc-internal.h>.
32712 (__libc_multiple_libcs): Removed.
32713 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32714 <hp-timing.h>.
32715 * include/libc-internal.h (__libc_multiple_libcs): New.
32716 * misc/sbrk.c: Include <libc-internal.h>.
32717 (__libc_multiple_libcs): Removed.
32718
1dbbb1ec
L
327192017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32720
32721 [BZ #18822]
32722 * grp/initgroups.c (__nss_group_database): Removed.
32723 (__nss_initgroups_database): Likewise.
32724 * nscd/gai.c (__nss_hosts_database): Likewise.
32725 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32726 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32727 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32728 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32729 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32730 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32731 attribute_hidden.
32732 * nss/nsswitch.c (__nss_database_custom): Define only if
32733 USE_NSCD is defined.
32734 (__nss_configure_lookup): Use __nss_database_custom only if
32735 USE_NSCD is defined.
32736 * nss/nsswitch.h (__nss_database_custom): Declare only if
32737 USE_NSCD is defined. Add attribute_hidden.
32738 (__nss_setent): Add attribute_hidden.
32739 (__nss_endent): Likewise.
32740 (__nss_getent_r): Likewise.
32741 (__nss_getent): Likewise.
32742 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32743
2585d7b8
L
327442017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32745
32746 [BZ #18822]
32747 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32748 libc_hidden_proto and libc_hidden_def.
32749
c8dfa99c
L
327502017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32751
32752 [BZ #18822]
32753 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32754 Add libc_hidden_proto.
32755 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32756 Add libc_hidden_def.
32757
7ed87317
L
327582017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32759
32760 [BZ #21974]
32761 * gmon/Makefile (routines): Remove bb_init_func and
32762 bb_exit_func.
32763 (elide-routines.os): Removed.
9476b904
L
32764 * gmon/bb_exit_func.c: Likewise.
32765 * gmon/bb_init_func.c: Likewise.
7ed87317
L
32766 * include/sys/gmon.h (__bb): Likewise.
32767 (__bb_init_func): Likewise.
32768 (__bb_exit_func): Likewise.
91695eb1 32769 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 32770
94e6ba15
L
327712017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32772
32773 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32774 * include/setjmp.h (____longjmp_chk): Here. Add
32775 attribute_hidden.
32776
7550717e
L
327772017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32778
32779 [BZ #18822]
32780 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32781 attribute_hidden.
32782 (__strspn_sse2): Likewise.
32783
0bb2fabc
AZ
327842017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32785
c181840c
AZ
32786 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32787 (close_not_cancel_no_status): Likewise.
32788 (__close_nocancel): New macro.
32789 (__close_nocancel_nostatus): Likewise.
32790 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32791 macro.
32792 (close_not_cancel): Likewise.
32793 (close_not_cancel_no_status): Likewise.
32794 (__close_nocancel): New prototype.
32795 (__close_nocancel_nostatus): New function.
32796 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32797 * catgets/open_catalog.c (__open_catalog): Replace
32798 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32799 * gmon/gmon.c (write_gmon): Likewise.
32800 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32801 * intl/loadmsgcat.c (close): Likewise.
32802 * io/ftw.c (open_dir_stream): Likewise.
32803 (ftw_startup): Likewise.
32804 * libio/fileops.c (_IO_file_open): Likewise.
32805 (_IO_file_close_mmap): Likewise.
32806 (_IO_file_close): Likewise.
32807 * libio/iopopen.c (_IO_dup2): Likewise.
32808 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32809 * locale/loadlocale.c (_nl_load_locale): Likewise.
32810 * login/utmp_file.c (pututline_file): Likewise.
32811 (endutent_file): Likewise.
32812 * misc/daemon.c (daemon): Likewise.
32813 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32814 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32815 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32816 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32817 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32818 * nscd/nscd_helper.c (open_socket): Likewise.
32819 (__nscd_open_socket): Likewise.
32820 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32821 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32822 (__nscd_innetgr): Likewise.
32823 * nss/nss_db/db-open.c (internal_setent): Likewise.
32824 * resolv/res-close.c (__res_iclose): Likewise.
32825 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32826 * sysdeps/posix/closedir.c (__closedir): Likewise.
32827 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32828 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32829 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32830 (opendir_tail): Likewise.
32831 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32832 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32833 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32834 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32835 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32836 (gethostid): Likewise.
32837 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32838 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32839 Likewise.
32840 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32841 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32842 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32843 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32844 Likewise.
32845 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32846 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32847 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32848 Likewise.
32849 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32850 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32851 Likewise.
32852 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32853 Likewise.
32854 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32855 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32856 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32857 __close_nocancel.
32858
0bb2fabc
AZ
32859 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32860 (openat_not_cancel_3): Likewise.
32861 (openat64_not_cancel_3): Likewise).
32862 (openat_not_cancel_3): Likewise).
32863 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32864 macro.
32865 (openat_not_cancel_3): Likewise.
32866 (openat64_not_cancel): Likewise.
32867 (openat64_not_cancel_3): Likewise.
32868 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32869 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32870 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32871 __open{64}_nocancel.
32872 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32873 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32874 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32875
65a086db
L
328762017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32877
32878 [BZ #18822]
32879 * include/argz.h (__argz_create_sep): New function prototype.
32880 (__argz_append): Likewise.
32881 (__argz_add): Likewise.
32882 (__argz_add_sep): Likewise.
32883 (__argz_delete): Likewise.
32884 (__argz_insert): Likewise.
32885 (__argz_replace): Likewise.
32886 * string/argz.h (__argz_create_sep): Removed.
32887 (__argz_append): Likewise.
32888 (__argz_add): Likewise.
32889 (__argz_add_sep): Likewise.
32890 (__argz_delete): Likewise.
32891 (__argz_insert): Likewise.
32892 (__argz_replace): Likewise.
32893
62753d2c
L
328942017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32895
32896 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32897 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32898 (GNU_PROPERTY_STACK_SIZE): Likewie.
32899 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32900 (GNU_PROPERTY_LOPROC): Likewise.
32901 (GNU_PROPERTY_HIPROC): Likewise.
32902 (GNU_PROPERTY_LOUSER): Likewise.
32903 (GNU_PROPERTY_HIUSER): Likewise.
32904 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32905 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32906 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32907 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32908 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32909 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32910 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32911 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32912 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32913 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32914 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32915 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32916 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32917 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32918 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32919 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32920 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32921 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32922 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32923 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32924 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32925 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32926 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32927
6913ad65
GG
329282017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32929
32930 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32931 in C++ mode.
32932
47a67213
GG
329332017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32934
32935 [BZ #21930]
32936 * math/math.h (isinf): Check if in C or C++ mode before using
32937 __builtin_types_compatible_p, since this is a C mode feature.
32938
a748eb31
AZ
329392017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32940
c647fb88
AZ
32941 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
32942 (__write_nocancel): New macro.
32943 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
32944 Rewrite as a function prototype.
32945 (write_not_cancel): Remove macro.
32946 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
32947 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
32948 (write_gmon): Likewise.
32949 * libio/fileops.c (_IO_new_file_write): Likewise.
32950 * login/utmp_file.c (pututline_file): Likewise.
32951 (updwtmp_file): Likewise.
32952 * stdio-common/psiginfo.c (psiginfo): Likewise.
32953 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32954 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32955 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32956 Likewise.
32957 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32958 Likewise.
32959
a748eb31
AZ
32960 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
32961 (__read_nocancel): New macro.
32962 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32963 __read_nocancel.
32964 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
32965 macro.
32966 (__read_nocancel): New prototype.
32967 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
32968 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
32969 with __read_nocancel.
32970 * intl/loadmsgcat.c (read): Likewise.
32971 * libio/fileops.c (_IO_file_read): Likewise.
32972 * locale/loadlocale.c (_nl_load_locale): Likewise.
32973 * login/utmp_file.c (getutent_r_file): Likewise.
32974 (internal_getut_r): Likewise.
32975 (getutline_r_file): Likewise.
32976 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
32977 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
32978 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32979 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32980 Likewise.
32981 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
32982 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32983 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32984 Likewise.
32985 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
32986 Likewise.
32987 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32988 Likewise.
32989 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32990 Likewise.
32991 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32992
098b9dd4
L
329932017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32994
32995 [BZ #21966]
32996 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
32997 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
32998 usable.
32999
a3fe6a20
DD
330002017-08-17 DJ Delorie <dj@redhat.com>
33001
33002 * bug17079.c: Update to new test harness.
33003 * test-digits-dots.c: Likewise.
33004 * test-netdb.c: Likewise.
33005 * tst-field.c: Likewise.
33006 * tst-nss-getpwent.c: Likewise.
33007 * tst-nss-static.c: Likewise.
33008 * tst-nss-test1.c: Likewise.
33009 * tst-nss-test2.c: Likewise.
33010 * tst-nss-test3.c: Likewise.
33011 * tst-nss-test4.c: Likewise.
33012 * tst-nss-test5.c: Likewise.
33013
c2284574
AZ
330142017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33015
33016 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33017 (open_not_cancel_2): Likewise.
33018 (open_nocancel): New macro.
33019 (open64_nocancel): Likewise.
33020 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33021 (open_not_cancel_2): Likewise.
33022 (__open_nocancel): New prototype.
33023 (__open64_nocancel): Likewise.
33024 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33025 __open_nocancel.
33026 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33027 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33028 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33029 with __open_nocancel.
33030 * csu/check_fds.c (check_one_fd): Likewise.
33031 * gmon/gmon.c (write_gmon): Likewise.
33032 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33033 * intl/loadmsgcat.c (open): Likewise.
33034 * libio/fileops.c (_IO_file_open): Likewise.
33035 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33036 * locale/loadlocale.c (_nl_load_locale): Likewise.
33037 * login/utmp_file.c (setutent_file): Likewise.
33038 * misc/daemon.c (daemon): Likewise.
33039 * nss/nss_db/db-open.c (internal_setent): Likewise.
33040 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33041 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33042 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33043 (__opendir): Likewise.
33044 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33045 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33046 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33047 (gethostid): Likewise.
33048 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33049 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33050 Likewise.
33051 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33052 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33053 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33054 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33055 Likewise.
33056 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33057 Likewise.
33058 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33059 Likewise.
33060 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33061 Likewise.
33062 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33063 Likewise.
33064 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33065 Likewise.
33066 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33067 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33068
d4505b89
WD
330692017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33070
33071 * benchtests/bench-skeleton.c (main): Add support for
33072 latency benchmarking.
33073 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33074
34d6a3cb
L
330752017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33076
33077 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33078 the startup object.
33079
038d1caf
FW
330802017-08-17 Florian Weimer <fweimer@redhat.com>
33081
33082 * include/sys/socket.h (__opensock): Remove internal_function.
33083 * socket/opensock.c (__opensock): Likewise.
33084 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33085
67f0aff0
JM
330862017-08-16 Joseph Myers <joseph@codesourcery.com>
33087
33088 [BZ #21944]
33089 * signal/bits/types/__sigval_t.h: New file.
33090 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33091 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33092 and define sigval_t using __sigval_t.
33093 * include/bits/types/__sigval_t.h: New file.
33094 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33095 instead of <bits/types/__sigval_t.h>.
33096 (struct sigevent): Use __sigval_t instead of sigval_t.
33097 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33098 instead of <bits/types/__sigval_t.h>.
33099 (siginfo_t): Use __sigval_t instead of sigval_t.
33100 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33101 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33102 (struct sigevent): Use __sigval_t instead of sigval_t.
33103 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33104 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33105 (siginfo_t): Use __sigval_t instead of sigval_t.
33106 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33107
87e7bf4d
L
331082017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33109
33110 * NEWS: Remove "[Add new features here]" for 2.27.
33111
5047057f
JM
331122017-08-16 Joseph Myers <joseph@codesourcery.com>
33113
33114 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33115 libc.so.
33116
20c7b195
L
331172017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33118
33119 * NEWS: Mention x86-64 FMA optimization.
33120
24a2e658
L
331212017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33122
33123 [BZ #21912]
33124 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33125 Add e_expf-fma.
33126 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33127 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33128 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33129
eedca977
AS
331302017-08-16 Andreas Schwab <schwab@suse.de>
33131
403143e1
FW
33132 [BZ #16750]
33133 CVE-2009-5064
eedca977
AS
33134 * elf/ldd.bash.in: Never run file directly.
33135
f59f7adb
L
331362017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33137
33138 [BZ #21955]
33139 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33140 (L(SP_INF_0)): Likewise.
33141
6b11a6ad
FW
331422017-08-15 Florian Weimer <fweimer@redhat.com>
33143
33144 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33145 run-built-tests.
33146
bbf5c438
FW
331472017-08-15 Florian Weimer <fweimer@redhat.com>
33148
33149 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33150 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33151 BROKEN_THREAD_SIGNALS code.
33152 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33153 request_list): Remove caller_pid member used for
33154 BROKEN_THREAD_SIGNALS.
33155 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33156 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33157 Remove BROKEN_THREAD_SIGNALS support.
33158 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33159 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33160
6014c65d
FW
331612017-08-15 Florian Weimer <fweimer@redhat.com>
33162
33163 * gmon/Makefile (tests): Add tst-gmon.
33164 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33165 Set.
33166 (tests-special): Add tst-gmon-prof.out.
33167 (tst-gmon.out): Depend on clean-tst-gmon-data.
33168 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33169 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33170 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33171 startup object.
33172 * aclocal.m4 (GPROF): Set and substitute.
33173 * config.amke.in (GPROF): Set.
33174 * configure: Regenerate.
33175
ee72219a
GR
331762017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33177
33178 * elf/elf.h A (NT_PPC_TAR): New macro.
33179 (NT_PPC_PPR): Likewise.
33180 (NT_PPC_DSCR): Likewise.
33181 (NT_PPC_EBB): Likewise.
33182 (NT_PPC_PMU): Likewise.
33183 (NT_PPC_TM_CGPR): Likewise.
33184 (NT_PPC_TM_CFPR): Likewise.
33185 (NT_PPC_TM_CVMX): Likewise.
33186 (NT_PPC_TM_CVSX): Likewise.
33187 (NT_PPC_TM_SPR): Likewise.
33188 (NT_PPC_TM_CTAR): Likewise.
33189 (NT_PPC_TM_CPPR): Likewise.
33190 (NT_PPC_TM_CDSCR): Likewise.
33191
4ebf934e
FW
331922017-08-15 Florian Weimer <fweimer@redhat.com>
33193
33194 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33195 regparm (2) instead of internal_function.
33196 (_MCOUNT_DECL): Adjust.
33197
e9f57484
SL
331982017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33199
33200 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33201 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33202
88ff4d55
JM
332032017-08-14 Joseph Myers <joseph@codesourcery.com>
33204
33205 * conform/data/sys/wait.h-data (si_value): Do not expect for
33206 XPG42.
33207
c88ffc23
FW
332082017-08-14 Florian Weimer <fweimer@redhat.com>
33209
33210 [BZ #21962]
33211 NSS: Create stubs for accidentally exported lookup functions.
33212 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33213 Remove declaration.
33214 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33215 (ether_hostton): Call __nss_ethers_lookup2 instead.
33216 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33217 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33218 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33219 (setup): Call __nss_netgroup_lookup2 instead.
33220 * nss/Makefile (routines): Add compat-lookup.
33221 * nss/Versions (GLIBC_2.27): Add symbol version.
33222 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33223 (DB_COMPAT_FCT): Remove.
33224 * nss/compat-lookup.c: New file.
33225 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33226 from databases.def.
33227 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33228 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33229 (netname2user): Call __nss_publickey_lookup2 instead.
33230 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33231 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33232 instead.
33233
35a29136 332342017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
33235 Sergei Trofimovich <slyfox@inbox.ru>
33236
33237 [BZ #21908]
33238 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33239 Rename to MMAP2_PAGE_UNIT.
33240 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33241 __OFF_T_MATCHES_OFF64_T is not defined.
33242 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33243 uint64_t.
33244 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33245 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33246
fbdc1e3e
FW
332472017-08-14 Florian Weimer <fweimer@redhat.com>
33248
33249 i386: Do not set internal_function.
33250 * config.h.in (USE_REGPARMS, internal_function): Remove.
33251 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33252 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33253
b3f85fd2
FW
332542017-08-14 Florian Weimer <fweimer@redhat.com>
33255
33256 * elf/dl-init.c (_dl_init): Remove internal_function.
33257 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33258 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33259
630bf491
FW
332602017-08-14 Florian Weimer <fweimer@redhat.com>
33261
33262 * elf/rtld.c (_dl_start): Remove internal_function.
33263 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33264 _dl_start.
33265
9fa7449b
FW
332662017-08-14 Florian Weimer <fweimer@redhat.com>
33267
33268 * elf/dl-fini.c (_dl_fini): Remove internal_function
33269 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33270
73322d5f
L
332712017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33272
d863cd71 33273 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
73322d5f
L
33274 (bit_cpu_SHSTK): Likewise.
33275 (index_cpu_IBT): Likewise.
33276 (index_cpu_SHSTK): Likewise.
33277 (reg_IBT): Likewise.
33278 (reg_SHSTK): Likewise.
33279 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33280 Handle index_cpu_IBT and index_cpu_SHSTK.
33281
dbc303ef
MF
332822017-08-14 Mike FABIAN <mfabian@redhat.com>
33283
33284 [BZ #19982]
33285 * po/fr.po: Fix spelling mistake.
33286
3012cfb0
FW
332872017-08-13 Florian Weimer <fweimer@redhat.com>
33288
33289 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33290 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33291 (_dl_catch_error, _dl_receive_error): Likewise.
33292 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33293 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33294 (_dl_deallocate_tls): Likewise.
33295 * include/dlfcn.h (_dl_addr): Likewise.
33296 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33297 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33298 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33299 Likewise.
33300
52bcdf26
FW
333012017-08-13 Florian Weimer <fweimer@redhat.com>
33302
33303 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33304 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33305 internal_function.
33306 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33307
e1d2ae8d
FW
333082017-08-13 Florian Weimer <fweimer@redhat.com>
33309
33310 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33311 internal_function.
33312 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33313 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33314 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33315 internal_function from _dl_make_stack_executable_hook member.
33316 (_dl_make_stack_executable): Remove internal_function.
33317 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33318 Likewise.
33319 * sysdeps/unix/sysv/linux/dl-execstack.c
33320 (_dl_make_stack_executable): Likewise.
33321
c4ce0382
FW
333222017-08-13 Florian Weimer <fweimer@redhat.com>
33323
33324 * sysdeps/unix/sysv/linux/netlinkaccess.h
33325 (__netlink_assert_response): Remove internal_function.
33326 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33327 (__netlink_assert_response): Likewise.
33328
c4d767f7
FW
333292017-08-13 Florian Weimer <fweimer@redhat.com>
33330
33331 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33332 internal_function.
33333 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33334
b2297409
FW
333352017-08-13 Florian Weimer <fweimer@redhat.com>
33336
33337 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33338 internal_function.
33339 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33340 * inet/netgroup.h (__internal_setnetgrent)
33341 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33342 * inet/getnetgrent_r.c (__internal_setnetgrent)
33343 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33344 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33345 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33346 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33347 * nss/nsswitch.h (db_lookup_function): Likewise.
33348
1b0bfc69
FW
333492017-08-13 Florian Weimer <fweimer@redhat.com>
33350
33351 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33352 Remove internal_function.
33353 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33354 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33355 message argument on the stack.
33356 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33357 Likeweise.
33358
a6bd8722
MF
333592017-08-12 Mike FABIAN <mfabian@redhat.com>
33360
33361 Adapt test case data to the changes in the thousands
33362 separators.
33363
33364 [BZ #20756]
33365 * localedata/tst-langinfo.sh: Adapt test case data.
33366 * stdlib/tst-strfmon_l.c: Likewise.
33367 * stdlib/tst-strtod4.c: Likewise.
33368 * stdlib/tst-strtod5i.c: Likewise.
33369
8b2c63e4
FW
333702017-08-11 Florian Weimer <fweimer@redhat.com>
33371
33372 [BZ #21242]
33373 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33374 Suppress pedantic warning resulting from statement expression.
33375 (__ASSERT_FUNCTION): Add missing __extension__.
33376
61c98291
SP
333772017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33378
86c6519e
SP
33379 * benchtests/bench-memmove-large.c: Print output in JSON
33380 format.
33381 * benchtests/bench-memmove.c: Likewise.
33382
61c98291
SP
33383 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33384 * benchtests/bench-memchr.c (do_one_test): Likewise.
33385 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33386 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33387 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33388 * benchtests/bench-memmove.c (do_one_test): Likewise.
33389 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33390 * benchtests/bench-memset.c (do_one_test): Likewise.
33391 * benchtests/bench-string.h (test_init): Remove memsets.
33392
925733a9
RJ
333932017-08-10 Rical Jasan <ricaljasan@pacific.net>
33394
33395 * manual/lang.texi
33396 (Computing the Width of an Integer Data Type): Rename section to
33397 "Width of an Integer Type". Remove inaccurate statement regarding
33398 lack of C language facilities for determining width of integer
33399 types, and reorder content to improve flow and context of
33400 discussion.
33401
4fcdfbfc
RJ
334022017-08-10 Rical Jasan <ricaljasan@pacific.net>
33403
33404 * lang.texi (va_copy): Change standard from ISO to C99.
33405 (__va_copy): Add standard and header annotation.
33406 Update description for clarity of origins and current use.
33407
4d98ace9
GG
334082017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33409
33410 [BZ #21941]
33411 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33412 xssqrtqp requires operands to be in Vector Registers
33413 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33414 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33415 (__ieee754_sqrtf128): Likewise.
33416
92236903
WD
334172017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33418
33419 * sysdeps/aarch64/memcmp.S (memcmp):
33420 Rewrite of optimized memcmp.
33421
2449ae7b
FW
334222017-08-10 Florian Weimer <fweimer@redhat.com>
33423
33424 Introduce ld.so exceptions.
33425 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33426 (_dl_exception_create, _dl_exception_create_format)
33427 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33428 (_dl_catch_exception): Declare.
33429 (_dl_catch_error): Update comment.
33430 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33431 errstring, malloced members with exception member.
33432 (_dl_out_of_memory): Remove.
33433 (fatal_error): New function, extracted from _dl_signal_error.
33434 (_dl_signal_exception, _dl_signal_cexception): New functions.
33435 (_dl_signal_error): Call _dl_exception_create to allocate an
33436 exception object.
33437 (_dl_catch_exception): New function, based on _dl_catch_error.
33438 (_dl_catch_error): Implement using _dl_catch_exception.
33439 * elf/dl-exception.c: New file.
33440 * elf/Makefile (dl-routines): Add dl-exception.
33441 (elide-routines.os): Likewise.
33442 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33443 _dl_exception_create_format, _dl_exception_free.
33444 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33445 _dl_signal_exception.
33446 * elf/dl-lookup.c (make_string): Remove.
33447 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33448 _dl_signal_cexception, _dl_exception_free.
33449 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33450 _dl_signal_exception.
33451 * elf/dl-sym.c (do_sym): Likewise.
33452 * elf/dl-version.c (make_string): Remove.
33453 (match_symbol): Use _dl_exception_create_format,
33454 _dl_signal_cexception, _dl_exception_free.
33455 (_dl_check_map_versions): Likewise.
33456 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33457 _dl_catch_exception.
33458 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33459 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33460 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33461 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33462 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33463 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33464 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33465 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33466 Likewise.
33467 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33469 (ld.so): Likewise.
33470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33471 (ld.so): Likewise.
33472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33473 Likewise.
33474 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33475 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33476 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33477 Likewise.
33478 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33479 Likewise.
33480 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33481
f87cc2bf
FW
334822017-08-10 Florian Weimer <fweimer@redhat.com>
33483
33484 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33485 attribute_hidden, internal_function.
33486 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33487 internal_function.
33488
eac43cbb
FW
334892017-08-10 Florian Weimer <fweimer@redhat.com>
33490
33491 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33492 function which calls __builtin_unreachable.
33493
bd80111e
MF
334942017-08-10 Mike FABIAN <mfabian@redhat.com>
33495
33496 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33497 Indian monetary formatting
33498 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33499 test cases.
33500
60e2846e
DL
335012017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33502
68dc02d1
DL
33503 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33504 Fix typo in comment.
33505
60e2846e
DL
33506 [BZ #21928]
33507 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33508 PTRACE_SEIZE_DEVEL): Remove.
33509 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33510 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33511 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33512 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33513 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33514
3d452dab
JM
335152017-08-09 Joseph Myers <joseph@codesourcery.com>
33516
24d9f53a
JM
33517 * posix/bits/types.h (__qaddr_t): Remove.
33518
3d452dab
JM
33519 [BZ #21457]
33520 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33521 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33522 __glibc_reserved1.
33523 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33524 (ucontext_t): Use __ctx with uc_flags.
33525 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33526 (__ctxt): Likewise.
33527 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33528 __glibc_reserved1.
33529 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33530 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33531 __glibc_reserved1.
33532 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33533 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33534 __glibc_reserved1.
33535 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33536 macro.
33537 (ucontext_t): Use __ctx with uc_flags.
33538 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33539 (ucontext_t): Use __ctx with uc_flags.
33540 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33541 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33542 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33543 (ucontext_t): Use __ctx with uc_flags.
33544 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33545 undefine further down.
33546 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33547 __glibc_reserved1.
33548 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33549 undefine further down.
33550 (ucontext_t): Use __ctx with uc_flags.
33551 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33552 undefine further down.
33553 (ucontext_t): Use __ctx with uc_flags.
33554 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33555 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33556 Rename uc_pad to __glibc_reserved1.
33557 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33558 undefine further down.
33559 (ucontext_t): Use __ctx with uc_flags.
33560 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33561 further down.
33562 (ucontext_t): Use __ctx with uc_flags.
33563 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33564 __ctx with uc_flags.
33565 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33566 (ucontext_t): Use __ctx with uc_flags.
33567 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33568 __ctx with uc_flags.
33569
30161498
FW
335702017-08-09 Florian Weimer <fweimer@redhat.com>
33571
33572 [BZ #21932]
33573 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33574 before early return.
33575
5797b410
AS
335762017-08-09 Andreas Schwab <schwab@suse.de>
33577
139237a4 33578 [BZ #21041]
5797b410
AS
33579 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33580 renamed alias.
33581
139237a4 33582 [BZ #21041]
40c06a3d
AS
33583 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33584 tst-compat-forwarder.
33585 (modules-names): Add tst-compat-forwarder-mod.
33586 ($(objpfx)tst-compat-forwarder): Depend on
33587 $(objpfx)tst-compat-forwarder-mod.so.
33588 * nptl/tst-compat-forwarder.c: New file.
33589 * nptl/tst-compat-forwarder-mod.c: New file.
33590
36ada5f6
SP
335912017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33592
0e02b510
SP
33593 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33594 comments.
33595
36ada5f6
SP
33596 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33597 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33598 memcpy_falkor.
33599 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33600 Bump.
33601 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33602 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33603 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33604 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33605 Add falkor.
33606 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33607 New macro.
33608
9995c839
AZ
336092017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33610
33611 [BZ #759]
33612 * manual/setjmp.texi (getcontex): Document uc_stack value
33613 compatibility differences.
33614
f17a4233
JM
336152017-08-08 Joseph Myers <joseph@codesourcery.com>
33616
33617 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33618 (old_malloc_hook): Likewise.
33619 (old_memalign_hook): Likewise.
33620 (old_realloc_hook): Likewise.
33621 (struct hdr): Likewise.
33622 (flood): Likewise.
33623 (freehook): Likewise.
33624 (mallochook): Likewise.
33625 (memalignhook): Likewise.
33626 (reallochook): Likewise.
33627 (mprobe): Likewise.
33628 * malloc/mtrace.c (mallwatch): Likewise.
33629 (tr_old_free_hook): Likewise.
33630 (tr_old_malloc_hook): Likewise.
33631 (tr_old_realloc_hook): Likewise.
33632 (tr_old_memalign_hook): Likewise.
33633 (tr_where): Likewise.
33634 (lock_and_info): Likewise.
33635 (tr_freehook): Likewise.
33636 (tr_mallochook): Likewise.
33637 (tr_reallochook): Likewise.
33638 (tr_memalignhook): Likewise.
33639 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33640 * misc/mmap.c (__mmap): Likewise.
33641 * misc/mmap64.c (__mmap64): Likewise.
33642 * misc/mprotect.c (__mprotect): Likewise.
33643 * misc/msync.c (msync): Likewise.
33644 * misc/munmap.c (__munmap): Likewise.
33645 * posix/posix_madvise.c (posix_madvise): Likewise.
33646 * socket/send.c (__send): Likewise.
33647 * socket/sendto.c (__sendto): Likewise.
33648 * socket/setsockopt.c (__setsockopt): Likewise.
33649 * string/memcmp.c (__ptr_t): Remove macro.
33650 (MEMCMP): Use void * instead of ptr_t.
33651 * string/memrchr.c (__ptr_t): Remove macro.
33652 (__memrchr): Use void * instead of ptr_t.
33653 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33654 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33655 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33656 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33657 * sysdeps/mach/msync.c (msync): Likewise.
33658 * sysdeps/mach/munmap.c (__munmap): Likewise.
33659 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33660 Likewise.
33661 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33662 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33663 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33664 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33665 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33666 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33667 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33668 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33669 Likewise.
33670 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33671 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33672 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33673 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33674 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33675 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33676 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33677 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33678 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33679 Likewise.
33680 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33681 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33682 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33683 (MEMCMP): Use void * instead of ptr_t.
33684 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33685 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33686
0df595b2
FW
336872017-08-08 Florian Weimer <fweimer@redhat.com>
33688
33689 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33690 return statement.
33691
086df229
L
336922017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33693
33694 [BZ #21913]
33695 * csu/libc-tls.c: Include <startup.h> first.
33696 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33697 * elf/dl-tunables.c: Include <startup.h> first.
33698 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33699 * sysdeps/generic/startup.h: New file.
33700 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33701 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33702 (I386_USE_SYSENTER): New. Defined to 0.
33703
fc5ad702
AS
337042017-08-08 Andreas Schwab <schwab@suse.de>
33705
33706 [BZ #21041]
33707 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33708 * nptl/pt-system.c (system): Likewise.
33709
852d6312
AZ
337102017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33711
33712 [BZ #21780]
33713 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33714 EOPNOTSUPP.
33715 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33716 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33717 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33718 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33719 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33720 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33721 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33722
8b164787
JM
337232017-08-07 Joseph Myers <joseph@codesourcery.com>
33724
cd65836b
JM
33725 [BZ #21899]
33726 * bits/sigaction.h (struct sigaction): Define sa_handler and
33727 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33728 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33729 [__USE_XOPEN_EXTENDED].
33730 (SA_RESTART): Likewise.
33731 (SA_NODEFER): Likewise.
33732 (SA_RESETHAND): Likewise.
33733 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33734 (struct sigaction): Define sa_handler and sa_sigaction using union
33735 also for [__USE_XOPEN_EXTENDED].
33736 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33737 [__USE_XOPEN_EXTENDED].
33738 (SA_RESTART): Likewise.
33739 (SA_NODEFER): Likewise.
33740 (SA_RESETHAND): Likewise.
33741 * sysdeps/unix/sysv/linux/bits/sigaction.h
33742 (struct sigaction): Define sa_handler and sa_sigaction using union
33743 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/hppa/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/ia64/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/mips/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/s390/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/sparc/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. Define directly rather than as alias.
33788 (SA_RESETHAND): Likewise.
33789 (SA_INTERRUPT): Define only for [__USE_MISC].
33790 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33791 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33792 [__USE_MISC].
33793 (SA_STACK): Define only for [__USE_MISC].
33794 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33795 (struct sigaction): Define sa_handler and sa_sigaction using union
33796 also for [__USE_XOPEN_EXTENDED].
33797 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33798 [__USE_XOPEN_EXTENDED].
33799 (SA_RESTART): Likewise.
33800 (SA_NODEFER): Likewise.
33801 (SA_RESETHAND): Likewise.
33802 (SA_NOPTRACE): Define only for [__USE_MISC].
33803
d9fee042
JM
33804 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33805 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33806 (struct catalog_info): Likewise.
33807 * inet/htontest.c (lo): Likewise.
33808 (foo): Likewise.
33809 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33810 * inet/inet_net.c (inet_network): Likewise.
33811 * inet/inet_netof.c (inet_netof): Likewise.
33812 * inet/rcmd.c (__ivaliduser): Likewise.
33813 (iruserok): Likewise.
33814 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33815 * locale/programs/locale-spec.c (locale_special): Likewise.
33816 * nis/nis_findserv.c (struct findserv_req): Likewise.
33817 (__nis_findfastest_with_timeout): Likewise.
33818 * nss/test-netdb.c (test_network): Likewise.
33819 * resolv/inet_neta.c (inet_neta): Likewise.
33820 * resolv/ns_date.c (ns_datetosecs): Likewise.
33821 (SECS_PER_DAY): Likewise.
33822 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33823 Likewise.
33824 * resolv/res_comp.c (__putlong): Likewise.
33825 (__putshort): Likewise.
33826 (_getlong): Likewise.
33827 (_getshort): Likewise.
33828 * resolv/res_debug.c (p_time): Likewise.
33829 (precsize_ntoa): Likewise.
33830 (precsize_aton): Likewise.
33831 (latlon2ul): Likewise.
33832 (loc_aton): Likewise.
33833 (loc_ntoa): Likewise.
33834 * resolv/res_hconf.c (struct netaddr): Likewise.
33835 (_res_hconf_reorder_addrs): Likewise.
33836 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33837 (clnttcp_control): Likewise.
33838 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33839 (clntudp_control): Likewise.
33840 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33841 (clntunix_control): Likewise.
33842 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33843 * sunrpc/rpc/auth.h (union des_block): Likewise.
33844 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33845 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33846 (xdrrec_create): Likewise.
33847 (xdrrec_endofrecord): Likewise.
33848 (flush_out): Likewise.
33849 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33850 (xdrstdio_putlong): Likewise.
33851 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33852 Likewise.
33853
8b164787
JM
33854 * misc/sys/cdefs.h (__long_double_t): Remove.
33855 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33856 instead of __long_double_t,
33857 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33858
7ee38e60
SP
338592017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33860
dd3e86ad
SP
33861 * benchtests/scripts/compare_strings.py: Avoid display error when
33862 running on a text terminal.
33863
b115e819
SP
33864 * benchtests/scripts/compare_strings.py (main): Add an
33865 optional -base option.
33866 (process_results): New argument base_func.
33867
7ee38e60
SP
33868 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33869 hardcoding memcpy.
33870 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33871 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33872
d5afb385
AS
338732017-08-07 Andreas Schwab <schwab@suse.de>
33874
33875 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33876 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33877 * intl/Makefile ($(objpfx)tst-gettext.out)
33878 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33879 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33880 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33881 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33882 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33883 * posix/Makefile ($(objpfx)globtest.out)
33884 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33885 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33886 ($(objpfx)tst-printf.out): Likewise.
33887 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33888 ($(objpfx)tst-setcontext3.out): Likewise.
33889
57a72fa3
L
338902017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33891
33892 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33893 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33894 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33895 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33896 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33897 and mptan-fma.
33898 (CFLAGS-doasin-fma.c): New.
33899 (CFLAGS-dosincos-fma.c): Likewise.
33900 (CFLAGS-e_asin-fma.c): Likewise.
33901 (CFLAGS-e_atan2-fma.c): Likewise.
33902 (CFLAGS-e_exp-fma.c): Likewise.
33903 (CFLAGS-e_log-fma.c): Likewise.
33904 (CFLAGS-e_pow-fma.c): Likewise.
33905 (CFLAGS-halfulp-fma.c): Likewise.
33906 (CFLAGS-mpa-fma.c): Likewise.
33907 (CFLAGS-mpatan-fma.c): Likewise.
33908 (CFLAGS-mpatan2-fma.c): Likewise.
33909 (CFLAGS-mpexp-fma.c): Likewise.
33910 (CFLAGS-mplog-fma.c): Likewise.
33911 (CFLAGS-mpsqrt-fma.c): Likewise.
33912 (CFLAGS-mptan-fma.c): Likewise.
33913 (CFLAGS-s_atan-fma.c): Likewise.
33914 (CFLAGS-sincos32-fma.c): Likewise.
33915 (CFLAGS-slowexp-fma.c): Likewise.
33916 (CFLAGS-slowpow-fma.c): Likewise.
33917 (CFLAGS-s_sin-fma.c): Likewise.
33918 (CFLAGS-s_tan-fma.c): Likewise.
33919 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33920 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33921 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33922 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33923 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33924 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33925 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33926 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33927 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33928 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33929 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33930 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33931 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33932 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33933 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33934 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33935 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33936 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33937 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
33938 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
33939 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
33940 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
33941 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
33942 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
33943 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
33944 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
33945 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
33946 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
33947 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
33948 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
33949 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
33950
219dd320
JM
339512017-08-04 Joseph Myers <joseph@codesourcery.com>
33952
33953 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
33954 (min_of_type_f): New macro.
33955 (min_of_type_): Likewise.
33956 (min_of_type_l): Likewise.
33957 (min_of_type_f128): Likewise.
33958 (min_of_type): Define using __MATH_TG and taking an expression
33959 argument.
33960 (math_check_force_underflow): Pass expression instead of type to
33961 min_of_type.
33962 (math_check_force_underflow_nonneg): Likewise.
33963
64d4dea6
L
339642017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33965
33966 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33967 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
33968 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
33969
973da22a
L
339702017-08-04 H.J. Lu <hongjiu.lu@intel.com>
33971
33972 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33973 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
33974 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
33975 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
33976 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
33977 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
33978 memcpy_chk-nonshared, mempcpy_chk-nonshared,
33979 memmove_chk-nonshared and memset_chk-nonshared
33980 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
33981 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
33982 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
33983 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
33984 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
33985 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
33986 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
33987 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
33988 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
33989 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
33990 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
33991 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
33992 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
33993 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
33994 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
33995 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
33996 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
33997 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
33998 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
33999 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34000 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34001 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34002 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34003 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34004 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34005 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34006 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34007 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34008 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34009 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34010 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34011 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34012 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34013 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34014 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34015 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34016 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34017 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34018 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34019 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34020 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34021 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34022 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34023 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34024 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34025 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34026 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34027 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34028 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34029 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34030 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34031 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34032 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34033 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34034 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34035 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34036 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34037 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34038 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34039 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34040 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34041 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34042 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34043 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34044 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34045 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34046 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34047 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34048 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34049 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34050 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34051 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34052 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34053 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34054 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34055 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34056 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34057 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34058 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34059 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34060 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34061 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34062 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34063 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34064 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34065 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34066 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34067 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34068 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34069 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34070 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34071 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34072 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34073 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34074 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34075 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34076 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34077 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34078 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34079 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34080 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34081 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34082 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34083 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34084 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34085 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34086 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34087 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34088
8537e0f6
L
340892017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34090
34091 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34092 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34093 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34094 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34095 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34096 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34097 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34098 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34099 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34100 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34101 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34102 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34103 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34104 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34105 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34106 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34107 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34108 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34109 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34110 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34111 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34112 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34113 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34114 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34115 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34116 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34117 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34118 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34119 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34120 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34121 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34122 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34123 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34124 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34125 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34126 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34127 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34128 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34129 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34130 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34131 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34132 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34133 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34134 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34135 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34136 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34137 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34138 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34139 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34140 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34141 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34142 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34143 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34144 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34145 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34146 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34147 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34148 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34149 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34150 ...
34151 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34152 Don't include <sysdep.h> nor <init-arch.h>.
34153 (_ZGVbN2v_cos): Removed.
34154 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34155 ...
34156 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34157 Don't include <sysdep.h> nor <init-arch.h>.
34158 (_ZGVdN4v_cos): Removed.
34159 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34160 ...
34161 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34162 Don't include <sysdep.h> nor <init-arch.h>.
34163 (_ZGVeN8v_cos): Removed.
34164 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34165 ...
34166 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34167 Don't include <sysdep.h> nor <init-arch.h>.
34168 (_ZGVbN2v_exp): Removed.
34169 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34170 ...
34171 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34172 Don't include <sysdep.h> nor <init-arch.h>.
34173 (_ZGVdN4v_exp): Removed.
34174 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34175 ...
34176 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34177 Don't include <sysdep.h> nor <init-arch.h>.
34178 (_ZGVeN8v_exp): Removed.
34179 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34180 ...
34181 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34182 Don't include <sysdep.h> nor <init-arch.h>.
34183 (_ZGVbN2v_log): Removed.
34184 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34185 ...
34186 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34187 Don't include <sysdep.h> nor <init-arch.h>.
34188 (_ZGVdN4v_log): Removed.
34189 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34190 ...
34191 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34192 Don't include <sysdep.h> nor <init-arch.h>.
34193 (_ZGVeN8v_log): Removed.
34194 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34195 ...
34196 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34197 Don't include <sysdep.h> nor <init-arch.h>.
34198 (_ZGVbN2vv_pow): Removed.
34199 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34200 ...
34201 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34202 Don't include <sysdep.h> nor <init-arch.h>.
34203 (_ZGVdN4vv_pow): Removed.
34204 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34205 ...
34206 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34207 Don't include <sysdep.h> nor <init-arch.h>.
34208 (_ZGVeN8vv_pow): Removed.
34209 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34210 ...
34211 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34212 Don't include <sysdep.h> nor <init-arch.h>.
34213 (_ZGVbN2v_sin): Removed.
34214 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34215 ...
34216 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34217 Don't include <sysdep.h> nor <init-arch.h>.
34218 (_ZGVbN4v_sin): Removed.
34219 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34220 ...
34221 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34222 Don't include <sysdep.h> nor <init-arch.h>.
34223 (_ZGVbN8v_sin): Removed.
34224 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34225 ...
34226 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34227 Don't include <sysdep.h> nor <init-arch.h>.
34228 (_ZGVbN2vvv_sincos): Removed.
34229 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34230 ...
34231 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34232 Don't include <sysdep.h> nor <init-arch.h>.
34233 (_ZGVdN4vvv_sincos): Removed.
34234 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34235 ...
34236 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34237 Don't include <sysdep.h> nor <init-arch.h>.
34238 (_ZGVeN8vvv_sincos): Removed.
34239 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34240 ...
34241 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34242 Don't include <sysdep.h> nor <init-arch.h>.
34243 (_ZGVeN16v_cosf): Removed.
34244 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34245 ...
34246 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34247 Don't include <sysdep.h> nor <init-arch.h>.
34248 (_ZGVbN4v_cosf): Removed.
34249 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34250 ...
34251 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34252 Don't include <sysdep.h> nor <init-arch.h>.
34253 (_ZGVdN8v_cosf): Removed.
34254 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34255 ...
34256 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34257 Don't include <sysdep.h> nor <init-arch.h>.
34258 (_ZGVeN16v_expf): Removed.
34259 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34260 ...
34261 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34262 Don't include <sysdep.h> nor <init-arch.h>.
34263 (_ZGVbN4v_expf): Removed.
34264 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34265 ...
34266 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34267 Don't include <sysdep.h> nor <init-arch.h>.
34268 (_ZGVdN8v_expf): Removed.
34269 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34270 ...
34271 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34272 Don't include <sysdep.h> nor <init-arch.h>.
34273 (_ZGVeN16v_logf): Removed.
34274 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34275 ...
34276 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34277 Don't include <sysdep.h> nor <init-arch.h>.
34278 (_ZGVbN4v_logf): Removed.
34279 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34280 ...
34281 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34282 Don't include <sysdep.h> nor <init-arch.h>.
34283 (_ZGVdN8v_logf): Removed.
34284 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34285 ...
34286 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34287 Don't include <sysdep.h> nor <init-arch.h>.
34288 (_ZGVeN16vv_powf): Removed.
34289 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34290 ...
34291 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34292 Don't include <sysdep.h> nor <init-arch.h>.
34293 (_ZGVbN4vv_powf): Removed.
34294 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34295 ...
34296 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34297 Don't include <sysdep.h> nor <init-arch.h>.
34298 (_ZGVdN8vv_powf): Removed.
34299 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34300 ...
34301 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34302 Don't include <sysdep.h> nor <init-arch.h>.
34303 (_ZGVeN16vvv_sincosf): Removed.
34304 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34305 ...
34306 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34307 Don't include <sysdep.h> nor <init-arch.h>.
34308 (_ZGVbN4vvv_sincosf): Removed.
34309 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34310 ...
34311 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34312 Don't include <sysdep.h> nor <init-arch.h>.
34313 (_ZGVdN8vvv_sincosf): Removed.
34314 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34315 ...
34316 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34317 Don't include <sysdep.h> nor <init-arch.h>.
34318 (_ZGVeN16v_sinf): Removed.
34319 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34320 ...
34321 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34322 Don't include <sysdep.h> nor <init-arch.h>.
34323 (_ZGVbN4v_sinf): Removed.
34324 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34325 ...
34326 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34327 Don't include <sysdep.h> nor <init-arch.h>.
34328 (_ZGVdN8v_sinf): Removed.
34329
10a87ca4
L
343302017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34331
34332 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34333 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34334 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34335 s_rint-sse4_1 and s_rintf-sse4_1.
34336 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34337 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34338 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34339 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34340 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34341 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34342 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34343 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34344 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34345 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34346 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34347 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34348 (__ceil): Removed.
34349 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34350 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34351 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34352 (__ceilf): Removed.
34353 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34354 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34355 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34356 (__floor): Removed.
34357 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34358 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34359 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34360 (__floorf): Removed.
34361 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34362 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34363 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34364 (__nearbyint): Removed.
34365 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34366 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34367 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34368 (__nearbyintf): Removed.
34369 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34370 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34371 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34372 (__rint): Removed.
34373 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34374 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34375 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34376 (__rintf): Removed.
34377
1e8e527d
L
343782017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34379
34380 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34381 SHARED. Avoid dynamic relocation against main in static PIE.
34382
e13daad7
L
343832017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34384
34385 [BZ #21815]
34386 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34387 (LDFLAGS-tst-prelink): Likewise.
34388
627c69c8
L
343892017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34390
34391 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34392 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34393 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34394 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34395 (INTERNAL_SYSCALL_NCS): Likewise.
34396 (LOADARGS_1): Likewise.
34397 (LOADARGS_5): Likewise.
34398 (RESTOREARGS_1): Likewise.
34399 (RESTOREARGS_5): Likewise.
34400
fc11ff8d
L
344012017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34402
34403 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34404 (MEMPCPY_SYMBOL): Likewise.
34405 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34406 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34407 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34408 in libc.a.
34409 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34410 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34411 Likewise.
34412 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34413 (__hidden_ver1): Don't use in libc.a.
34414 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34415 (__mempcpy): Don't create a weak alias in libc.a.
34416 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34417 libc.a.
34418 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34419 (__hidden_ver1): Don't use in libc.a.
34420
19f1a11e
L
344212017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34422
34423 * config.make.in (have-insert): New.
34424 * configure.ac (libc_cv_insert): New. Set to yes if linker
34425 supports INSERT in linker script.
34426 (AC_SUBST(libc_cv_insert): New.
34427 * configure: Regenerated.
34428 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34429 if $(have-insert) == yes.
34430
3093fd5e
L
344312017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34432
34433 * elf/Makefile (tests): Add vismain only if
34434 $(have-protected-data) == yes.
34435 (tests-pie): Likewise.
34436
d2cf37c0
L
344372017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34438
34439 [BZ #21871]
34440 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34441 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34442
c8a0e6ec
L
344432017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34444
34445 [BZ #21790]
34446 * sysdeps/i386/i586/memset.S
34447 (__memset_zero_constant_len_parameter): Removed.
34448 * sysdeps/i386/i686/memset.S
34449 (__memset_zero_constant_len_parameter): Likewise.
34450 * sysdeps/i386/i686/multiarch/memset_chk.S
34451 (__memset_zero_constant_len_parameter): Likewise.
34452 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34453 Likewise.
34454
2b34e271
AJ
344552017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34456
34457 * stdlib/getentropy.c (getentropy): Change return type to int.
34458
144bdab0
AJ
344592017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34460
34461 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34462
24ab7723
JM
344632017-08-03 Joseph Myers <joseph@codesourcery.com>
34464
34465 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34466 u_intN_t.
34467 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34468 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34469 Likewise.
34470 (ieee_float_shape_type): Likewise.
34471 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34472 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34473 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34474 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34475 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34476 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34477 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34478 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34479 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34480 Likewise.
34481 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34482 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34483 (__ieee754_yn): Likewise.
34484 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34485 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34486 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34487 Likewise.
34488 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34489 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34490 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34491 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34492 (__erfc): Likewise.
34493 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34494 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34495 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34496 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34497 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34498 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34499 Likewise.
34500 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34501 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34502 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34503 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34504 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34505 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34506 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34507 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34508 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34509 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34510 (__issignaling): Likewise.
34511 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34512 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34513 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34514 Likewise.
34515 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34516 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34517 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34518 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34519 Likewise.
34520 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34521 Likewise.
34522 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34523 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34524 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34525 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34526 (__erfcf): Likewise.
34527 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34528 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34529 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34530 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34531 Likewise.
34532 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34533 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34534 Likewise.
34535 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34536 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34537 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34538 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34539 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34540 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34541 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34542 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34543 Likewise.
34544 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34545 Likewise.
34546 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34547 Likewise.
34548 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34549 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34550 Likewise.
34551 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34552 Likewise.
34553 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34554 (__ieee754_ynl): Likewise.
34555 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34556 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34557 Likewise.
34558 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34559 Likewise.
34560 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34561 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34562 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34563 Likewise.
34564 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34565 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34566 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34567 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34568 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34569 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34570 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34571 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34572 Likewise.
34573 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34574 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34575 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34576 Likewise.
34577 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34578 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34579 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34580 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34581 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34582 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34583 Likewise.
34584 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34585 Likewise.
34586 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34587 Likewise.
34588 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34589 Likewise.
34590 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34591 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34592 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34593 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34594 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34595 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34596 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34597 Likewise.
34598 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34599 Likewise.
34600 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34601 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34602 Likewise.
34603 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34604 (__ieee754_remainderl): Likewise.
34605 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34606 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34607 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34608 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34609 Likewise.
34610 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34611 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34612 Likewise.
34613 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34614 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34615 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34616 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34617 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34618 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34619 Likewise.
34620 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34621 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34622 (__ieee754_y0l): Likewise.
34623 (pzero): Likewise.
34624 (qzero): Likewise.
34625 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34626 (__ieee754_y1l): Likewise.
34627 (pone): Likewise.
34628 (qone): Likewise.
34629 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34630 (__ieee754_ynl): Likewise.
34631 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34632 (__ieee754_lgammal_r): Likewise.
34633 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34634 Likewise.
34635 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34636 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34637 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34638 (__erfcl): Likewise.
34639 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34640 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34641 Likewise.
34642 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34643 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34644 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34645 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34646 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34647 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34648 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34649 Likewise.
34650 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34651 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34652 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34653 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34654 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34655 Likewise.
34656 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34657 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34658 Likewise.
34659 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34660 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34661 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34662 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34663 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34664
964263bb
FW
346652017-08-03 Florian Weimer <fweimer@redhat.com>
34666
34667 [BZ #21885]
34668 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34669 on memory allocation failure.
34670
e98c925f
AM
346712017-08-03 Alan Modra <amodra@gmail.com>
34672
34673 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34674 tst-tlsopt-powerpc.c with function name change and no test harness.
34675 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34676 Call tls_get_addr_opt_test.
34677 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34678 (modules-names): Add mod-tlsopt-powerpc.
34679 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34680 (tst-tlsopt-powerpc): Depend on .so.
34681 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34682 define. Expand use in TLS_GD and TLS_LD.
34683
8ee1abdb
ST
346842017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34685
34686 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34687 function.
3da5756e 34688 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 34689
42df8d59
JM
346902017-08-02 Joseph Myers <joseph@codesourcery.com>
34691
34692 [BZ #21686]
34693 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34694 comparing size with that of double.
34695 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34696 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34697 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34698 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34699 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34700 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34701 unsigned __int128 types.
34702
b7f95f49
SE
347032017-08-02 Steve Ellcey <sellcey@cavium.com>
34704
34705 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34706 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34707 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34708 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34709 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34710
5b736bc9
L
347112017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34712
34713 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34714
dfc93c41
L
347152017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34716
34717 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34718 of SHARED.
34719 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34720 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34721 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34722 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34723 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34724 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34725 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34726
2fee621d
JM
347272017-08-02 Joseph Myers <joseph@codesourcery.com>
34728
34729 [BZ #21685]
34730 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34731 bit-field expressions passed to sizeof or typeof.
34732 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34733 (__TGMATH_F128): Likewise.
34734 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34735 (__TGMATH_CF128): Likewise.
34736 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34737 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34738 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34739 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34740 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34741 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34742 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34743 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34744 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34745 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34746 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34747 (__TGMATH_UNARY_IMAG): Likewise.
34748 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34749 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34750 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34751 type.
34752 (define_vars_for_type): Handle bit_field type specially.
34753 (Tests.__init__): Declare structure with bit-field element.
34754
b358255f
L
347552017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34756
34757 [BZ #21791]
34758 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34759 (MEMCPY_CHK): Define only if SHARED is defined.
34760 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34761 Likewise.
34762 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34763 Likewise.
edf66db1
SP
34764
34765See ChangeLog.18 for earlier changes.