]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
sunrpc/tst-udp-nonblocking: Fix timeout value
[thirdparty/glibc.git] / ChangeLog
CommitLineData
00c3da43
ST
12017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
4 seconds.
3bdfd9fb
ST
5 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6 seconds.
65b22ebc 7 * elf/rtld-Rules: Fix $(error) use.
00c3da43 8
96480903
MF
92017-09-09 Mike FABIAN <mfabian@redhat.com>
10
11 [BZ #14925]
12 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
13 * locale/iso-639.def: Change “Bengali” to “Bangla”.
14 * localedata/locales/bn_BD: “Bengali” was still used in some
15 comments. Change it to “Bangla”.
16
4c03a696
MT
172017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
18
19 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
20
9c9ec581
SE
212017-09-08 Steve Ellcey <sellcey@cavium.com>
22
23 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
24 thunderx2t99p1 to list of cpu names.
25 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
26 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27
f00bce74
SE
282017-09-08 Steve Ellcey <sellcey@cavium.com>
29
30 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31 Use strcmp instead of tunable_is_name.
32
27342d17
JM
332017-09-08 Joseph Myers <joseph@codesourcery.com>
34
af1b7c8c
JM
35 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36 (F_GET_RW_HINT): New macro.
37 [__USE_GNU] (F_SET_RW_HINT): Likewise.
38 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
39 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
40 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
41 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
42 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
43 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
44 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
45 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
46
27342d17
JM
47 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
48 (F_ADD_SEALS): New macro.
49 [__USE_GNU] (F_GET_SEALS): Likewise.
50 [__USE_GNU] (F_SEAL_SEAL): Likewise.
51 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
52 [__USE_GNU] (F_SEAL_GROW): Likewise.
53 [__USE_GNU] (F_SEAL_WRITE): Likewise.
54
c66c9082
AZ
552017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
56
07b4f49d
AZ
57 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
58 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
59 * posix/glob_internal.h (__glob_pattern_type):
60 * posix/glob.c (glob):
61 * posix/glob_pattern_p.c (__glob_pattern_p):
62 Use them.
63
116f1c64
AZ
64 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
65 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
66 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
67 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
68 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
69 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
70 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
71 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
72 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
73 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
74 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
75 * sysdeps/wordsize-64/glob.c: Likewise.
76 * sysdeps/wordsize-64/glob64.c: Likewise.
77 * sysdeps/wordsize-64/globfree.c: Likewise.
78 * sysdeps/wordsize-64/globfree64.c: Likewise.
79 * sysdeps/unix/sysv/linux/glob.c: New file.
80 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
81 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
82 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
83 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
84 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
85 adds !GLOB_NO_OLD_VERSION as an extra condition.
86 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
87 using relative path instead of absolute one.
88 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
89 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
90 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
91 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
92 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
93 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
94
ffca8901
AZ
95 [BZ #1062]
96 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
97 (glob): Use the same scratch buffer for both getlogin_r and
98 getpwnam_r. Don’t require preallocation of the login name. This
99 simplifies storage allocation, and corrects the handling of
100 long login names.
101
5a79f975
AZ
102 [BZ #1062]
103 * posix/glob.c (glob): Port recent patches to platforms
104 lacking getpwnam_r.
105 (glob): Fix longstanding misuse of errno after getpwnam_r, which
106 returns an error number rather than setting errno.
107
e00f2425
AZ
108 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
109 instead of GCC extension.
110 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
111 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
112 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
113
5554304f
AZ
114 [BZ #866]
115 [BZ #1062]
116 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
117 * posix/bug-glob1.c: Remove file.
118 * posix/tst-glob_symlinks.c: New file.
119 * posix/glob.c (__lstat64): New macro.
120 (is_dir): New function.
121 (glob, glob_in_dir): Match symlinks even if they are dangling.
122 (link_stat, link_exists_p): Remove. All uses removed.
123
686f2ea1
AZ
124 [BZ #1062]
125 [BZ #19971]
126 * posix/glob.c (struct readdir_result): Remove skip_entry member.
127 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
128 All uses removed.
129
c66c9082
AZ
130 [BZ #1062]
131 * posix/Makefile (routines): Add globfree, globfree64, and
132 glob_pattern_p.
133 * posix/flexmember.h: New file.
134 * posix/glob_internal.h: Likewise.
135 * posix/glob_pattern_p.c: Likewise.
136 * posix/globfree.c: Likewise.
137 * posix/globfree64.c: Likewise.
138 * sysdeps/gnu/globfree64.c: Likewise.
139 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
140 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
141 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
142 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
143 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
144 * sysdeps/wordsize-64/globfree.c: Likewise.
145 * sysdeps/wordsize-64/globfree64.c: Likewise.
146 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
147 [NDEBUG): Remove comments.
148 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
149 (dirent_type): New type. Use uint_fast8_t not
150 uint8_t, as C99 does not require uint8_t.
151 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
152 (struct readdir_result): Use dirent_type. Do not define skip_entry
153 unless it is needed; this saves a byte on platforms lacking d_ino.
154 (readdir_result_type, readdir_result_skip_entry):
155 New functions, replacing ...
156 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
157 these functions, which were removed. This makes the callers
158 easier to read. All callers changed.
159 (D_INO_TO_RESULT): Now empty if there is no d_ino.
160 (size_add_wrapv, glob_use_alloca): New static functions.
161 (glob, glob_in_dir): Check for size_t overflow in several places,
162 and fix some size_t checks that were not quite right.
163 Remove old code using SHELL since Bash no longer
164 uses this.
165 (glob, prefix_array): Separate MS code better.
166 (glob_in_dir): Remove old Amiga and VMS code.
167 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
168 separate files.
169 (glob_in_dir): Do not rely on undefined behavior in accessing
170 struct members beyond their bounds. Use a flexible array member
171 instead
172 (link_stat): Rename from link_exists2_p and return -1/0 instead of
173 0/1. Caller changed.
174 (glob): Fix memory leaks.
175 * posix/glob64 (globfree64): Move to separate file.
176 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
177 (globfree64): Remove hidden alias.
178 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
179 oldglob.
180 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
181 separate file.
182 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
183 define.
184 Move compat code to separate file.
185 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
186 separate file.
187
78bfa877
L
1882017-09-07 H.J. Lu <hongjiu.lu@intel.com>
189
190 * resolv/tst-resolv-qtypes.c (domain): Changed to
191 "const char domain[] =".
192
05f0011f
JM
1932017-09-07 Joseph Myers <joseph@codesourcery.com>
194
85bec0f2
JM
195 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
196 version to 3.1.6.
197
5c23ee6e
JM
198 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
199 (TCP_MD5SIG_EXT): Likewise.
200 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
201 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
202 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
203
05f0011f
JM
204 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
205
7c9c5be9
MF
2062017-09-07 Mike FABIAN <mfabian@redhat.com>
207
208 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
209
ae214523
AK
2102017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
211
212 [BZ #22100]
213 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
214
507fe027
ST
2152017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
216
217 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
218 before assuming that the file is empty. Avoid testing buffer content
219 when nread == 0.
220
65687ac7
AZ
2212017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
222
7bbbb4b9 223 [BZ #18858]
65687ac7
AZ
224 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
225 Remove define.
226 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
227 Likewise.
228 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
229 Likewise.
230 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
231 Likewise.
232 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
233 Likewise.
234 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
235 Likewise.
236 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
237 Likewise.
238
ab5ac271
FW
2392017-09-06 Florian Weimer <fweimer@redhat.com>
240
241 * malloc/dynarray_emplace_enlarge.c
242 (__libc_dynarray_emplace_enlarge): Add missing else.
243
a8304730
FW
2442017-09-06 Florian Weimer <fweimer@redhat.com>
245
246 [BZ #22096]
247 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
248 case of failure to obtain the global conf object.
249
5670c4ab
FW
2502017-09-06 Florian Weimer <fweimer@redhat.com>
251
252 [BZ #22095]
253 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
254 dynarray allocation failure.
255
c77eb969
FW
2562017-09-06 Florian Weimer <fweimer@redhat.com>
257
258 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
259 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
260 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
261 New functions.
262 (response): Call them. Add 'p', '6' flag processing.
263 (test_reverse): New function.
264 (test_get2_any): Call it.
265 (test_no_inet6): Add 'p' test.
266 (test_inet6): Likewise.
267
5e9c4d17
FW
2682017-09-06 Florian Weimer <fweimer@redhat.com>
269
270 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
271 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
272 the QNAME.
273 (test_gai): Adjust query names. Add additional tests.
274 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
275 test_get2. Adjust query names. Add additional tests.
276 (test_no_inet6): New function, extracted from threadfunc.
277 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
278 Add additional tests.
279
2ae5be04
MF
2802017-09-06 Mike FABIAN <mfabian@redhat.com>
281
282 [BZ #22070]
283 * localedata/unicode-gen/utf8_gen.py: Set the width for
284 characters with Prepended_Concatenation_Mark property to 1
285 * localedata/charmaps/UTF-8: Updated using the improved script.
286
af83ed5c
MF
2872017-09-06 Mike FABIAN <mfabian@redhat.com>
288
289 [BZ #21750]
290 * localedata/unicode-gen/utf8_gen.py: Improve the script to
291 use the range notation for all ranges of neighbouring characters
292 with the same width.
293
4f3647e4
JM
2942017-09-05 Joseph Myers <joseph@codesourcery.com>
295
296 * sysdeps/generic/math-type-macros-double.h: Include
297 <math-svid-compat.h>.
298 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
299 * sysdeps/generic/math-type-macros-float.h: Include
300 <math-svid-compat.h>.
301 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
302 * sysdeps/generic/math-type-macros-ldouble.h: Include
303 <math-svid-compat.h>.
304 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
305 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
306 condition.
307 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
308 * math/w_acosf_compat.c: Likewise.
309 * math/w_acosh_compat.c: Likewise.
310 * math/w_acoshf_compat.c: Likewise.
311 * math/w_acoshl_compat.c: Likewise.
312 * math/w_acosl_compat.c: Likewise.
313 * math/w_asin_compat.c: Likewise.
314 * math/w_asinf_compat.c: Likewise.
315 * math/w_asinl_compat.c: Likewise.
316 * math/w_atan2_compat.c: Likewise.
317 * math/w_atan2f_compat.c: Likewise.
318 * math/w_atan2l_compat.c: Likewise.
319 * math/w_atanh_compat.c: Likewise.
320 * math/w_atanhf_compat.c: Likewise.
321 * math/w_atanhl_compat.c: Likewise.
322 * math/w_cosh_compat.c: Likewise.
323 * math/w_coshf_compat.c: Likewise.
324 * math/w_coshl_compat.c: Likewise.
325 * math/w_exp10_compat.c: Likewise.
326 * math/w_exp10f_compat.c: Likewise.
327 * math/w_exp10l_compat.c: Likewise.
328 * math/w_exp2_compat.c: Likewise.
329 * math/w_exp2f_compat.c: Likewise.
330 * math/w_exp2l_compat.c: Likewise.
331 * math/w_fmod_compat.c: Likewise.
332 * math/w_fmodf_compat.c: Likewise.
333 * math/w_fmodl_compat.c: Likewise.
334 * math/w_hypot_compat.c: Likewise.
335 * math/w_hypotf_compat.c: Likewise.
336 * math/w_hypotl_compat.c: Likewise.
337 * math/w_j0_compat.c: Likewise.
338 * math/w_j0f_compat.c: Likewise.
339 * math/w_j0l_compat.c: Likewise.
340 * math/w_j1_compat.c: Likewise.
341 * math/w_j1f_compat.c: Likewise.
342 * math/w_j1l_compat.c: Likewise.
343 * math/w_jn_compat.c: Likewise.
344 * math/w_jnf_compat.c: Likewise.
345 * math/w_jnl_compat.c: Likewise.
346 * math/w_lgamma_r_compat.c: Likewise.
347 * math/w_lgammaf_r_compat.c: Likewise.
348 * math/w_lgammal_r_compat.c: Likewise.
349 * math/w_log10_compat.c: Likewise.
350 * math/w_log10f_compat.c: Likewise.
351 * math/w_log10l_compat.c: Likewise.
352 * math/w_log2_compat.c: Likewise.
353 * math/w_log2f_compat.c: Likewise.
354 * math/w_log2l_compat.c: Likewise.
355 * math/w_log_compat.c: Likewise.
356 * math/w_logf_compat.c: Likewise.
357 * math/w_logl_compat.c: Likewise.
358 * math/w_pow_compat.c: Likewise.
359 * math/w_powf_compat.c: Likewise.
360 * math/w_powl_compat.c: Likewise.
361 * math/w_remainder_compat.c: Likewise.
362 * math/w_remainderf_compat.c: Likewise.
363 * math/w_remainderl_compat.c: Likewise.
364 * math/w_sinh_compat.c: Likewise.
365 * math/w_sinhf_compat.c: Likewise.
366 * math/w_sinhl_compat.c: Likewise.
367 * math/w_sqrt_compat.c: Likewise.
368 * math/w_sqrtf_compat.c: Likewise.
369 * math/w_sqrtl_compat.c: Likewise.
370 * math/w_tgamma_compat.c: Likewise.
371 * math/w_tgammaf_compat.c: Likewise.
372 * math/w_tgammal_compat.c: Likewise.
373 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
374 [LIBM_SVID_COMPAT].
375 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
376 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
377 [LIBM_SVID_COMPAT].
378 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
379 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
380 [LIBM_SVID_COMPAT].
381 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
382 * sysdeps/i386/fpu/w_sqrt.c: New file.
383 * sysdeps/ia64/fpu/w_acos.c: Likewise.
384 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
385 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
386 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
387 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
388 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
389 * sysdeps/ia64/fpu/w_asin.c: Likewise.
390 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
391 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
392 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
393 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
394 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
395 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
396 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
397 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
398 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
399 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
400 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
401 * sysdeps/ia64/fpu/w_exp.c: Likewise.
402 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
403 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
404 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
405 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
406 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
407 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
408 * sysdeps/ia64/fpu/w_expf.c: Likewise.
409 * sysdeps/ia64/fpu/w_expl.c: Likewise.
410 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
411 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
412 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
413 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
414 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
415 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
416 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
417 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
418 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
419 * sysdeps/ia64/fpu/w_log.c: Likewise.
420 * sysdeps/ia64/fpu/w_log10.c: Likewise.
421 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
422 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
423 * sysdeps/ia64/fpu/w_log2.c: Likewise.
424 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
425 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
426 * sysdeps/ia64/fpu/w_logf.c: Likewise.
427 * sysdeps/ia64/fpu/w_logl.c: Likewise.
428 * sysdeps/ia64/fpu/w_pow.c: Likewise.
429 * sysdeps/ia64/fpu/w_powf.c: Likewise.
430 * sysdeps/ia64/fpu/w_powl.c: Likewise.
431 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
432 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
433 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
434 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
435 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
436 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
437 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
438 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
439 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
440 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
441 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
442 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
443 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
444 [LIBM_SVID_COMPAT].
445 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
446 * sysdeps/ieee754/k_standard.c: Likewise.
447 * sysdeps/ieee754/k_standardf.c: Likewise.
448 * sysdeps/ieee754/k_standardl.c: Likewise.
449 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
450 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
451 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
452 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
453 long_double_symbol call on [LIBM_SVID_COMPAT].
454 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
455 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
456 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
457 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
458 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
459 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
460 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
461 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
462 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
463 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
464 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
465 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
466 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
467 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
468 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
469 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
470 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
471 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
472 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
473 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
474 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
475 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
476
05b38d64
SE
4772017-09-05 Steve Ellcey <sellcey@cavium.com>
478
479 * include/shlib-compat.h (TEST_COMPAT): New Macro.
480 * malloc/tst-mallocstate.c: Convert from test-skeleton
481 to test-driver. Ifdef code using TEST_COMPAT macro.
482 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
483 * math/test-matherr.c: Likewise.
484
99d67918
JM
4852017-09-05 Joseph Myers <joseph@codesourcery.com>
486
487 [BZ #22086]
488 * debug/pcprofiledump.c (main): Use byte-swapped mask when
489 comparing word with byte-swapped constant.
490
3f802aeb
MF
4912017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
492
493 [BZ #20498]
494 * locale/iso-639.def: add Miskito.
495 * localedata/SUPPORTED: Add miq_NI/UTF-8.
496 * localedata/locales/miq_NI: New file.
497
0a587a8a
L
4982017-09-04 H.J. Lu <hongjiu.lu@intel.com>
499
500 [BZ #18822]
501 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
502 (__mkdir): Likewise.
503 * io/chmod.c (__chmod): Add libc_hidden_def.
504 * io/mkdir.c (__mkdir): Likewise.
505 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
506 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
507 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
508 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
509
f3a129b8
JM
5102017-09-04 Joseph Myers <joseph@codesourcery.com>
511
1650e192
JM
512 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
513 version to 4.13.
514
f3a129b8
JM
515 [BZ #22082]
516 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
517 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
518
b38042f5
FW
5192017-09-04 Florian Weimer <fweimer@redhat.com>
520
521 * math/math.h: Issue warning if log is defined.
522
059b6404
JM
5232017-09-04 Joseph Myers <joseph@codesourcery.com>
524
525 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
526 kernel version to 4.13.
527
b794e16b
ST
5282017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
529
530 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
531 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
532 parameter.
01969395
ST
533 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
534 just <bits/types.h>.
dd2b31de 535 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 536 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 537 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 538 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
539 * misc/preadv2.c: Include <errno.h>.
540 * misc/preadv64v2.c: Include <errno.h>.
541 * misc/pwritev2.c: Include <errno.h>.
542 * misc/pwritev64v2.c: Include <errno.h>.
543 * sysdeps/posix/preadv2.c: Include <errno.h>.
544 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
545 Fix <unistd.h> inclusion.
546 * sysdeps/posix/pwritev2.c: Include <errno.h>.
547 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
548 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
549 __strtoul_internal): New functions.
127e7773
ST
550 * sysdeps/posix/pause.c: Include <sigsetops.h>.
551 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
552 * sysdeps/mach/hurd/i386/Makefile
553 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
554 [$(subdir) = csu] (sysdep-only-routines): Likewise.
555 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
556 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
557 __feraiseexcept_renamed to feraiseexcept instead of
558 __GI_feraiseexcept.
56bf5497 559 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 560 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
561 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
562 RWF_NOWAIT): Define to 0 if undefined already.
563 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
564 boils down to 0.
6547ec0a
ST
565 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
566 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 567
5a80d39d
JM
5682017-09-01 Joseph Myers <joseph@codesourcery.com>
569
570 * manual/math.texi (pow10): Do not document.
571 (pow10f): Likewise.
572 (pow10l): Likewise.
573 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
574 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
575 * math/libm-test-exp10.inc (pow10_test): Remove.
576 (do_test): Do not call pow10.
577 * math/w_exp10_compat.c (pow10): Make into compat symbol.
578 [NO_LONG_DOUBLE] (pow10l): Likewise.
579 * math/w_exp10f_compat.c (pow10f): Likewise.
580 * math/w_exp10l_compat.c (pow10l): Likewise.
581 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
582 (pow10): Make into compat symbol.
583 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
584 (pow10f): Make into compat symbol.
585 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
586 (pow10l): Make into compat symbol.
587 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
588 pow10.
589 (CFLAGS-nldbl-pow10.c): Remove variable..
590 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
591 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
592 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
593 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
594 Undefine and redefine.
595 (pow10l): Make into compat symbol.
596 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
597 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
598 * sysdeps/arm/libm-test-ulps: Likewise.
599 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
600 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
601 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
602 * sysdeps/microblaze/libm-test-ulps: Likewise.
603 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
604 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
605 * sysdeps/nios2/libm-test-ulps: Likewise.
606 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
607 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
608 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
609 * sysdeps/sh/libm-test-ulps: Likewise.
610 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
611 * sysdeps/tile/libm-test-ulps: Likewise.
612 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
613
3824fc38
PP
6142017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
615
616 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
617
b3008279
L
6182017-09-01 H.J. Lu <hongjiu.lu@intel.com>
619
620 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
621 "../ChangeLog.old/ChangeLog.8".
622 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
623 "../ChangeLog.old/ChangeLog.14".
624
136fa185
L
6252017-09-01 H.J. Lu <hongjiu.lu@intel.com>
626
627 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
628 Threads Library.
629
c18d50a2
JM
6302017-09-01 Joseph Myers <joseph@codesourcery.com>
631
632 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
633
bedbd859
L
6342017-09-01 H.J. Lu <hongjiu.lu@intel.com>
635
636 * csu/version.c (banner): Remove "by Roland McGrath et al.".
637 * nptl/Banner: Remove "by Ulrich Drepper et al.".
638
50c66c7a
PP
6392017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
640
641 * stdlib/tst-atexit-common.c (do_test): Test support for at least
642 32 atexit handlers.
643
a617bd11
ZW
6442017-09-01 Zack Weinberg <zackw@panix.com>
645
646 * math/math.h (HUGE_VAL): Improve commentary.
647
e0d2eb5a
AZ
6482017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
649 Andreas Schwab <schwab@suse.de>
650
651 [BZ #21530]
652 * include/stdio.h (__gen_tempfd): New function.
653 * stdio-common/Makefile (routines): Add gentempfd.
654 * stdio-common/gentempfd.c: New file.
655 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
656 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
657 unnamed file first.
658
f4a6be25
FW
6592017-09-01 Florian Weimer <fweimer@redhat.com>
660
661 [BZ #21915]
662 [BZ #21922]
663 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
664 result to determine success or failure, not the errno value.
665 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
666 (tst-nss-files-hosts-erange): Link with -ldl.
667 * nss/tst-nss-files-hosts-erange.c: New file.
668 * nss/tst-resolv-basic.c (response): Handle nodata.example.
669 (do_test): Add NO_DATA tests.
670 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
671 (do_test): Call it.
672
5f8340f5
FW
6732017-09-01 Florian Weimer <fweimer@redhat.com>
674
675 [BZ #21922]
676 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
677 coming from gethostbyname2_r.
678
65329bd2
FW
6792017-09-01 Florian Weimer <fweimer@redhat.com>
680
681 * support/namespace.h (struct support_chroot_configuration): Add
682 hosts, host_conf.
683 (struct support_chroot): Add path_hosts, path_host_conf.
684 * support/support_chroot.c (write_file): New function.
685 (support_chroot_create): Call it to process /etc/resolv.conf,
686 /etc/hosts, /etc/host.conf.
687 (support_chroot_free): Update.
688
a2881ef0
FW
6892017-09-01 Florian Weimer <fweimer@redhat.com>
690
691 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
692 status indicates it is set.
693
ad816a5e
FW
6942017-09-01 Florian Weimer <fweimer@redhat.com>
695
696 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
697 function lookup failures more reliable.
698
53250a21
FW
6992017-09-01 Florian Weimer <fweimer@redhat.com>
700
701 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
702 (getcanonname): Likewise.
703 (gaih_inet): Likewise.
704
924b121c
FW
7052017-09-01 Florian Weimer <fweimer@redhat.com>
706
707 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
708 (getcanonname): Likewise.
709 (gaih_inet): Likewise.
710
d9ff799a
SE
7112017-08-31 Steve Ellcey <sellcey@cavium.com>
712 Richard Henderson <rth@twiddle.net>
713
714 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
715 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
716 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
717 (IREG_SIZE, OREG_SIZE): New macros.
718 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
719 (IREG_SIZE, OREG_SIZE): New macros.
720 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
721 (IREG_SIZE): New macro.
722 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
723 (IREG_SIZE): New macro.
724 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
725 New includes.
726 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
727 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
728 (__CONCATX): Handle exceptions correctly on large values that may
729 set FE_INVALID.
730 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
731 Initialize if not already set.
732 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
733
102dde84
AZ
7342017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
735
736 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
737 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
738 Likewise.
739 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
740 Likewise.
741 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
742 Likewise.
743 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
744 Likewise.
745 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
746 Likewise.
747 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
748 Likewise.
749 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
750 Likewise.
751 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
752 (NO_CANCELLATION): Likewise.
753 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
754 Likewise.
755 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
756 Likewise.
757 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
758 Likewise.
759 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
760 (NO_CANCELLATION): Likewise.
761 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
762 (NO_CANCELLATION): Likewise.
763 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
764 Likewise
765 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
766 Likewise.
767 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
768 Likewise.
769 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
770 Likewise.
771 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
772 hidden prototype.
773 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
774 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
775
9eee633b
SE
7762017-08-31 Steve Ellcey <sellcey@cavium.com>
777
778 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
779 in resolver call.
780
65284eb7
FW
7812017-08-31 Florian Weimer <fweimer@redhat.com>
782
783 * include/libc-symbols.h (internal_function): Remove.
784
41ad5ca6
FW
7852017-08-31 Florian Weimer <fweimer@redhat.com>
786
787 * stdlib/fmtmsg.c (internal_addseverity): Remove
788 internal_function.
789
2fa6d086
FW
7902017-08-31 Florian Weimer <fweimer@redhat.com>
791
792 * stdio-common/printf_fp.c (group_number): Remove
793 internal_function.
794 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
795
b41bd5bc
FW
7962017-08-31 Florian Weimer <fweimer@redhat.com>
797
798 * posix/fnmatch.c (internal_function): Remove definition.
799 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
800 * posix/regcomp.c (peek_token, init_word_char)
801 (duplicate_node_closure, fetch_token, peek_token)
802 (peek_token_bracket, build_range_exp, build_collating_symbol):
803 Likewise.
804 * posix/regex_internal.c (re_string_construct_common)
805 (create_ci_newstate, create_cd_newstate, re_string_allocate)
806 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
807 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
808 (re_string_translate_buffer, re_string_reconstruct)
809 (re_string_peek_byte_case, re_string_fetch_byte_case)
810 (re_string_destruct, re_string_context_at, re_node_set_alloc)
811 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
812 (re_node_set_add_intersect, re_node_set_init_union)
813 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
814 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
815 (re_dfa_add_node, calc_state_hash, re_acquire_state)
816 (re_acquire_state_context): Likewise.
817 * posix/regex_internal.h (internal_function): Remove definition.
818 (re_string_realloc_buffers, build_wcs_buffer)
819 (build_wcs_upper_buffer, build_upper_buffer)
820 (re_string_translate_buffer, re_string_context_at)
821 (re_string_char_size_at, re_string_wchar_at)
822 (re_string_elem_size_at): Likewise.
823 * posix/regexec.c (match_ctx_init, match_ctx_clean)
824 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
825 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
826 (re_search_internal, re_search_2_stub, re_search_stub)
827 (re_copy_regs, prune_impossible_nodes, check_matching)
828 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
829 (free_fail_stack_return, sift_states_iter_mb)
830 (sift_states_backward, build_sifted_states)
831 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
832 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
833 (check_subexp_limits, sift_states_bkref, merge_state_array)
834 (find_recover_state, transit_state, merge_state_with_log)
835 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
836 (transit_state_mb, transit_state_bkref, get_subexp)
837 (get_subexp_sub, find_subexp_node, check_arrival)
838 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
839 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
840 (check_node_accept_bytes, find_collation_sequence_value)
841 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
842 (acquire_init_state_context, check_halt_node_context)
843 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
844 (sub_epsilon_src_nodes): Likewise.
845 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
846 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
847 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
848 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
849 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
850 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
851 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
852 * sysdeps/posix/ttyname.c (getttyname): Likewise.
853 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
854 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
855 (PREADV): Likewise.
856 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
857 (PREADV): Likewise.
858 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
859 (PWRITEV): Likewise.
860 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
861 (PWRITEV): Likewise.
862 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
863 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
864
83b09837
FW
8652017-08-31 Florian Weimer <fweimer@redhat.com>
866
867 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
868 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
869 Remove internal_function.
870 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
871 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
872 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
873 (__deallocate_stack, __libc_pthread_init)
874 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
875 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
876 (__libc_disable_asynccancel, __librt_disable_asynccancel):
877 Likewise.
878 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
879 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
880 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
881 Likewise.
882 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
883 (__pthread_mutex_unlock_usercnt): Likewise.
884
116ac301
FW
8852017-08-31 Florian Weimer <fweimer@redhat.com>
886
887 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
888 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
889 (fts_safe_changedir): Remove internal_function.
890 * io/ftw.c (internal_function): Remove definition.
891 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
892
9da93bd7
FW
8932017-08-31 Florian Weimer <fweimer@redhat.com>
894
895 * inet/deadline.c (__deadline_current_time)
896 (__deadline_from_timeval, __deadline_to_ms): Remove
897 internal_function.
898 * inet/getnameinfo.c (nrl_domainname): Likewise.
899 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
900 * inet/inet6_option.c (add_pad): Likewise.
901 * inet/net-internal.h (__deadline_current_time)
902 (__deadline_from_timeval, __deadline_to_ms): Likewise.
903 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
904 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
905 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
906
a60eca2e
JM
9072017-08-31 Joseph Myers <joseph@codesourcery.com>
908
c0c49d60
JM
909 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
910 include <bits/nan.h>.
911 * math/Makefile (headers): Remove bits/nan.h.
912 * bits/nan.h: Remove.
913 * sysdeps/ieee754/bits/nan.h: Likewise.
914 * sysdeps/mips/bits/nan.h: Likewise.
915
5ef1b213
JM
916 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
917 not include <bits/inf.h>.
918 * math/Makefile (headers): Remove bits/inf.h.
919 * bits/inf.h: Remove.
920 * sysdeps/ieee754/bits/inf.h: Likewise.
921
a60eca2e
JM
922 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
923 bits/huge_vall.h or bits/huge_val_flt128.h.
924 (HUGE_VAL): Define directly here.
925 [__USE_ISOC99] (HUGE_VALF): Likewise.
926 [__USE_ISOC99] (HUGE_VALL): Likewise.
927 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
928 (HUGE_VAL_F128): Likewise.
929 * math/Makefile (headers): Remove bits/huge_val.h,
930 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
931 * bits/huge_val.h: Remove.
932 * bits/huge_val_flt128.h: Likewise.
933 * bits/huge_valf.h: Likewise.
934 * bits/huge_vall.h: Likewise.
935 * sysdeps/ia64/bits/huge_vall.h: Likewise.
936 * sysdeps/ieee754/bits/huge_val.h: Likewise.
937 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
938 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
939 * sysdeps/sh/bits/huge_val.h: Likewise.
940 * sysdeps/sparc/bits/huge_vall.h: Likewise.
941 * sysdeps/x86/bits/huge_vall.h: Likewise.
942
17e00cc6
FW
9432017-08-31 Florian Weimer <fweimer@redhat.com>
944
945 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
946 internal_function.
947 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
948 Likewise.
949 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
950 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
951 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
952 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
953 * elf/dl-fini.c (_dl_sort_fini): Likewise.
954 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
955 * elf/dl-libc.c (dlerror_run): Likewise.
956 * elf/dl-load.c (add_name_to_object, decompose_rpath)
957 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
958 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
959 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
960 Likewise.
961 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
962 (_dl_higher_prime_number, _dl_strtoul): Likewise.
963 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
964 * elf/dl-profile.c (_dl_start_profile): Likewise.
965 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
966 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
967 Likewise.
968 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
969 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
970 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
971 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
972 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
973 (_dl_allocate_tls_storage): Likewise.
974 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
975 (_dl_check_all_versions): Likewise.
976 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
977 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
978 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
979 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
980 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
981 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
982 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
983 internal_function from __dl_start.
984 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
985 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
986 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
987 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
988 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
989 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
990 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
991 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
992 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
993 (_dl_next_ld_env_entry, _dl_important_hwcaps)
994 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
995 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
996 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
997 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
998 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
999 Likewise.
1000 (struct rtld_global_ro): Remove internal_function from the
1001 _dl_lookup_symbol_x member.
1002 (_dl_symbol_value): Remove. No longer defined anywhere.
1003 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
1004 internal_function.
1005 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
1006 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
1007 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
1008 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
1009 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
1010 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
1011 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
1012 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
1013 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
1014 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
1015 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
1016 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
1017
8d2f9410
FW
10182017-08-31 Florian Weimer <fweimer@redhat.com>
1019
1020 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
1021 Remove internal_function.
1022 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
1023 Likewise.
1024 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
1025 Likewise.
1026
86e4919f
FW
10272017-08-31 Florian Weimer <fweimer@redhat.com>
1028
1029 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
1030 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
1031 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
1032
59bd52b0
FW
10332017-08-31 Florian Weimer <fweimer@redhat.com>
1034
1035 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
1036 (__gai_enqueue_request): Remove internal_function.
1037 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
1038 (__gai_remove_request, __gai_notify, __gai_notify_only)
1039 (__gai_sigqueue): Likewise.
1040 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
1041 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
1042 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
1043 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
1044 Likewise.
1045
fc3d9497
FW
10462017-08-31 Florian Weimer <fweimer@redhat.com>
1047
1048 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
1049 * include/dirent.h (__opendirat, __getdents, __getdents64)
1050 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
1051 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
1052 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1053 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
1054 Likewise.
1055 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
1056
18c54fac
FW
10572017-08-31 Florian Weimer <fweimer@redhat.com>
1058
1059 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
1060 internal_function.
1061 (GETCWD_RETURN_TYPE): Likewise.
1062
7e01f080
FW
10632017-08-31 Florian Weimer <fweimer@redhat.com>
1064
1065 * include/time.h (__tz_compute, __strptime_internal): Remove
1066 internal_function.
1067 * time/strptime_l.c (__strptime_internal): Likewise.
1068 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
1069
d7ccc6c9
FW
10702017-08-31 Florian Weimer <fweimer@redhat.com>
1071
1072 * iconv/gconv.c (__gconv): Remove internal_function.
1073 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
1074 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
1075 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
1076 (__gconv_release_cache): Likewise.
1077 * iconv/gconv_close.c (__gconv_close): Likewise.
1078 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
1079 (read_conf_file, __gconv_get_path): Likewise.
1080 * iconv/gconv_db.c (derivation_lookup, add_derivation)
1081 (__gconv_release_step, gen_steps, increment_counter)
1082 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
1083 (__gconv_close_transform, free_modules_db): Likewise.
1084 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
1085 Likewise.
1086 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
1087 (__gconv_find_transform, __gconv_lookup_cache)
1088 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
1089 (__gconv_close_transform, __gconv_release_cache)
1090 (__gconv_loaded_object, __gconv_release_shlib)
1091 (__gconv_compare_alias): Likewise.
1092 * iconv/gconv_open.c (__gconv_open): Likewise.
1093 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
1094 * iconv/iconvconfig.c (add_module): Likewise.
1095 * intl/dcigettext.c (plural_lookup, guess_category_value)
1096 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
1097 * intl/eval-plural.h (plural_eval): Likewise.
1098 * intl/finddomain.c (_nl_find_domain): Likewise.
1099 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
1100 (_nl_load_domain, _nl_find_msg): Likewise.
1101 (internal_function): Remove definition.
1102 * intl/loadinfo.h (internal_function): Likewise.
1103 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
1104 internal_function.
1105 * intl/localealias.c (internal_function): Remove definition.
1106 (read_alias_file): Remove internal_function.
1107 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
1108 * intl/plural-exp.h (internal_function): Remove definition.
1109 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
1110 internal_function.
1111 * intl/plural.c: Regenerate.
1112 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
1113 * locale/coll-lookup.c (__collidx_table_lookup)
1114 (__collseq_table_lookup): Likewise.
1115 * locale/coll-lookup.h (__collidx_table_lookup)
1116 (__collseq_table_lookup): Likewise.
1117 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
1118 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1119 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
1120 (_nl_unload_locale): Likewise.
1121 * locale/localeinfo.h (struct __locale_data): Remove
1122 internal_function from cleanup member.
1123 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
1124 (_nl_remove_locale, _nl_load_locale_from_archive)
1125 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
1126 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
1127 (_nl_cleanup_time): Remove internal_function.
1128 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
1129 (_nl_parse_alt_digit): Likewise.
1130 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
1131 (_nl_select_era_entry): Likewise.
1132 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1133 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
1134 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
1135 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
1136 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 1137
dab0eece
FW
11382017-08-31 Florian Weimer <fweimer@redhat.com>
1139
1140 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
1141 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
1142 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
1143 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
1144 Likewise.
1145 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
1146 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
1147 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
1148 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
1149 Likewise.
1150 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
1151
ab5bf7cf
FW
11522017-08-31 Florian Weimer <fweimer@redhat.com>
1153
1154 * misc/getttyent.c (skip, value): Remove internal_function.
1155 * misc/syslog.c (openlog_internal): Likewise.
1156 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
1157
75b3047e
FW
11582017-08-31 Florian Weimer <fweimer@redhat.com>
1159
1160 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
1161 (__nss_rewrite_field): Remove internal_function.
1162 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1163 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1164 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1165 * nss/nsswitch.c (nss_parse_file, nss_getline)
1166 (nss_parse_service_list, nss_new_service): Likewise.
1167 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
1168 * nss/valid_field.c (__nss_valid_field): Likewise.
1169 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
1170
0c71122c
FW
11712017-08-31 Florian Weimer <fweimer@redhat.com>
1172
1173 * malloc/arena.c (__malloc_fork_lock_parent)
1174 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
1175 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
1176 internal_function from defintions.
1177 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
1178 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
1179 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
1180 internal_function from declarations.
1181 * malloc/malloc.c (internal_function): Do not define.
1182 (mem2mem_check): Remove internal_function from declaration.
1183 (munmap_chunk, mremap_chunk): Remove internal_function.
1184 * malloc/mtrace.c (tr_where): Likewise.
1185
ca4ec803
FW
11862017-08-31 Florian Weimer <fweimer@redhat.com>
1187
1188 * include/rpc/pmap_clnt.h (__get_socket): Remove
1189 internal_function.
1190 * sunrpc/auth_des.c (synchronize): Likewise.
1191 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
1192 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
1193 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
1194 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
1195 (key_call): Likewise.
1196 * sunrpc/pm_getport.c (__get_socket): Likewise.
1197 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
1198 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
1199 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
1200 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
1201 (invalidate): Likewise.
1202 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
1203 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
1204 (set_input_fragment, get_input_bytes): Likewise.
1205
24cffce7
FW
12062017-08-31 Florian Weimer <fweimer@redhat.com>
1207
1208 * malloc/malloc.c (_int_free): Remove locked variable and related
1209 asserts.
1210
ecd0747d
L
12112017-08-31 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 [BZ #22051]
1214 * Makerules (build-module-helper-objlist): Filter out
1215 $(elf-objpfx)sofini.os.
1216 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
1217 needed.
1218
5f0704b6
FW
12192017-08-31 Florian Weimer <fweimer@redhat.com>
1220
1221 * libio/fcloseall.c: Assume weak_alias is defined.
1222 * libio/feof.c: Likewise.
1223 * libio/fileno.c: Likewise.
1224 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
1225 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
1226 definitions.
1227 (_IO_file_open): Call __open directly.
1228 (_IO_new_file_sync): Assume ESPIPE is defined.
1229 (_IO_file_seekoff_maybe_mmap): Call __read directly.
1230 (_IO_new_file_write): Call __write directly.
1231 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
1232 * libio/ftello64.c (__ftello64): Assume EIO is defined.
1233 * libio/genops.c: Assume _LIBC is defined.
1234 (save_for_backup): Remove internal_function.
1235 * libio/getc.c: Assume weak_alias is defined.
1236 * libio/getwc.c: Likewise.
1237 * libio/iofclose.c: Assume _LIBC is defined.
1238 * libio/iofdopen.c: Likewise.
1239 (_IO_fcntl): Remove macro definition.
1240 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
1241 Call __fcntl directly.
1242 * libio/iofflush.c: Assume weak_alias is defined.
1243 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
1244 defined.
1245 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
1246 * libio/iofgets.c: Likewise.
1247 * libio/iofopen.c: Assume _LIBC is defined.
1248 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
1249 * libio/iofputs.c: Assume weak_alias is defined.
1250 * libio/iofread.c: Likewise.
1251 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
1252 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1253 * libio/ioftell.c: Assume weak_alias is defined.
1254 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
1255 * libio/iofwide.c: Assume _LIBC is defined.
1256 (_IO_fwide): Drop SHARED conditional because it is implied by
1257 SHLIB_COMPAT.
1258 * libio/iofwrite.c: Assume weak_alias is defined.
1259 * libio/iogetdelim.c: Likewise.
1260 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
1261 * libio/iogetwline.c (wmemcpy): Remove macro definition.
1262 (_IO_getwline): Call __wmemcpy directly.
1263 * libio/iopopen.c: Assume _LIBC is defined.
1264 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
1265 (_IO_close): Remove macro definitions.
1266 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
1267 _exit directly.
1268 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
1269 directly.
1270 * libio/ioputs.c: Assume weak_alias is defined.
1271 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
1272 * libio/iosetbuffer.c: Assume weak_alias is defined.
1273 * libio/iosetvbuf.c: Likewise.
1274 * libio/ioungetc.c: Likewise.
1275 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
1276 libc_hidden_def, libc_hidden_weak, NULL are defined.
1277 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
1278 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
1279 defined.
1280 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
1281 definitions.
1282 (_IO_old_file_init_internal): Drop SHARED conditional because it
1283 is implied by SHLIB_COMPAT.
1284 (_IO_old_file_fopen): Call __open directly.
1285 (_IO_old_file_sync): Assume ESPIPE is defined.
1286 (_IO_old_file_write): Call __write directly.
1287 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
1288 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
1289 Call __fcntl directly.
1290 * libio/oldiofgetpos.c: Assume weak_alias is defined.
1291 (_IO_old_fgetpos): Assume EIO is defined.
1292 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
1293 (_IO_old_fgetpos64): Assume EIO is defined.
1294 * libio/oldiofsetpos.c: Assume weak_alias is defined.
1295 (_IO_old_fsetpos): Assume EIO is defined.
1296 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
1297 (_IO_old_fsetpos64): Assume EIO is defined.
1298 * libio/oldiopopen.c: Assume _LIBC is defined.
1299 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
1300 (_IO_close): Remove macro definitions.
1301 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
1302 directly.
1303 (_IO_old_proc_close): Call __close, __waitpid directly.
1304 * libio/put.c: Assume weak_alias is defined.
1305 * libio/stdfiles.c: Assume _LIBC is defined.
1306 * libio/stdio.c: Likewise.
1307 * libio/wfileops.c: Likewise.
1308 (_IO_wfile_sync): Assume ESPIPE is defined.
1309 * libio/wgenops.c: Assume _LIBC is defined.
1310 (save_for_wbackup): Remove internal_function.
1311
5129873a
FW
13122017-08-31 Florian Weimer <fweimer@redhat.com>
1313
1314 * malloc/malloc.c (top_check): Change return type to void. Remove
1315 internal_function.
1316 * malloc/hooks.c (top_check): Likewise.
1317 (malloc_check, realloc_check, memalign_check): Adjust.
1318
4fa9b3bf
JM
13192017-08-30 Joseph Myers <joseph@codesourcery.com>
1320
1321 [BZ #21457]
1322 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
1323 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
1324 sigcontext and namespace requirements.
1325 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
1326 * sysdeps/m68k/sys/ucontext.h: Likewise.
1327 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
1328 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
1329 <bits/sigcontext.h>.
1330 (__ctx): Define earlier.
1331 (mcontext_t): Define structure contents rather than using struct
1332 sigcontext.
1333 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
1334 __glibc_reserved1 instead of __reserved.
1335 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
1336 <bits/sigcontext.h>.
1337 (__ctx): Define earlier.
1338 (mcontext_t): Define structure contents rather than using struct
1339 sigcontext.
1340 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
1341 mcontext_t instead of struct sigcontext.
1342 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
1343 <bits/sigcontext.h>.
1344 (__ctx): Define earlier.
1345 (mcontext_t): Define structure contents rather than using struct
1346 sigcontext.
1347 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
1348 <bits/sigcontext.h>.
1349 (__ctx): Define earlier.
1350 (mcontext_t): Define structure contents rather than using struct
1351 sigcontext.
1352 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
1353 mcontext_t instead of struct sigcontext.
1354 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
1355 mcontext_t instead of struct sigcontext.
1356 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
1357 <bits/sigcontext.h>.
1358 (__ctx): New macro.
1359 (struct __ia64_fpreg_mcontext): New type.
1360 (mcontext_t): Define structure contents rather than using struct
1361 sigcontext.
1362 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
1363 (uc_sigmask): Define using __ctx.
1364 (uc_stack): Likewise.
1365 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
1366 <bits/sigcontext.h>.
1367 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1368 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
1369 <bits/sigcontext.h>.
1370 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
1371 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
1372 <bits/sigcontext.h>.
1373 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
1374 <bits/sigcontext.h>.
1375 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
1376 <bits/sigcontext.h>.
1377 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
1378 <bits/sigcontext.h>.
1379 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
1380 <bits/sigcontext.h>.
1381 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
1382 <bits/sigcontext.h>.
1383 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
1384 <bits/sigcontext.h>.
1385 (__ctx): Define earlier.
1386 (mcontext_t): Define structure contents rather than using struct
1387 sigcontext.
1388 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
1389 <bits/sigcontext.h>. Include <bits/types.h>.
1390 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
1391 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
1392 (test-xfail-XPG42/ucontext.h/conform): Likewise.
1393 (test-xfail-UNIX98/signal.h/conform): Likewise.
1394 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
1395 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
1396 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
1397 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
1398 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
1399 (test-xfail-POSIX2008/signal.h/conform): Likewise.
1400 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
1401 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
1402 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
1403
5898f454
FW
14042017-08-30 Florian Weimer <fweimer@redhat.com>
1405
1406 * malloc/dynarray_emplace_enlarge.c
1407 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
1408 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1409 * malloc/tst-dynarray.c (test_long_overflow): New function.
1410 (do_test): Call it.
1411
a9da0bb2
FW
14122017-08-30 Florian Weimer <fweimer@redhat.com>
1413
1414 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
1415 (set_arena_corrupt): Remove definitions.
1416 (mtrim): Do not check for corrupt arena.
1417 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
1418 Likewise.
1419
ac3ed168
FW
14202017-08-30 Florian Weimer <fweimer@redhat.com>
1421
1422 [BZ #21754]
1423 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
1424 check_action.
1425 (ptmalloc_init): Do not set or use check_action.
1426 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
1427 call to malloc_printerr. Remove return statement.
1428 (free_check): Likewise. Remove arena unlock.
1429 (top_check): Update comment. Adjust call to malloc_printerr.
1430 Remove heap repair code.
1431 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
1432 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
1433 (sysmalloc): Adjust call to malloc_printerr.
1434 (munmap_chunk, __libc_realloc): Likewise. Remove return
1435 statement.
1436 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
1437 Remove errout label and corresponding gotos.
1438 (_int_free): Likewise. Remove arena unlock.
1439 (do_set_mallopt_check): Do not set check_action.
1440 (malloc_printerr): Adjust parameter list. Do not mark arena as
1441 corrupt.
1442 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
1443 comment.
1444 * manual/probes.texi (Memory Allocation Probes): Remove
1445 memory_mallopt_check_action.
1446
44bcba80
SE
14472017-08-30 Steve Ellcey <sellcey@cavium.com>
1448
1449 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
1450 Use pointer to uint64_t instead of long int for sp.
1451
ec2c1fce
FW
14522017-08-30 Florian Weimer <fweimer@redhat.com>
1453
1454 [BZ #21754]
1455 * malloc/malloc.c (malloc_printerr): Always terminate the process,
1456 without printing a backtrace. Do not leak any information in the
1457 error message.
1458 * manual/memory.texi (Heap Consistency Checking): Update.
1459 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
1460
9ce673b6
FW
14612017-08-30 Florian Weimer <fweimer@redhat.com>
1462
1463 Do not scale NPTL tests with available number of CPUs.
1464 * nptl/tst-cond16.c (count): Set to constant value of 8.
1465 * nptl/tst-cond18.c (count): Likewise.
1466
2f1aef19
JM
14672017-08-29 Joseph Myers <joseph@codesourcery.com>
1468
1469 [BZ #22035]
1470 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
1471 Define to take a second argument that is a macro that
1472 concatentates a suffix, not the suffix itself.
1473 (__CONCAT_d): New macro.
1474 (__CONCAT_f): Likewise.
1475 (__CONCAT_l): Likewise.
1476
8325b477
PP
14772017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
1478
1479 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
1480 by child.
1481
319cbbf6
AZ
14822017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1483 Aurelien Jarno <aurelien@aurel32.net>
1484 Maciej W. Rozycki <macro@imgtec.com>
1485
1486 [BZ #21956]
1487 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
1488 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
1489 `mips16-syscall6' and `mips16-syscall7'.
1490 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
1491 (CFLAGS-mips16-syscall7.c): Remove.
1492 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
1493 Remove `__mips16_syscall5', `__mips16_syscall6' and
1494 `__mips16_syscall7'.
1495 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
1496 (__mips16_syscall0): Rename `__mips16_syscall_return' to
1497 `__mips_syscall_return'.
1498 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
1499 (__mips16_syscall1): Likewise.
1500 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
1501 (__mips16_syscall2): Likewise.
1502 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
1503 (__mips16_syscall3): Likewise.
1504 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
1505 (__mips16_syscall4): Likewise.
1506 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
1507 Remove.
1508 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
1509 Remove.
1510 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
1511 Remove.
1512 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
1513 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
1514 `__mips16_syscall5'. Remove prototype.
1515 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
1516 `__mips16_syscall6'. Remove prototype.
1517 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
1518 `__mips16_syscall7'. Remove prototype.
1519 (__nomips16, __mips16_syscall_return): Move to...
1520 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
1521 (__nomips16, __mips_syscall_return): ... here.
1522 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
1523 `__mips16_syscall_return' to `__mips_syscall_return'.
1524 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
1525 `internal_syscall##nr'.
1526 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
1527 `internal_syscall##nr'.
1528 (FORCE_FRAME_POINTER): Remove.
1529 (__mips_syscall5): New prototype.
1530 (internal_syscall5): Rewrite to call `__mips_syscall5'.
1531 (__mips_syscall6): New prototype.
1532 (internal_syscall6): Rewrite to call `__mips_syscall6'.
1533 (__mips_syscall7): New prototype.
1534 (internal_syscall7): Rewrite to call `__mips_syscall7'.
1535 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
1536 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
1537 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
1538 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
1539 (sysdep_routines): Add libc-do-syscall.
1540 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
1541 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
1542
01b87c65
AZ
15432017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1544
1545 [BZ #21672]
1546 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
1547 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
1548 (advise_stack_range): New function.
1549 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
1550 stack non required to advise_stack_range at allocatestack.c
1551
16f138a4
SN
15522017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
1553
1554 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
1555
251bccfa
FW
15562017-08-29 Florian Weimer <fweimer@redhat.com>
1557
1558 [BZ #22026]
1559 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
1560 __end_fct. Mangle __end_fct after setting it to NULL.
1561 * iconv/Makefile (tests): Add tst-gconv-init-failure.
1562 (modules-names, modules-names-tests): Add
1563 tst-gconv-init-failure-mod.
1564 (gconv-modules): New target.
1565 (tst-gconv-init-failure-mod.so): Link against libsupport.
1566 (tst-gconv-init-failure): Depend on gconv-modules,
1567 tst-gconv-init-failure-mod.so.
1568 * iconv/tst-gconv-init-failure-mod.c: New file.
1569 * iconv/tst-gconv-init-failure.c: Likewise.
1570 * iconv/test-gconv-modules: Likewise.
1571
e7c18b9d
FW
15722017-08-29 Florian Weimer <fweimer@redhat.com>
1573
1574 [BZ #22025]
1575 * iconv/gconv_db.c (free_derivation): Remove redundant
1576 parentheses.
1577 (gen_steps): Unconditionally mangle __btowc_fct after
1578 initialization.
1579 (increment_counter): Likewise. Do not call init_fct for internal
1580 modules.
1581
7daada03
JM
15822017-08-29 Joseph Myers <joseph@codesourcery.com>
1583
1584 [BZ #22028]
1585 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
1586 (_MSUF_): Remove macro.
1587 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
1588 Likewise.
1589 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
1590 (__REDIRFROM_X): New macro.
1591 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
1592 Likewise.
1593 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
1594 (__REDIRTO_X): Likewise.
1595 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
1596 arguments.
1597 (__MATH_REDIRCALL_2): Likewise.
1598 (__MATH_REDIRCALL_INTERNAL): Likewise.
1599 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
1600 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
1601 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
1602 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
1603 * math/test-finite-macros.c: New file.
1604 * math/Makefile (tests): Add test-finite-macros.
1605 (CFLAGS-test-finite-macros.c): New variable.
1606
1cf1232c
PF
16072017-08-29 Patsy Franklin <pfrankli@redhat.com>
1608 Jeff Law <law@redhat.com>
1609
1610 [BZ #22025]
1611 Mangle NULL pointers in iconv/gconv.
1612 * iconv/gconv_cache.c (find_module): Demangle init_fct before
1613 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
1614 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
1615 is non-NULL before demangling the end_fct. Check for NULL
1616 end_fct after demangling.
1617 (__gconv_release_step): Demangle the end_fct before checking
1618 it for NULL. Remove assert on __shlibc_handle != NULL.
1619 (gen_steps): Don't check btowc_fct for NULL before mangling.
1620 Demangle init_fct before checking for NULL.
1621 (increment_counter): Likewise.
1622 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
1623 end_fct for NULL before mangling.
1624 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
1625 for NULL.
1626
f8de9568
AK
16272017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
1628
1629 [BZ #21971]
1630 * locale/iso-639.def: add Morisyen.
1631
42496114
GG
16322017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1633
1634 [BZ #21930]
1635 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
1636 (iszero): New C++ implementation that does not use
1637 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
1638 signaling nans are enabled, since __builtin_types_compatible_p
1639 is a C-only feature.
1640 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
1641 defined, include ieee754_float128.h for access to the union and
1642 member ieee854_float128.ieee.
1643 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
1644 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
1645 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
1646 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
1647 options of test-math-zero on powerpc64le.
1648
5e2bc4ff
L
16492017-08-28 H.J. Lu <hongjiu.lu@intel.com>
1650
1651 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1652 Change double to float.
1653
a48c0fb4
JM
16542017-08-28 Joseph Myers <joseph@codesourcery.com>
1655
1656 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
1657 unconditional.
1658 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
1659 conditional code; define contents only for [LIBM_SVID_COMPAT].
1660
ee17d4e9
FW
16612017-08-28 Florian Weimer <fweimer@redhat.com>
1662
1663 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
1664 (abi-lp64_be-options): Remove.
1665 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
1666 (abi-hard-options): Likewise.
1667 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
1668 (abi-o32_hard-options, abi-o32_soft_2008-options)
1669 (abi-o32_hard_2008-options, abi-n32_soft-options)
1670 (abi-n32_hard-options, abi-n32_soft_2008-options)
1671 (abi-n32_hard_2008-options, abi-n64_soft-options)
1672 (abi-n64_hard-options, abi-n64_soft_2008-options)
1673 (abi-n64_hard_2008-options): Likewise.
1674 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
1675 (abi-64-v1-options, abi-64-v2-options): Likewise.
1676 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
1677 (abi-64-options): Likewise.
1678 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
1679 (abi-64-options): Likewise.
1680 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
1681 (abi-64-options): Likewise.
1682 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
1683 (abi-64-options, abi-x32-options): Likewise.
1684
2dba5ce7
FW
16852017-08-28 Florian Weimer <fweimer@redhat.com>
1686
1687 Store supported list of SYS_* system calls in the source tree.
1688 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1689 (bits/syscall.h): Generate from list file.
1690 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
1691 [$(subdir) = misc] (tests): Add tst-syscall-list.
1692 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
1693 [$(subdir) = misc] (tst-syscall-list-macros.list)
1694 [$(subdir) = misc] (tst-syscall-list-nr.list)
1695 (tst-syscall-list-sys.list): Helper targets for new
1696 tst-syscall-list test.
1697 [$(subdir) = misc] (tst-syscall-list.out): Run test script
1698 tst-syscall-list.sh.
1699 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
1700 target. Do not include bits/syscall.d.
1701 [$(subdir) = misc] (generated): Do not update.
1702 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
1703 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
1704 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
1705 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
1706
5f3b183d
PP
17072017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
1708
1709 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
1710 (tst-cxa_atexit, tst-on_exit): Likewise.
1711 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
1712 tst-cxa_atexit, and tst-on_exit.
1713 * stdlib/tst-atexit-common.c: New file.
1714 * stdlib/tst-atexit.c: New file.
1715 * stdlib/tst-at_quick_exit.c: New file.
1716 * stdlib/tst-cxa_atexit.c: New file.
1717 * stdlib/tst-on_exit.c: New file.
1718
2ef8d469
ST
17192017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1720
1721 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
1722 * mach/stack_chk_fail_local.c: New file.
1723 * hurd/stack_chk_fail_local.c: New file.
1724 * mach/Machrules ($(interface-library)-routines): Add
1725 stack_chk_fail_local.
99ee4d26
ST
1726 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
1727 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
1728 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
1729 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
1730 * hurd/Makefile (CFLAGS-hurdstartup.o,
1731 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 1732
7ab70c98
L
17332017-08-25 H.J. Lu <hongjiu.lu@intel.com>
1734
1735 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
1736 (index_cpu_*, index_arch_*): Removed.
1737
39e7a5a6
SN
17382017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
1739
1740 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
1741 Use uint64_t instead of unsigned long.
1742
bba5c930
JM
17432017-08-25 Joseph Myers <joseph@codesourcery.com>
1744
a6ccdb08
JM
1745 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
1746 [__HAVE_DISTINCT_FLOAT128].
1747
23761119
JM
1748 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
1749 of <bits/math-finite.h>.
1750 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
1751 inclusion of <bits/math-finite.h>.
1752 * math/bits/math-finite.h (__REDIRTO_X): Do not define
1753 conditionally on [__MATH_DECLARING_LDOUBLE && defined
1754 __NO_LONG_DOUBLE_MATH].
1755 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
1756 (__MATH_REDIRCALL_2): Likewise.
1757 (__MATH_REDIRCALL_INTERNAL): Likewise.
1758 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
1759 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
1760 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
1761
bba5c930
JM
1762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
1763 Remove file.
1764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
1765 Likewise.
1766 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
1767 Likewise.
1768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
1769 Likewise.
1770 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
1771 Likewise.
1772 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
1773 Likewise.
1774 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1775 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1776 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1777 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1778 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1779 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
1780 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
1781 w_sqrtf_compat-ppc32.
1782
3d7b66f6
GG
17832017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1784
1785 * math/math.h [defined __cplusplus] (issignaling): In the long
1786 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
1787 is not defined. Call __issignaling, otherwise.
1788
ebd6f007
AZ
17892017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1790
1791 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
1792 syscall definitions and replace __builtin_expect with __glibc_likely.
1793 * sysdeps/unix/syscall-template.S: Update comment about cancellable
1794 syscall.
1795 (SYSCALL_CANCELLABLE): Removedefinition
1796 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
1797 definition.
1798 (PSEUDO_END): Likewise.
1799 [IS_IN (libpthread)] (CENABLE): Likewise.
1800 [IS_IN (libpthread)] (CDISABLE): Likewise.
1801 [IS_IN (libc)] (CENABLE): Likewise.
1802 [IS_IN (libc)] (CENABLE): Likewise.
1803 [IS_IN (librt)] (CDISABLE): Likewise.
1804 [IS_IN (librt)] (CDISABLE): Likewise.
1805 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1806 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
1807 definition.
1808 (PSEUDO_END): Likewise.
1809 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
1810 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
1811 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
1812 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
1813 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
1814 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
1815 (CENABLE): Likewise.
1816 (CDISABLE): Likewise.
1817 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1818 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
1819 defintion.
1820 (PSEUDO_END): Likewise.
1821 [IS_IN (libpthread)] (CENABLE): Likewise.
1822 [IS_IN (libpthread)] (CDISABLE): Likewise.
1823 [IS_IN (libc)] (CENABLE): Likewise.
1824 [IS_IN (libc)] (CENABLE): Likewise.
1825 [IS_IN (librt)] (CDISABLE): Likewise.
1826 [IS_IN (librt)] (CDISABLE): Likewise.
1827 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1828 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
1829 definition.
1830 (PSEUDO_END): Likewise.
1831 [IS_IN (libpthread)] (CENABLE): Likewise.
1832 [IS_IN (libpthread)] (CDISABLE): Likewise.
1833 [IS_IN (libc)] (CENABLE): Likewise.
1834 [IS_IN (libc)] (CENABLE): Likewise.
1835 [IS_IN (librt)] (CDISABLE): Likewise.
1836 [IS_IN (librt)] (CDISABLE): Likewise.
1837 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1838 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
1839 definition.
1840 (PSEUDO_END): Likewise.
1841 [IS_IN (libpthread)] (CENABLE): Likewise.
1842 [IS_IN (libpthread)] (CDISABLE): Likewise.
1843 [IS_IN (libc)] (CENABLE): Likewise.
1844 [IS_IN (libc)] (CENABLE): Likewise.
1845 [IS_IN (librt)] (CDISABLE): Likewise.
1846 [IS_IN (librt)] (CDISABLE): Likewise.
1847 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1848 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
1849 definition.
1850 (PSEUDO_END): Likewise.
1851 [IS_IN (libpthread)] (CENABLE): Likewise.
1852 [IS_IN (libpthread)] (CDISABLE): Likewise.
1853 [IS_IN (libc)] (CENABLE): Likewise.
1854 [IS_IN (libc)] (CENABLE): Likewise.
1855 [IS_IN (librt)] (CDISABLE): Likewise.
1856 [IS_IN (librt)] (CDISABLE): Likewise.
1857 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1858 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
1859 definition.
1860 (PSEUDO_END): Likewise.
1861 [IS_IN (libpthread)] (CENABLE): Likewise.
1862 [IS_IN (libpthread)] (CDISABLE): Likewise.
1863 [IS_IN (libc)] (CENABLE): Likewise.
1864 [IS_IN (libc)] (CENABLE): Likewise.
1865 [IS_IN (librt)] (CDISABLE): Likewise.
1866 [IS_IN (librt)] (CDISABLE): Likewise.
1867 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1868 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
1869 definition.
1870 (PSEUDO_END): Likewise.
1871 [IS_IN (libpthread)] (CENABLE): Likewise.
1872 [IS_IN (libpthread)] (CDISABLE): Likewise.
1873 [IS_IN (libc)] (CENABLE): Likewise.
1874 [IS_IN (libc)] (CENABLE): Likewise.
1875 [IS_IN (librt)] (CDISABLE): Likewise.
1876 [IS_IN (librt)] (CDISABLE): Likewise.
1877 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1878 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
1879 Remove definition.
1880 (PSEUDO_END): Likewise.
1881 [IS_IN (libpthread)] (CENABLE): Likewise.
1882 [IS_IN (libpthread)] (CDISABLE): Likewise.
1883 [IS_IN (libc)] (CENABLE): Likewise.
1884 [IS_IN (libc)] (CENABLE): Likewise.
1885 [IS_IN (librt)] (CDISABLE): Likewise.
1886 [IS_IN (librt)] (CDISABLE): Likewise.
1887 (SINGLE_THREAD_P): Likewise.
1888 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
1889 definition.
1890 (PSEUDO_END): Likewise.
1891 [IS_IN (libpthread)] (CENABLE): Likewise.
1892 [IS_IN (libpthread)] (CDISABLE): Likewise.
1893 [IS_IN (libc)] (CENABLE): Likewise.
1894 [IS_IN (libc)] (CENABLE): Likewise.
1895 [IS_IN (librt)] (CDISABLE): Likewise.
1896 [IS_IN (librt)] (CDISABLE): Likewise.
1897 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1898 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
1899 definition.
1900 (PSEUDO_END): Likewise.
1901 [IS_IN (libpthread)] (CENABLE): Likewise.
1902 [IS_IN (libpthread)] (CDISABLE): Likewise.
1903 [IS_IN (libc)] (CENABLE): Likewise.
1904 [IS_IN (libc)] (CENABLE): Likewise.
1905 [IS_IN (librt)] (CDISABLE): Likewise.
1906 [IS_IN (librt)] (CDISABLE): Likewise.
1907 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1908 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
1909 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
1910 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
1911 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
1912 definition.
1913 (PSEUDO_END): Likewise.
1914 [IS_IN (libpthread)] (CENABLE): Likewise.
1915 [IS_IN (libpthread)] (CDISABLE): Likewise.
1916 [IS_IN (libc)] (CENABLE): Likewise.
1917 [IS_IN (libc)] (CENABLE): Likewise.
1918 [IS_IN (librt)] (CDISABLE): Likewise.
1919 [IS_IN (librt)] (CDISABLE): Likewise.
1920 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1921 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
1922 definition.
1923 (PSEUDO_END): Likewise.
1924 [IS_IN (libpthread)] (CENABLE): Likewise.
1925 [IS_IN (libpthread)] (CDISABLE): Likewise.
1926 [IS_IN (libc)] (CENABLE): Likewise.
1927 [IS_IN (libc)] (CENABLE): Likewise.
1928 [IS_IN (librt)] (CDISABLE): Likewise.
1929 [IS_IN (librt)] (CDISABLE): Likewise.
1930 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1931 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
1932 definition.
1933 (PSEUDO_END): Likewise.
1934 [IS_IN (libpthread)] (CENABLE): Likewise.
1935 [IS_IN (libpthread)] (CDISABLE): Likewise.
1936 [IS_IN (libc)] (CENABLE): Likewise.
1937 [IS_IN (libc)] (CENABLE): Likewise.
1938 [IS_IN (librt)] (CDISABLE): Likewise.
1939 [IS_IN (librt)] (CDISABLE): Likewise.
1940 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1941 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
1942 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1943 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
1944 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
1945 definition.
1946 (PSEUDO_END): Likewise.
1947 [IS_IN (libpthread)] (CENABLE): Likewise.
1948 [IS_IN (libpthread)] (CDISABLE): Likewise.
1949 [IS_IN (libc)] (CENABLE): Likewise.
1950 [IS_IN (libc)] (CENABLE): Likewise.
1951 [IS_IN (librt)] (CDISABLE): Likewise.
1952 [IS_IN (librt)] (CDISABLE): Likewise.
1953 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1954 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
1955 definition.
1956 (PSEUDO_END): Likewise.
1957 [IS_IN (libpthread)] (CENABLE): Likewise.
1958 [IS_IN (libpthread)] (CDISABLE): Likewise.
1959 [IS_IN (libc)] (CENABLE): Likewise.
1960 [IS_IN (libc)] (CENABLE): Likewise.
1961 [IS_IN (librt)] (CDISABLE): Likewise.
1962 [IS_IN (librt)] (CDISABLE): Likewise.
1963 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1964
8aa48656
SN
19652017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1966
1967 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
1968
fcaaca41
L
19692017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1970
1971 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1972
376b40a2
L
19732017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1974
1975 [BZ #21982]
1976 * string/stratcliff.c (do_test): Declare size, nchars, inner,
1977 middle and outer with size_t instead of int. Repleace %d and
1978 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
1979 "MAX (outer, nchars - 64)" to support unsigned outer and
1980 nchars. Also exit loop when outer == 0.
1981
2b0b9a1c
AZ
19822017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1983
1984 * include/fcntl.h (__fcntl_nocancel): Remove definition.
1985 * include/signal.h (__sigsuspend_nocancel): Likewise.
1986 * include/time.h (__nanosleep_nocancel): Likewise.
1987 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
1988 * login/utmp_file.c: Include non cancellable syscall header.
1989 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
1990 prototype.
1991
b9eaca8f
L
19922017-08-23 H.J. Lu <hongjiu.lu@intel.com>
1993
1994 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
1995 .byte sequences with AVX512F instructions.
1996 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
1997 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
1998 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
1999 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
2000 Likewise.
2001 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
2002 Likewise.
2003
5a706f64
SE
20042017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2005 Steve Ellcey <sellcey@cavium.com>
2006
2007 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
2008 Use PTR_REG macro in cmp instruction.
2009
b513da7e
GG
20102017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2011
2012 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
2013 Change the return type of the ifunc resolver to match the return
2014 type of the target function.
2015
78ca091c
AZ
20162017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2017
b70b6026
AZ
2018 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
2019 (preadv64): Likewise.
2020 (pwrite64(: Likewise.
2021 (pwritev64): Likewise.
2022
78ca091c
AZ
2023 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
2024 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
2025 (LOAD_ARGS_0): Likewise.
2026 (LOAD_ARGS_1): Likewise.
2027 (LOAD_ARGS_2): Likewise.
2028 (LOAD_ARGS_3): Likewise.
2029 (LOAD_ARGS_4): Likewise.
2030 (LOAD_ARGS_5): Likewise.
2031 (LOAD_ARGS_6): Likewise.
2032 (LOAD_REGS_0): Likewise.
2033 (LOAD_REGS_1): Likewise.
2034 (LOAD_REGS_2): Likewise.
2035 (LOAD_REGS_3): Likewise.
2036 (LOAD_REGS_4): Likewise.
2037 (LOAD_REGS_5): Likewise.
2038 (LOAD_REGS_6): Likewise.
2039 (ASM_ARGS_0): Likewise.
2040 (ASM_ARGS_1): Likewise.
2041 (ASM_ARGS_2): Likewise.
2042 (ASM_ARGS_3): Likewise.
2043 (ASM_ARGS_4): Likewise.
2044 (ASM_ARGS_5): Likewise.
2045 (ASM_ARGS_6): Likewise.
2046 (LOAD_ARGS_TYPES_1): Likewise.
2047 (LOAD_ARGS_TYPES_2): Likewise.
2048 (LOAD_ARGS_TYPES_3): Likewise.
2049 (LOAD_ARGS_TYPES_4): Likewise.
2050 (LOAD_ARGS_TYPES_5): Likewise.
2051 (LOAD_ARGS_TYPES_6): Likewise.
2052 (LOAD_REGS_TYPES_1): Likewise.
2053 (LOAD_REGS_TYPES_2): Likewise.
2054 (LOAD_REGS_TYPES_3): Likewise.
2055 (LOAD_REGS_TYPES_4): Likewise.
2056 (LOAD_REGS_TYPES_5): Likewise.
2057 (LOAD_REGS_TYPES_6): Likewise.
2058 (TYPEFY): New define.
2059 (ARGIFY): Likewise.
2060 (internal_syscall0): Likewise.
2061 (internal_syscall1): Likewise.
2062 (internal_syscall2): Likewise.
2063 (internal_syscall3): Likewise.
2064 (internal_syscall4): Likewise.
2065 (internal_syscall5): Likewise.
2066 (internal_syscall6): Likewise.
2067 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
2068 (INTERNAL_SYSCALL_NCS): Remove define.
2069 (internal_syscall1): Add define.
2070
453a493d
GG
20712017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2072
2073 * math/w_remainder_compat.c: Remove duplicate inclusion of
2074 math-svid-compat.h.
2075 * math/w_remainderf_compat.c: Likewise.
2076 * math/w_remainderl_compat.c: Likewise.
2077
f2f048a5
GG
20782017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2079
2080 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2081
d9bef9c0
JM
20822017-08-22 Joseph Myers <joseph@codesourcery.com>
2083
2084 [BZ #21684]
2085 * math/tgmath.h (__floating_type): Simplify definitions.
2086 (__real_integer_type): New macro.
2087 (__complex_integer_type): Likewise.
2088 (__expr_is_real): Likewise.
2089 (__tgmath_real_type_sub): Update comment to describe handling of
2090 complex types.
2091 (__tgmath_complex_type_sub): New macro.
2092 (__tgmath_complex_type): Likewise.
2093 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2094 (__TGMATH_CF128): Use __expr_is_real.
2095 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
2096 __expr_is_real.
2097 (__TGMATH_BINARY_REAL_IMAG): Likewise.
2098 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
2099 * math/gen-tgmath-tests.py (Type.create_type): Create complex
2100 integer types.
2101
08d6eb46
AZ
21022017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2103
988f991b
AZ
2104 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
2105 macro.
2106 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
2107 alias.
2108 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
2109 Likewise.
2110
6f33fd04
AZ
2111 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
2112 nanosleep_not_cancel with __nanosleep_nocancel.
2113 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
2114 (__nanosleep_nocancel): New macro.
2115 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
2116 function.
2117 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
2118 macro.
2119 (__nanosleep_nocancel): New prototype.
2120
08d6eb46
AZ
2121 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
2122 pause_not_cancel with __pause_nocancel.
2123 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
2124 (__pause_nocancel): New macro.
2125 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
2126 macro.
2127 (__pause_nocancel): New prototype.
2128 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
2129
ee4e992e
MS
21302017-08-22 Martin Sebor <msebor@redhat.com>
2131
2132 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
2133 to return a pointer to the same type as the target function.
2134
20962acb
L
21352017-08-22 H.J. Lu <hongjiu.lu@intel.com>
2136
2137 [BZ #18822]
2138 [BZ #21986]
2139 * include/printf.h (__printf_fphex): Add attribute_hidden.
2140 (__guess_grouping): New prototype.
2141 * stdio-common/printf_fp.c (__guess_grouping): Removed.
2142 * stdio-common/reg-printf.c (__register_printf_specifier): Add
2143 libc_hidden_proto and libc_hidden_def.
2144 * stdlib/strfmon_l.c (__guess_grouping): Removed.
2145 (__vstrfmon_l): Remove the third argument passed to
2146 __guess_grouping.
2147
a16e8bc0
GG
21482017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2149
2150 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
2151 definition for issignaling that does not rely on __MATH_TG,
2152 since __MATH_TG uses __builtin_types_compatible_p, which is only
2153 available in C mode.
2154 (CFLAGS-test-math-issignaling.cc): New variable.
2155 * math/Makefile [CXX] (tests): Add test-math-issignaling.
2156 * math/test-math-issignaling.cc: New test for C++ implementation
2157 of type-generic issignaling.
2158 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
2159 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
2160 options of test-math-issignaling on powerpc64le.
2161
8d2ec553
L
21622017-08-22 H.J. Lu <hongjiu.lu@intel.com>
2163
2164 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2165 building libc.a.
2166 (hidden_proto): Likewise.
2167 (hidden_tls_proto): Likewise.
2168 (__hidden_proto): Likewise.
2169
a4d57b79
FW
21702017-08-22 Florian Weimer <fweimer@redhat.com>
2171
2172 math: Statically link tests of internal functionality.
2173 * math/Makefile (tests): Remove atest-exp, atest-sincos,
2174 atest-exp2.
2175 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
2176 (gmp-objs): Remove assignment.
2177 (atest-exp, atest-sincos, atest-exp2): Remove targets.
2178
75dfe623
JM
21792017-08-22 Joseph Myers <joseph@codesourcery.com>
2180
80f91666
JM
2181 [BZ #21987]
2182 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
2183 and copy to ...
2184 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
2185 ... here.
2186 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
2187 ... and here.
2188
75dfe623
JM
2189 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
2190 variable definitions above inclusion of ../Rules.
2191
ea99fcd0
JM
21922017-08-21 Joseph Myers <joseph@codesourcery.com>
2193
2194 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
2195 case calling __builtin_unreachable.
2196
19926de9
AZ
21972017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2198
a8410a5f
AZ
2199 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
2200 __waitpid_nocancel.
2201 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
2202 (__waitpid_nocancel): New macro.
2203 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
2204 macro.
2205 (__waitpid_nocancel): Replace macro with a function.
2206 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
2207 function.
2208
7369800c
AZ
2209 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
2210 __fcntl_nocancel.
2211 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
2212 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
2213
19926de9
AZ
2214 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
2215 __writev_nocancel_nostatus.
2216 (write_call_graph): Likewise.
2217 (write_bb_counts): Likewise.
2218 * resolv/herror.c (herror): Likewise.
2219 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
2220 macro.
2221 (__writev_nocancel_nostatus): New macro.
2222 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
2223 Remove macro.
2224 (__writev_nocancel_nostatus): New function.
2225
813378e9
JM
22262017-08-21 Joseph Myers <joseph@codesourcery.com>
2227
df1deda6
JM
2228 Revert:
2229 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2230
2231 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2232 building libc.a.
2233 (hidden_proto): Likewise.
2234 (hidden_tls_proto): Likewise.
2235 (__hidden_proto): Likewise.
2236
831bbd55
JM
2237 [BZ #21973]
2238 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
2239 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
2240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
2241 Likewise.
2242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
2243 Likewise.
2244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
2245 Likewise.
2246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
2247 Likewise.
2248 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
2249 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
2250 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
2251 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
2252 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2253 GLIBC_2.0 sqrtl symbol.
2254
813378e9
JM
2255 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
2256 [__USE_MISC] (_LIB_VERSION): Likewise.
2257 [__USE_MISC] (struct exception): Likewise.
2258 [__USE_MISC] (matherr): Likewise.
2259 [__USE_MISC] (DOMAIN): Likewise.
2260 [__USE_MISC] (SING): Likewise.
2261 [__USE_MISC] (OVERFLOW): Likewise.
2262 [__USE_MISC] (UNDERFLOW): Likewise.
2263 [__USE_MISC] (TLOSS): Likewise.
2264 [__USE_MISC] (PLOSS): Likewise.
2265 [__USE_MISC] (HUGE): Likewise.
2266 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
2267 * math/math-svid-compat.h: New file.
2268 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
2269 and matherrl.
2270 * include/math.h [!_ISOMAC] (__matherr): Remove.
2271 * manual/arith.texi (FP Exceptions): Do not document matherr.
2272 * math/Makefile (tests): Change test-matherr to test-matherr-3.
2273 (tests-internal): New variable.
2274 (install-lib): Do not add libieee.a.
2275 (non-lib.a): Likewise.
2276 (extra-objs): Do not add libieee.a and ieee-math.o.
2277 (CPPFLAGS-s_lib_version.c): Remove variable.
2278 ($(objpfx)libieee.a): Remove rule.
2279 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
2280 * math/ieee-math.c: Remove.
2281 * math/libm-test-support.c (matherr): Remove.
2282 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
2283 and license notices. Include <math-svid-compat.h> and
2284 <shlib-compat.h>.
2285 (matherr): Undefine as macro. Use compat_symbol_reference.
2286 (_LIB_VERSION): Likewise.
2287 * math/test-matherr-2.c: New file.
2288 * math/test-matherr-3.c: Likewise.
2289 * sysdeps/generic/math_private.h (__kernel_standard): Remove
2290 declaration.
2291 (__kernel_standard_f): Likewise.
2292 (__kernel_standard_l): Likewise.
2293 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
2294 <math_private.h>. Include <math-svid-compat.h>.
2295 (_LIB_VERSION): Undefine as macro.
2296 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
2297 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
2298 [LIBM_SVID_COMPAT], use compat_symbol.
2299 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
2300 <math_private.h>. Include <math-svid-compat.h>.
2301 (matherr): Undefine as macro.
2302 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
2303 compat_symbol.
2304 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
2305 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
2306 compat_symbol_reference.
2307 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
2308 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
2309 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
2310 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
2311 (MATHERR_D): Remove declaration.
2312 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
2313 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
2314 [LIBM_BUILD] (pmatherrf): Likewise.
2315 [LIBM_BUILD] (pmatherr): Likewise.
2316 [LIBM_BUILD] (pmatherrl): Likewise.
2317 (DOMAIN): Likewise.
2318 (SING): Likewise.
2319 (OVERFLOW): Likewise.
2320 (UNDERFLOW): Likewise.
2321 (TLOSS): Likewise.
2322 (PLOSS): Likewise.
2323 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
2324 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
2325 compat_symbol.
2326 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
2327 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
2328 compat_symbol.
2329 * math/lgamma-compat.h: Include <math-svid-compat.h>.
2330 * math/w_acos_compat.c: Likewise.
2331 * math/w_acosf_compat.c: Likewise.
2332 * math/w_acosh_compat.c: Likewise.
2333 * math/w_acoshf_compat.c: Likewise.
2334 * math/w_acoshl_compat.c: Likewise.
2335 * math/w_acosl_compat.c: Likewise.
2336 * math/w_asin_compat.c: Likewise.
2337 * math/w_asinf_compat.c: Likewise.
2338 * math/w_asinl_compat.c: Likewise.
2339 * math/w_atan2_compat.c: Likewise.
2340 * math/w_atan2f_compat.c: Likewise.
2341 * math/w_atan2l_compat.c: Likewise.
2342 * math/w_atanh_compat.c: Likewise.
2343 * math/w_atanhf_compat.c: Likewise.
2344 * math/w_atanhl_compat.c: Likewise.
2345 * math/w_cosh_compat.c: Likewise.
2346 * math/w_coshf_compat.c: Likewise.
2347 * math/w_coshl_compat.c: Likewise.
2348 * math/w_exp10_compat.c: Likewise.
2349 * math/w_exp10f_compat.c: Likewise.
2350 * math/w_exp10l_compat.c: Likewise.
2351 * math/w_exp2_compat.c: Likewise.
2352 * math/w_exp2f_compat.c: Likewise.
2353 * math/w_exp2l_compat.c: Likewise.
2354 * math/w_fmod_compat.c: Likewise.
2355 * math/w_fmodf_compat.c: Likewise.
2356 * math/w_fmodl_compat.c: Likewise.
2357 * math/w_hypot_compat.c: Likewise.
2358 * math/w_hypotf_compat.c: Likewise.
2359 * math/w_hypotl_compat.c: Likewise.
2360 * math/w_j0_compat.c: Likewise.
2361 * math/w_j0f_compat.c: Likewise.
2362 * math/w_j0l_compat.c: Likewise.
2363 * math/w_j1_compat.c: Likewise.
2364 * math/w_j1f_compat.c: Likewise.
2365 * math/w_j1l_compat.c: Likewise.
2366 * math/w_jn_compat.c: Likewise.
2367 * math/w_jnf_compat.c: Likewise.
2368 * math/w_jnl_compat.c: Likewise.
2369 * math/w_lgamma_main.c: Likewise.
2370 * math/w_lgamma_r_compat.c: Likewise.
2371 * math/w_lgammaf_main.c: Likewise.
2372 * math/w_lgammaf_r_compat.c: Likewise.
2373 * math/w_lgammal_main.c: Likewise.
2374 * math/w_lgammal_r_compat.c: Likewise.
2375 * math/w_log10_compat.c: Likewise.
2376 * math/w_log10f_compat.c: Likewise.
2377 * math/w_log10l_compat.c: Likewise.
2378 * math/w_log2_compat.c: Likewise.
2379 * math/w_log2f_compat.c: Likewise.
2380 * math/w_log2l_compat.c: Likewise.
2381 * math/w_log_compat.c: Likewise.
2382 * math/w_logf_compat.c: Likewise.
2383 * math/w_logl_compat.c: Likewise.
2384 * math/w_pow_compat.c: Likewise.
2385 * math/w_powf_compat.c: Likewise.
2386 * math/w_powl_compat.c: Likewise.
2387 * math/w_remainder_compat.c: Likewise.
2388 * math/w_remainderf_compat.c: Likewise.
2389 * math/w_remainderl_compat.c: Likewise.
2390 * math/w_scalb_compat.c: Likewise.
2391 * math/w_scalbf_compat.c: Likewise.
2392 * math/w_scalbl_compat.c: Likewise.
2393 * math/w_sinh_compat.c: Likewise.
2394 * math/w_sinhf_compat.c: Likewise.
2395 * math/w_sinhl_compat.c: Likewise.
2396 * math/w_sqrt_compat.c: Likewise.
2397 * math/w_sqrtf_compat.c: Likewise.
2398 * math/w_sqrtl_compat.c: Likewise.
2399 * math/w_tgamma_compat.c: Likewise.
2400 * math/w_tgammaf_compat.c: Likewise.
2401 * math/w_tgammal_compat.c: Likewise.
2402 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
2403 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
2404 * sysdeps/ieee754/k_standard.c: Likewise.
2405 * sysdeps/ieee754/k_standardf.c: Likewise.
2406 * sysdeps/ieee754/k_standardl.c: Likewise.
2407 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
2408 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
2409 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
2410 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
2411 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
2412 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
2413 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
2414 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
2415 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
2416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
2417 Likewise.
2418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
2419 Likewise.
2420 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
2421 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
2422 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
2423 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
2424
4504783c
FW
24252017-08-21 Florian Weimer <fweimer@redhat.com>
2426
2427 [BZ #21864]
2428 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
2429 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
2430 Move before inclusion of ../Rules.
2431
b5889d25
FW
24322017-08-21 Florian Weimer <fweimer@redhat.com>
2433
2434 [BZ #21972]
2435 * assert/assert.h (assert): Use static_cast (bool) for C++.
2436 Use the ternary operator in the warning branch for GNU C.
2437 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
2438 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
2439 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
2440 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
2441 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
2442
41e673c1
L
24432017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2444
2445 [BZ #18822]
2446 * sysdeps/unix/sysv/linux/x86_64/init-first.c
2447 (__syscall_clock_gettime): Add attribute_hidden.
2448 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
2449 (__start_context): Likewise.
2450
568ff429
L
24512017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2452
2453 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
2454 building libc.a.
2455 (hidden_proto): Likewise.
2456 (hidden_tls_proto): Likewise.
2457 (__hidden_proto): Likewise.
2458
7c41b4a1
L
24592017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 * include/libc-symbols.h (attribute_hidden): Enable hidden
2462 visibility in libc.a compiled with PIE.
2463
483d7068
L
24642017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 [BZ #18822]
2467 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
2468 Add attribute_hidden.
2469
24702017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2471
2472 [BZ #21864]
2473 * Makerules (all-nonlib): Add $(others-extras).
2474 * catgets/Makefile (others-extras): New.
2475 * elf/Makefile (others-extras): Likewise.
2476 * nss/Makefile (others-extras): Likewise.
2477
54e4b8f2
L
24782017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2479
2480 [BZ #18822]
2481 * csu/libc-start.c (__libc_multiple_libcs): Removed.
2482 * elf/dl-open.c: Include <libc-internal.h>.
2483 (__libc_multiple_libcs): Removed.
2484 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
2485 <hp-timing.h>.
2486 * include/libc-internal.h (__libc_multiple_libcs): New.
2487 * misc/sbrk.c: Include <libc-internal.h>.
2488 (__libc_multiple_libcs): Removed.
2489
1dbbb1ec
L
24902017-08-21 H.J. Lu <hongjiu.lu@intel.com>
2491
2492 [BZ #18822]
2493 * grp/initgroups.c (__nss_group_database): Removed.
2494 (__nss_initgroups_database): Likewise.
2495 * nscd/gai.c (__nss_hosts_database): Likewise.
2496 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
2497 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
2498 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
2499 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
2500 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
2501 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
2502 attribute_hidden.
2503 * nss/nsswitch.c (__nss_database_custom): Define only if
2504 USE_NSCD is defined.
2505 (__nss_configure_lookup): Use __nss_database_custom only if
2506 USE_NSCD is defined.
2507 * nss/nsswitch.h (__nss_database_custom): Declare only if
2508 USE_NSCD is defined. Add attribute_hidden.
2509 (__nss_setent): Add attribute_hidden.
2510 (__nss_endent): Likewise.
2511 (__nss_getent_r): Likewise.
2512 (__nss_getent): Likewise.
2513 (DEFINE_DATABASE): Declare __nss_##arg##_database.
2514
2585d7b8
L
25152017-08-20 H.J. Lu <hongjiu.lu@intel.com>
2516
2517 [BZ #18822]
2518 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
2519 libc_hidden_proto and libc_hidden_def.
2520
c8dfa99c
L
25212017-08-20 H.J. Lu <hongjiu.lu@intel.com>
2522
2523 [BZ #18822]
2524 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
2525 Add libc_hidden_proto.
2526 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
2527 Add libc_hidden_def.
2528
7ed87317
L
25292017-08-20 H.J. Lu <hongjiu.lu@intel.com>
2530
2531 [BZ #21974]
2532 * gmon/Makefile (routines): Remove bb_init_func and
2533 bb_exit_func.
2534 (elide-routines.os): Removed.
9476b904
L
2535 * gmon/bb_exit_func.c: Likewise.
2536 * gmon/bb_init_func.c: Likewise.
7ed87317
L
2537 * include/sys/gmon.h (__bb): Likewise.
2538 (__bb_init_func): Likewise.
2539 (__bb_exit_func): Likewise.
91695eb1 2540 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 2541
94e6ba15
L
25422017-08-20 H.J. Lu <hongjiu.lu@intel.com>
2543
2544 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
2545 * include/setjmp.h (____longjmp_chk): Here. Add
2546 attribute_hidden.
2547
7550717e
L
25482017-08-19 H.J. Lu <hongjiu.lu@intel.com>
2549
2550 [BZ #18822]
2551 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
2552 attribute_hidden.
2553 (__strspn_sse2): Likewise.
2554
0bb2fabc
AZ
25552017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2556
c181840c
AZ
2557 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
2558 (close_not_cancel_no_status): Likewise.
2559 (__close_nocancel): New macro.
2560 (__close_nocancel_nostatus): Likewise.
2561 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
2562 macro.
2563 (close_not_cancel): Likewise.
2564 (close_not_cancel_no_status): Likewise.
2565 (__close_nocancel): New prototype.
2566 (__close_nocancel_nostatus): New function.
2567 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
2568 * catgets/open_catalog.c (__open_catalog): Replace
2569 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
2570 * gmon/gmon.c (write_gmon): Likewise.
2571 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2572 * intl/loadmsgcat.c (close): Likewise.
2573 * io/ftw.c (open_dir_stream): Likewise.
2574 (ftw_startup): Likewise.
2575 * libio/fileops.c (_IO_file_open): Likewise.
2576 (_IO_file_close_mmap): Likewise.
2577 (_IO_file_close): Likewise.
2578 * libio/iopopen.c (_IO_dup2): Likewise.
2579 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2580 * locale/loadlocale.c (_nl_load_locale): Likewise.
2581 * login/utmp_file.c (pututline_file): Likewise.
2582 (endutent_file): Likewise.
2583 * misc/daemon.c (daemon): Likewise.
2584 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2585 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2586 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2587 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2588 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2589 * nscd/nscd_helper.c (open_socket): Likewise.
2590 (__nscd_open_socket): Likewise.
2591 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2592 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
2593 (__nscd_innetgr): Likewise.
2594 * nss/nss_db/db-open.c (internal_setent): Likewise.
2595 * resolv/res-close.c (__res_iclose): Likewise.
2596 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
2597 * sysdeps/posix/closedir.c (__closedir): Likewise.
2598 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
2599 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2600 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
2601 (opendir_tail): Likewise.
2602 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2603 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
2604 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
2605 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
2606 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2607 (gethostid): Likewise.
2608 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2609 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2610 Likewise.
2611 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2612 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
2613 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2614 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2615 Likewise.
2616 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
2617 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
2618 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2619 Likewise.
2620 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
2621 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2622 Likewise.
2623 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2624 Likewise.
2625 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
2626 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2627 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2628 __close_nocancel.
2629
0bb2fabc
AZ
2630 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
2631 (openat_not_cancel_3): Likewise.
2632 (openat64_not_cancel_3): Likewise).
2633 (openat_not_cancel_3): Likewise).
2634 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
2635 macro.
2636 (openat_not_cancel_3): Likewise.
2637 (openat64_not_cancel): Likewise.
2638 (openat64_not_cancel_3): Likewise.
2639 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
2640 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
2641 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
2642 __open{64}_nocancel.
2643 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
2644 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2645 * sysdeps/posix/opendir.c (__opendirat): Likewise.
2646
65a086db
L
26472017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2648
2649 [BZ #18822]
2650 * include/argz.h (__argz_create_sep): New function prototype.
2651 (__argz_append): Likewise.
2652 (__argz_add): Likewise.
2653 (__argz_add_sep): Likewise.
2654 (__argz_delete): Likewise.
2655 (__argz_insert): Likewise.
2656 (__argz_replace): Likewise.
2657 * string/argz.h (__argz_create_sep): Removed.
2658 (__argz_append): Likewise.
2659 (__argz_add): Likewise.
2660 (__argz_add_sep): Likewise.
2661 (__argz_delete): Likewise.
2662 (__argz_insert): Likewise.
2663 (__argz_replace): Likewise.
2664
62753d2c
L
26652017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2666
2667 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
2668 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
2669 (GNU_PROPERTY_STACK_SIZE): Likewie.
2670 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
2671 (GNU_PROPERTY_LOPROC): Likewise.
2672 (GNU_PROPERTY_HIPROC): Likewise.
2673 (GNU_PROPERTY_LOUSER): Likewise.
2674 (GNU_PROPERTY_HIUSER): Likewise.
2675 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
2676 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
2677 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
2678 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
2679 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
2680 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
2681 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
2682 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
2683 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
2684 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
2685 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
2686 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
2687 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
2688 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
2689 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
2690 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
2691 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
2692 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
2693 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
2694 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
2695 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
2696 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
2697 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
2698
6913ad65
GG
26992017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2700
2701 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
2702 in C++ mode.
2703
47a67213
GG
27042017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
2705
2706 [BZ #21930]
2707 * math/math.h (isinf): Check if in C or C++ mode before using
2708 __builtin_types_compatible_p, since this is a C mode feature.
2709
a748eb31
AZ
27102017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2711
c647fb88
AZ
2712 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
2713 (__write_nocancel): New macro.
2714 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
2715 Rewrite as a function prototype.
2716 (write_not_cancel): Remove macro.
2717 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
2718 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
2719 (write_gmon): Likewise.
2720 * libio/fileops.c (_IO_new_file_write): Likewise.
2721 * login/utmp_file.c (pututline_file): Likewise.
2722 (updwtmp_file): Likewise.
2723 * stdio-common/psiginfo.c (psiginfo): Likewise.
2724 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2725 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2726 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2727 Likewise.
2728 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2729 Likewise.
2730
a748eb31
AZ
2731 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
2732 (__read_nocancel): New macro.
2733 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2734 __read_nocancel.
2735 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
2736 macro.
2737 (__read_nocancel): New prototype.
2738 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
2739 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
2740 with __read_nocancel.
2741 * intl/loadmsgcat.c (read): Likewise.
2742 * libio/fileops.c (_IO_file_read): Likewise.
2743 * locale/loadlocale.c (_nl_load_locale): Likewise.
2744 * login/utmp_file.c (getutent_r_file): Likewise.
2745 (internal_getut_r): Likewise.
2746 (getutline_r_file): Likewise.
2747 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
2748 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2749 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2750 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2751 Likewise.
2752 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
2753 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2754 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2755 Likewise.
2756 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2757 Likewise.
2758 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2759 Likewise.
2760 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2761 Likewise.
2762 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2763
098b9dd4
L
27642017-08-18 H.J. Lu <hongjiu.lu@intel.com>
2765
2766 [BZ #21966]
2767 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
2768 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
2769 usable.
2770
a3fe6a20
DD
27712017-08-17 DJ Delorie <dj@redhat.com>
2772
2773 * bug17079.c: Update to new test harness.
2774 * test-digits-dots.c: Likewise.
2775 * test-netdb.c: Likewise.
2776 * tst-field.c: Likewise.
2777 * tst-nss-getpwent.c: Likewise.
2778 * tst-nss-static.c: Likewise.
2779 * tst-nss-test1.c: Likewise.
2780 * tst-nss-test2.c: Likewise.
2781 * tst-nss-test3.c: Likewise.
2782 * tst-nss-test4.c: Likewise.
2783 * tst-nss-test5.c: Likewise.
2784
c2284574
AZ
27852017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2786
2787 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
2788 (open_not_cancel_2): Likewise.
2789 (open_nocancel): New macro.
2790 (open64_nocancel): Likewise.
2791 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
2792 (open_not_cancel_2): Likewise.
2793 (__open_nocancel): New prototype.
2794 (__open64_nocancel): Likewise.
2795 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2796 __open_nocancel.
2797 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
2798 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
2799 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
2800 with __open_nocancel.
2801 * csu/check_fds.c (check_one_fd): Likewise.
2802 * gmon/gmon.c (write_gmon): Likewise.
2803 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
2804 * intl/loadmsgcat.c (open): Likewise.
2805 * libio/fileops.c (_IO_file_open): Likewise.
2806 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2807 * locale/loadlocale.c (_nl_load_locale): Likewise.
2808 * login/utmp_file.c (setutent_file): Likewise.
2809 * misc/daemon.c (daemon): Likewise.
2810 * nss/nss_db/db-open.c (internal_setent): Likewise.
2811 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
2812 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
2813 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
2814 (__opendir): Likewise.
2815 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2816 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
2817 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2818 (gethostid): Likewise.
2819 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2820 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2821 Likewise.
2822 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2823 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
2824 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2825 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2826 Likewise.
2827 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2828 Likewise.
2829 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2830 Likewise.
2831 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
2832 Likewise.
2833 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2834 Likewise.
2835 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2836 Likewise.
2837 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
2838 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2839
d4505b89
WD
28402017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
2841
2842 * benchtests/bench-skeleton.c (main): Add support for
2843 latency benchmarking.
2844 * benchtests/scripts/bench.py: Add support for latency benchmarking.
2845
34d6a3cb
L
28462017-08-17 H.J. Lu <hongjiu.lu@intel.com>
2847
2848 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
2849 the startup object.
2850
038d1caf
FW
28512017-08-17 Florian Weimer <fweimer@redhat.com>
2852
2853 * include/sys/socket.h (__opensock): Remove internal_function.
2854 * socket/opensock.c (__opensock): Likewise.
2855 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
2856
67f0aff0
JM
28572017-08-16 Joseph Myers <joseph@codesourcery.com>
2858
2859 [BZ #21944]
2860 * signal/bits/types/__sigval_t.h: New file.
2861 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
2862 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
2863 and define sigval_t using __sigval_t.
2864 * include/bits/types/__sigval_t.h: New file.
2865 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
2866 instead of <bits/types/__sigval_t.h>.
2867 (struct sigevent): Use __sigval_t instead of sigval_t.
2868 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
2869 instead of <bits/types/__sigval_t.h>.
2870 (siginfo_t): Use __sigval_t instead of sigval_t.
2871 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
2872 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
2873 (struct sigevent): Use __sigval_t instead of sigval_t.
2874 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
2875 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
2876 (siginfo_t): Use __sigval_t instead of sigval_t.
2877 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
2878
87e7bf4d
L
28792017-08-16 H.J. Lu <hongjiu.lu@intel.com>
2880
2881 * NEWS: Remove "[Add new features here]" for 2.27.
2882
5047057f
JM
28832017-08-16 Joseph Myers <joseph@codesourcery.com>
2884
2885 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
2886 libc.so.
2887
20c7b195
L
28882017-08-16 H.J. Lu <hongjiu.lu@intel.com>
2889
2890 * NEWS: Mention x86-64 FMA optimization.
2891
24a2e658
L
28922017-08-16 H.J. Lu <hongjiu.lu@intel.com>
2893
2894 [BZ #21912]
2895 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2896 Add e_expf-fma.
2897 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
2898 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
2899 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
2900
eedca977
AS
29012017-08-16 Andreas Schwab <schwab@suse.de>
2902
403143e1
FW
2903 [BZ #16750]
2904 CVE-2009-5064
eedca977
AS
2905 * elf/ldd.bash.in: Never run file directly.
2906
f59f7adb
L
29072017-08-15 H.J. Lu <hongjiu.lu@intel.com>
2908
2909 [BZ #21955]
2910 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
2911 (L(SP_INF_0)): Likewise.
2912
6b11a6ad
FW
29132017-08-15 Florian Weimer <fweimer@redhat.com>
2914
2915 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
2916 run-built-tests.
2917
bbf5c438
FW
29182017-08-15 Florian Weimer <fweimer@redhat.com>
2919
2920 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
2921 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
2922 BROKEN_THREAD_SIGNALS code.
2923 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
2924 request_list): Remove caller_pid member used for
2925 BROKEN_THREAD_SIGNALS.
2926 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
2927 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
2928 Remove BROKEN_THREAD_SIGNALS support.
2929 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
2930 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
2931
6014c65d
FW
29322017-08-15 Florian Weimer <fweimer@redhat.com>
2933
2934 * gmon/Makefile (tests): Add tst-gmon.
2935 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
2936 Set.
2937 (tests-special): Add tst-gmon-prof.out.
2938 (tst-gmon.out): Depend on clean-tst-gmon-data.
2939 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
2940 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
2941 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
2942 startup object.
2943 * aclocal.m4 (GPROF): Set and substitute.
2944 * config.amke.in (GPROF): Set.
2945 * configure: Regenerate.
2946
ee72219a
GR
29472017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
2948
2949 * elf/elf.h A (NT_PPC_TAR): New macro.
2950 (NT_PPC_PPR): Likewise.
2951 (NT_PPC_DSCR): Likewise.
2952 (NT_PPC_EBB): Likewise.
2953 (NT_PPC_PMU): Likewise.
2954 (NT_PPC_TM_CGPR): Likewise.
2955 (NT_PPC_TM_CFPR): Likewise.
2956 (NT_PPC_TM_CVMX): Likewise.
2957 (NT_PPC_TM_CVSX): Likewise.
2958 (NT_PPC_TM_SPR): Likewise.
2959 (NT_PPC_TM_CTAR): Likewise.
2960 (NT_PPC_TM_CPPR): Likewise.
2961 (NT_PPC_TM_CDSCR): Likewise.
2962
4ebf934e
FW
29632017-08-15 Florian Weimer <fweimer@redhat.com>
2964
2965 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
2966 regparm (2) instead of internal_function.
2967 (_MCOUNT_DECL): Adjust.
2968
e9f57484
SL
29692017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
2970
2971 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
2972 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
2973
88ff4d55
JM
29742017-08-14 Joseph Myers <joseph@codesourcery.com>
2975
2976 * conform/data/sys/wait.h-data (si_value): Do not expect for
2977 XPG42.
2978
c88ffc23
FW
29792017-08-14 Florian Weimer <fweimer@redhat.com>
2980
2981 [BZ #21962]
2982 NSS: Create stubs for accidentally exported lookup functions.
2983 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
2984 Remove declaration.
2985 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2986 (ether_hostton): Call __nss_ethers_lookup2 instead.
2987 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
2988 (ether_ntohost): Call __nss_ethers_lookup2 instead.
2989 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
2990 (setup): Call __nss_netgroup_lookup2 instead.
2991 * nss/Makefile (routines): Add compat-lookup.
2992 * nss/Versions (GLIBC_2.27): Add symbol version.
2993 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
2994 (DB_COMPAT_FCT): Remove.
2995 * nss/compat-lookup.c: New file.
2996 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
2997 from databases.def.
2998 * nss/service-lookup.c (NO_COMPAT): Remove definition.
2999 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
3000 (netname2user): Call __nss_publickey_lookup2 instead.
3001 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
3002 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
3003 instead.
3004
1f14d0c3
AZ
30052017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3006 Sergei Trofimovich <slyfox@inbox.ru>
3007
3008 [BZ #21908]
3009 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
3010 Rename to MMAP2_PAGE_UNIT.
3011 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
3012 __OFF_T_MATCHES_OFF64_T is not defined.
3013 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
3014 uint64_t.
3015 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
3016 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
3017
fbdc1e3e
FW
30182017-08-14 Florian Weimer <fweimer@redhat.com>
3019
3020 i386: Do not set internal_function.
3021 * config.h.in (USE_REGPARMS, internal_function): Remove.
3022 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
3023 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
3024
b3f85fd2
FW
30252017-08-14 Florian Weimer <fweimer@redhat.com>
3026
3027 * elf/dl-init.c (_dl_init): Remove internal_function.
3028 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
3029 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
3030
630bf491
FW
30312017-08-14 Florian Weimer <fweimer@redhat.com>
3032
3033 * elf/rtld.c (_dl_start): Remove internal_function.
3034 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
3035 _dl_start.
3036
9fa7449b
FW
30372017-08-14 Florian Weimer <fweimer@redhat.com>
3038
3039 * elf/dl-fini.c (_dl_fini): Remove internal_function
3040 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3041
73322d5f
L
30422017-08-14 H.J. Lu <hongjiu.lu@intel.com>
3043
3044 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
3045 (bit_cpu_SHSTK): Likewise.
3046 (index_cpu_IBT): Likewise.
3047 (index_cpu_SHSTK): Likewise.
3048 (reg_IBT): Likewise.
3049 (reg_SHSTK): Likewise.
3050 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3051 Handle index_cpu_IBT and index_cpu_SHSTK.
3052
dbc303ef
MF
30532017-08-14 Mike FABIAN <mfabian@redhat.com>
3054
3055 [BZ #19982]
3056 * po/fr.po: Fix spelling mistake.
3057
3012cfb0
FW
30582017-08-13 Florian Weimer <fweimer@redhat.com>
3059
3060 * elf/dl-addr.c (_dl_addr): Remove internal_function.
3061 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
3062 (_dl_catch_error, _dl_receive_error): Likewise.
3063 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
3064 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
3065 (_dl_deallocate_tls): Likewise.
3066 * include/dlfcn.h (_dl_addr): Likewise.
3067 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
3068 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
3069 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
3070 Likewise.
3071
52bcdf26
FW
30722017-08-13 Florian Weimer <fweimer@redhat.com>
3073
3074 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
3075 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
3076 internal_function.
3077 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
3078
e1d2ae8d
FW
30792017-08-13 Florian Weimer <fweimer@redhat.com>
3080
3081 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
3082 internal_function.
3083 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
3084 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
3085 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
3086 internal_function from _dl_make_stack_executable_hook member.
3087 (_dl_make_stack_executable): Remove internal_function.
3088 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
3089 Likewise.
3090 * sysdeps/unix/sysv/linux/dl-execstack.c
3091 (_dl_make_stack_executable): Likewise.
3092
c4ce0382
FW
30932017-08-13 Florian Weimer <fweimer@redhat.com>
3094
3095 * sysdeps/unix/sysv/linux/netlinkaccess.h
3096 (__netlink_assert_response): Remove internal_function.
3097 * sysdeps/unix/sysv/linux/netlink_assert_response.c
3098 (__netlink_assert_response): Likewise.
3099
c4d767f7
FW
31002017-08-13 Florian Weimer <fweimer@redhat.com>
3101
3102 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
3103 internal_function.
3104 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
3105
b2297409
FW
31062017-08-13 Florian Weimer <fweimer@redhat.com>
3107
3108 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
3109 internal_function.
3110 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
3111 * inet/netgroup.h (__internal_setnetgrent)
3112 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
3113 * inet/getnetgrent_r.c (__internal_setnetgrent)
3114 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
3115 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
3116 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
3117 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
3118 * nss/nsswitch.h (db_lookup_function): Likewise.
3119
1b0bfc69
FW
31202017-08-13 Florian Weimer <fweimer@redhat.com>
3121
3122 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
3123 Remove internal_function.
3124 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
3125 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
3126 message argument on the stack.
3127 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
3128 Likeweise.
3129
a6bd8722
MF
31302017-08-12 Mike FABIAN <mfabian@redhat.com>
3131
3132 Adapt test case data to the changes in the thousands
3133 separators.
3134
3135 [BZ #20756]
3136 * localedata/tst-langinfo.sh: Adapt test case data.
3137 * stdlib/tst-strfmon_l.c: Likewise.
3138 * stdlib/tst-strtod4.c: Likewise.
3139 * stdlib/tst-strtod5i.c: Likewise.
3140
8b2c63e4
FW
31412017-08-11 Florian Weimer <fweimer@redhat.com>
3142
3143 [BZ #21242]
3144 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
3145 Suppress pedantic warning resulting from statement expression.
3146 (__ASSERT_FUNCTION): Add missing __extension__.
3147
61c98291
SP
31482017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
3149
86c6519e
SP
3150 * benchtests/bench-memmove-large.c: Print output in JSON
3151 format.
3152 * benchtests/bench-memmove.c: Likewise.
3153
61c98291
SP
3154 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
3155 * benchtests/bench-memchr.c (do_one_test): Likewise.
3156 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
3157 * benchtests/bench-memcpy.c (do_one_test): Likewise.
3158 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
3159 * benchtests/bench-memmove.c (do_one_test): Likewise.
3160 * benchtests/bench-memset-large.c (do_one_test): Likewise.
3161 * benchtests/bench-memset.c (do_one_test): Likewise.
3162 * benchtests/bench-string.h (test_init): Remove memsets.
3163
925733a9
RJ
31642017-08-10 Rical Jasan <ricaljasan@pacific.net>
3165
3166 * manual/lang.texi
3167 (Computing the Width of an Integer Data Type): Rename section to
3168 "Width of an Integer Type". Remove inaccurate statement regarding
3169 lack of C language facilities for determining width of integer
3170 types, and reorder content to improve flow and context of
3171 discussion.
3172
4fcdfbfc
RJ
31732017-08-10 Rical Jasan <ricaljasan@pacific.net>
3174
3175 * lang.texi (va_copy): Change standard from ISO to C99.
3176 (__va_copy): Add standard and header annotation.
3177 Update description for clarity of origins and current use.
3178
4d98ace9
GG
31792017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3180
3181 [BZ #21941]
3182 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
3183 xssqrtqp requires operands to be in Vector Registers
3184 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
3185 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
3186 (__ieee754_sqrtf128): Likewise.
3187
92236903
WD
31882017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
3189
3190 * sysdeps/aarch64/memcmp.S (memcmp):
3191 Rewrite of optimized memcmp.
3192
2449ae7b
FW
31932017-08-10 Florian Weimer <fweimer@redhat.com>
3194
3195 Introduce ld.so exceptions.
3196 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
3197 (_dl_exception_create, _dl_exception_create_format)
3198 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
3199 (_dl_catch_exception): Declare.
3200 (_dl_catch_error): Update comment.
3201 * elf/dl-error-skeleton.c (struct catch): Replace objname,
3202 errstring, malloced members with exception member.
3203 (_dl_out_of_memory): Remove.
3204 (fatal_error): New function, extracted from _dl_signal_error.
3205 (_dl_signal_exception, _dl_signal_cexception): New functions.
3206 (_dl_signal_error): Call _dl_exception_create to allocate an
3207 exception object.
3208 (_dl_catch_exception): New function, based on _dl_catch_error.
3209 (_dl_catch_error): Implement using _dl_catch_exception.
3210 * elf/dl-exception.c: New file.
3211 * elf/Makefile (dl-routines): Add dl-exception.
3212 (elide-routines.os): Likewise.
3213 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
3214 _dl_exception_create_format, _dl_exception_free.
3215 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
3216 _dl_signal_exception.
3217 * elf/dl-lookup.c (make_string): Remove.
3218 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
3219 _dl_signal_cexception, _dl_exception_free.
3220 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
3221 _dl_signal_exception.
3222 * elf/dl-sym.c (do_sym): Likewise.
3223 * elf/dl-version.c (make_string): Remove.
3224 (match_symbol): Use _dl_exception_create_format,
3225 _dl_signal_cexception, _dl_exception_free.
3226 (_dl_check_map_versions): Likewise.
3227 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
3228 _dl_catch_exception.
3229 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
3230 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
3231 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
3232 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
3233 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
3234 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
3235 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
3236 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
3237 Likewise.
3238 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
3239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
3240 (ld.so): Likewise.
3241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
3242 (ld.so): Likewise.
3243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
3244 Likewise.
3245 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
3246 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
3247 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
3248 Likewise.
3249 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
3250 Likewise.
3251 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
3252
f87cc2bf
FW
32532017-08-10 Florian Weimer <fweimer@redhat.com>
3254
3255 * inet/net-internal.h (__inet6_scopeid_pton): Remove
3256 attribute_hidden, internal_function.
3257 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
3258 internal_function.
3259
eac43cbb
FW
32602017-08-10 Florian Weimer <fweimer@redhat.com>
3261
3262 * malloc/malloc.c (get_max_fast): Reimplement as an inline
3263 function which calls __builtin_unreachable.
3264
bd80111e
MF
32652017-08-10 Mike FABIAN <mfabian@redhat.com>
3266
3267 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
3268 Indian monetary formatting
3269 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
3270 test cases.
3271
60e2846e
DL
32722017-08-09 Dmitry V. Levin <ldv@altlinux.org>
3273
68dc02d1
DL
3274 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
3275 Fix typo in comment.
3276
60e2846e
DL
3277 [BZ #21928]
3278 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
3279 PTRACE_SEIZE_DEVEL): Remove.
3280 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
3281 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3282 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3283 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3284 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3285
3d452dab
JM
32862017-08-09 Joseph Myers <joseph@codesourcery.com>
3287
24d9f53a
JM
3288 * posix/bits/types.h (__qaddr_t): Remove.
3289
3d452dab
JM
3290 [BZ #21457]
3291 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
3292 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
3293 __glibc_reserved1.
3294 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
3295 (ucontext_t): Use __ctx with uc_flags.
3296 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
3297 (__ctxt): Likewise.
3298 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
3299 __glibc_reserved1.
3300 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
3301 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
3302 __glibc_reserved1.
3303 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
3304 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
3305 __glibc_reserved1.
3306 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
3307 macro.
3308 (ucontext_t): Use __ctx with uc_flags.
3309 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
3310 (ucontext_t): Use __ctx with uc_flags.
3311 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
3312 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
3313 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
3314 (ucontext_t): Use __ctx with uc_flags.
3315 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
3316 undefine further down.
3317 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
3318 __glibc_reserved1.
3319 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
3320 undefine further down.
3321 (ucontext_t): Use __ctx with uc_flags.
3322 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
3323 undefine further down.
3324 (ucontext_t): Use __ctx with uc_flags.
3325 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
3326 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
3327 Rename uc_pad to __glibc_reserved1.
3328 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
3329 undefine further down.
3330 (ucontext_t): Use __ctx with uc_flags.
3331 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
3332 further down.
3333 (ucontext_t): Use __ctx with uc_flags.
3334 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
3335 __ctx with uc_flags.
3336 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
3337 (ucontext_t): Use __ctx with uc_flags.
3338 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
3339 __ctx with uc_flags.
3340
30161498
FW
33412017-08-09 Florian Weimer <fweimer@redhat.com>
3342
3343 [BZ #21932]
3344 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
3345 before early return.
3346
5797b410
AS
33472017-08-09 Andreas Schwab <schwab@suse.de>
3348
139237a4 3349 [BZ #21041]
5797b410
AS
3350 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
3351 renamed alias.
3352
139237a4 3353 [BZ #21041]
40c06a3d
AS
3354 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
3355 tst-compat-forwarder.
3356 (modules-names): Add tst-compat-forwarder-mod.
3357 ($(objpfx)tst-compat-forwarder): Depend on
3358 $(objpfx)tst-compat-forwarder-mod.so.
3359 * nptl/tst-compat-forwarder.c: New file.
3360 * nptl/tst-compat-forwarder-mod.c: New file.
3361
36ada5f6
SP
33622017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
3363
0e02b510
SP
3364 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
3365 comments.
3366
36ada5f6
SP
3367 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
3368 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3369 memcpy_falkor.
3370 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
3371 Bump.
3372 (__libc_ifunc_impl_list): Add __memcpy_falkor.
3373 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
3374 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
3375 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3376 Add falkor.
3377 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
3378 New macro.
3379
9995c839
AZ
33802017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3381
3382 [BZ #759]
3383 * manual/setjmp.texi (getcontex): Document uc_stack value
3384 compatibility differences.
3385
f17a4233
JM
33862017-08-08 Joseph Myers <joseph@codesourcery.com>
3387
3388 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
3389 (old_malloc_hook): Likewise.
3390 (old_memalign_hook): Likewise.
3391 (old_realloc_hook): Likewise.
3392 (struct hdr): Likewise.
3393 (flood): Likewise.
3394 (freehook): Likewise.
3395 (mallochook): Likewise.
3396 (memalignhook): Likewise.
3397 (reallochook): Likewise.
3398 (mprobe): Likewise.
3399 * malloc/mtrace.c (mallwatch): Likewise.
3400 (tr_old_free_hook): Likewise.
3401 (tr_old_malloc_hook): Likewise.
3402 (tr_old_realloc_hook): Likewise.
3403 (tr_old_memalign_hook): Likewise.
3404 (tr_where): Likewise.
3405 (lock_and_info): Likewise.
3406 (tr_freehook): Likewise.
3407 (tr_mallochook): Likewise.
3408 (tr_reallochook): Likewise.
3409 (tr_memalignhook): Likewise.
3410 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
3411 * misc/mmap.c (__mmap): Likewise.
3412 * misc/mmap64.c (__mmap64): Likewise.
3413 * misc/mprotect.c (__mprotect): Likewise.
3414 * misc/msync.c (msync): Likewise.
3415 * misc/munmap.c (__munmap): Likewise.
3416 * posix/posix_madvise.c (posix_madvise): Likewise.
3417 * socket/send.c (__send): Likewise.
3418 * socket/sendto.c (__sendto): Likewise.
3419 * socket/setsockopt.c (__setsockopt): Likewise.
3420 * string/memcmp.c (__ptr_t): Remove macro.
3421 (MEMCMP): Use void * instead of ptr_t.
3422 * string/memrchr.c (__ptr_t): Remove macro.
3423 (__memrchr): Use void * instead of ptr_t.
3424 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
3425 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3426 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
3427 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
3428 * sysdeps/mach/msync.c (msync): Likewise.
3429 * sysdeps/mach/munmap.c (__munmap): Likewise.
3430 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
3431 Likewise.
3432 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
3433 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
3434 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
3435 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
3436 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3437 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3438 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
3439 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
3440 Likewise.
3441 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
3442 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
3443 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
3444 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
3445 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
3446 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
3447 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
3448 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
3449 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
3450 Likewise.
3451 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
3452 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
3453 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
3454 (MEMCMP): Use void * instead of ptr_t.
3455 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
3456 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
3457
0df595b2
FW
34582017-08-08 Florian Weimer <fweimer@redhat.com>
3459
3460 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
3461 return statement.
3462
086df229
L
34632017-08-08 H.J. Lu <hongjiu.lu@intel.com>
3464
3465 [BZ #21913]
3466 * csu/libc-tls.c: Include <startup.h> first.
3467 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
3468 * elf/dl-tunables.c: Include <startup.h> first.
3469 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
3470 * sysdeps/generic/startup.h: New file.
3471 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
3472 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
3473 (I386_USE_SYSENTER): New. Defined to 0.
3474
fc5ad702
AS
34752017-08-08 Andreas Schwab <schwab@suse.de>
3476
3477 [BZ #21041]
3478 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
3479 * nptl/pt-system.c (system): Likewise.
3480
852d6312
AZ
34812017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3482
3483 [BZ #21780]
3484 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
3485 EOPNOTSUPP.
3486 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
3487 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
3488 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
3489 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
3490 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
3491 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
3492 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
3493
8b164787
JM
34942017-08-07 Joseph Myers <joseph@codesourcery.com>
3495
cd65836b
JM
3496 [BZ #21899]
3497 * bits/sigaction.h (struct sigaction): Define sa_handler and
3498 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
3499 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3500 [__USE_XOPEN_EXTENDED].
3501 (SA_RESTART): Likewise.
3502 (SA_NODEFER): Likewise.
3503 (SA_RESETHAND): Likewise.
3504 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
3505 (struct sigaction): Define sa_handler and sa_sigaction using union
3506 also for [__USE_XOPEN_EXTENDED].
3507 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3508 [__USE_XOPEN_EXTENDED].
3509 (SA_RESTART): Likewise.
3510 (SA_NODEFER): Likewise.
3511 (SA_RESETHAND): Likewise.
3512 * sysdeps/unix/sysv/linux/bits/sigaction.h
3513 (struct sigaction): Define sa_handler and sa_sigaction using union
3514 also for [__USE_XOPEN_EXTENDED].
3515 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3516 [__USE_XOPEN_EXTENDED].
3517 (SA_RESTART): Likewise.
3518 (SA_NODEFER): Likewise.
3519 (SA_RESETHAND): Likewise.
3520 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
3521 (struct sigaction): Define sa_handler and sa_sigaction using union
3522 also for [__USE_XOPEN_EXTENDED].
3523 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3524 [__USE_XOPEN_EXTENDED].
3525 (SA_RESTART): Likewise.
3526 (SA_NODEFER): Likewise.
3527 (SA_RESETHAND): Likewise.
3528 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
3529 (struct sigaction): Define sa_handler and sa_sigaction using union
3530 also for [__USE_XOPEN_EXTENDED].
3531 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3532 [__USE_XOPEN_EXTENDED].
3533 (SA_RESTART): Likewise.
3534 (SA_NODEFER): Likewise.
3535 (SA_RESETHAND): Likewise.
3536 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
3537 (struct sigaction): Define sa_handler and sa_sigaction using union
3538 also for [__USE_XOPEN_EXTENDED].
3539 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3540 [__USE_XOPEN_EXTENDED].
3541 (SA_RESTART): Likewise.
3542 (SA_NODEFER): Likewise.
3543 (SA_RESETHAND): Likewise.
3544 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
3545 (struct sigaction): Define sa_handler and sa_sigaction using union
3546 also for [__USE_XOPEN_EXTENDED].
3547 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3548 [__USE_XOPEN_EXTENDED].
3549 (SA_RESTART): Likewise.
3550 (SA_NODEFER): Likewise.
3551 (SA_RESETHAND): Likewise.
3552 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3553 (struct sigaction): Define sa_handler and sa_sigaction using union
3554 also for [__USE_XOPEN_EXTENDED].
3555 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3556 [__USE_XOPEN_EXTENDED].
3557 (SA_RESTART): Likewise.
3558 (SA_NODEFER): Likewise. Define directly rather than as alias.
3559 (SA_RESETHAND): Likewise.
3560 (SA_INTERRUPT): Define only for [__USE_MISC].
3561 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
3562 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
3563 [__USE_MISC].
3564 (SA_STACK): Define only for [__USE_MISC].
3565 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
3566 (struct sigaction): Define sa_handler and sa_sigaction using union
3567 also for [__USE_XOPEN_EXTENDED].
3568 (SA_ONSTACK): Change [__USE_UNIX98] condition to
3569 [__USE_XOPEN_EXTENDED].
3570 (SA_RESTART): Likewise.
3571 (SA_NODEFER): Likewise.
3572 (SA_RESETHAND): Likewise.
3573 (SA_NOPTRACE): Define only for [__USE_MISC].
3574
d9fee042
JM
3575 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
3576 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
3577 (struct catalog_info): Likewise.
3578 * inet/htontest.c (lo): Likewise.
3579 (foo): Likewise.
3580 * inet/inet_lnaof.c (inet_lnaof): Likewise.
3581 * inet/inet_net.c (inet_network): Likewise.
3582 * inet/inet_netof.c (inet_netof): Likewise.
3583 * inet/rcmd.c (__ivaliduser): Likewise.
3584 (iruserok): Likewise.
3585 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
3586 * locale/programs/locale-spec.c (locale_special): Likewise.
3587 * nis/nis_findserv.c (struct findserv_req): Likewise.
3588 (__nis_findfastest_with_timeout): Likewise.
3589 * nss/test-netdb.c (test_network): Likewise.
3590 * resolv/inet_neta.c (inet_neta): Likewise.
3591 * resolv/ns_date.c (ns_datetosecs): Likewise.
3592 (SECS_PER_DAY): Likewise.
3593 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
3594 Likewise.
3595 * resolv/res_comp.c (__putlong): Likewise.
3596 (__putshort): Likewise.
3597 (_getlong): Likewise.
3598 (_getshort): Likewise.
3599 * resolv/res_debug.c (p_time): Likewise.
3600 (precsize_ntoa): Likewise.
3601 (precsize_aton): Likewise.
3602 (latlon2ul): Likewise.
3603 (loc_aton): Likewise.
3604 (loc_ntoa): Likewise.
3605 * resolv/res_hconf.c (struct netaddr): Likewise.
3606 (_res_hconf_reorder_addrs): Likewise.
3607 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
3608 (clnttcp_control): Likewise.
3609 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
3610 (clntudp_control): Likewise.
3611 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
3612 (clntunix_control): Likewise.
3613 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
3614 * sunrpc/rpc/auth.h (union des_block): Likewise.
3615 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
3616 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
3617 (xdrrec_create): Likewise.
3618 (xdrrec_endofrecord): Likewise.
3619 (flush_out): Likewise.
3620 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
3621 (xdrstdio_putlong): Likewise.
3622 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
3623 Likewise.
3624
8b164787
JM
3625 * misc/sys/cdefs.h (__long_double_t): Remove.
3626 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
3627 instead of __long_double_t,
3628 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
3629
7ee38e60
SP
36302017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
3631
dd3e86ad
SP
3632 * benchtests/scripts/compare_strings.py: Avoid display error when
3633 running on a text terminal.
3634
b115e819
SP
3635 * benchtests/scripts/compare_strings.py (main): Add an
3636 optional -base option.
3637 (process_results): New argument base_func.
3638
7ee38e60
SP
3639 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
3640 hardcoding memcpy.
3641 * benchtests/bench-memcpy-large.c (test_name): Likewise.
3642 * benchtests/bench-memcpy-random.c (test_name): Likewise.
3643
d5afb385
AS
36442017-08-07 Andreas Schwab <schwab@suse.de>
3645
3646 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
3647 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
3648 * intl/Makefile ($(objpfx)tst-gettext.out)
3649 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
3650 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
3651 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
3652 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
3653 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
3654 * posix/Makefile ($(objpfx)globtest.out)
3655 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
3656 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
3657 ($(objpfx)tst-printf.out): Likewise.
3658 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
3659 ($(objpfx)tst-setcontext3.out): Likewise.
3660
57a72fa3
L
36612017-08-07 H.J. Lu <hongjiu.lu@intel.com>
3662
3663 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3664 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
3665 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
3666 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
3667 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
3668 and mptan-fma.
3669 (CFLAGS-doasin-fma.c): New.
3670 (CFLAGS-dosincos-fma.c): Likewise.
3671 (CFLAGS-e_asin-fma.c): Likewise.
3672 (CFLAGS-e_atan2-fma.c): Likewise.
3673 (CFLAGS-e_exp-fma.c): Likewise.
3674 (CFLAGS-e_log-fma.c): Likewise.
3675 (CFLAGS-e_pow-fma.c): Likewise.
3676 (CFLAGS-halfulp-fma.c): Likewise.
3677 (CFLAGS-mpa-fma.c): Likewise.
3678 (CFLAGS-mpatan-fma.c): Likewise.
3679 (CFLAGS-mpatan2-fma.c): Likewise.
3680 (CFLAGS-mpexp-fma.c): Likewise.
3681 (CFLAGS-mplog-fma.c): Likewise.
3682 (CFLAGS-mpsqrt-fma.c): Likewise.
3683 (CFLAGS-mptan-fma.c): Likewise.
3684 (CFLAGS-s_atan-fma.c): Likewise.
3685 (CFLAGS-sincos32-fma.c): Likewise.
3686 (CFLAGS-slowexp-fma.c): Likewise.
3687 (CFLAGS-slowpow-fma.c): Likewise.
3688 (CFLAGS-s_sin-fma.c): Likewise.
3689 (CFLAGS-s_tan-fma.c): Likewise.
3690 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
3691 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
3692 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
3693 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
3694 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
3695 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
3696 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
3697 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
3698 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
3699 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
3700 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
3701 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
3702 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
3703 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
3704 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
3705 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
3706 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
3707 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
3708 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
3709 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
3710 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
3711 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
3712 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
3713 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
3714 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
3715 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3716 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3717 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
3718 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3719 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3720 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3721
219dd320
JM
37222017-08-04 Joseph Myers <joseph@codesourcery.com>
3723
3724 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
3725 (min_of_type_f): New macro.
3726 (min_of_type_): Likewise.
3727 (min_of_type_l): Likewise.
3728 (min_of_type_f128): Likewise.
3729 (min_of_type): Define using __MATH_TG and taking an expression
3730 argument.
3731 (math_check_force_underflow): Pass expression instead of type to
3732 min_of_type.
3733 (math_check_force_underflow_nonneg): Likewise.
3734
64d4dea6
L
37352017-08-04 H.J. Lu <hongjiu.lu@intel.com>
3736
3737 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
3738 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
3739 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
3740
973da22a
L
37412017-08-04 H.J. Lu <hongjiu.lu@intel.com>
3742
3743 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3744 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
3745 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
3746 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
3747 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
3748 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
3749 memcpy_chk-nonshared, mempcpy_chk-nonshared,
3750 memmove_chk-nonshared and memset_chk-nonshared
3751 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
3752 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
3753 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
3754 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
3755 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
3756 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
3757 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
3758 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
3759 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
3760 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
3761 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
3762 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
3763 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
3764 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
3765 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
3766 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
3767 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
3768 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
3769 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
3770 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
3771 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
3772 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
3773 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
3774 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
3775 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
3776 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
3777 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
3778 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
3779 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
3780 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
3781 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
3782 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
3783 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
3784 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
3785 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
3786 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
3787 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
3788 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
3789 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
3790 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
3791 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
3792 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
3793 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
3794 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
3795 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
3796 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
3797 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
3798 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
3799 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
3800 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
3801 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
3802 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
3803 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
3804 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
3805 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
3806 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
3807 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
3808 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
3809 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
3810 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
3811 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
3812 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
3813 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
3814 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
3815 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
3816 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
3817 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
3818 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
3819 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
3820 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3821 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
3822 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3823 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3824 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3825 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3826 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3827 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3828 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3829 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3830 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3831 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3832 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3833 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3834 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3835 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
3836 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
3837 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3838 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
3839 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3840 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3841 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3842 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3843 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3844 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3845 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
3846 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
3847 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
3848 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
3849 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3850 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
3851 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3852 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3853 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3854 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3855 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3856 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3857 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3858 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3859
8537e0f6
L
38602017-08-04 H.J. Lu <hongjiu.lu@intel.com>
3861
3862 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
3863 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
3864 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
3865 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
3866 svml_d_log2_core-sse2, svml_d_log4_core-sse,
3867 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
3868 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
3869 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
3870 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
3871 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
3872 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
3873 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
3874 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
3875 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
3876 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
3877 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
3878 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
3879 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
3880 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
3881 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
3882 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
3883 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
3884 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
3885 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
3886 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
3887 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
3888 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
3889 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
3890 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
3891 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
3892 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
3893 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
3894 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
3895 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
3896 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
3897 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
3898 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
3899 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
3900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
3901 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
3902 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
3903 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
3904 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
3905 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
3906 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
3907 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
3908 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
3909 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
3910 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
3911 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
3912 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
3913 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
3914 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
3915 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
3916 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
3917 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
3918 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
3919 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
3920 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
3921 ...
3922 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
3923 Don't include <sysdep.h> nor <init-arch.h>.
3924 (_ZGVbN2v_cos): Removed.
3925 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
3926 ...
3927 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
3928 Don't include <sysdep.h> nor <init-arch.h>.
3929 (_ZGVdN4v_cos): Removed.
3930 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
3931 ...
3932 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
3933 Don't include <sysdep.h> nor <init-arch.h>.
3934 (_ZGVeN8v_cos): Removed.
3935 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
3936 ...
3937 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
3938 Don't include <sysdep.h> nor <init-arch.h>.
3939 (_ZGVbN2v_exp): Removed.
3940 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
3941 ...
3942 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
3943 Don't include <sysdep.h> nor <init-arch.h>.
3944 (_ZGVdN4v_exp): Removed.
3945 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
3946 ...
3947 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
3948 Don't include <sysdep.h> nor <init-arch.h>.
3949 (_ZGVeN8v_exp): Removed.
3950 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
3951 ...
3952 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
3953 Don't include <sysdep.h> nor <init-arch.h>.
3954 (_ZGVbN2v_log): Removed.
3955 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
3956 ...
3957 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
3958 Don't include <sysdep.h> nor <init-arch.h>.
3959 (_ZGVdN4v_log): Removed.
3960 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
3961 ...
3962 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
3963 Don't include <sysdep.h> nor <init-arch.h>.
3964 (_ZGVeN8v_log): Removed.
3965 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
3966 ...
3967 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
3968 Don't include <sysdep.h> nor <init-arch.h>.
3969 (_ZGVbN2vv_pow): Removed.
3970 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
3971 ...
3972 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
3973 Don't include <sysdep.h> nor <init-arch.h>.
3974 (_ZGVdN4vv_pow): Removed.
3975 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
3976 ...
3977 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
3978 Don't include <sysdep.h> nor <init-arch.h>.
3979 (_ZGVeN8vv_pow): Removed.
3980 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
3981 ...
3982 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
3983 Don't include <sysdep.h> nor <init-arch.h>.
3984 (_ZGVbN2v_sin): Removed.
3985 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
3986 ...
3987 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
3988 Don't include <sysdep.h> nor <init-arch.h>.
3989 (_ZGVbN4v_sin): Removed.
3990 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
3991 ...
3992 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
3993 Don't include <sysdep.h> nor <init-arch.h>.
3994 (_ZGVbN8v_sin): Removed.
3995 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
3996 ...
3997 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
3998 Don't include <sysdep.h> nor <init-arch.h>.
3999 (_ZGVbN2vvv_sincos): Removed.
4000 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
4001 ...
4002 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
4003 Don't include <sysdep.h> nor <init-arch.h>.
4004 (_ZGVdN4vvv_sincos): Removed.
4005 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
4006 ...
4007 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
4008 Don't include <sysdep.h> nor <init-arch.h>.
4009 (_ZGVeN8vvv_sincos): Removed.
4010 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
4011 ...
4012 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
4013 Don't include <sysdep.h> nor <init-arch.h>.
4014 (_ZGVeN16v_cosf): Removed.
4015 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
4016 ...
4017 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
4018 Don't include <sysdep.h> nor <init-arch.h>.
4019 (_ZGVbN4v_cosf): Removed.
4020 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
4021 ...
4022 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
4023 Don't include <sysdep.h> nor <init-arch.h>.
4024 (_ZGVdN8v_cosf): Removed.
4025 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
4026 ...
4027 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
4028 Don't include <sysdep.h> nor <init-arch.h>.
4029 (_ZGVeN16v_expf): Removed.
4030 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
4031 ...
4032 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
4033 Don't include <sysdep.h> nor <init-arch.h>.
4034 (_ZGVbN4v_expf): Removed.
4035 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
4036 ...
4037 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
4038 Don't include <sysdep.h> nor <init-arch.h>.
4039 (_ZGVdN8v_expf): Removed.
4040 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
4041 ...
4042 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
4043 Don't include <sysdep.h> nor <init-arch.h>.
4044 (_ZGVeN16v_logf): Removed.
4045 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
4046 ...
4047 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
4048 Don't include <sysdep.h> nor <init-arch.h>.
4049 (_ZGVbN4v_logf): Removed.
4050 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
4051 ...
4052 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
4053 Don't include <sysdep.h> nor <init-arch.h>.
4054 (_ZGVdN8v_logf): Removed.
4055 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
4056 ...
4057 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
4058 Don't include <sysdep.h> nor <init-arch.h>.
4059 (_ZGVeN16vv_powf): Removed.
4060 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
4061 ...
4062 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
4063 Don't include <sysdep.h> nor <init-arch.h>.
4064 (_ZGVbN4vv_powf): Removed.
4065 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
4066 ...
4067 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
4068 Don't include <sysdep.h> nor <init-arch.h>.
4069 (_ZGVdN8vv_powf): Removed.
4070 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
4071 ...
4072 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
4073 Don't include <sysdep.h> nor <init-arch.h>.
4074 (_ZGVeN16vvv_sincosf): Removed.
4075 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
4076 ...
4077 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
4078 Don't include <sysdep.h> nor <init-arch.h>.
4079 (_ZGVbN4vvv_sincosf): Removed.
4080 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
4081 ...
4082 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
4083 Don't include <sysdep.h> nor <init-arch.h>.
4084 (_ZGVdN8vvv_sincosf): Removed.
4085 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
4086 ...
4087 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
4088 Don't include <sysdep.h> nor <init-arch.h>.
4089 (_ZGVeN16v_sinf): Removed.
4090 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
4091 ...
4092 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
4093 Don't include <sysdep.h> nor <init-arch.h>.
4094 (_ZGVbN4v_sinf): Removed.
4095 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
4096 ...
4097 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
4098 Don't include <sysdep.h> nor <init-arch.h>.
4099 (_ZGVdN8v_sinf): Removed.
4100
10a87ca4
L
41012017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4102
4103 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4104 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
4105 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
4106 s_rint-sse4_1 and s_rintf-sse4_1.
4107 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
4108 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
4109 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
4110 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
4111 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
4112 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
4113 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
4114 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
4115 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
4116 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
4117 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
4118 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4119 (__ceil): Removed.
4120 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
4121 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
4122 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4123 (__ceilf): Removed.
4124 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
4125 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
4126 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4127 (__floor): Removed.
4128 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
4129 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
4130 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4131 (__floorf): Removed.
4132 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
4133 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
4134 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4135 (__nearbyint): Removed.
4136 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
4137 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
4138 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4139 (__nearbyintf): Removed.
4140 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
4141 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
4142 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4143 (__rint): Removed.
4144 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
4145 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
4146 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
4147 (__rintf): Removed.
4148
1e8e527d
L
41492017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4150
4151 * sysdeps/i386/start.S (_start): Check Check PIC instead of
4152 SHARED. Avoid dynamic relocation against main in static PIE.
4153
e13daad7
L
41542017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4155
4156 [BZ #21815]
4157 * elf/Makefile (CFLAGS-tst-prelink.c): New.
4158 (LDFLAGS-tst-prelink): Likewise.
4159
627c69c8
L
41602017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4161
4162 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
4163 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
4164 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
4165 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
4166 (INTERNAL_SYSCALL_NCS): Likewise.
4167 (LOADARGS_1): Likewise.
4168 (LOADARGS_5): Likewise.
4169 (RESTOREARGS_1): Likewise.
4170 (RESTOREARGS_5): Likewise.
4171
fc11ff8d
L
41722017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4173
4174 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
4175 (MEMPCPY_SYMBOL): Likewise.
4176 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4177 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
4178 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
4179 in libc.a.
4180 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4181 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4182 Likewise.
4183 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
4184 (__hidden_ver1): Don't use in libc.a.
4185 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
4186 (__mempcpy): Don't create a weak alias in libc.a.
4187 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
4188 libc.a.
4189 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
4190 (__hidden_ver1): Don't use in libc.a.
4191
19f1a11e
L
41922017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4193
4194 * config.make.in (have-insert): New.
4195 * configure.ac (libc_cv_insert): New. Set to yes if linker
4196 supports INSERT in linker script.
4197 (AC_SUBST(libc_cv_insert): New.
4198 * configure: Regenerated.
4199 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
4200 if $(have-insert) == yes.
4201
3093fd5e
L
42022017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4203
4204 * elf/Makefile (tests): Add vismain only if
4205 $(have-protected-data) == yes.
4206 (tests-pie): Likewise.
4207
d2cf37c0
L
42082017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4209
4210 [BZ #21871]
4211 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4212 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
4213
c8a0e6ec
L
42142017-08-04 H.J. Lu <hongjiu.lu@intel.com>
4215
4216 [BZ #21790]
4217 * sysdeps/i386/i586/memset.S
4218 (__memset_zero_constant_len_parameter): Removed.
4219 * sysdeps/i386/i686/memset.S
4220 (__memset_zero_constant_len_parameter): Likewise.
4221 * sysdeps/i386/i686/multiarch/memset_chk.S
4222 (__memset_zero_constant_len_parameter): Likewise.
4223 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
4224 Likewise.
4225
2b34e271
AJ
42262017-08-03 Aurelien Jarno <aurelien@aurel32.net>
4227
4228 * stdlib/getentropy.c (getentropy): Change return type to int.
4229
144bdab0
AJ
42302017-08-03 Aurelien Jarno <aurelien@aurel32.net>
4231
4232 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
4233
24ab7723
JM
42342017-08-03 Joseph Myers <joseph@codesourcery.com>
4235
4236 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
4237 u_intN_t.
4238 * math/s_nexttowardf.c (__nexttowardf): Likewise.
4239 * sysdeps/generic/math_private.h (ieee_double_shape_type):
4240 Likewise.
4241 (ieee_float_shape_type): Likewise.
4242 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
4243 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
4244 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
4245 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4246 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
4247 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
4248 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
4249 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
4250 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
4251 Likewise.
4252 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
4253 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
4254 (__ieee754_yn): Likewise.
4255 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4256 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4257 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
4258 Likewise.
4259 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
4260 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
4261 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
4262 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
4263 (__erfc): Likewise.
4264 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
4265 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
4266 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
4267 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
4268 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
4269 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
4270 Likewise.
4271 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
4272 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
4273 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
4274 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
4275 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
4276 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
4277 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
4278 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
4279 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
4280 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
4281 (__issignaling): Likewise.
4282 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
4283 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
4284 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
4285 Likewise.
4286 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4287 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4288 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
4289 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
4290 Likewise.
4291 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
4292 Likewise.
4293 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
4294 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
4295 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
4296 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
4297 (__erfcf): Likewise.
4298 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
4299 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
4300 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
4301 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
4302 Likewise.
4303 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
4304 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
4305 Likewise.
4306 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
4307 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
4308 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
4309 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
4310 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
4311 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
4312 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
4313 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
4314 Likewise.
4315 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
4316 Likewise.
4317 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
4318 Likewise.
4319 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
4320 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
4321 Likewise.
4322 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
4323 Likewise.
4324 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4325 (__ieee754_ynl): Likewise.
4326 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
4327 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
4328 Likewise.
4329 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
4330 Likewise.
4331 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
4332 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
4333 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4334 Likewise.
4335 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
4336 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
4337 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
4338 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
4339 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
4340 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
4341 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
4342 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
4343 Likewise.
4344 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
4345 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
4346 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
4347 Likewise.
4348 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
4349 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
4350 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
4351 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
4352 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
4353 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4354 Likewise.
4355 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
4356 Likewise.
4357 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4358 Likewise.
4359 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4360 Likewise.
4361 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
4362 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
4363 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4364 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
4365 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
4366 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
4367 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
4368 Likewise.
4369 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4370 Likewise.
4371 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4372 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4373 Likewise.
4374 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4375 (__ieee754_remainderl): Likewise.
4376 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4377 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4378 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4379 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4380 Likewise.
4381 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4382 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4383 Likewise.
4384 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4385 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
4386 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
4387 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
4388 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
4389 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4390 Likewise.
4391 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
4392 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
4393 (__ieee754_y0l): Likewise.
4394 (pzero): Likewise.
4395 (qzero): Likewise.
4396 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
4397 (__ieee754_y1l): Likewise.
4398 (pone): Likewise.
4399 (qone): Likewise.
4400 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4401 (__ieee754_ynl): Likewise.
4402 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
4403 (__ieee754_lgammal_r): Likewise.
4404 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
4405 Likewise.
4406 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
4407 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
4408 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
4409 (__erfcl): Likewise.
4410 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
4411 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
4412 Likewise.
4413 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
4414 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
4415 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
4416 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
4417 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
4418 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4419 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4420 Likewise.
4421 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
4422 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
4423 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
4424 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
4425 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4426 Likewise.
4427 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
4428 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
4429 Likewise.
4430 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
4431 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
4432 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
4433 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
4434 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
4435
964263bb
FW
44362017-08-03 Florian Weimer <fweimer@redhat.com>
4437
4438 [BZ #21885]
4439 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
4440 on memory allocation failure.
4441
e98c925f
AM
44422017-08-03 Alan Modra <amodra@gmail.com>
4443
4444 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
4445 tst-tlsopt-powerpc.c with function name change and no test harness.
4446 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
4447 Call tls_get_addr_opt_test.
4448 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
4449 (modules-names): Add mod-tlsopt-powerpc.
4450 (mod-tlsopt-powerpc.so-no-z-defs): Define.
4451 (tst-tlsopt-powerpc): Depend on .so.
4452 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
4453 define. Expand use in TLS_GD and TLS_LD.
4454
8ee1abdb
ST
44552017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4456
4457 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
4458 function.
3da5756e 4459 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 4460
42df8d59
JM
44612017-08-02 Joseph Myers <joseph@codesourcery.com>
4462
4463 [BZ #21686]
4464 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
4465 comparing size with that of double.
4466 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
4467 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
4468 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
4469 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
4470 (__TGMATH_BINARY_REAL_IMAG): Likewise.
4471 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
4472 unsigned __int128 types.
4473
b7f95f49
SE
44742017-08-02 Steve Ellcey <sellcey@cavium.com>
4475
4476 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
4477 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
4478 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
4479 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
4480 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
4481
5b736bc9
L
44822017-08-02 H.J. Lu <hongjiu.lu@intel.com>
4483
4484 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
4485
dfc93c41
L
44862017-08-02 H.J. Lu <hongjiu.lu@intel.com>
4487
4488 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
4489 of SHARED.
4490 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
4491 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4492 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4493 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4494 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4495 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4496 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4497
2fee621d
JM
44982017-08-02 Joseph Myers <joseph@codesourcery.com>
4499
4500 [BZ #21685]
4501 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
4502 bit-field expressions passed to sizeof or typeof.
4503 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4504 (__TGMATH_F128): Likewise.
4505 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4506 (__TGMATH_CF128): Likewise.
4507 (__TGMATH_UNARY_REAL_ONLY): Likewise.
4508 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
4509 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
4510 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
4511 (__TGMATH_BINARY_REAL_ONLY): Likewise.
4512 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
4513 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
4514 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
4515 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
4516 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
4517 (__TGMATH_UNARY_REAL_IMAG): Likewise.
4518 (__TGMATH_UNARY_IMAG): Likewise.
4519 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
4520 (__TGMATH_BINARY_REAL_IMAG): Likewise.
4521 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
4522 type.
4523 (define_vars_for_type): Handle bit_field type specially.
4524 (Tests.__init__): Declare structure with bit-field element.
4525
b358255f
L
45262017-08-02 H.J. Lu <hongjiu.lu@intel.com>
4527
4528 [BZ #21791]
4529 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
4530 (MEMCPY_CHK): Define only if SHARED is defined.
4531 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
4532 Likewise.
4533 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
4534 Likewise.
edf66db1
SP
4535
4536See ChangeLog.18 for earlier changes.