]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Mark 3 *_internal functions with attribute_hidden [BZ #18822]
[thirdparty/glibc.git] / ChangeLog
CommitLineData
ef9b6f73
L
12017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2
3 [BZ #18822]
4 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
5 * include/time.h (__mktime_internal): Likewise.
6 * libio/iolibio.h (__fopen_internal): Likewise.
7
8da92e72
JDA
82017-10-01 John David Anglin <danglin@gcc.gnu.org>
9
10 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
11 pointer in frame.
12 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
13 Correct offset used to restore PIC register.
14
388784cf
JDA
152017-09-30 John David Anglin <danglin@gcc.gnu.org>
16
17 [BZ libc/22165]
18 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
19 code to load address of __getcontext_ret when generating PIC code.
20
2000067a
L
212017-09-30 H.J. Lu <hongjiu.lu@intel.com>
22
23 * elf/Makefile (tests-static-internal): Add
24 tst-tls1-static-non-pie.
25 (LDFLAGS-tst-tls1-static-non-pie): New.
26 * elf/tst-tls1-static-non-pie.c: New file.
27
1e2bffd0
JM
282017-09-29 Joseph Myers <joseph@codesourcery.com>
29
30 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
31 (asinh): Define using libm_alias_double.
32 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
33 (cbrt): Define using libm_alias_double.
34 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
35 <libm-alias-double.h>.
36 (copysign): Define using libm_alias_double.
37 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
38 (erf): Define using libm_alias_double.
39 (erfc): Likewise.
40 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
41 (expm1): Define using libm_alias_double.
42 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
43 (fabs): Define using libm_alias_double.
44 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
45 libm_alias_double.
46 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
47 <libm-alias-double.h>.
48 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
49 libm_alias_double.
50 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
51 <libm-alias-double.h>.
52 (getpayload): Define using libm_alias_double.
53 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
54 <libm-alias-double.h>.
55 (llrint): Define using libm_alias_double.
56 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
57 (lrint): Define using libm_alias_double.
58 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
59 <libm-alias-double.h>.
60 (nextup): Define using libm_alias_double.
61 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
62 <libm-alias-double.h>.
63 (roundeven): Define using libm_alias_double.
64 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
65 libm_alias_double.
66 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
67 <libm-alias-double.h>.
68 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
69 using libm_alias_double.
70 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
71 (cos): Define using libm_alias_double.
72 (sin): Likewise.
73 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
74 <libm-alias-double.h>.
75 (sincos): Define using libm_alias_double.
76 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
77 (tanh): Define using libm_alias_double.
78 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
79 <libm-alias-double.h>.
80 (totalorder): Define using libm_alias_double.
81 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
82 <libm-alias-double.h>.
83 (totalordermag): Define using libm_alias_double.
84 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
85 libm_alias_double.
86 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
87 libm_alias_double.
88 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
89 <libm-alias-double.h>.
90 (getpayload): Define using libm_alias_double.
91 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
92 <libm-alias-double.h>.
93 (roundeven): Define using libm_alias_double.
94 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
95 <libm-alias-double.h>.
96 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
97 <libm-alias-double.h>.
98 (totalorder): Define using libm_alias_double.
99 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
100 <libm-alias-double.h>.
101 (totalordermag): Define using libm_alias_double.
102 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
103 libc compat symbol here.
104 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
105 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
106 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
107 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
108 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
109 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
110 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
111 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
112 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
113 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
114
8172aad9
L
1152017-09-29 H.J. Lu <hongjiu.lu@intel.com>
116
117 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
118 _dl_relocate_static_pie instead of _dl_start to compute load
119 address in static PIE. Return 0 if _DYNAMIC is undefined for
120 static executable.
121
54464e74
L
1222017-09-29 H.J. Lu <hongjiu.lu@intel.com>
123
124 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
125 _DYNAMIC is undefined for static executable.
126
f6c5e5bc
L
1272017-09-29 H.J. Lu <hongjiu.lu@intel.com>
128
129 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
130
2f92505d
JM
1312017-09-29 Joseph Myers <joseph@codesourcery.com>
132
133 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
134
bd8d53bb
WD
1352017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
136
137 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
138 (__ieee754_lgamma_r): Use fabs rather than __fabs.
139 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
140 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
141 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
142 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
143 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
144 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
145 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
146 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
147 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
148 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
149 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
150 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
151 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
152 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
153 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
154
fffb1507
WD
1552017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
156
157 * math/bits/cmathcalls.h (cimag): Remove inline.
158 (creal): Remove inline.
159 (conj): Remove inline.
160
4ea49f4c
SN
1612017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
162
163 * math/Makefile (type-float-routines): Add e_powf_log2_data.
164 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
165 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
166 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
167 (issignalingf_inline): Likewise.
168 (POWF_LOG2_TABLE_BITS): Likewise.
169 (POWF_LOG2_POLY_ORDER): Likewise.
170 (POWF_SCALE_BITS): Likewise.
171 (POWF_SCALE): Likewise.
172 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
173 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
174 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
175
875c76c7
SN
1762017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
177
178 * math/Makefile (type-float-routines): Add e_log2f_data.
179 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
180 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
181 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
182 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
183 * sysdeps/i386/fpu/e_log2f_data.c: New file.
184 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
185 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
186
90c42e40
SN
1872017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
188
189 * math/Makefile (type-float-routines): Add e_logf_data.
190 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
191 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
192 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
193 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
194 * sysdeps/i386/fpu/e_logf_data.c: New file.
195 * sysdeps/ia64/fpu/e_logf_data.c: New file.
196 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
197
4088d8dd
L
1982017-09-28 H.J. Lu <hongjiu.lu@intel.com>
199
200 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
201 undefined _DYNAMIC in PIE libc.a.
202 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
203 Likewse.
204
4d3693ec
WD
2052017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
206
207 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
208 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
209 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
210 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
211 (__signbit): Remove.
212 (__signbitl): Remove.
213 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
214 (__signbit): Remove.
215 (__signbitl): Remove.
216 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
217 (__signbit): Remove.
218 (__signbitl): Remove.
219 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
220 (__signbit): Remove.
221 (__signbitl): Remove.
222 * sysdeps/tile/bits/mathinline.h: Delete file.
223 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
224 (__signbit): Remove.
225 (__signbitl): Remove.
226
1e6d0723
WD
2272017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
228
229 * math/math.h: Improve handling of C99 isgreater macros.
230 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
231 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
232 * sysdeps/powerpc/bits/mathinline.h: Likewise.
233 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
234 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
235
b2f03cf3
SN
2362017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
237
238 * sysdeps/aarch64/libm-test-ulps: Update.
239
f124cb38
JM
2402017-09-28 Joseph Myers <joseph@codesourcery.com>
241
242 [BZ #22225]
243 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
244 math_opt_barrier on argument when doing arithmetic on it.
245 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
246 Likewise. Use math_force_eval not math_opt_barrier after
247 arithmetic.
248 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
249 math_opt_barrier on argument when doing arithmetic on it.
250 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
251 Likewise.
252
7edd0691
L
2532017-09-27 H.J. Lu <hongjiu.lu@intel.com>
254
255 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
256 libc_hidden_def.
257 (__freeifaddrs): Likewise.
258
2c7bbfaf
ST
2592017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
260
261 * include/dirent.h (__dirfd): New declaration.
262 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
263 alias.
264 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
265 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
266 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
267 * include/unistd.h (__revoke): New declaration.
268 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
269 alias.
270 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
271 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
272 revoke.
64a4af28
ST
273 * include/dirent.h (__seekdir): New declaration.
274 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
275 redefine as weak alias.
276 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
277 of seekdir.
4009ddc6
ST
278 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
279 and use libc_hidden_def on them.
280 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
281 them.
282 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
283 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
284 instead of getifaddrs and freeifaddrs.
2c7bbfaf 285
825adeee
L
2862017-09-26 H.J. Lu <hongjiu.lu@intel.com>
287
288 [BZ #18822]
289 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
290 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
291 (__dso_handle): Remove declaration.
292 * dlfcn/tstatexit.c (__dso_handle): Removed.
293 (main): Don't check __dso_handle.
294 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
295 (main): Don't check __dso_handle.
296 * include/dso_handle.h: New file.
297 * malloc/mtrace.c: Include <dso_handle.h>.
298 (mtrace): Pass __dso_handle directly.
299 * nptl/pthread_atfork.c: Include <dso_handle.h>.
300 (__dso_handle): Remove declaration.
301 (__pthread_atfork): Pass __dso_handle directly.
302 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
303 (__dso_handle): Removed.
304 * posix/wordexp-test.c: Include <dso_handle.h>.
305 (__dso_handle): Remove declaration.
306 (__app_register_atfork): Pass __dso_handle directly.
307 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
308 (__dso_handle): Remove declaration.
309 (at_quick_exit): Pass __dso_handle directly.
310 * stdlib/atexit.c: Include <dso_handle.h>.
311 (__dso_handle): Remove declaration.
312 (atexit): Pass __dso_handle directly.
313 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
314 (__dso_handle): Removed.
315
bfb0deb3
JM
3162017-09-26 Joseph Myers <joseph@codesourcery.com>
317
318 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
319 using VDSO.
320
cebcb9f8
AM
3212017-09-26 Alexey Makhalov <amakhalov@vmware.com>
322
323 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
324 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
325 values to correct default value for given type.
326
592d5c75
L
3272017-09-26 H.J. Lu <hongjiu.lu@intel.com>
328
329 [BZ #22101]
330 * elf/Makefile (tests): Add tst-debug1.
331 ($(objpfx)tst-debug1): New.
332 ($(objpfx)tst-debug1.out): Likewise.
333 ($(objpfx)tst-debug1mod1.so): Likewise.
334 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
335 with p_filesz == 0.
336 * elf/tst-debug1.c: New file.
337
2d9193f2
JM
3382017-09-26 Joseph Myers <joseph@codesourcery.com>
339
340 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
341 Define using __ifunc.
342
4c5a7a02
TMQMF
3432017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
344
345 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
346 exp2f() values.
347
12ef66c4
JM
3482017-09-26 Joseph Myers <joseph@codesourcery.com>
349
350 [BZ #22156]
351 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
352
44dade71
FW
3532017-09-26 Florian Weimer <fweimer@redhat.com>
354
355 * resolv/Makefile (tests-internal): Fix typo in comment.
356
eaca16f1
FW
3572017-09-26 Florian Weimer <fweimer@redhat.com>
358
359 * resolv/nss_dns/dns-host.c: Fix typo in comment.
360
ccf970c7
AZ
3612017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
362
5f9f31ad
AZ
363 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
364 Use an union instead of a max_align_t array for __space,
365 so that __space is the same size on all platforms.
366 * malloc/scratch_buffer_grow_preserve.c
367 (__libc_scratch_buffer_grow_preserve): Likewise.
368
ccf970c7
AZ
369 [BZ #22183]
370 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
371 version to 2.
372 * posix/Makefile (routines): Add glob-lstat-compat and
373 glob64-lstat-compat.
374 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
375 * posix/glob-lstat-compat.c: New file.
376 * posix/glob64-lstat-compat.c: Likewise.
377 * posix/tst-glob_lstat_compat.c: Likewise.
378 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
379 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
380 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
381 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
382 Likewise.
383 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
384 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
385 * posix/glob.c (glob_lstat): New function.
386 (glob): Rename to __glob and add versioned symbol to 2.27.
387 (glob_in_dir): Use glob_lstat.
388 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
389 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
390 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
391 2.27.
392 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
393 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
394 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
395 gl_lstat on glob call.
396 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
397 and glob64 symbols.
398 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
399 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
400 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
401 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
402 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
403 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
404 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
405 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
406 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
407 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
408 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
409 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
411 Likewise.
412 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
414 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
415 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
416 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
417 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
418 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
419 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
420 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
421 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
422 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
423 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
424
b4396163
L
4252017-09-25 H.J. Lu <hongjiu.lu@intel.com>
426
427 * configure.ac (AS): Require binutils 2.25 or later.
428 * configure: Regenerated.
429
8f834987
PP
4302017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
431
432 [BZ #22207]
433 * stdlib/test-atexit-race-common.c (do_test): Minimize required
434 VM size.
435
3de93d19
DD
4362017-09-25 DJ Delorie <dj@redhat.com>
437
438 [BZ #22161]
439 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
440 resetting timeout.
441
9947638d
SL
4422017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
443
444 * sysdeps/ieee754/dbl-64/sincos32.h
445 [SINCCOS32_H]: Remove define.
446 [SINCOS32_H]: Define.
447
f5f0f526
SN
4482017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
449
450 * math/Versions (expf): New libm symbol at GLIBC_2.27.
451 (exp2f): Likewise.
452 * math/w_exp2f.c: New file.
453 * math/w_expf.c: New file.
454 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
455 * math/w_expf_compat.c (__expf_compat): Likewise.
456 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
457 * sysdeps/ia64/fpu/e_expf.S: Likewise.
458 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
459 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
460 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
461 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
462 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
463 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
464 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
465 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
466 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
467 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
468 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
469 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
471 Likewise.
472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
473 Likewise.
474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
475 Likewise.
476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
477 Likewise.
478 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
479 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
480 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
481 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
482 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
483 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
484 Likewise.
485 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
486 Likewise.
487 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
488 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
489 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
490
72aa6233
SN
4912017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
492
493 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
494 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
495 (roundtoint, converttoint): Likewise.
496 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
497 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
498 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
499 * sysdeps/ieee754/flt-32/math_config.h: New file.
500 * sysdeps/ieee754/flt-32/math_errf.c: New file.
501 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
502 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
503 * sysdeps/i386/fpu/math_errf.c: New file.
504 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
505 * sysdeps/ia64/fpu/math_errf.c: New file.
506 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
507 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
508
5e6f3253
ST
5092017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
510
511 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
512 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
513 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
514 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
515 to make sure that these symbols are defined.
b38a42a0
ST
516 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
517 of <limits.h>
518 (__need_NULL): Do not define.
519 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
520 alignment.
521 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
522 CMGROUP_MAX, cmsgcred): Do not define.
523 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
524 NULL.
525 * bits/socket.h: Likewise.
fcafcd16
ST
526 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
527 __gettimeofday instead of gettimeofday.
528 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
529 instead of settimeofday.
5e6f3253 530
2f49ce7d
JM
5312017-09-22 Joseph Myers <joseph@codesourcery.com>
532
533 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
534 (asinhf): Define using libm_alias_float.
535 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
536 (atanf): Define using libm_alias_float.
537 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
538 (cbrtf): Define using libm_alias_float.
539 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
540 (ceilf): Define using libm_alias_float.
541 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
542 <libm-alias-float.h>.
543 (copysignf): Define using libm_alias_float.
544 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
545 (cosf): Define using libm_alias_float.
546 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
547 (erff): Define using libm_alias_float.
548 (erfcf): Likewise.
549 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
550 (expm1f): Define using libm_alias_float.
551 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
552 (fabsf): Define using libm_alias_float.
553 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
554 (floorf): Define using libm_alias_float.
555 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
556 (frexpf): Define using libm_alias_float.
557 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
558 libm_alias_float.
559 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
560 <libm-alias-float.h>.
561 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
562 libm_alias_float.
563 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
564 <libm-alias-float.h>.
565 (getpayloadf): Define using libm_alias_float.
566 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
567 <libm-alias-float.h>.
568 (llrintf): Define using libm_alias_float.
569 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
570 <libm-alias-float.h>.
571 (llroundf): Define using libm_alias_float.
572 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
573 (logbf): Define using libm_alias_float.
574 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
575 (lrintf): Define using libm_alias_float.
576 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
577 (lroundf): Define using libm_alias_float.
578 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
579 (modff): Define using libm_alias_float.
580 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
581 <libm-alias-float.h>.
582 (nearbyintf): Define using libm_alias_float.
583 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
584 <libm-alias-float.h>.
585 (nextafterf): Define using libm_alias_float.
586 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
587 <libm-alias-float.h>.
588 (nextupf): Define using libm_alias_float.
589 * sysdeps/ieee754/flt-32/s_remquof.c: Include
590 <libm-alias-float.h>.
591 (remquof): Define using libm_alias_float.
592 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
593 (rintf): Define using libm_alias_float.
594 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
595 <libm-alias-float.h>.
596 (roundevenf): Define using libm_alias_float.
597 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
598 (roundf): Define using libm_alias_float.
599 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
600 using libm_alias_float.
601 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
602 <libm-alias-float.h>.
603 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
604 Define using libm_alias_float.
605 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
606 <libm-alias-float.h>.
607 (sincosf): Define using libm_alias_float.
608 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
609 (sinf): Define using libm_alias_float.
610 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
611 (tanf): Define using libm_alias_float.
612 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
613 (tanhf): Define using libm_alias_float.
614 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
615 <libm-alias-float.h>.
616 (totalorderf): Define using libm_alias_float.
617 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
618 <libm-alias-float.h>.
619 (totalordermagf): Define using libm_alias_float.
620 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
621 (truncf): Define using libm_alias_float.
622 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
623 libm_alias_float.
624 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
625 libm_alias_float.
626
c5c4a626
GG
6272017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
628
629 [BZ #22146]
630 math/math.h: Let fpclassify use the builtin in C++ mode, even
631 when optimazing for size.
632
23947846
JM
6332017-09-22 Joseph Myers <joseph@codesourcery.com>
634
635 * csu/Makefile (generated): Do not add version-info.h.
636 (before-compile): Likewise.
637 (all-Banner-files): Remove variable.
638 ($(objpfx)version-info.h): Remove rule.
639 * csu/version.c (banner): Do not include "version-info.h".
640 * libidn/Banner: Remove.
641 * manual/contrib.texi (Simon Josefsson): New entry.
642
9ac3c682
GG
6432017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
644
645 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
646 Remove conditionals on LDBL_MANT_DIG.
647 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
648 (__ieee754_lgammal_r): Likewise.
649
d2f0ed09
GG
6502017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
651
652 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
653 _Float128 and L().
654 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
655 _Float128 and L(). Replace _Float128 with long double and L(x)
656 with xL, throughout the file.
657 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
658 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
659 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
660 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
661
c5c2e667
GG
6622017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
663
664 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
665 sysdeps/ieee754/ldbl-128ibm.
666 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
667 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
668 of including it. Keep _Float128 and L() intact. These will be
669 reviewed by a separate patch.
670 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
671 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
672 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
673 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
674
e010deb2
GG
6752017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
676
677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
678 (__finitef128): Define to __redirect___finitef128.
679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
680 (__isinff128): Define to __redirect___isinff128.
681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
682 (__isnanf128): Define to __redirect___isnanf128.
683
ffa44804
GG
6842017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
685
686 * sysdeps/powerpc/powerpc64le/Makefile
687 (CFLAGS-tst-strtod-nan-locale.c): New variable.
688 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
689
e5e4d7cc
PP
6902017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
691 Carlos O'Donell <carlos@redhat.com>
692
693 [BZ #22180]
694 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
695 * stdlib/test-dlclose-exit-race.c: New file.
696 * stdlib/test-dlclose-exit-race-helper.c: New file.
697 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
698
c10c5267
JM
6992017-09-21 Joseph Myers <joseph@codesourcery.com>
700
701 * crypt/Banner: Remove file.
702 * nptl/Banner: Likewise.
703 * resolv/Banner: Likewise.
704 * soft-fp/Banner: Likewise.
705 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
706 ($(objpfx)version.d): Remove dependency on banner.h.
707 ($(objpfx)version.os): Likewise.
708 * nptl/version.c (banner): Do not include banner.h.
709 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
710 Jelinek and BIND code.
711
1cc9e59a
PP
7122017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
713 Carlos O'Donell <carlos@redhat.com>
714
715 * support/xdlfcn.h: New file.
716 * support/xdlfcn.c: New file.
717 * support/Makefile (libsupport-routines): Add xdlfcn.
718 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
719
ae8372d7
JM
7202017-09-20 Joseph Myers <joseph@codesourcery.com>
721
722 [BZ #20142]
723 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
724 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
725 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
726 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
727 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
728 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
729 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
730 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
731
26e70aec
PP
7322017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
733 Ricky Zhou <rickyz@google.com>
734 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
735
736 [BZ #14333]
737 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
738 Remove atomics.
739 (__new_exitfn): Fail registration when we finished at_exit processing.
740 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
741 * stdlib/on_exit.c (__on_exit): Likewise.
742 * stdlib/exit.c (__exit_funcs_done): New variable.
743 (__run_exit_handlers): Use __exit_funcs_lock.
744 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
745 declarations.
746 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
747 (test-cxa_atexit-race, test-on_exit-race): New tests.
748 * stdlib/test-atexit-race-common.c: New file.
749 * stdlib/test-atexit-race.c: New file.
750 * stdlib/test-at_quick_exit-race.c: New file.
751 * stdlib/test-cxa_atexit-race.c: New file.
752 * stdlib/test-on_exit-race.c: New file.
753
0525ce48
SN
7542017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
755
756 * benchtests/Makefile: Add exp2f and log2f benchmarks.
757 * benchtests/exp2f-inputs: Copy of expf-inputs.
758 * benchtests/log2f-inputs: Copy of logf-inputs.
759
d82468d1
JM
7602017-09-19 Joseph Myers <joseph@codesourcery.com>
761
762 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
763 Explicitly take address of first element of array arguments in
764 call to INLINE_SYSCALL.
765
43ffc53a
AS
7662017-09-19 Andreas Schwab <schwab@suse.de>
767
768 [BZ #22134]
769 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
770 execveat first.
771 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
772 unimplemented.
773 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
774 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
775 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
776 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
777 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
778 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
779 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
780 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
781 * posix/Makefile (tests): Add tst-fexecve.
782 * posix/tst-fexecve.c: New file.
783
a5dcc87e
WD
7842017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
785
786 * benchtests/Makefile: Add logf benchmark.
787 * benchtests/logf-inputs: Add reduced trace from wrf_r.
788
7024d544
WD
7892017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
790
791 * benchtests/Makefile: Add expf benchmark.
792 * benchtests/expf-inputs: Add reduced trace from wrf_r.
793
ca3a382e
WD
7942017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
795
796 * csu/Makefile: Add -funwind-tables to libc-start.c.
797 * debug/Makefile: Add -funwind-tables to backtrace.c.
798 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
799 * sysdeps/arm/Makefile: Likewise.
800 * sysdeps/i386/Makefile: Likewise.
801 * sysdeps/m68k/Makefile: Likewise.
802 * sysdeps/mips/Makefile: Likewise.
803 * sysdeps/nios2/Makefile: Likewise.
804 * sysdeps/sh/Makefile: Likewise.
805 * sysdeps/sparc/Makefile: Likewise.
806
eb375def
JM
8072017-09-19 Joseph Myers <joseph@codesourcery.com>
808
809 * benchtests/Makefile (bench-math): Add trunc and truncf.
810 (CFLAGS-bench-trunc.c): New variable.
811 (CFLAGS-bench-truncf.c): Likewise.
812 * benchtests/trunc-inputs: New file.
813 * benchtests/truncf-inputs: Likewise.
814
bd17ba29
RS
8152017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
816
817 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
818
92892fdb
JM
8192017-09-18 Joseph Myers <joseph@codesourcery.com>
820
6d9b0b5a
JM
821 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
822 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
823 redefine.
824 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
825 (exp10l): Define as weak alias.
826 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
827 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
828 and redefine.
829 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
830 (remainderl): Define as weak alias.
831
92892fdb
JM
832 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
833 (fmal): Define using libm_alias_ldouble.
834 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
835 (acoshl): Define using libm_alias_ldouble.
836 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
837 (acosl): Define using libm_alias_ldouble.
838 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
839 (asinl): Define using libm_alias_ldouble.
840 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
841 (atan2l): Define using libm_alias_ldouble.
842 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
843 (atanhl): Define using libm_alias_ldouble.
844 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
845 (coshl): Define using libm_alias_ldouble.
846 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
847 (exp10l): Define using libm_alias_ldouble.
848 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
849 (exp2l): Define using libm_alias_ldouble.
850 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
851 (expl): Define using libm_alias_ldouble.
852 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
853 (fmodl): Define using libm_alias_ldouble.
854 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
855 (hypotl): Define using libm_alias_ldouble.
856 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
857 (j0l): Define using libm_alias_ldouble.
858 (y0l): Likewise.
859 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
860 (j1l): Define using libm_alias_ldouble.
861 (y1l): Likewise.
862 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
863 (jnl): Define using libm_alias_ldouble.
864 (ynl): Likewise.
865 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
866 (log10l): Define using libm_alias_ldouble.
867 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
868 (log2l): Define using libm_alias_ldouble.
869 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
870 (logl): Define using libm_alias_ldouble.
871 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
872 (powl): Define using libm_alias_ldouble.
873 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
874 (remainderl): Define using libm_alias_ldouble.
875 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
876 (sinhl): Define using libm_alias_ldouble.
877 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
878 (sqrtl): Define using libm_alias_ldouble.
879 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
880 (tgammal): Define using libm_alias_ldouble.
881 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
882 (exp10l): Do not use long_double_symbol here.
883 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
884 [LIBM_SVID_COMPAT] (remainderl): Likewise.
885 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
886 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
887 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
888 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
889 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
890 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
891 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
892 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
893 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
894 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
895 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
896 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
897 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
898 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
899 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
900 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
901 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
902 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
903 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
904 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
905
6cd380dd
WB
9062017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
907
908 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
909 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
910
1c6d89e9
ST
9112017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
912
913 * io/read.c (read): Add libc_hidden_weak.
914 * sysdeps/mach/hurd/read.c (read): Likewise.
915 * io/write.c (write): Likewise.
916 * sysdeps/mach/hurd/write.c (write): Likewise.
917 * io/pread64.c (__pread64): Likewise.
918 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
919 * posix/pread64.c (__pread64): Add libc_hidden_def.
920
06b1de23
SP
9212017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
922
140647ea
SP
923 * benchtests/scripts/compare_strings.py: New option -g.
924 (draw_graph): Print a message that a graph is being generated.
925 (process_results): Generate graph only if -g is passed.
926 (main): Process option -g.
927
5a6547b7
SP
928 * benchtests/scripts/compare_strings.py (process_results):
929 Better spacing for output.
930
06b1de23
SP
931 * benchtests/scripts/compare_strings.py: Use argparse.
932 * benchtests/README: Document existence of compare_strings.py.
933
c67a2328
JM
9342017-09-15 Joseph Myers <joseph@codesourcery.com>
935
9ac44708
JM
936 * math/s_fma.c: Include <libm-alias-double.h>.
937 (fma): Define using libm_alias_double.
938 * math/s_nextafter.c: Include <libm-alias-double.h>.
939 (nextafter): Define using libm_alias_double.
940 * math/w_acos_compat.c: Include <libm-alias-double.h>.
941 (acos): Define using libm_alias_double.
942 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
943 (aocsh): Define using libm_alias_double.
944 * math/w_asin_compat.c: Include <libm-alias-double.h>.
945 (asin): Define using libm_alias_double.
946 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
947 (atan2): Define using libm_alias_double.
948 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
949 (atanh): Define using libm_alias_double.
950 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
951 (cosh): Define using libm_alias_double.
952 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
953 (exp10): Define using libm_alias_double.
954 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
955 (exp2): Define using libm_alias_double.
956 * math/w_exp_compat.c: Include <libm-alias-double.h>.
957 (exp): Define using libm_alias_double.
958 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
959 (fmod): Define using libm_alias_double.
960 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
961 (hypot): Define using libm_alias_double.
962 * math/w_j0_compat.c: Include <libm-alias-double.h>.
963 (j0): Define using libm_alias_double.
964 (y0): Likewise.
965 * math/w_j1_compat.c: Include <libm-alias-double.h>.
966 (j1): Define using libm_alias_double.
967 (y1): Likewise.
968 * math/w_jn_compat.c: Include <libm-alias-double.h>.
969 (jn): Define using libm_alias_double.
970 (yn): Likewise.
971 * math/w_log10_compat.c: Include <libm-alias-double.h>.
972 (log10): Define using libm_alias_double.
973 * math/w_log2_compat.c: Include <libm-alias-double.h>.
974 (log2): Define using libm_alias_double.
975 * math/w_log_compat.c: Include <libm-alias-double.h>.
976 (log): Define using libm_alias_double.
977 * math/w_pow_compat.c: Include <libm-alias-double.h>.
978 (pow): Define using libm_alias_double.
979 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
980 (remainder): Define using libm_alias_double.
981 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
982 (sinh): Define using libm_alias_double.
983 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
984 (sqrt): Define using libm_alias_double.
985 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
986 (tgamma): Define using libm_alias_double.
987 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
988 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
989 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
990 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
991 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
992 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
993 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
994 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
995 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
996 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
997 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
998 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
999 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
1000 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
1001 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
1002 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
1003 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
1004 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
1005 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
1006 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
1007 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
1008 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
1009 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
1010 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
1011 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
1012
c67a2328
JM
1013 * math/e_acoshl.c: Remove.
1014 * math/e_acosl.c: Likewise.
1015 * math/e_asinl.c: Likewise.
1016 * math/e_atan2l.c: Likewise.
1017 * math/e_atanhl.c: Likewise.
1018 * math/e_coshl.c: Likewise.
1019 * math/e_expl.c: Likewise.
1020 * math/e_fmodl.c: Likewise.
1021 * math/e_gammal_r.c: Likewise.
1022 * math/e_hypotl.c: Likewise.
1023 * math/e_j0l.c: Likewise.
1024 * math/e_j1l.c: Likewise.
1025 * math/e_jnl.c: Likewise.
1026 * math/e_lgammal_r.c: Likewise.
1027 * math/e_log10l.c: Likewise.
1028 * math/e_log2l.c: Likewise.
1029 * math/e_logl.c: Likewise.
1030 * math/e_powl.c: Likewise.
1031 * math/e_rem_pio2l.c: Likewise.
1032 * math/e_sinhl.c: Likewise.
1033 * math/e_sqrtf128.c: Likewise.
1034 * math/e_sqrtl.c: Likewise.
1035 * math/k_cosl.c: Likewise.
1036 * math/k_sinl.c: Likewise.
1037 * math/k_tanl.c: Likewise.
1038 * math/s_asinhl.c: Likewise.
1039 * math/s_atanl.c: Likewise.
1040 * math/s_cbrtl.c: Likewise.
1041 * math/s_erfl.c: Likewise.
1042 * math/s_expm1l.c: Likewise.
1043 * math/s_log1pl.c: Likewise.
1044 * math/s_tanhl.c: Likewise.
1045
61c45f25
TMQMF
10462017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1047
1048 [BZ #21745]
1049 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
1050 [$(subdir) = math] (sysdep_calls): New variable. Has the
1051 previous contents of sysdep_routines, but re-sorted..
1052 [$(subdir) = math] (sysdep_routines): Re-use the contents from
1053 sysdep_calls.
1054 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
1055 defined in sysdep_calls and replace by the respective m_* names.
1056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
1057 (compat_symbol): Undefine to avoid duplicated compat symbols in
1058 libc.
1059
5bcdb315
JM
10602017-09-15 Joseph Myers <joseph@codesourcery.com>
1061
1062 * math/s_fmaf.c: Include <libm-alias-float.h>.
1063 (fmaf): Define using libm_alias_float.
1064 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
1065 (acosf): Define using libm_alias_float.
1066 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
1067 (acoshf): Define using libm_alias_float.
1068 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
1069 (asinf): Define using libm_alias_float.
1070 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
1071 (atan2f): Define using libm_alias_float.
1072 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
1073 (atanhf): Define using libm_alias_float.
1074 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
1075 (coshf): Define using libm_alias_float.
1076 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
1077 (exp10f): Define using libm_alias_float.
1078 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
1079 (fmodf): Define using libm_alias_float.
1080 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
1081 (hypotf): Define using libm_alias_float.
1082 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
1083 (j0f): Define using libm_alias_float.
1084 (y0f): Likewise.
1085 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
1086 (j1f): Define using libm_alias_float.
1087 (y1f): Likewise.
1088 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
1089 (jnf): Define using libm_alias_float.
1090 (ynf): Likewise.
1091 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
1092 (log10f): Define using libm_alias_float.
1093 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
1094 (log2f): Define using libm_alias_float.
1095 * math/w_logf_compat.c: Include <libm-alias-float.h>.
1096 (logf): Define using libm_alias_float.
1097 * math/w_powf_compat.c: Include <libm-alias-float.h>.
1098 (powf): Define using libm_alias_float.
1099 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
1100 (remainderf): Define using libm_alias_float.
1101 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
1102 (sinhf): Define using libm_alias_float.
1103 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
1104 (sqrtf): Define using libm_alias_float.
1105 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
1106 (tgammaf): Define using libm_alias_float.
1107
01f28812
JM
11082017-09-14 Joseph Myers <joseph@codesourcery.com>
1109
1110 * include/math.h (roundeven): Change hidden_proto call to
1111 __roundeven.
1112 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
1113 alias.
1114 [NO_LONG_DOUBLE] (__j0l): New strong alias.
1115 (y0): Rename to __y0 and define as weak alias.
1116 [NO_LONG_DOUBLE] (__y0l): New strong alias.
1117 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
1118 alias.
1119 (y0f): Rename to __y0f and define as weak alias.
1120 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
1121 alias.
1122 [NO_LONG_DOUBLE] (__j1l): New strong alias.
1123 (y1): Rename to __y1 and define as weak alias.
1124 [NO_LONG_DOUBLE] (__y1l): New strong alias.
1125 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
1126 alias.
1127 (y1f): Rename to __y1f and define as weak alias.
1128 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
1129 alias.
1130 [NO_LONG_DOUBLE] (__jnl): New strong alias.
1131 (yn): Rename to __yn and define as weak alias.
1132 [NO_LONG_DOUBLE] (__ynl): New strong alias.
1133 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
1134 alias.
1135 (ynf): Rename to __ynf and define as weak alias.
1136 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
1137 (fromfp): Define as weak alias.
1138 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
1139 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
1140 (fromfpx): Define as weak alias.
1141 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
1142 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
1143 __getpayload and define as weak alias.
1144 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
1145 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
1146 __roundeven and define as weak alias.
1147 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
1148 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
1149 __setpayload.
1150 (setpayload): Define as weak alias.
1151 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
1152 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
1153 __setpayloadsig.
1154 (setpayloadsig): Define as weak alias.
1155 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
1156 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
1157 __totalorder and define as weak alias.
1158 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
1159 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
1160 to __totalordermag and define as weak alias.
1161 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
1162 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
1163 (ufromfp): Define as weak alias.
1164 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
1165 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
1166 __ufromfpx.
1167 (ufromfpx): Define as weak alias.
1168 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
1169 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
1170 Rename to __getpayload and define as weak alias.
1171 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
1172 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
1173 Rename to __roundeven and define as weak alias.
1174 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
1175 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
1176 Rename to __totalorder and define as weak alias.
1177 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
1178 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
1179 (totalordermag): Rename to __totalordermag and define as weak
1180 alias.
1181 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
1182 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
1183 macro.
1184 (__roundevenl): Likewise.
1185 (__totalorderl): Likewise.
1186 (__totalordermagl): Likewise
1187 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
1188 __fromfpf128.
1189 (fromfpf128): Define as weak alias.
1190 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
1191 __fromfpxf128.
1192 (fromfpxf128): Define as weak alias.
1193 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
1194 __setpayloadf128.
1195 (setpayloadf128): Define as weak alias.
1196 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
1197 __setpayloadsigf128.
1198 (setpayloadsigf128): Define as weak alias.
1199 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
1200 __ufromfpf128.
1201 (ufromfpf128): Define as weak alias.
1202 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
1203 __ufromfpxf128.
1204 (ufromfpxf128): Define as weak alias.
1205 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
1206 (fromfpf): Define as weak alias.
1207 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
1208 __fromfpxf.
1209 (fromfpxf): Define as weak alias.
1210 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
1211 __getpayloadf and define as weak alias.
1212 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
1213 __roundevenf and define as weak alias.
1214 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
1215 __setpayloadf.
1216 (setpayloadf): Define as weak alias.
1217 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
1218 __setpayloadsigf.
1219 (setpayloadsigf): Define as weak alias.
1220 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
1221 __totalorderf and define as weak alias.
1222 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
1223 Rename to __totalordermagf and define as weak alias.
1224 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
1225 __ufromfpf.
1226 (ufromfpf): Define as weak alias.
1227 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
1228 __ufromfpxf.
1229 (ufromfpxf): Define as weak alias.
1230 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
1231 __fromfpl.
1232 (fromfpl): Define as weak alias.
1233 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
1234 __fromfpxl.
1235 (fromfpxl): Define as weak alias.
1236 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
1237 to __getpayloadl and define as weak alias.
1238 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
1239 __roundevenl and define as weak alias.
1240 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
1241 __setpayloadl.
1242 (setpayloadl): Define as weak alias.
1243 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
1244 __setpayloadsigl.
1245 (setpayloadsigl): Define as weak alias.
1246 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
1247 to __totalorderl and define as weak alias.
1248 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
1249 Rename to __totalordermagl and define as weak alias.
1250 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
1251 __ufromfpl.
1252 (ufromfpl): Define as weak alias.
1253 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
1254 __ufromfpxl.
1255 (ufromfpxl): Define as weak alias.
1256 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
1257 __fromfpl.
1258 (fromfpl): Define as weak alias.
1259 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
1260 __fromfpxl.
1261 (fromfpxl): Define as weak alias.
1262 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
1263 Rename to __getpayloadl and define as weak alias.
1264 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
1265 to __roundevenl and define as weak alias. Call __roundeven
1266 instead of roundeven.
1267 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
1268 __setpayloadl.
1269 (setpayloadl): Define as weak alias.
1270 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
1271 __setpayloadsigl.
1272 (setpayloadsigl): Define as weak alias.
1273 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
1274 Rename to __totalorderl and define as weak alias.
1275 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
1276 Rename to __totalordermagl and define as weak alias.
1277 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
1278 __ufromfpl.
1279 (ufromfpl): Define as weak alias.
1280 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
1281 __ufromfpxl.
1282 (ufromfpxl): Define as weak alias.
1283 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
1284 __fromfpl.
1285 (fromfpl): Define as weak alias.
1286 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
1287 __fromfpxl.
1288 (fromfpxl): Define as weak alias.
1289 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
1290 __getpayloadl and define as weak alias.
1291 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
1292 __roundevenl and define as weak alias.
1293 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
1294 __setpayloadl.
1295 (setpayloadl): Define as weak alias.
1296 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
1297 __setpayloadsigl.
1298 (setpayloadsigl): Define as weak alias.
1299 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
1300 __totalorderl and define as weak alias.
1301 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
1302 Rename to __totalordermagl and define as weak alias.
1303 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
1304 __ufromfpl.
1305 (ufromfpl): Define as weak alias.
1306 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
1307 __ufromfpxl.
1308 (ufromfpxl): Define as weak alias.
1309
29c933fb
SP
13102017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
1311
503c92c3
SP
1312 * benchtests/bench-string.h (realloc_bufs): New function.
1313 (test_init): Call it.
1314 * benchtests/bench-memset-large.c (do_test): Likewise.
1315 * benchtests/bench-memset.c (do_test): Likewise.
1316
29c933fb
SP
1317 * benchtests/bench-memset-large.c: Print output in JSON
1318 format.
1319 * benchtests/bench-memset.c: Likewise.
1320
799c8d69
MF
13212017-09-14 Mike FABIAN <mfabian@redhat.com>
1322
1323 [BZ #21084]
1324 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
1325 * iconvdata/Makefile: Add IBM858.
1326 * iconvdata/gconv-modules: Likewise.
1327 * iconvdata/tst-tables.sh: Likewise.
1328 * iconvdata/ibm858.c: New file.
1329 * localedata/charmaps/IBM858: Likewise.
1330
c207f7ce 13312017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
1332
1333 [BZ #22023]
1334 * locales/niu_NZ (LC_TIME): copy "niu_NU".
1335 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
1336
f28a0926
AK
13372017-09-14 Mike FABIAN <mfabian@redhat.com>
1338
1339 [BZ #22112]
1340 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
1341 and add tel_int_fmt.
1342
02093e62
JM
13432017-09-14 Joseph Myers <joseph@codesourcery.com>
1344
1345 * sysdeps/generic/libm-alias-float128.h: New file.
1346 * sysdeps/generic/math-type-macros-float128.h: Include
1347 <libm-alias-float128.h>.
1348 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
1349
1aae75ef
JM
13502017-09-13 Joseph Myers <joseph@codesourcery.com>
1351
1352 * sysdeps/generic/libm-alias-ldouble.h: New file.
1353 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
1354 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
1355 * sysdeps/generic/math-type-macros-ldouble.h: Include
1356 <libm-alias-ldouble.h>.
1357 [!declare_mgen_alias] (declare_mgen_alias): Define to use
1358 libm_alias_ldouble.
1359
bcea7ad6
SN
13602017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
1361
1362 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
1363 * math/w_exp_compat.c: ... here.
1364 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
1365 * math/w_expf_compat.c: ... here.
1366 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
1367 * math/w_expl_compat.c: ... here.
1368 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
1369 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
1370 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
1371 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
1372
0fc56478
JM
13732017-09-13 Joseph Myers <joseph@codesourcery.com>
1374
1375 * math/w_scalbln_template.c (strong_alias): Do not undefine and
1376 redefine.
1377 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
1378 macro.
1379 (ldexpl): Only define as compat symbol for libc, not libm.
1380 (scalbnl): Define as compat symbol for libc here.
1381 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
1382 define for [IS_IN (libc)].
1383 (__ldexpl_2): Remove alias.
1384 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
1385 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
1386 name in long_double_symbol call.
1387 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
1388 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
1389 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
1390 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
1391 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
1392 Remove macro.
1393 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
1394 Define as compat symbol.
1395
3ca622e4
AZ
13962017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1397
1398 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
1399 * sysdeps/unix/sysv/linux/alpha/Makefile
1400 [$(subdir) = csu] (sysdep_routines): Remove rule.
1401
620ff9ee
JM
14022017-09-13 Joseph Myers <joseph@codesourcery.com>
1403
1404 * sysdeps/generic/libm-alias-double.h: New file.
1405 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
1406 * sysdeps/generic/math-type-macros-double.h: Include
1407 <libm-alias-double.h>.
1408 [declare_mgen_alias] (declare_mgen_alias): Define to use
1409 libm_alias_double.
1410 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
1411 (M_LIBM_NEED_COMPAT): Remove macro.
1412 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
1413 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
1414 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
1415 code.
1416 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1417 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1418 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1419 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1420 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1421 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1422 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1423 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1424 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1425 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1426 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1427 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1428 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1429 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1430 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1431 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1432 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1433 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1434 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1435 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1436 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1437 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1438 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1439 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1440 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1441 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1442 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
1443 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
1444 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
1445 macro.
1446 (declare_mgen_alias): New macro.
1447 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
1448 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
1449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
1450 (M_LIBM_NEED_COMPAT): Remove macro.
1451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
1452 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
1453 <first-versions.h>.
1454 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
1455 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
1456
a891caff
JM
14572017-09-12 Joseph Myers <joseph@codesourcery.com>
1458
1459 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
1460 (declare_mgen_alias_2): Remove.
1461 * sysdeps/generic/math-type-macros-double.h
1462 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
1463 Likewise.
1464 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
1465 alias.
1466 (ldexp): Define with declare_mgen_alias.
1467 (scalbn): Likewise.
1468
a1a78204
SE
14692017-09-12 Steve Ellcey <sellcey@cavium.com>
1470
1471 * grp/initgroups.c: Include config.h.
1472 (DEFAULT_CONFIG): New macro.
1473 (internal_getgrouplist): Use DEFAULT_CONFIG.
1474 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1475 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
1476 (DEFAULT_DEFCONFIG): New macro.
1477 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
1478 * nss/grp-lookup.c: Include config.h
1479 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
1480 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
1481 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
1482 * manual/nss.texi: Update default values section.
1483
ef8adeb0
L
14842017-09-12 H.J. Lu <hongjiu.lu@intel.com>
1485
1486 [BZ #21967]
1487 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
1488 New.
1489 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
1490 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1491 Handle MathVec_Prefer_No_AVX512.
1492 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
1493 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
1494 is set.
1495
a166531f
ST
14962017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
1497
1498 * posix/sched_primax.c (__sched_get_priority_max): Add
1499 libc_hidden_def.
1500 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
1501 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
1502 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
1503 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
1504 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
1505 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
1506 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
1507 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
1508 Add aliases.
1509
4b7d1efb
JM
15102017-09-11 Joseph Myers <joseph@codesourcery.com>
1511
1512 * sysdeps/generic/libm-alias-float.h: New file.
1513 * sysdeps/generic/math-type-macros-float.h: Include
1514 <libm-alias-float.h>.
1515 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
1516
45ff3463
L
15172017-09-11 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 [BZ #22093]
1520 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
1521 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
1522 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
1523 (HWCAP_IMPORTANT): Likewise.
1524 (HWCAP_X86_64): New enum.
1525 (HWCAP_X86_AVX512_1): Updated.
1526 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
1527 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
1528 (modules-names): Add x86_64/tst-x86_64mod-1.
1529 (LDFLAGS-tst-x86_64mod-1.so): New.
1530 ($(objpfx)tst-x86_64-1): Likewise.
1531 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
1532 (tst-x86_64-1-clean): Likewise.
1533 * sysdeps/x86_64/tst-x86_64-1.c: New file.
1534 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
1535
891abfd3
SP
15362017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
1537
1538 * po/sv.po: Update translations.
1539 * po/fr.po: Likewise.
1540
00c3da43
ST
15412017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
1542
1543 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
1544 seconds.
3bdfd9fb
ST
1545 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
1546 seconds.
65b22ebc 1547 * elf/rtld-Rules: Fix $(error) use.
00c3da43 1548
96480903
MF
15492017-09-09 Mike FABIAN <mfabian@redhat.com>
1550
1551 [BZ #14925]
1552 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
1553 * locale/iso-639.def: Change “Bengali” to “Bangla”.
1554 * localedata/locales/bn_BD: “Bengali” was still used in some
1555 comments. Change it to “Bangla”.
1556
4c03a696
MT
15572017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
1558
1559 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
1560
9c9ec581
SE
15612017-09-08 Steve Ellcey <sellcey@cavium.com>
1562
1563 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
1564 thunderx2t99p1 to list of cpu names.
1565 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1566 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
1567
f00bce74
SE
15682017-09-08 Steve Ellcey <sellcey@cavium.com>
1569
1570 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
1571 Use strcmp instead of tunable_is_name.
1572
27342d17
JM
15732017-09-08 Joseph Myers <joseph@codesourcery.com>
1574
af1b7c8c
JM
1575 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1576 (F_GET_RW_HINT): New macro.
1577 [__USE_GNU] (F_SET_RW_HINT): Likewise.
1578 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
1579 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
1580 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
1581 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
1582 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
1583 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
1584 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
1585 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
1586
27342d17
JM
1587 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1588 (F_ADD_SEALS): New macro.
1589 [__USE_GNU] (F_GET_SEALS): Likewise.
1590 [__USE_GNU] (F_SEAL_SEAL): Likewise.
1591 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
1592 [__USE_GNU] (F_SEAL_GROW): Likewise.
1593 [__USE_GNU] (F_SEAL_WRITE): Likewise.
1594
c66c9082
AZ
15952017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1596
07b4f49d
AZ
1597 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
1598 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
1599 * posix/glob_internal.h (__glob_pattern_type):
1600 * posix/glob.c (glob):
1601 * posix/glob_pattern_p.c (__glob_pattern_p):
1602 Use them.
1603
116f1c64
AZ
1604 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
1605 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
1606 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
1607 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
1608 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
1609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
1610 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
1611 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
1612 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
1613 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
1614 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
1615 * sysdeps/wordsize-64/glob.c: Likewise.
1616 * sysdeps/wordsize-64/glob64.c: Likewise.
1617 * sysdeps/wordsize-64/globfree.c: Likewise.
1618 * sysdeps/wordsize-64/globfree64.c: Likewise.
1619 * sysdeps/unix/sysv/linux/glob.c: New file.
1620 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
1621 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
1622 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
1623 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
1624 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
1625 adds !GLOB_NO_OLD_VERSION as an extra condition.
1626 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
1627 using relative path instead of absolute one.
1628 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
1629 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1630 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1631 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1632 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
1633 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
1634
ffca8901
AZ
1635 [BZ #1062]
1636 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
1637 (glob): Use the same scratch buffer for both getlogin_r and
1638 getpwnam_r. Don’t require preallocation of the login name. This
1639 simplifies storage allocation, and corrects the handling of
1640 long login names.
1641
5a79f975
AZ
1642 [BZ #1062]
1643 * posix/glob.c (glob): Port recent patches to platforms
1644 lacking getpwnam_r.
1645 (glob): Fix longstanding misuse of errno after getpwnam_r, which
1646 returns an error number rather than setting errno.
1647
e00f2425
AZ
1648 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
1649 instead of GCC extension.
1650 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
1651 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
1652 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
1653
5554304f
AZ
1654 [BZ #866]
1655 [BZ #1062]
1656 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
1657 * posix/bug-glob1.c: Remove file.
1658 * posix/tst-glob_symlinks.c: New file.
1659 * posix/glob.c (__lstat64): New macro.
1660 (is_dir): New function.
1661 (glob, glob_in_dir): Match symlinks even if they are dangling.
1662 (link_stat, link_exists_p): Remove. All uses removed.
1663
686f2ea1
AZ
1664 [BZ #1062]
1665 [BZ #19971]
1666 * posix/glob.c (struct readdir_result): Remove skip_entry member.
1667 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
1668 All uses removed.
1669
c66c9082
AZ
1670 [BZ #1062]
1671 * posix/Makefile (routines): Add globfree, globfree64, and
1672 glob_pattern_p.
1673 * posix/flexmember.h: New file.
1674 * posix/glob_internal.h: Likewise.
1675 * posix/glob_pattern_p.c: Likewise.
1676 * posix/globfree.c: Likewise.
1677 * posix/globfree64.c: Likewise.
1678 * sysdeps/gnu/globfree64.c: Likewise.
1679 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
1680 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
1681 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
1682 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
1683 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
1684 * sysdeps/wordsize-64/globfree.c: Likewise.
1685 * sysdeps/wordsize-64/globfree64.c: Likewise.
1686 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
1687 [NDEBUG): Remove comments.
1688 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
1689 (dirent_type): New type. Use uint_fast8_t not
1690 uint8_t, as C99 does not require uint8_t.
1691 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
1692 (struct readdir_result): Use dirent_type. Do not define skip_entry
1693 unless it is needed; this saves a byte on platforms lacking d_ino.
1694 (readdir_result_type, readdir_result_skip_entry):
1695 New functions, replacing ...
1696 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
1697 these functions, which were removed. This makes the callers
1698 easier to read. All callers changed.
1699 (D_INO_TO_RESULT): Now empty if there is no d_ino.
1700 (size_add_wrapv, glob_use_alloca): New static functions.
1701 (glob, glob_in_dir): Check for size_t overflow in several places,
1702 and fix some size_t checks that were not quite right.
1703 Remove old code using SHELL since Bash no longer
1704 uses this.
1705 (glob, prefix_array): Separate MS code better.
1706 (glob_in_dir): Remove old Amiga and VMS code.
1707 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
1708 separate files.
1709 (glob_in_dir): Do not rely on undefined behavior in accessing
1710 struct members beyond their bounds. Use a flexible array member
1711 instead
1712 (link_stat): Rename from link_exists2_p and return -1/0 instead of
1713 0/1. Caller changed.
1714 (glob): Fix memory leaks.
1715 * posix/glob64 (globfree64): Move to separate file.
1716 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
1717 (globfree64): Remove hidden alias.
1718 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
1719 oldglob.
1720 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
1721 separate file.
1722 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
1723 define.
1724 Move compat code to separate file.
1725 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
1726 separate file.
1727
78bfa877
L
17282017-09-07 H.J. Lu <hongjiu.lu@intel.com>
1729
1730 * resolv/tst-resolv-qtypes.c (domain): Changed to
1731 "const char domain[] =".
1732
05f0011f
JM
17332017-09-07 Joseph Myers <joseph@codesourcery.com>
1734
85bec0f2
JM
1735 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1736 version to 3.1.6.
1737
5c23ee6e
JM
1738 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
1739 (TCP_MD5SIG_EXT): Likewise.
1740 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
1741 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
1742 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
1743
05f0011f
JM
1744 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
1745
7c9c5be9
MF
17462017-09-07 Mike FABIAN <mfabian@redhat.com>
1747
1748 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
1749
c207f7ce 17502017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
1751
1752 [BZ #22100]
1753 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
1754
507fe027
ST
17552017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1756
1757 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
1758 before assuming that the file is empty. Avoid testing buffer content
1759 when nread == 0.
1760
65687ac7
AZ
17612017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1762
7bbbb4b9 1763 [BZ #18858]
65687ac7
AZ
1764 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
1765 Remove define.
1766 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
1767 Likewise.
1768 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
1769 Likewise.
1770 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
1771 Likewise.
1772 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
1773 Likewise.
1774 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
1775 Likewise.
1776 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
1777 Likewise.
1778
ab5ac271
FW
17792017-09-06 Florian Weimer <fweimer@redhat.com>
1780
1781 * malloc/dynarray_emplace_enlarge.c
1782 (__libc_dynarray_emplace_enlarge): Add missing else.
1783
a8304730
FW
17842017-09-06 Florian Weimer <fweimer@redhat.com>
1785
1786 [BZ #22096]
1787 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
1788 case of failure to obtain the global conf object.
1789
5670c4ab
FW
17902017-09-06 Florian Weimer <fweimer@redhat.com>
1791
1792 [BZ #22095]
1793 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
1794 dynarray allocation failure.
1795
c77eb969
FW
17962017-09-06 Florian Weimer <fweimer@redhat.com>
1797
1798 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
1799 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
1800 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
1801 New functions.
1802 (response): Call them. Add 'p', '6' flag processing.
1803 (test_reverse): New function.
1804 (test_get2_any): Call it.
1805 (test_no_inet6): Add 'p' test.
1806 (test_inet6): Likewise.
1807
5e9c4d17
FW
18082017-09-06 Florian Weimer <fweimer@redhat.com>
1809
1810 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
1811 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
1812 the QNAME.
1813 (test_gai): Adjust query names. Add additional tests.
1814 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
1815 test_get2. Adjust query names. Add additional tests.
1816 (test_no_inet6): New function, extracted from threadfunc.
1817 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
1818 Add additional tests.
1819
2ae5be04
MF
18202017-09-06 Mike FABIAN <mfabian@redhat.com>
1821
1822 [BZ #22070]
1823 * localedata/unicode-gen/utf8_gen.py: Set the width for
1824 characters with Prepended_Concatenation_Mark property to 1
1825 * localedata/charmaps/UTF-8: Updated using the improved script.
1826
af83ed5c
MF
18272017-09-06 Mike FABIAN <mfabian@redhat.com>
1828
1829 [BZ #21750]
1830 * localedata/unicode-gen/utf8_gen.py: Improve the script to
1831 use the range notation for all ranges of neighbouring characters
1832 with the same width.
1833
4f3647e4
JM
18342017-09-05 Joseph Myers <joseph@codesourcery.com>
1835
1836 * sysdeps/generic/math-type-macros-double.h: Include
1837 <math-svid-compat.h>.
1838 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
1839 * sysdeps/generic/math-type-macros-float.h: Include
1840 <math-svid-compat.h>.
1841 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
1842 * sysdeps/generic/math-type-macros-ldouble.h: Include
1843 <math-svid-compat.h>.
1844 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
1845 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
1846 condition.
1847 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
1848 * math/w_acosf_compat.c: Likewise.
1849 * math/w_acosh_compat.c: Likewise.
1850 * math/w_acoshf_compat.c: Likewise.
1851 * math/w_acoshl_compat.c: Likewise.
1852 * math/w_acosl_compat.c: Likewise.
1853 * math/w_asin_compat.c: Likewise.
1854 * math/w_asinf_compat.c: Likewise.
1855 * math/w_asinl_compat.c: Likewise.
1856 * math/w_atan2_compat.c: Likewise.
1857 * math/w_atan2f_compat.c: Likewise.
1858 * math/w_atan2l_compat.c: Likewise.
1859 * math/w_atanh_compat.c: Likewise.
1860 * math/w_atanhf_compat.c: Likewise.
1861 * math/w_atanhl_compat.c: Likewise.
1862 * math/w_cosh_compat.c: Likewise.
1863 * math/w_coshf_compat.c: Likewise.
1864 * math/w_coshl_compat.c: Likewise.
1865 * math/w_exp10_compat.c: Likewise.
1866 * math/w_exp10f_compat.c: Likewise.
1867 * math/w_exp10l_compat.c: Likewise.
1868 * math/w_exp2_compat.c: Likewise.
1869 * math/w_exp2f_compat.c: Likewise.
1870 * math/w_exp2l_compat.c: Likewise.
1871 * math/w_fmod_compat.c: Likewise.
1872 * math/w_fmodf_compat.c: Likewise.
1873 * math/w_fmodl_compat.c: Likewise.
1874 * math/w_hypot_compat.c: Likewise.
1875 * math/w_hypotf_compat.c: Likewise.
1876 * math/w_hypotl_compat.c: Likewise.
1877 * math/w_j0_compat.c: Likewise.
1878 * math/w_j0f_compat.c: Likewise.
1879 * math/w_j0l_compat.c: Likewise.
1880 * math/w_j1_compat.c: Likewise.
1881 * math/w_j1f_compat.c: Likewise.
1882 * math/w_j1l_compat.c: Likewise.
1883 * math/w_jn_compat.c: Likewise.
1884 * math/w_jnf_compat.c: Likewise.
1885 * math/w_jnl_compat.c: Likewise.
1886 * math/w_lgamma_r_compat.c: Likewise.
1887 * math/w_lgammaf_r_compat.c: Likewise.
1888 * math/w_lgammal_r_compat.c: Likewise.
1889 * math/w_log10_compat.c: Likewise.
1890 * math/w_log10f_compat.c: Likewise.
1891 * math/w_log10l_compat.c: Likewise.
1892 * math/w_log2_compat.c: Likewise.
1893 * math/w_log2f_compat.c: Likewise.
1894 * math/w_log2l_compat.c: Likewise.
1895 * math/w_log_compat.c: Likewise.
1896 * math/w_logf_compat.c: Likewise.
1897 * math/w_logl_compat.c: Likewise.
1898 * math/w_pow_compat.c: Likewise.
1899 * math/w_powf_compat.c: Likewise.
1900 * math/w_powl_compat.c: Likewise.
1901 * math/w_remainder_compat.c: Likewise.
1902 * math/w_remainderf_compat.c: Likewise.
1903 * math/w_remainderl_compat.c: Likewise.
1904 * math/w_sinh_compat.c: Likewise.
1905 * math/w_sinhf_compat.c: Likewise.
1906 * math/w_sinhl_compat.c: Likewise.
1907 * math/w_sqrt_compat.c: Likewise.
1908 * math/w_sqrtf_compat.c: Likewise.
1909 * math/w_sqrtl_compat.c: Likewise.
1910 * math/w_tgamma_compat.c: Likewise.
1911 * math/w_tgammaf_compat.c: Likewise.
1912 * math/w_tgammal_compat.c: Likewise.
1913 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
1914 [LIBM_SVID_COMPAT].
1915 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
1916 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
1917 [LIBM_SVID_COMPAT].
1918 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
1919 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
1920 [LIBM_SVID_COMPAT].
1921 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
1922 * sysdeps/i386/fpu/w_sqrt.c: New file.
1923 * sysdeps/ia64/fpu/w_acos.c: Likewise.
1924 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
1925 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
1926 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
1927 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
1928 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
1929 * sysdeps/ia64/fpu/w_asin.c: Likewise.
1930 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
1931 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
1932 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
1933 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
1934 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
1935 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
1936 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
1937 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
1938 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
1939 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
1940 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
1941 * sysdeps/ia64/fpu/w_exp.c: Likewise.
1942 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
1943 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
1944 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
1945 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
1946 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
1947 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
1948 * sysdeps/ia64/fpu/w_expf.c: Likewise.
1949 * sysdeps/ia64/fpu/w_expl.c: Likewise.
1950 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
1951 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
1952 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
1953 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
1954 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
1955 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
1956 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
1957 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
1958 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
1959 * sysdeps/ia64/fpu/w_log.c: Likewise.
1960 * sysdeps/ia64/fpu/w_log10.c: Likewise.
1961 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
1962 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
1963 * sysdeps/ia64/fpu/w_log2.c: Likewise.
1964 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
1965 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
1966 * sysdeps/ia64/fpu/w_logf.c: Likewise.
1967 * sysdeps/ia64/fpu/w_logl.c: Likewise.
1968 * sysdeps/ia64/fpu/w_pow.c: Likewise.
1969 * sysdeps/ia64/fpu/w_powf.c: Likewise.
1970 * sysdeps/ia64/fpu/w_powl.c: Likewise.
1971 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
1972 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
1973 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
1974 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
1975 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
1976 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
1977 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
1978 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
1979 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
1980 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
1981 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
1982 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
1983 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
1984 [LIBM_SVID_COMPAT].
1985 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
1986 * sysdeps/ieee754/k_standard.c: Likewise.
1987 * sysdeps/ieee754/k_standardf.c: Likewise.
1988 * sysdeps/ieee754/k_standardl.c: Likewise.
1989 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
1990 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
1991 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
1992 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
1993 long_double_symbol call on [LIBM_SVID_COMPAT].
1994 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
1995 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
1996 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
1997 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
1998 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
1999 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
2000 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
2001 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
2002 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
2003 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
2004 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
2005 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2006 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
2007 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
2008 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
2009 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
2010 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
2011 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
2012 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
2013 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
2014 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
2015 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
2016
05b38d64
SE
20172017-09-05 Steve Ellcey <sellcey@cavium.com>
2018
2019 * include/shlib-compat.h (TEST_COMPAT): New Macro.
2020 * malloc/tst-mallocstate.c: Convert from test-skeleton
2021 to test-driver. Ifdef code using TEST_COMPAT macro.
2022 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
2023 * math/test-matherr.c: Likewise.
2024
99d67918
JM
20252017-09-05 Joseph Myers <joseph@codesourcery.com>
2026
2027 [BZ #22086]
2028 * debug/pcprofiledump.c (main): Use byte-swapped mask when
2029 comparing word with byte-swapped constant.
2030
c207f7ce 20312017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
2032
2033 [BZ #20498]
2034 * locale/iso-639.def: add Miskito.
2035 * localedata/SUPPORTED: Add miq_NI/UTF-8.
2036 * localedata/locales/miq_NI: New file.
2037
0a587a8a
L
20382017-09-04 H.J. Lu <hongjiu.lu@intel.com>
2039
2040 [BZ #18822]
2041 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
2042 (__mkdir): Likewise.
2043 * io/chmod.c (__chmod): Add libc_hidden_def.
2044 * io/mkdir.c (__mkdir): Likewise.
2045 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
2046 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
2047 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
2048 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
2049
f3a129b8
JM
20502017-09-04 Joseph Myers <joseph@codesourcery.com>
2051
1650e192
JM
2052 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2053 version to 4.13.
2054
f3a129b8
JM
2055 [BZ #22082]
2056 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
2057 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
2058
b38042f5
FW
20592017-09-04 Florian Weimer <fweimer@redhat.com>
2060
2061 * math/math.h: Issue warning if log is defined.
2062
059b6404
JM
20632017-09-04 Joseph Myers <joseph@codesourcery.com>
2064
2065 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2066 kernel version to 4.13.
2067
b794e16b
ST
20682017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2069
2070 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
2071 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
2072 parameter.
01969395
ST
2073 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
2074 just <bits/types.h>.
dd2b31de 2075 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 2076 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 2077 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 2078 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
2079 * misc/preadv2.c: Include <errno.h>.
2080 * misc/preadv64v2.c: Include <errno.h>.
2081 * misc/pwritev2.c: Include <errno.h>.
2082 * misc/pwritev64v2.c: Include <errno.h>.
2083 * sysdeps/posix/preadv2.c: Include <errno.h>.
2084 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
2085 Fix <unistd.h> inclusion.
2086 * sysdeps/posix/pwritev2.c: Include <errno.h>.
2087 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
2088 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
2089 __strtoul_internal): New functions.
127e7773
ST
2090 * sysdeps/posix/pause.c: Include <sigsetops.h>.
2091 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
2092 * sysdeps/mach/hurd/i386/Makefile
2093 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
2094 [$(subdir) = csu] (sysdep-only-routines): Likewise.
2095 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
2096 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
2097 __feraiseexcept_renamed to feraiseexcept instead of
2098 __GI_feraiseexcept.
56bf5497 2099 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 2100 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
2101 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
2102 RWF_NOWAIT): Define to 0 if undefined already.
2103 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
2104 boils down to 0.
6547ec0a
ST
2105 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
2106 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 2107
5a80d39d
JM
21082017-09-01 Joseph Myers <joseph@codesourcery.com>
2109
2110 * manual/math.texi (pow10): Do not document.
2111 (pow10f): Likewise.
2112 (pow10l): Likewise.
2113 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
2114 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
2115 * math/libm-test-exp10.inc (pow10_test): Remove.
2116 (do_test): Do not call pow10.
2117 * math/w_exp10_compat.c (pow10): Make into compat symbol.
2118 [NO_LONG_DOUBLE] (pow10l): Likewise.
2119 * math/w_exp10f_compat.c (pow10f): Likewise.
2120 * math/w_exp10l_compat.c (pow10l): Likewise.
2121 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
2122 (pow10): Make into compat symbol.
2123 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
2124 (pow10f): Make into compat symbol.
2125 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
2126 (pow10l): Make into compat symbol.
2127 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
2128 pow10.
2129 (CFLAGS-nldbl-pow10.c): Remove variable..
2130 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
2131 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
2132 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
2133 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
2134 Undefine and redefine.
2135 (pow10l): Make into compat symbol.
2136 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
2137 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
2138 * sysdeps/arm/libm-test-ulps: Likewise.
2139 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
2140 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2141 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2142 * sysdeps/microblaze/libm-test-ulps: Likewise.
2143 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
2144 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2145 * sysdeps/nios2/libm-test-ulps: Likewise.
2146 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2147 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
2148 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2149 * sysdeps/sh/libm-test-ulps: Likewise.
2150 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2151 * sysdeps/tile/libm-test-ulps: Likewise.
2152 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2153
3824fc38
PP
21542017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2155
2156 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
2157
b3008279
L
21582017-09-01 H.J. Lu <hongjiu.lu@intel.com>
2159
2160 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
2161 "../ChangeLog.old/ChangeLog.8".
2162 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
2163 "../ChangeLog.old/ChangeLog.14".
2164
136fa185
L
21652017-09-01 H.J. Lu <hongjiu.lu@intel.com>
2166
2167 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
2168 Threads Library.
2169
c18d50a2
JM
21702017-09-01 Joseph Myers <joseph@codesourcery.com>
2171
2172 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
2173
bedbd859
L
21742017-09-01 H.J. Lu <hongjiu.lu@intel.com>
2175
2176 * csu/version.c (banner): Remove "by Roland McGrath et al.".
2177 * nptl/Banner: Remove "by Ulrich Drepper et al.".
2178
50c66c7a
PP
21792017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2180
2181 * stdlib/tst-atexit-common.c (do_test): Test support for at least
2182 32 atexit handlers.
2183
a617bd11
ZW
21842017-09-01 Zack Weinberg <zackw@panix.com>
2185
2186 * math/math.h (HUGE_VAL): Improve commentary.
2187
e0d2eb5a
AZ
21882017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2189 Andreas Schwab <schwab@suse.de>
2190
2191 [BZ #21530]
2192 * include/stdio.h (__gen_tempfd): New function.
2193 * stdio-common/Makefile (routines): Add gentempfd.
2194 * stdio-common/gentempfd.c: New file.
2195 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
2196 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
2197 unnamed file first.
2198
f4a6be25
FW
21992017-09-01 Florian Weimer <fweimer@redhat.com>
2200
2201 [BZ #21915]
2202 [BZ #21922]
2203 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
2204 result to determine success or failure, not the errno value.
2205 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
2206 (tst-nss-files-hosts-erange): Link with -ldl.
2207 * nss/tst-nss-files-hosts-erange.c: New file.
2208 * nss/tst-resolv-basic.c (response): Handle nodata.example.
2209 (do_test): Add NO_DATA tests.
2210 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
2211 (do_test): Call it.
2212
5f8340f5
FW
22132017-09-01 Florian Weimer <fweimer@redhat.com>
2214
2215 [BZ #21922]
2216 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
2217 coming from gethostbyname2_r.
2218
65329bd2
FW
22192017-09-01 Florian Weimer <fweimer@redhat.com>
2220
2221 * support/namespace.h (struct support_chroot_configuration): Add
2222 hosts, host_conf.
2223 (struct support_chroot): Add path_hosts, path_host_conf.
2224 * support/support_chroot.c (write_file): New function.
2225 (support_chroot_create): Call it to process /etc/resolv.conf,
2226 /etc/hosts, /etc/host.conf.
2227 (support_chroot_free): Update.
2228
a2881ef0
FW
22292017-09-01 Florian Weimer <fweimer@redhat.com>
2230
2231 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
2232 status indicates it is set.
2233
ad816a5e
FW
22342017-09-01 Florian Weimer <fweimer@redhat.com>
2235
2236 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
2237 function lookup failures more reliable.
2238
53250a21
FW
22392017-09-01 Florian Weimer <fweimer@redhat.com>
2240
2241 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
2242 (getcanonname): Likewise.
2243 (gaih_inet): Likewise.
2244
924b121c
FW
22452017-09-01 Florian Weimer <fweimer@redhat.com>
2246
2247 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
2248 (getcanonname): Likewise.
2249 (gaih_inet): Likewise.
2250
d9ff799a
SE
22512017-08-31 Steve Ellcey <sellcey@cavium.com>
2252 Richard Henderson <rth@twiddle.net>
2253
2254 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
2255 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
2256 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
2257 (IREG_SIZE, OREG_SIZE): New macros.
2258 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
2259 (IREG_SIZE, OREG_SIZE): New macros.
2260 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
2261 (IREG_SIZE): New macro.
2262 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
2263 (IREG_SIZE): New macro.
2264 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
2265 New includes.
2266 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
2267 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
2268 (__CONCATX): Handle exceptions correctly on large values that may
2269 set FE_INVALID.
2270 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
2271 Initialize if not already set.
2272 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
2273
102dde84
AZ
22742017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2275
2276 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
2277 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
2278 Likewise.
2279 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
2280 Likewise.
2281 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
2282 Likewise.
2283 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
2284 Likewise.
2285 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
2286 Likewise.
2287 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
2288 Likewise.
2289 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
2290 Likewise.
2291 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
2292 (NO_CANCELLATION): Likewise.
2293 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
2294 Likewise.
2295 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
2296 Likewise.
2297 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
2298 Likewise.
2299 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
2300 (NO_CANCELLATION): Likewise.
2301 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
2302 (NO_CANCELLATION): Likewise.
2303 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
2304 Likewise
2305 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
2306 Likewise.
2307 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
2308 Likewise.
2309 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
2310 Likewise.
2311 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
2312 hidden prototype.
2313 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
2314 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
2315
9eee633b
SE
23162017-08-31 Steve Ellcey <sellcey@cavium.com>
2317
2318 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
2319 in resolver call.
2320
65284eb7
FW
23212017-08-31 Florian Weimer <fweimer@redhat.com>
2322
2323 * include/libc-symbols.h (internal_function): Remove.
2324
41ad5ca6
FW
23252017-08-31 Florian Weimer <fweimer@redhat.com>
2326
2327 * stdlib/fmtmsg.c (internal_addseverity): Remove
2328 internal_function.
2329
2fa6d086
FW
23302017-08-31 Florian Weimer <fweimer@redhat.com>
2331
2332 * stdio-common/printf_fp.c (group_number): Remove
2333 internal_function.
2334 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
2335
b41bd5bc
FW
23362017-08-31 Florian Weimer <fweimer@redhat.com>
2337
2338 * posix/fnmatch.c (internal_function): Remove definition.
2339 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
2340 * posix/regcomp.c (peek_token, init_word_char)
2341 (duplicate_node_closure, fetch_token, peek_token)
2342 (peek_token_bracket, build_range_exp, build_collating_symbol):
2343 Likewise.
2344 * posix/regex_internal.c (re_string_construct_common)
2345 (create_ci_newstate, create_cd_newstate, re_string_allocate)
2346 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
2347 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
2348 (re_string_translate_buffer, re_string_reconstruct)
2349 (re_string_peek_byte_case, re_string_fetch_byte_case)
2350 (re_string_destruct, re_string_context_at, re_node_set_alloc)
2351 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
2352 (re_node_set_add_intersect, re_node_set_init_union)
2353 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
2354 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
2355 (re_dfa_add_node, calc_state_hash, re_acquire_state)
2356 (re_acquire_state_context): Likewise.
2357 * posix/regex_internal.h (internal_function): Remove definition.
2358 (re_string_realloc_buffers, build_wcs_buffer)
2359 (build_wcs_upper_buffer, build_upper_buffer)
2360 (re_string_translate_buffer, re_string_context_at)
2361 (re_string_char_size_at, re_string_wchar_at)
2362 (re_string_elem_size_at): Likewise.
2363 * posix/regexec.c (match_ctx_init, match_ctx_clean)
2364 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
2365 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
2366 (re_search_internal, re_search_2_stub, re_search_stub)
2367 (re_copy_regs, prune_impossible_nodes, check_matching)
2368 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
2369 (free_fail_stack_return, sift_states_iter_mb)
2370 (sift_states_backward, build_sifted_states)
2371 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
2372 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
2373 (check_subexp_limits, sift_states_bkref, merge_state_array)
2374 (find_recover_state, transit_state, merge_state_with_log)
2375 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
2376 (transit_state_mb, transit_state_bkref, get_subexp)
2377 (get_subexp_sub, find_subexp_node, check_arrival)
2378 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
2379 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
2380 (check_node_accept_bytes, find_collation_sequence_value)
2381 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
2382 (acquire_init_state_context, check_halt_node_context)
2383 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
2384 (sub_epsilon_src_nodes): Likewise.
2385 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
2386 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
2387 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
2388 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
2389 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
2390 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
2391 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
2392 * sysdeps/posix/ttyname.c (getttyname): Likewise.
2393 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
2394 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
2395 (PREADV): Likewise.
2396 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
2397 (PREADV): Likewise.
2398 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
2399 (PWRITEV): Likewise.
2400 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
2401 (PWRITEV): Likewise.
2402 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
2403 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
2404
83b09837
FW
24052017-08-31 Florian Weimer <fweimer@redhat.com>
2406
2407 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
2408 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
2409 Remove internal_function.
2410 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
2411 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
2412 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
2413 (__deallocate_stack, __libc_pthread_init)
2414 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
2415 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
2416 (__libc_disable_asynccancel, __librt_disable_asynccancel):
2417 Likewise.
2418 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
2419 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
2420 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
2421 Likewise.
2422 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
2423 (__pthread_mutex_unlock_usercnt): Likewise.
2424
116ac301
FW
24252017-08-31 Florian Weimer <fweimer@redhat.com>
2426
2427 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
2428 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
2429 (fts_safe_changedir): Remove internal_function.
2430 * io/ftw.c (internal_function): Remove definition.
2431 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
2432
9da93bd7
FW
24332017-08-31 Florian Weimer <fweimer@redhat.com>
2434
2435 * inet/deadline.c (__deadline_current_time)
2436 (__deadline_from_timeval, __deadline_to_ms): Remove
2437 internal_function.
2438 * inet/getnameinfo.c (nrl_domainname): Likewise.
2439 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
2440 * inet/inet6_option.c (add_pad): Likewise.
2441 * inet/net-internal.h (__deadline_current_time)
2442 (__deadline_from_timeval, __deadline_to_ms): Likewise.
2443 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
2444 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
2445 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
2446
a60eca2e
JM
24472017-08-31 Joseph Myers <joseph@codesourcery.com>
2448
c0c49d60
JM
2449 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
2450 include <bits/nan.h>.
2451 * math/Makefile (headers): Remove bits/nan.h.
2452 * bits/nan.h: Remove.
2453 * sysdeps/ieee754/bits/nan.h: Likewise.
2454 * sysdeps/mips/bits/nan.h: Likewise.
2455
5ef1b213
JM
2456 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
2457 not include <bits/inf.h>.
2458 * math/Makefile (headers): Remove bits/inf.h.
2459 * bits/inf.h: Remove.
2460 * sysdeps/ieee754/bits/inf.h: Likewise.
2461
a60eca2e
JM
2462 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
2463 bits/huge_vall.h or bits/huge_val_flt128.h.
2464 (HUGE_VAL): Define directly here.
2465 [__USE_ISOC99] (HUGE_VALF): Likewise.
2466 [__USE_ISOC99] (HUGE_VALL): Likewise.
2467 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
2468 (HUGE_VAL_F128): Likewise.
2469 * math/Makefile (headers): Remove bits/huge_val.h,
2470 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
2471 * bits/huge_val.h: Remove.
2472 * bits/huge_val_flt128.h: Likewise.
2473 * bits/huge_valf.h: Likewise.
2474 * bits/huge_vall.h: Likewise.
2475 * sysdeps/ia64/bits/huge_vall.h: Likewise.
2476 * sysdeps/ieee754/bits/huge_val.h: Likewise.
2477 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
2478 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
2479 * sysdeps/sh/bits/huge_val.h: Likewise.
2480 * sysdeps/sparc/bits/huge_vall.h: Likewise.
2481 * sysdeps/x86/bits/huge_vall.h: Likewise.
2482
17e00cc6
FW
24832017-08-31 Florian Weimer <fweimer@redhat.com>
2484
2485 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
2486 internal_function.
2487 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
2488 Likewise.
2489 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
2490 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
2491 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
2492 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
2493 * elf/dl-fini.c (_dl_sort_fini): Likewise.
2494 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
2495 * elf/dl-libc.c (dlerror_run): Likewise.
2496 * elf/dl-load.c (add_name_to_object, decompose_rpath)
2497 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
2498 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
2499 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
2500 Likewise.
2501 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
2502 (_dl_higher_prime_number, _dl_strtoul): Likewise.
2503 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
2504 * elf/dl-profile.c (_dl_start_profile): Likewise.
2505 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
2506 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
2507 Likewise.
2508 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
2509 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
2510 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
2511 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
2512 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
2513 (_dl_allocate_tls_storage): Likewise.
2514 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
2515 (_dl_check_all_versions): Likewise.
2516 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
2517 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
2518 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
2519 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
2520 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
2521 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
2522 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
2523 internal_function from __dl_start.
2524 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
2525 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
2526 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
2527 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
2528 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
2529 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
2530 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
2531 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
2532 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
2533 (_dl_next_ld_env_entry, _dl_important_hwcaps)
2534 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
2535 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
2536 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
2537 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
2538 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
2539 Likewise.
2540 (struct rtld_global_ro): Remove internal_function from the
2541 _dl_lookup_symbol_x member.
2542 (_dl_symbol_value): Remove. No longer defined anywhere.
2543 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
2544 internal_function.
2545 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
2546 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
2547 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
2548 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
2549 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
2550 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
2551 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
2552 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
2553 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
2554 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
2555 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
2556 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
2557
8d2f9410
FW
25582017-08-31 Florian Weimer <fweimer@redhat.com>
2559
2560 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
2561 Remove internal_function.
2562 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
2563 Likewise.
2564 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
2565 Likewise.
2566
86e4919f
FW
25672017-08-31 Florian Weimer <fweimer@redhat.com>
2568
2569 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
2570 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
2571 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
2572
59bd52b0
FW
25732017-08-31 Florian Weimer <fweimer@redhat.com>
2574
2575 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
2576 (__gai_enqueue_request): Remove internal_function.
2577 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
2578 (__gai_remove_request, __gai_notify, __gai_notify_only)
2579 (__gai_sigqueue): Likewise.
2580 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
2581 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
2582 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
2583 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
2584 Likewise.
2585
fc3d9497
FW
25862017-08-31 Florian Weimer <fweimer@redhat.com>
2587
2588 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
2589 * include/dirent.h (__opendirat, __getdents, __getdents64)
2590 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
2591 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
2592 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
2593 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
2594 Likewise.
2595 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
2596
18c54fac
FW
25972017-08-31 Florian Weimer <fweimer@redhat.com>
2598
2599 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
2600 internal_function.
2601 (GETCWD_RETURN_TYPE): Likewise.
2602
7e01f080
FW
26032017-08-31 Florian Weimer <fweimer@redhat.com>
2604
2605 * include/time.h (__tz_compute, __strptime_internal): Remove
2606 internal_function.
2607 * time/strptime_l.c (__strptime_internal): Likewise.
2608 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
2609
d7ccc6c9
FW
26102017-08-31 Florian Weimer <fweimer@redhat.com>
2611
2612 * iconv/gconv.c (__gconv): Remove internal_function.
2613 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
2614 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
2615 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
2616 (__gconv_release_cache): Likewise.
2617 * iconv/gconv_close.c (__gconv_close): Likewise.
2618 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
2619 (read_conf_file, __gconv_get_path): Likewise.
2620 * iconv/gconv_db.c (derivation_lookup, add_derivation)
2621 (__gconv_release_step, gen_steps, increment_counter)
2622 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
2623 (__gconv_close_transform, free_modules_db): Likewise.
2624 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
2625 Likewise.
2626 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
2627 (__gconv_find_transform, __gconv_lookup_cache)
2628 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
2629 (__gconv_close_transform, __gconv_release_cache)
2630 (__gconv_loaded_object, __gconv_release_shlib)
2631 (__gconv_compare_alias): Likewise.
2632 * iconv/gconv_open.c (__gconv_open): Likewise.
2633 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
2634 * iconv/iconvconfig.c (add_module): Likewise.
2635 * intl/dcigettext.c (plural_lookup, guess_category_value)
2636 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
2637 * intl/eval-plural.h (plural_eval): Likewise.
2638 * intl/finddomain.c (_nl_find_domain): Likewise.
2639 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
2640 (_nl_load_domain, _nl_find_msg): Likewise.
2641 (internal_function): Remove definition.
2642 * intl/loadinfo.h (internal_function): Likewise.
2643 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
2644 internal_function.
2645 * intl/localealias.c (internal_function): Remove definition.
2646 (read_alias_file): Remove internal_function.
2647 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
2648 * intl/plural-exp.h (internal_function): Remove definition.
2649 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
2650 internal_function.
2651 * intl/plural.c: Regenerate.
2652 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
2653 * locale/coll-lookup.c (__collidx_table_lookup)
2654 (__collseq_table_lookup): Likewise.
2655 * locale/coll-lookup.h (__collidx_table_lookup)
2656 (__collseq_table_lookup): Likewise.
2657 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
2658 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2659 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
2660 (_nl_unload_locale): Likewise.
2661 * locale/localeinfo.h (struct __locale_data): Remove
2662 internal_function from cleanup member.
2663 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
2664 (_nl_remove_locale, _nl_load_locale_from_archive)
2665 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
2666 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
2667 (_nl_cleanup_time): Remove internal_function.
2668 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
2669 (_nl_parse_alt_digit): Likewise.
2670 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
2671 (_nl_select_era_entry): Likewise.
2672 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2673 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
2674 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
2675 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
2676 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 2677
dab0eece
FW
26782017-08-31 Florian Weimer <fweimer@redhat.com>
2679
2680 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
2681 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
2682 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
2683 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
2684 Likewise.
2685 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
2686 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
2687 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
2688 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
2689 Likewise.
2690 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
2691
ab5bf7cf
FW
26922017-08-31 Florian Weimer <fweimer@redhat.com>
2693
2694 * misc/getttyent.c (skip, value): Remove internal_function.
2695 * misc/syslog.c (openlog_internal): Likewise.
2696 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
2697
75b3047e
FW
26982017-08-31 Florian Weimer <fweimer@redhat.com>
2699
2700 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
2701 (__nss_rewrite_field): Remove internal_function.
2702 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2703 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2704 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2705 * nss/nsswitch.c (nss_parse_file, nss_getline)
2706 (nss_parse_service_list, nss_new_service): Likewise.
2707 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
2708 * nss/valid_field.c (__nss_valid_field): Likewise.
2709 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
2710
0c71122c
FW
27112017-08-31 Florian Weimer <fweimer@redhat.com>
2712
2713 * malloc/arena.c (__malloc_fork_lock_parent)
2714 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
2715 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
2716 internal_function from defintions.
2717 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
2718 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
2719 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
2720 internal_function from declarations.
2721 * malloc/malloc.c (internal_function): Do not define.
2722 (mem2mem_check): Remove internal_function from declaration.
2723 (munmap_chunk, mremap_chunk): Remove internal_function.
2724 * malloc/mtrace.c (tr_where): Likewise.
2725
ca4ec803
FW
27262017-08-31 Florian Weimer <fweimer@redhat.com>
2727
2728 * include/rpc/pmap_clnt.h (__get_socket): Remove
2729 internal_function.
2730 * sunrpc/auth_des.c (synchronize): Likewise.
2731 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
2732 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
2733 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
2734 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
2735 (key_call): Likewise.
2736 * sunrpc/pm_getport.c (__get_socket): Likewise.
2737 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
2738 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
2739 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
2740 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
2741 (invalidate): Likewise.
2742 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
2743 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
2744 (set_input_fragment, get_input_bytes): Likewise.
2745
24cffce7
FW
27462017-08-31 Florian Weimer <fweimer@redhat.com>
2747
2748 * malloc/malloc.c (_int_free): Remove locked variable and related
2749 asserts.
2750
ecd0747d
L
27512017-08-31 H.J. Lu <hongjiu.lu@intel.com>
2752
2753 [BZ #22051]
2754 * Makerules (build-module-helper-objlist): Filter out
2755 $(elf-objpfx)sofini.os.
2756 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
2757 needed.
2758
5f0704b6
FW
27592017-08-31 Florian Weimer <fweimer@redhat.com>
2760
2761 * libio/fcloseall.c: Assume weak_alias is defined.
2762 * libio/feof.c: Likewise.
2763 * libio/fileno.c: Likewise.
2764 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
2765 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
2766 definitions.
2767 (_IO_file_open): Call __open directly.
2768 (_IO_new_file_sync): Assume ESPIPE is defined.
2769 (_IO_file_seekoff_maybe_mmap): Call __read directly.
2770 (_IO_new_file_write): Call __write directly.
2771 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
2772 * libio/ftello64.c (__ftello64): Assume EIO is defined.
2773 * libio/genops.c: Assume _LIBC is defined.
2774 (save_for_backup): Remove internal_function.
2775 * libio/getc.c: Assume weak_alias is defined.
2776 * libio/getwc.c: Likewise.
2777 * libio/iofclose.c: Assume _LIBC is defined.
2778 * libio/iofdopen.c: Likewise.
2779 (_IO_fcntl): Remove macro definition.
2780 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
2781 Call __fcntl directly.
2782 * libio/iofflush.c: Assume weak_alias is defined.
2783 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
2784 defined.
2785 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
2786 * libio/iofgets.c: Likewise.
2787 * libio/iofopen.c: Assume _LIBC is defined.
2788 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
2789 * libio/iofputs.c: Assume weak_alias is defined.
2790 * libio/iofread.c: Likewise.
2791 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
2792 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
2793 * libio/ioftell.c: Assume weak_alias is defined.
2794 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
2795 * libio/iofwide.c: Assume _LIBC is defined.
2796 (_IO_fwide): Drop SHARED conditional because it is implied by
2797 SHLIB_COMPAT.
2798 * libio/iofwrite.c: Assume weak_alias is defined.
2799 * libio/iogetdelim.c: Likewise.
2800 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
2801 * libio/iogetwline.c (wmemcpy): Remove macro definition.
2802 (_IO_getwline): Call __wmemcpy directly.
2803 * libio/iopopen.c: Assume _LIBC is defined.
2804 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
2805 (_IO_close): Remove macro definitions.
2806 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
2807 _exit directly.
2808 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
2809 directly.
2810 * libio/ioputs.c: Assume weak_alias is defined.
2811 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
2812 * libio/iosetbuffer.c: Assume weak_alias is defined.
2813 * libio/iosetvbuf.c: Likewise.
2814 * libio/ioungetc.c: Likewise.
2815 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
2816 libc_hidden_def, libc_hidden_weak, NULL are defined.
2817 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
2818 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
2819 defined.
2820 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
2821 definitions.
2822 (_IO_old_file_init_internal): Drop SHARED conditional because it
2823 is implied by SHLIB_COMPAT.
2824 (_IO_old_file_fopen): Call __open directly.
2825 (_IO_old_file_sync): Assume ESPIPE is defined.
2826 (_IO_old_file_write): Call __write directly.
2827 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
2828 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
2829 Call __fcntl directly.
2830 * libio/oldiofgetpos.c: Assume weak_alias is defined.
2831 (_IO_old_fgetpos): Assume EIO is defined.
2832 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
2833 (_IO_old_fgetpos64): Assume EIO is defined.
2834 * libio/oldiofsetpos.c: Assume weak_alias is defined.
2835 (_IO_old_fsetpos): Assume EIO is defined.
2836 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
2837 (_IO_old_fsetpos64): Assume EIO is defined.
2838 * libio/oldiopopen.c: Assume _LIBC is defined.
2839 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
2840 (_IO_close): Remove macro definitions.
2841 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
2842 directly.
2843 (_IO_old_proc_close): Call __close, __waitpid directly.
2844 * libio/put.c: Assume weak_alias is defined.
2845 * libio/stdfiles.c: Assume _LIBC is defined.
2846 * libio/stdio.c: Likewise.
2847 * libio/wfileops.c: Likewise.
2848 (_IO_wfile_sync): Assume ESPIPE is defined.
2849 * libio/wgenops.c: Assume _LIBC is defined.
2850 (save_for_wbackup): Remove internal_function.
2851
5129873a
FW
28522017-08-31 Florian Weimer <fweimer@redhat.com>
2853
2854 * malloc/malloc.c (top_check): Change return type to void. Remove
2855 internal_function.
2856 * malloc/hooks.c (top_check): Likewise.
2857 (malloc_check, realloc_check, memalign_check): Adjust.
2858
4fa9b3bf
JM
28592017-08-30 Joseph Myers <joseph@codesourcery.com>
2860
2861 [BZ #21457]
2862 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
2863 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
2864 sigcontext and namespace requirements.
2865 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
2866 * sysdeps/m68k/sys/ucontext.h: Likewise.
2867 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
2868 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
2869 <bits/sigcontext.h>.
2870 (__ctx): Define earlier.
2871 (mcontext_t): Define structure contents rather than using struct
2872 sigcontext.
2873 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
2874 __glibc_reserved1 instead of __reserved.
2875 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
2876 <bits/sigcontext.h>.
2877 (__ctx): Define earlier.
2878 (mcontext_t): Define structure contents rather than using struct
2879 sigcontext.
2880 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
2881 mcontext_t instead of struct sigcontext.
2882 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
2883 <bits/sigcontext.h>.
2884 (__ctx): Define earlier.
2885 (mcontext_t): Define structure contents rather than using struct
2886 sigcontext.
2887 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
2888 <bits/sigcontext.h>.
2889 (__ctx): Define earlier.
2890 (mcontext_t): Define structure contents rather than using struct
2891 sigcontext.
2892 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
2893 mcontext_t instead of struct sigcontext.
2894 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
2895 mcontext_t instead of struct sigcontext.
2896 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
2897 <bits/sigcontext.h>.
2898 (__ctx): New macro.
2899 (struct __ia64_fpreg_mcontext): New type.
2900 (mcontext_t): Define structure contents rather than using struct
2901 sigcontext.
2902 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
2903 (uc_sigmask): Define using __ctx.
2904 (uc_stack): Likewise.
2905 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
2906 <bits/sigcontext.h>.
2907 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2908 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
2909 <bits/sigcontext.h>.
2910 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
2911 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
2912 <bits/sigcontext.h>.
2913 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
2914 <bits/sigcontext.h>.
2915 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
2916 <bits/sigcontext.h>.
2917 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
2918 <bits/sigcontext.h>.
2919 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
2920 <bits/sigcontext.h>.
2921 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
2922 <bits/sigcontext.h>.
2923 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
2924 <bits/sigcontext.h>.
2925 (__ctx): Define earlier.
2926 (mcontext_t): Define structure contents rather than using struct
2927 sigcontext.
2928 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
2929 <bits/sigcontext.h>. Include <bits/types.h>.
2930 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
2931 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
2932 (test-xfail-XPG42/ucontext.h/conform): Likewise.
2933 (test-xfail-UNIX98/signal.h/conform): Likewise.
2934 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
2935 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
2936 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
2937 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
2938 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
2939 (test-xfail-POSIX2008/signal.h/conform): Likewise.
2940 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
2941 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
2942 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
2943
5898f454
FW
29442017-08-30 Florian Weimer <fweimer@redhat.com>
2945
2946 * malloc/dynarray_emplace_enlarge.c
2947 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
2948 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2949 * malloc/tst-dynarray.c (test_long_overflow): New function.
2950 (do_test): Call it.
2951
a9da0bb2
FW
29522017-08-30 Florian Weimer <fweimer@redhat.com>
2953
2954 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
2955 (set_arena_corrupt): Remove definitions.
2956 (mtrim): Do not check for corrupt arena.
2957 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
2958 Likewise.
2959
ac3ed168
FW
29602017-08-30 Florian Weimer <fweimer@redhat.com>
2961
2962 [BZ #21754]
2963 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
2964 check_action.
2965 (ptmalloc_init): Do not set or use check_action.
2966 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
2967 call to malloc_printerr. Remove return statement.
2968 (free_check): Likewise. Remove arena unlock.
2969 (top_check): Update comment. Adjust call to malloc_printerr.
2970 Remove heap repair code.
2971 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
2972 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
2973 (sysmalloc): Adjust call to malloc_printerr.
2974 (munmap_chunk, __libc_realloc): Likewise. Remove return
2975 statement.
2976 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
2977 Remove errout label and corresponding gotos.
2978 (_int_free): Likewise. Remove arena unlock.
2979 (do_set_mallopt_check): Do not set check_action.
2980 (malloc_printerr): Adjust parameter list. Do not mark arena as
2981 corrupt.
2982 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
2983 comment.
2984 * manual/probes.texi (Memory Allocation Probes): Remove
2985 memory_mallopt_check_action.
2986
44bcba80
SE
29872017-08-30 Steve Ellcey <sellcey@cavium.com>
2988
2989 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
2990 Use pointer to uint64_t instead of long int for sp.
2991
ec2c1fce
FW
29922017-08-30 Florian Weimer <fweimer@redhat.com>
2993
2994 [BZ #21754]
2995 * malloc/malloc.c (malloc_printerr): Always terminate the process,
2996 without printing a backtrace. Do not leak any information in the
2997 error message.
2998 * manual/memory.texi (Heap Consistency Checking): Update.
2999 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
3000
9ce673b6
FW
30012017-08-30 Florian Weimer <fweimer@redhat.com>
3002
3003 Do not scale NPTL tests with available number of CPUs.
3004 * nptl/tst-cond16.c (count): Set to constant value of 8.
3005 * nptl/tst-cond18.c (count): Likewise.
3006
2f1aef19
JM
30072017-08-29 Joseph Myers <joseph@codesourcery.com>
3008
3009 [BZ #22035]
3010 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
3011 Define to take a second argument that is a macro that
3012 concatentates a suffix, not the suffix itself.
3013 (__CONCAT_d): New macro.
3014 (__CONCAT_f): Likewise.
3015 (__CONCAT_l): Likewise.
3016
8325b477
PP
30172017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
3018
3019 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
3020 by child.
3021
319cbbf6
AZ
30222017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3023 Aurelien Jarno <aurelien@aurel32.net>
3024 Maciej W. Rozycki <macro@imgtec.com>
3025
3026 [BZ #21956]
3027 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
3028 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
3029 `mips16-syscall6' and `mips16-syscall7'.
3030 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
3031 (CFLAGS-mips16-syscall7.c): Remove.
3032 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
3033 Remove `__mips16_syscall5', `__mips16_syscall6' and
3034 `__mips16_syscall7'.
3035 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
3036 (__mips16_syscall0): Rename `__mips16_syscall_return' to
3037 `__mips_syscall_return'.
3038 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
3039 (__mips16_syscall1): Likewise.
3040 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
3041 (__mips16_syscall2): Likewise.
3042 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
3043 (__mips16_syscall3): Likewise.
3044 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
3045 (__mips16_syscall4): Likewise.
3046 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
3047 Remove.
3048 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
3049 Remove.
3050 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
3051 Remove.
3052 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
3053 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
3054 `__mips16_syscall5'. Remove prototype.
3055 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
3056 `__mips16_syscall6'. Remove prototype.
3057 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
3058 `__mips16_syscall7'. Remove prototype.
3059 (__nomips16, __mips16_syscall_return): Move to...
3060 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
3061 (__nomips16, __mips_syscall_return): ... here.
3062 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
3063 `__mips16_syscall_return' to `__mips_syscall_return'.
3064 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
3065 `internal_syscall##nr'.
3066 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
3067 `internal_syscall##nr'.
3068 (FORCE_FRAME_POINTER): Remove.
3069 (__mips_syscall5): New prototype.
3070 (internal_syscall5): Rewrite to call `__mips_syscall5'.
3071 (__mips_syscall6): New prototype.
3072 (internal_syscall6): Rewrite to call `__mips_syscall6'.
3073 (__mips_syscall7): New prototype.
3074 (internal_syscall7): Rewrite to call `__mips_syscall7'.
3075 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
3076 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
3077 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
3078 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
3079 (sysdep_routines): Add libc-do-syscall.
3080 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
3081 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
3082
01b87c65
AZ
30832017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3084
3085 [BZ #21672]
3086 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
3087 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
3088 (advise_stack_range): New function.
3089 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
3090 stack non required to advise_stack_range at allocatestack.c
3091
16f138a4
SN
30922017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3093
3094 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
3095
251bccfa
FW
30962017-08-29 Florian Weimer <fweimer@redhat.com>
3097
3098 [BZ #22026]
3099 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
3100 __end_fct. Mangle __end_fct after setting it to NULL.
3101 * iconv/Makefile (tests): Add tst-gconv-init-failure.
3102 (modules-names, modules-names-tests): Add
3103 tst-gconv-init-failure-mod.
3104 (gconv-modules): New target.
3105 (tst-gconv-init-failure-mod.so): Link against libsupport.
3106 (tst-gconv-init-failure): Depend on gconv-modules,
3107 tst-gconv-init-failure-mod.so.
3108 * iconv/tst-gconv-init-failure-mod.c: New file.
3109 * iconv/tst-gconv-init-failure.c: Likewise.
3110 * iconv/test-gconv-modules: Likewise.
3111
e7c18b9d
FW
31122017-08-29 Florian Weimer <fweimer@redhat.com>
3113
3114 [BZ #22025]
3115 * iconv/gconv_db.c (free_derivation): Remove redundant
3116 parentheses.
3117 (gen_steps): Unconditionally mangle __btowc_fct after
3118 initialization.
3119 (increment_counter): Likewise. Do not call init_fct for internal
3120 modules.
3121
7daada03
JM
31222017-08-29 Joseph Myers <joseph@codesourcery.com>
3123
3124 [BZ #22028]
3125 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
3126 (_MSUF_): Remove macro.
3127 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
3128 Likewise.
3129 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
3130 (__REDIRFROM_X): New macro.
3131 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
3132 Likewise.
3133 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
3134 (__REDIRTO_X): Likewise.
3135 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
3136 arguments.
3137 (__MATH_REDIRCALL_2): Likewise.
3138 (__MATH_REDIRCALL_INTERNAL): Likewise.
3139 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
3140 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
3141 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
3142 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
3143 * math/test-finite-macros.c: New file.
3144 * math/Makefile (tests): Add test-finite-macros.
3145 (CFLAGS-test-finite-macros.c): New variable.
3146
1cf1232c
PF
31472017-08-29 Patsy Franklin <pfrankli@redhat.com>
3148 Jeff Law <law@redhat.com>
3149
3150 [BZ #22025]
3151 Mangle NULL pointers in iconv/gconv.
3152 * iconv/gconv_cache.c (find_module): Demangle init_fct before
3153 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
3154 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
3155 is non-NULL before demangling the end_fct. Check for NULL
3156 end_fct after demangling.
3157 (__gconv_release_step): Demangle the end_fct before checking
3158 it for NULL. Remove assert on __shlibc_handle != NULL.
3159 (gen_steps): Don't check btowc_fct for NULL before mangling.
3160 Demangle init_fct before checking for NULL.
3161 (increment_counter): Likewise.
3162 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
3163 end_fct for NULL before mangling.
3164 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
3165 for NULL.
3166
c207f7ce 31672017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
3168
3169 [BZ #21971]
3170 * locale/iso-639.def: add Morisyen.
3171
42496114
GG
31722017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3173
3174 [BZ #21930]
3175 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
3176 (iszero): New C++ implementation that does not use
3177 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
3178 signaling nans are enabled, since __builtin_types_compatible_p
3179 is a C-only feature.
3180 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
3181 defined, include ieee754_float128.h for access to the union and
3182 member ieee854_float128.ieee.
3183 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
3184 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
3185 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
3186 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
3187 options of test-math-zero on powerpc64le.
3188
5e2bc4ff
L
31892017-08-28 H.J. Lu <hongjiu.lu@intel.com>
3190
3191 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
3192 Change double to float.
3193
a48c0fb4
JM
31942017-08-28 Joseph Myers <joseph@codesourcery.com>
3195
3196 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
3197 unconditional.
3198 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
3199 conditional code; define contents only for [LIBM_SVID_COMPAT].
3200
ee17d4e9
FW
32012017-08-28 Florian Weimer <fweimer@redhat.com>
3202
3203 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
3204 (abi-lp64_be-options): Remove.
3205 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
3206 (abi-hard-options): Likewise.
3207 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
3208 (abi-o32_hard-options, abi-o32_soft_2008-options)
3209 (abi-o32_hard_2008-options, abi-n32_soft-options)
3210 (abi-n32_hard-options, abi-n32_soft_2008-options)
3211 (abi-n32_hard_2008-options, abi-n64_soft-options)
3212 (abi-n64_hard-options, abi-n64_soft_2008-options)
3213 (abi-n64_hard_2008-options): Likewise.
3214 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
3215 (abi-64-v1-options, abi-64-v2-options): Likewise.
3216 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
3217 (abi-64-options): Likewise.
3218 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
3219 (abi-64-options): Likewise.
3220 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
3221 (abi-64-options): Likewise.
3222 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
3223 (abi-64-options, abi-x32-options): Likewise.
3224
2dba5ce7
FW
32252017-08-28 Florian Weimer <fweimer@redhat.com>
3226
3227 Store supported list of SYS_* system calls in the source tree.
3228 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3229 (bits/syscall.h): Generate from list file.
3230 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
3231 [$(subdir) = misc] (tests): Add tst-syscall-list.
3232 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
3233 [$(subdir) = misc] (tst-syscall-list-macros.list)
3234 [$(subdir) = misc] (tst-syscall-list-nr.list)
3235 (tst-syscall-list-sys.list): Helper targets for new
3236 tst-syscall-list test.
3237 [$(subdir) = misc] (tst-syscall-list.out): Run test script
3238 tst-syscall-list.sh.
3239 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
3240 target. Do not include bits/syscall.d.
3241 [$(subdir) = misc] (generated): Do not update.
3242 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
3243 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
3244 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
3245 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
3246
5f3b183d
PP
32472017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
3248
3249 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
3250 (tst-cxa_atexit, tst-on_exit): Likewise.
3251 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
3252 tst-cxa_atexit, and tst-on_exit.
3253 * stdlib/tst-atexit-common.c: New file.
3254 * stdlib/tst-atexit.c: New file.
3255 * stdlib/tst-at_quick_exit.c: New file.
3256 * stdlib/tst-cxa_atexit.c: New file.
3257 * stdlib/tst-on_exit.c: New file.
3258
2ef8d469
ST
32592017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
3260
3261 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
3262 * mach/stack_chk_fail_local.c: New file.
3263 * hurd/stack_chk_fail_local.c: New file.
3264 * mach/Machrules ($(interface-library)-routines): Add
3265 stack_chk_fail_local.
99ee4d26
ST
3266 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
3267 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
3268 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
3269 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
3270 * hurd/Makefile (CFLAGS-hurdstartup.o,
3271 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 3272
7ab70c98
L
32732017-08-25 H.J. Lu <hongjiu.lu@intel.com>
3274
3275 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
3276 (index_cpu_*, index_arch_*): Removed.
3277
39e7a5a6
SN
32782017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3279
3280 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
3281 Use uint64_t instead of unsigned long.
3282
bba5c930
JM
32832017-08-25 Joseph Myers <joseph@codesourcery.com>
3284
a6ccdb08
JM
3285 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
3286 [__HAVE_DISTINCT_FLOAT128].
3287
23761119
JM
3288 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
3289 of <bits/math-finite.h>.
3290 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
3291 inclusion of <bits/math-finite.h>.
3292 * math/bits/math-finite.h (__REDIRTO_X): Do not define
3293 conditionally on [__MATH_DECLARING_LDOUBLE && defined
3294 __NO_LONG_DOUBLE_MATH].
3295 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
3296 (__MATH_REDIRCALL_2): Likewise.
3297 (__MATH_REDIRCALL_INTERNAL): Likewise.
3298 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
3299 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
3300 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
3301
bba5c930
JM
3302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
3303 Remove file.
3304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
3305 Likewise.
3306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
3307 Likewise.
3308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
3309 Likewise.
3310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
3311 Likewise.
3312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
3313 Likewise.
3314 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
3315 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
3316 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
3317 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
3318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3319 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
3320 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
3321 w_sqrtf_compat-ppc32.
3322
3d7b66f6
GG
33232017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3324
3325 * math/math.h [defined __cplusplus] (issignaling): In the long
3326 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
3327 is not defined. Call __issignaling, otherwise.
3328
ebd6f007
AZ
33292017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3330
3331 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
3332 syscall definitions and replace __builtin_expect with __glibc_likely.
3333 * sysdeps/unix/syscall-template.S: Update comment about cancellable
3334 syscall.
3335 (SYSCALL_CANCELLABLE): Removedefinition
3336 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
3337 definition.
3338 (PSEUDO_END): Likewise.
3339 [IS_IN (libpthread)] (CENABLE): Likewise.
3340 [IS_IN (libpthread)] (CDISABLE): Likewise.
3341 [IS_IN (libc)] (CENABLE): Likewise.
3342 [IS_IN (libc)] (CENABLE): Likewise.
3343 [IS_IN (librt)] (CDISABLE): Likewise.
3344 [IS_IN (librt)] (CDISABLE): Likewise.
3345 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3346 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
3347 definition.
3348 (PSEUDO_END): Likewise.
3349 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
3350 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
3351 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
3352 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
3353 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
3354 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
3355 (CENABLE): Likewise.
3356 (CDISABLE): Likewise.
3357 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3358 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
3359 defintion.
3360 (PSEUDO_END): Likewise.
3361 [IS_IN (libpthread)] (CENABLE): Likewise.
3362 [IS_IN (libpthread)] (CDISABLE): Likewise.
3363 [IS_IN (libc)] (CENABLE): Likewise.
3364 [IS_IN (libc)] (CENABLE): Likewise.
3365 [IS_IN (librt)] (CDISABLE): Likewise.
3366 [IS_IN (librt)] (CDISABLE): Likewise.
3367 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3368 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
3369 definition.
3370 (PSEUDO_END): Likewise.
3371 [IS_IN (libpthread)] (CENABLE): Likewise.
3372 [IS_IN (libpthread)] (CDISABLE): Likewise.
3373 [IS_IN (libc)] (CENABLE): Likewise.
3374 [IS_IN (libc)] (CENABLE): Likewise.
3375 [IS_IN (librt)] (CDISABLE): Likewise.
3376 [IS_IN (librt)] (CDISABLE): Likewise.
3377 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3378 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
3379 definition.
3380 (PSEUDO_END): Likewise.
3381 [IS_IN (libpthread)] (CENABLE): Likewise.
3382 [IS_IN (libpthread)] (CDISABLE): Likewise.
3383 [IS_IN (libc)] (CENABLE): Likewise.
3384 [IS_IN (libc)] (CENABLE): Likewise.
3385 [IS_IN (librt)] (CDISABLE): Likewise.
3386 [IS_IN (librt)] (CDISABLE): Likewise.
3387 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3388 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
3389 definition.
3390 (PSEUDO_END): Likewise.
3391 [IS_IN (libpthread)] (CENABLE): Likewise.
3392 [IS_IN (libpthread)] (CDISABLE): Likewise.
3393 [IS_IN (libc)] (CENABLE): Likewise.
3394 [IS_IN (libc)] (CENABLE): Likewise.
3395 [IS_IN (librt)] (CDISABLE): Likewise.
3396 [IS_IN (librt)] (CDISABLE): Likewise.
3397 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3398 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
3399 definition.
3400 (PSEUDO_END): Likewise.
3401 [IS_IN (libpthread)] (CENABLE): Likewise.
3402 [IS_IN (libpthread)] (CDISABLE): Likewise.
3403 [IS_IN (libc)] (CENABLE): Likewise.
3404 [IS_IN (libc)] (CENABLE): Likewise.
3405 [IS_IN (librt)] (CDISABLE): Likewise.
3406 [IS_IN (librt)] (CDISABLE): Likewise.
3407 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3408 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
3409 definition.
3410 (PSEUDO_END): Likewise.
3411 [IS_IN (libpthread)] (CENABLE): Likewise.
3412 [IS_IN (libpthread)] (CDISABLE): Likewise.
3413 [IS_IN (libc)] (CENABLE): Likewise.
3414 [IS_IN (libc)] (CENABLE): Likewise.
3415 [IS_IN (librt)] (CDISABLE): Likewise.
3416 [IS_IN (librt)] (CDISABLE): Likewise.
3417 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3418 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
3419 Remove definition.
3420 (PSEUDO_END): Likewise.
3421 [IS_IN (libpthread)] (CENABLE): Likewise.
3422 [IS_IN (libpthread)] (CDISABLE): Likewise.
3423 [IS_IN (libc)] (CENABLE): Likewise.
3424 [IS_IN (libc)] (CENABLE): Likewise.
3425 [IS_IN (librt)] (CDISABLE): Likewise.
3426 [IS_IN (librt)] (CDISABLE): Likewise.
3427 (SINGLE_THREAD_P): Likewise.
3428 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
3429 definition.
3430 (PSEUDO_END): Likewise.
3431 [IS_IN (libpthread)] (CENABLE): Likewise.
3432 [IS_IN (libpthread)] (CDISABLE): Likewise.
3433 [IS_IN (libc)] (CENABLE): Likewise.
3434 [IS_IN (libc)] (CENABLE): Likewise.
3435 [IS_IN (librt)] (CDISABLE): Likewise.
3436 [IS_IN (librt)] (CDISABLE): Likewise.
3437 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3438 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
3439 definition.
3440 (PSEUDO_END): Likewise.
3441 [IS_IN (libpthread)] (CENABLE): Likewise.
3442 [IS_IN (libpthread)] (CDISABLE): Likewise.
3443 [IS_IN (libc)] (CENABLE): Likewise.
3444 [IS_IN (libc)] (CENABLE): Likewise.
3445 [IS_IN (librt)] (CDISABLE): Likewise.
3446 [IS_IN (librt)] (CDISABLE): Likewise.
3447 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3448 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
3449 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
3450 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
3451 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
3452 definition.
3453 (PSEUDO_END): Likewise.
3454 [IS_IN (libpthread)] (CENABLE): Likewise.
3455 [IS_IN (libpthread)] (CDISABLE): Likewise.
3456 [IS_IN (libc)] (CENABLE): Likewise.
3457 [IS_IN (libc)] (CENABLE): Likewise.
3458 [IS_IN (librt)] (CDISABLE): Likewise.
3459 [IS_IN (librt)] (CDISABLE): Likewise.
3460 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3461 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
3462 definition.
3463 (PSEUDO_END): Likewise.
3464 [IS_IN (libpthread)] (CENABLE): Likewise.
3465 [IS_IN (libpthread)] (CDISABLE): Likewise.
3466 [IS_IN (libc)] (CENABLE): Likewise.
3467 [IS_IN (libc)] (CENABLE): Likewise.
3468 [IS_IN (librt)] (CDISABLE): Likewise.
3469 [IS_IN (librt)] (CDISABLE): Likewise.
3470 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3471 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
3472 definition.
3473 (PSEUDO_END): Likewise.
3474 [IS_IN (libpthread)] (CENABLE): Likewise.
3475 [IS_IN (libpthread)] (CDISABLE): Likewise.
3476 [IS_IN (libc)] (CENABLE): Likewise.
3477 [IS_IN (libc)] (CENABLE): Likewise.
3478 [IS_IN (librt)] (CDISABLE): Likewise.
3479 [IS_IN (librt)] (CDISABLE): Likewise.
3480 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3481 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
3482 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
3483 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
3484 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
3485 definition.
3486 (PSEUDO_END): Likewise.
3487 [IS_IN (libpthread)] (CENABLE): Likewise.
3488 [IS_IN (libpthread)] (CDISABLE): Likewise.
3489 [IS_IN (libc)] (CENABLE): Likewise.
3490 [IS_IN (libc)] (CENABLE): Likewise.
3491 [IS_IN (librt)] (CDISABLE): Likewise.
3492 [IS_IN (librt)] (CDISABLE): Likewise.
3493 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3494 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
3495 definition.
3496 (PSEUDO_END): Likewise.
3497 [IS_IN (libpthread)] (CENABLE): Likewise.
3498 [IS_IN (libpthread)] (CDISABLE): Likewise.
3499 [IS_IN (libc)] (CENABLE): Likewise.
3500 [IS_IN (libc)] (CENABLE): Likewise.
3501 [IS_IN (librt)] (CDISABLE): Likewise.
3502 [IS_IN (librt)] (CDISABLE): Likewise.
3503 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
3504
8aa48656
SN
35052017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3506
3507 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
3508
fcaaca41
L
35092017-08-23 H.J. Lu <hongjiu.lu@intel.com>
3510
3511 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
3512
376b40a2
L
35132017-08-23 H.J. Lu <hongjiu.lu@intel.com>
3514
3515 [BZ #21982]
3516 * string/stratcliff.c (do_test): Declare size, nchars, inner,
3517 middle and outer with size_t instead of int. Repleace %d and
3518 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
3519 "MAX (outer, nchars - 64)" to support unsigned outer and
3520 nchars. Also exit loop when outer == 0.
3521
2b0b9a1c
AZ
35222017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3523
3524 * include/fcntl.h (__fcntl_nocancel): Remove definition.
3525 * include/signal.h (__sigsuspend_nocancel): Likewise.
3526 * include/time.h (__nanosleep_nocancel): Likewise.
3527 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
3528 * login/utmp_file.c: Include non cancellable syscall header.
3529 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
3530 prototype.
3531
b9eaca8f
L
35322017-08-23 H.J. Lu <hongjiu.lu@intel.com>
3533
3534 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
3535 .byte sequences with AVX512F instructions.
3536 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
3537 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
3538 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
3539 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
3540 Likewise.
3541 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
3542 Likewise.
3543
5a706f64
SE
35442017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3545 Steve Ellcey <sellcey@cavium.com>
3546
3547 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
3548 Use PTR_REG macro in cmp instruction.
3549
b513da7e
GG
35502017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3551
3552 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
3553 Change the return type of the ifunc resolver to match the return
3554 type of the target function.
3555
78ca091c
AZ
35562017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3557
b70b6026
AZ
3558 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
3559 (preadv64): Likewise.
3560 (pwrite64(: Likewise.
3561 (pwritev64): Likewise.
3562
78ca091c
AZ
3563 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
3564 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
3565 (LOAD_ARGS_0): Likewise.
3566 (LOAD_ARGS_1): Likewise.
3567 (LOAD_ARGS_2): Likewise.
3568 (LOAD_ARGS_3): Likewise.
3569 (LOAD_ARGS_4): Likewise.
3570 (LOAD_ARGS_5): Likewise.
3571 (LOAD_ARGS_6): Likewise.
3572 (LOAD_REGS_0): Likewise.
3573 (LOAD_REGS_1): Likewise.
3574 (LOAD_REGS_2): Likewise.
3575 (LOAD_REGS_3): Likewise.
3576 (LOAD_REGS_4): Likewise.
3577 (LOAD_REGS_5): Likewise.
3578 (LOAD_REGS_6): Likewise.
3579 (ASM_ARGS_0): Likewise.
3580 (ASM_ARGS_1): Likewise.
3581 (ASM_ARGS_2): Likewise.
3582 (ASM_ARGS_3): Likewise.
3583 (ASM_ARGS_4): Likewise.
3584 (ASM_ARGS_5): Likewise.
3585 (ASM_ARGS_6): Likewise.
3586 (LOAD_ARGS_TYPES_1): Likewise.
3587 (LOAD_ARGS_TYPES_2): Likewise.
3588 (LOAD_ARGS_TYPES_3): Likewise.
3589 (LOAD_ARGS_TYPES_4): Likewise.
3590 (LOAD_ARGS_TYPES_5): Likewise.
3591 (LOAD_ARGS_TYPES_6): Likewise.
3592 (LOAD_REGS_TYPES_1): Likewise.
3593 (LOAD_REGS_TYPES_2): Likewise.
3594 (LOAD_REGS_TYPES_3): Likewise.
3595 (LOAD_REGS_TYPES_4): Likewise.
3596 (LOAD_REGS_TYPES_5): Likewise.
3597 (LOAD_REGS_TYPES_6): Likewise.
3598 (TYPEFY): New define.
3599 (ARGIFY): Likewise.
3600 (internal_syscall0): Likewise.
3601 (internal_syscall1): Likewise.
3602 (internal_syscall2): Likewise.
3603 (internal_syscall3): Likewise.
3604 (internal_syscall4): Likewise.
3605 (internal_syscall5): Likewise.
3606 (internal_syscall6): Likewise.
3607 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
3608 (INTERNAL_SYSCALL_NCS): Remove define.
3609 (internal_syscall1): Add define.
3610
453a493d
GG
36112017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3612
3613 * math/w_remainder_compat.c: Remove duplicate inclusion of
3614 math-svid-compat.h.
3615 * math/w_remainderf_compat.c: Likewise.
3616 * math/w_remainderl_compat.c: Likewise.
3617
f2f048a5
GG
36182017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3619
3620 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3621
d9bef9c0
JM
36222017-08-22 Joseph Myers <joseph@codesourcery.com>
3623
3624 [BZ #21684]
3625 * math/tgmath.h (__floating_type): Simplify definitions.
3626 (__real_integer_type): New macro.
3627 (__complex_integer_type): Likewise.
3628 (__expr_is_real): Likewise.
3629 (__tgmath_real_type_sub): Update comment to describe handling of
3630 complex types.
3631 (__tgmath_complex_type_sub): New macro.
3632 (__tgmath_complex_type): Likewise.
3633 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3634 (__TGMATH_CF128): Use __expr_is_real.
3635 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
3636 __expr_is_real.
3637 (__TGMATH_BINARY_REAL_IMAG): Likewise.
3638 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
3639 * math/gen-tgmath-tests.py (Type.create_type): Create complex
3640 integer types.
3641
08d6eb46
AZ
36422017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3643
988f991b
AZ
3644 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
3645 macro.
3646 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
3647 alias.
3648 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
3649 Likewise.
3650
6f33fd04
AZ
3651 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
3652 nanosleep_not_cancel with __nanosleep_nocancel.
3653 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
3654 (__nanosleep_nocancel): New macro.
3655 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
3656 function.
3657 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
3658 macro.
3659 (__nanosleep_nocancel): New prototype.
3660
08d6eb46
AZ
3661 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
3662 pause_not_cancel with __pause_nocancel.
3663 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
3664 (__pause_nocancel): New macro.
3665 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
3666 macro.
3667 (__pause_nocancel): New prototype.
3668 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
3669
ee4e992e
MS
36702017-08-22 Martin Sebor <msebor@redhat.com>
3671
3672 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
3673 to return a pointer to the same type as the target function.
3674
20962acb
L
36752017-08-22 H.J. Lu <hongjiu.lu@intel.com>
3676
3677 [BZ #18822]
3678 [BZ #21986]
3679 * include/printf.h (__printf_fphex): Add attribute_hidden.
3680 (__guess_grouping): New prototype.
3681 * stdio-common/printf_fp.c (__guess_grouping): Removed.
3682 * stdio-common/reg-printf.c (__register_printf_specifier): Add
3683 libc_hidden_proto and libc_hidden_def.
3684 * stdlib/strfmon_l.c (__guess_grouping): Removed.
3685 (__vstrfmon_l): Remove the third argument passed to
3686 __guess_grouping.
3687
a16e8bc0
GG
36882017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
3689
3690 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
3691 definition for issignaling that does not rely on __MATH_TG,
3692 since __MATH_TG uses __builtin_types_compatible_p, which is only
3693 available in C mode.
3694 (CFLAGS-test-math-issignaling.cc): New variable.
3695 * math/Makefile [CXX] (tests): Add test-math-issignaling.
3696 * math/test-math-issignaling.cc: New test for C++ implementation
3697 of type-generic issignaling.
3698 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
3699 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
3700 options of test-math-issignaling on powerpc64le.
3701
8d2ec553
L
37022017-08-22 H.J. Lu <hongjiu.lu@intel.com>
3703
3704 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
3705 building libc.a.
3706 (hidden_proto): Likewise.
3707 (hidden_tls_proto): Likewise.
3708 (__hidden_proto): Likewise.
3709
a4d57b79
FW
37102017-08-22 Florian Weimer <fweimer@redhat.com>
3711
3712 math: Statically link tests of internal functionality.
3713 * math/Makefile (tests): Remove atest-exp, atest-sincos,
3714 atest-exp2.
3715 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
3716 (gmp-objs): Remove assignment.
3717 (atest-exp, atest-sincos, atest-exp2): Remove targets.
3718
75dfe623
JM
37192017-08-22 Joseph Myers <joseph@codesourcery.com>
3720
80f91666
JM
3721 [BZ #21987]
3722 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
3723 and copy to ...
3724 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
3725 ... here.
3726 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
3727 ... and here.
3728
75dfe623
JM
3729 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
3730 variable definitions above inclusion of ../Rules.
3731
ea99fcd0
JM
37322017-08-21 Joseph Myers <joseph@codesourcery.com>
3733
3734 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
3735 case calling __builtin_unreachable.
3736
19926de9
AZ
37372017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3738
a8410a5f
AZ
3739 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
3740 __waitpid_nocancel.
3741 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
3742 (__waitpid_nocancel): New macro.
3743 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
3744 macro.
3745 (__waitpid_nocancel): Replace macro with a function.
3746 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
3747 function.
3748
7369800c
AZ
3749 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
3750 __fcntl_nocancel.
3751 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
3752 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
3753
19926de9
AZ
3754 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
3755 __writev_nocancel_nostatus.
3756 (write_call_graph): Likewise.
3757 (write_bb_counts): Likewise.
3758 * resolv/herror.c (herror): Likewise.
3759 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
3760 macro.
3761 (__writev_nocancel_nostatus): New macro.
3762 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
3763 Remove macro.
3764 (__writev_nocancel_nostatus): New function.
3765
813378e9
JM
37662017-08-21 Joseph Myers <joseph@codesourcery.com>
3767
df1deda6
JM
3768 Revert:
3769 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
3770
3771 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
3772 building libc.a.
3773 (hidden_proto): Likewise.
3774 (hidden_tls_proto): Likewise.
3775 (__hidden_proto): Likewise.
3776
831bbd55
JM
3777 [BZ #21973]
3778 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
3779 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
3780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
3781 Likewise.
3782 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
3783 Likewise.
3784 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
3785 Likewise.
3786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
3787 Likewise.
3788 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
3789 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
3790 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
3791 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
3792 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3793 GLIBC_2.0 sqrtl symbol.
3794
813378e9
JM
3795 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
3796 [__USE_MISC] (_LIB_VERSION): Likewise.
3797 [__USE_MISC] (struct exception): Likewise.
3798 [__USE_MISC] (matherr): Likewise.
3799 [__USE_MISC] (DOMAIN): Likewise.
3800 [__USE_MISC] (SING): Likewise.
3801 [__USE_MISC] (OVERFLOW): Likewise.
3802 [__USE_MISC] (UNDERFLOW): Likewise.
3803 [__USE_MISC] (TLOSS): Likewise.
3804 [__USE_MISC] (PLOSS): Likewise.
3805 [__USE_MISC] (HUGE): Likewise.
3806 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
3807 * math/math-svid-compat.h: New file.
3808 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
3809 and matherrl.
3810 * include/math.h [!_ISOMAC] (__matherr): Remove.
3811 * manual/arith.texi (FP Exceptions): Do not document matherr.
3812 * math/Makefile (tests): Change test-matherr to test-matherr-3.
3813 (tests-internal): New variable.
3814 (install-lib): Do not add libieee.a.
3815 (non-lib.a): Likewise.
3816 (extra-objs): Do not add libieee.a and ieee-math.o.
3817 (CPPFLAGS-s_lib_version.c): Remove variable.
3818 ($(objpfx)libieee.a): Remove rule.
3819 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
3820 * math/ieee-math.c: Remove.
3821 * math/libm-test-support.c (matherr): Remove.
3822 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
3823 and license notices. Include <math-svid-compat.h> and
3824 <shlib-compat.h>.
3825 (matherr): Undefine as macro. Use compat_symbol_reference.
3826 (_LIB_VERSION): Likewise.
3827 * math/test-matherr-2.c: New file.
3828 * math/test-matherr-3.c: Likewise.
3829 * sysdeps/generic/math_private.h (__kernel_standard): Remove
3830 declaration.
3831 (__kernel_standard_f): Likewise.
3832 (__kernel_standard_l): Likewise.
3833 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
3834 <math_private.h>. Include <math-svid-compat.h>.
3835 (_LIB_VERSION): Undefine as macro.
3836 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
3837 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
3838 [LIBM_SVID_COMPAT], use compat_symbol.
3839 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
3840 <math_private.h>. Include <math-svid-compat.h>.
3841 (matherr): Undefine as macro.
3842 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
3843 compat_symbol.
3844 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
3845 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
3846 compat_symbol_reference.
3847 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
3848 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
3849 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
3850 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
3851 (MATHERR_D): Remove declaration.
3852 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
3853 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
3854 [LIBM_BUILD] (pmatherrf): Likewise.
3855 [LIBM_BUILD] (pmatherr): Likewise.
3856 [LIBM_BUILD] (pmatherrl): Likewise.
3857 (DOMAIN): Likewise.
3858 (SING): Likewise.
3859 (OVERFLOW): Likewise.
3860 (UNDERFLOW): Likewise.
3861 (TLOSS): Likewise.
3862 (PLOSS): Likewise.
3863 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
3864 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
3865 compat_symbol.
3866 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
3867 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
3868 compat_symbol.
3869 * math/lgamma-compat.h: Include <math-svid-compat.h>.
3870 * math/w_acos_compat.c: Likewise.
3871 * math/w_acosf_compat.c: Likewise.
3872 * math/w_acosh_compat.c: Likewise.
3873 * math/w_acoshf_compat.c: Likewise.
3874 * math/w_acoshl_compat.c: Likewise.
3875 * math/w_acosl_compat.c: Likewise.
3876 * math/w_asin_compat.c: Likewise.
3877 * math/w_asinf_compat.c: Likewise.
3878 * math/w_asinl_compat.c: Likewise.
3879 * math/w_atan2_compat.c: Likewise.
3880 * math/w_atan2f_compat.c: Likewise.
3881 * math/w_atan2l_compat.c: Likewise.
3882 * math/w_atanh_compat.c: Likewise.
3883 * math/w_atanhf_compat.c: Likewise.
3884 * math/w_atanhl_compat.c: Likewise.
3885 * math/w_cosh_compat.c: Likewise.
3886 * math/w_coshf_compat.c: Likewise.
3887 * math/w_coshl_compat.c: Likewise.
3888 * math/w_exp10_compat.c: Likewise.
3889 * math/w_exp10f_compat.c: Likewise.
3890 * math/w_exp10l_compat.c: Likewise.
3891 * math/w_exp2_compat.c: Likewise.
3892 * math/w_exp2f_compat.c: Likewise.
3893 * math/w_exp2l_compat.c: Likewise.
3894 * math/w_fmod_compat.c: Likewise.
3895 * math/w_fmodf_compat.c: Likewise.
3896 * math/w_fmodl_compat.c: Likewise.
3897 * math/w_hypot_compat.c: Likewise.
3898 * math/w_hypotf_compat.c: Likewise.
3899 * math/w_hypotl_compat.c: Likewise.
3900 * math/w_j0_compat.c: Likewise.
3901 * math/w_j0f_compat.c: Likewise.
3902 * math/w_j0l_compat.c: Likewise.
3903 * math/w_j1_compat.c: Likewise.
3904 * math/w_j1f_compat.c: Likewise.
3905 * math/w_j1l_compat.c: Likewise.
3906 * math/w_jn_compat.c: Likewise.
3907 * math/w_jnf_compat.c: Likewise.
3908 * math/w_jnl_compat.c: Likewise.
3909 * math/w_lgamma_main.c: Likewise.
3910 * math/w_lgamma_r_compat.c: Likewise.
3911 * math/w_lgammaf_main.c: Likewise.
3912 * math/w_lgammaf_r_compat.c: Likewise.
3913 * math/w_lgammal_main.c: Likewise.
3914 * math/w_lgammal_r_compat.c: Likewise.
3915 * math/w_log10_compat.c: Likewise.
3916 * math/w_log10f_compat.c: Likewise.
3917 * math/w_log10l_compat.c: Likewise.
3918 * math/w_log2_compat.c: Likewise.
3919 * math/w_log2f_compat.c: Likewise.
3920 * math/w_log2l_compat.c: Likewise.
3921 * math/w_log_compat.c: Likewise.
3922 * math/w_logf_compat.c: Likewise.
3923 * math/w_logl_compat.c: Likewise.
3924 * math/w_pow_compat.c: Likewise.
3925 * math/w_powf_compat.c: Likewise.
3926 * math/w_powl_compat.c: Likewise.
3927 * math/w_remainder_compat.c: Likewise.
3928 * math/w_remainderf_compat.c: Likewise.
3929 * math/w_remainderl_compat.c: Likewise.
3930 * math/w_scalb_compat.c: Likewise.
3931 * math/w_scalbf_compat.c: Likewise.
3932 * math/w_scalbl_compat.c: Likewise.
3933 * math/w_sinh_compat.c: Likewise.
3934 * math/w_sinhf_compat.c: Likewise.
3935 * math/w_sinhl_compat.c: Likewise.
3936 * math/w_sqrt_compat.c: Likewise.
3937 * math/w_sqrtf_compat.c: Likewise.
3938 * math/w_sqrtl_compat.c: Likewise.
3939 * math/w_tgamma_compat.c: Likewise.
3940 * math/w_tgammaf_compat.c: Likewise.
3941 * math/w_tgammal_compat.c: Likewise.
3942 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3943 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3944 * sysdeps/ieee754/k_standard.c: Likewise.
3945 * sysdeps/ieee754/k_standardf.c: Likewise.
3946 * sysdeps/ieee754/k_standardl.c: Likewise.
3947 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3948 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3949 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3950 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
3951 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
3952 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
3953 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
3954 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
3955 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
3956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
3957 Likewise.
3958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
3959 Likewise.
3960 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
3961 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
3962 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
3963 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
3964
4504783c
FW
39652017-08-21 Florian Weimer <fweimer@redhat.com>
3966
3967 [BZ #21864]
3968 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
3969 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
3970 Move before inclusion of ../Rules.
3971
b5889d25
FW
39722017-08-21 Florian Weimer <fweimer@redhat.com>
3973
3974 [BZ #21972]
3975 * assert/assert.h (assert): Use static_cast (bool) for C++.
3976 Use the ternary operator in the warning branch for GNU C.
3977 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
3978 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
3979 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
3980 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
3981 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
3982
41e673c1
L
39832017-08-21 H.J. Lu <hongjiu.lu@intel.com>
3984
3985 [BZ #18822]
3986 * sysdeps/unix/sysv/linux/x86_64/init-first.c
3987 (__syscall_clock_gettime): Add attribute_hidden.
3988 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
3989 (__start_context): Likewise.
3990
568ff429
L
39912017-08-21 H.J. Lu <hongjiu.lu@intel.com>
3992
3993 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
3994 building libc.a.
3995 (hidden_proto): Likewise.
3996 (hidden_tls_proto): Likewise.
3997 (__hidden_proto): Likewise.
3998
7c41b4a1
L
39992017-08-21 H.J. Lu <hongjiu.lu@intel.com>
4000
4001 * include/libc-symbols.h (attribute_hidden): Enable hidden
4002 visibility in libc.a compiled with PIE.
4003
483d7068
L
40042017-08-21 H.J. Lu <hongjiu.lu@intel.com>
4005
4006 [BZ #18822]
4007 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
4008 Add attribute_hidden.
4009
40102017-08-21 H.J. Lu <hongjiu.lu@intel.com>
4011
4012 [BZ #21864]
4013 * Makerules (all-nonlib): Add $(others-extras).
4014 * catgets/Makefile (others-extras): New.
4015 * elf/Makefile (others-extras): Likewise.
4016 * nss/Makefile (others-extras): Likewise.
4017
54e4b8f2
L
40182017-08-21 H.J. Lu <hongjiu.lu@intel.com>
4019
4020 [BZ #18822]
4021 * csu/libc-start.c (__libc_multiple_libcs): Removed.
4022 * elf/dl-open.c: Include <libc-internal.h>.
4023 (__libc_multiple_libcs): Removed.
4024 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
4025 <hp-timing.h>.
4026 * include/libc-internal.h (__libc_multiple_libcs): New.
4027 * misc/sbrk.c: Include <libc-internal.h>.
4028 (__libc_multiple_libcs): Removed.
4029
1dbbb1ec
L
40302017-08-21 H.J. Lu <hongjiu.lu@intel.com>
4031
4032 [BZ #18822]
4033 * grp/initgroups.c (__nss_group_database): Removed.
4034 (__nss_initgroups_database): Likewise.
4035 * nscd/gai.c (__nss_hosts_database): Likewise.
4036 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
4037 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
4038 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
4039 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
4040 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
4041 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
4042 attribute_hidden.
4043 * nss/nsswitch.c (__nss_database_custom): Define only if
4044 USE_NSCD is defined.
4045 (__nss_configure_lookup): Use __nss_database_custom only if
4046 USE_NSCD is defined.
4047 * nss/nsswitch.h (__nss_database_custom): Declare only if
4048 USE_NSCD is defined. Add attribute_hidden.
4049 (__nss_setent): Add attribute_hidden.
4050 (__nss_endent): Likewise.
4051 (__nss_getent_r): Likewise.
4052 (__nss_getent): Likewise.
4053 (DEFINE_DATABASE): Declare __nss_##arg##_database.
4054
2585d7b8
L
40552017-08-20 H.J. Lu <hongjiu.lu@intel.com>
4056
4057 [BZ #18822]
4058 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
4059 libc_hidden_proto and libc_hidden_def.
4060
c8dfa99c
L
40612017-08-20 H.J. Lu <hongjiu.lu@intel.com>
4062
4063 [BZ #18822]
4064 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
4065 Add libc_hidden_proto.
4066 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
4067 Add libc_hidden_def.
4068
7ed87317
L
40692017-08-20 H.J. Lu <hongjiu.lu@intel.com>
4070
4071 [BZ #21974]
4072 * gmon/Makefile (routines): Remove bb_init_func and
4073 bb_exit_func.
4074 (elide-routines.os): Removed.
9476b904
L
4075 * gmon/bb_exit_func.c: Likewise.
4076 * gmon/bb_init_func.c: Likewise.
7ed87317
L
4077 * include/sys/gmon.h (__bb): Likewise.
4078 (__bb_init_func): Likewise.
4079 (__bb_exit_func): Likewise.
91695eb1 4080 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 4081
94e6ba15
L
40822017-08-20 H.J. Lu <hongjiu.lu@intel.com>
4083
4084 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
4085 * include/setjmp.h (____longjmp_chk): Here. Add
4086 attribute_hidden.
4087
7550717e
L
40882017-08-19 H.J. Lu <hongjiu.lu@intel.com>
4089
4090 [BZ #18822]
4091 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
4092 attribute_hidden.
4093 (__strspn_sse2): Likewise.
4094
0bb2fabc
AZ
40952017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4096
c181840c
AZ
4097 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
4098 (close_not_cancel_no_status): Likewise.
4099 (__close_nocancel): New macro.
4100 (__close_nocancel_nostatus): Likewise.
4101 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
4102 macro.
4103 (close_not_cancel): Likewise.
4104 (close_not_cancel_no_status): Likewise.
4105 (__close_nocancel): New prototype.
4106 (__close_nocancel_nostatus): New function.
4107 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
4108 * catgets/open_catalog.c (__open_catalog): Replace
4109 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
4110 * gmon/gmon.c (write_gmon): Likewise.
4111 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4112 * intl/loadmsgcat.c (close): Likewise.
4113 * io/ftw.c (open_dir_stream): Likewise.
4114 (ftw_startup): Likewise.
4115 * libio/fileops.c (_IO_file_open): Likewise.
4116 (_IO_file_close_mmap): Likewise.
4117 (_IO_file_close): Likewise.
4118 * libio/iopopen.c (_IO_dup2): Likewise.
4119 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4120 * locale/loadlocale.c (_nl_load_locale): Likewise.
4121 * login/utmp_file.c (pututline_file): Likewise.
4122 (endutent_file): Likewise.
4123 * misc/daemon.c (daemon): Likewise.
4124 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4125 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4126 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4127 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4128 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4129 * nscd/nscd_helper.c (open_socket): Likewise.
4130 (__nscd_open_socket): Likewise.
4131 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4132 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
4133 (__nscd_innetgr): Likewise.
4134 * nss/nss_db/db-open.c (internal_setent): Likewise.
4135 * resolv/res-close.c (__res_iclose): Likewise.
4136 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
4137 * sysdeps/posix/closedir.c (__closedir): Likewise.
4138 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
4139 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4140 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
4141 (opendir_tail): Likewise.
4142 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4143 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
4144 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
4145 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
4146 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
4147 (gethostid): Likewise.
4148 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
4149 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4150 Likewise.
4151 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
4152 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
4153 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
4154 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
4155 Likewise.
4156 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
4157 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
4158 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
4159 Likewise.
4160 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
4161 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
4162 Likewise.
4163 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
4164 Likewise.
4165 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4166 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
4167 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4168 __close_nocancel.
4169
0bb2fabc
AZ
4170 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
4171 (openat_not_cancel_3): Likewise.
4172 (openat64_not_cancel_3): Likewise).
4173 (openat_not_cancel_3): Likewise).
4174 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
4175 macro.
4176 (openat_not_cancel_3): Likewise.
4177 (openat64_not_cancel): Likewise.
4178 (openat64_not_cancel_3): Likewise.
4179 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
4180 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
4181 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
4182 __open{64}_nocancel.
4183 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4184 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4185 * sysdeps/posix/opendir.c (__opendirat): Likewise.
4186
65a086db
L
41872017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4188
4189 [BZ #18822]
4190 * include/argz.h (__argz_create_sep): New function prototype.
4191 (__argz_append): Likewise.
4192 (__argz_add): Likewise.
4193 (__argz_add_sep): Likewise.
4194 (__argz_delete): Likewise.
4195 (__argz_insert): Likewise.
4196 (__argz_replace): Likewise.
4197 * string/argz.h (__argz_create_sep): Removed.
4198 (__argz_append): Likewise.
4199 (__argz_add): Likewise.
4200 (__argz_add_sep): Likewise.
4201 (__argz_delete): Likewise.
4202 (__argz_insert): Likewise.
4203 (__argz_replace): Likewise.
4204
62753d2c
L
42052017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4206
4207 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
4208 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
4209 (GNU_PROPERTY_STACK_SIZE): Likewie.
4210 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
4211 (GNU_PROPERTY_LOPROC): Likewise.
4212 (GNU_PROPERTY_HIPROC): Likewise.
4213 (GNU_PROPERTY_LOUSER): Likewise.
4214 (GNU_PROPERTY_HIUSER): Likewise.
4215 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
4216 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
4217 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
4218 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
4219 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
4220 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
4221 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
4222 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
4223 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
4224 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
4225 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
4226 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
4227 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
4228 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
4229 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
4230 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
4231 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
4232 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
4233 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
4234 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
4235 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
4236 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
4237 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
4238
6913ad65
GG
42392017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
4240
4241 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
4242 in C++ mode.
4243
47a67213
GG
42442017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
4245
4246 [BZ #21930]
4247 * math/math.h (isinf): Check if in C or C++ mode before using
4248 __builtin_types_compatible_p, since this is a C mode feature.
4249
a748eb31
AZ
42502017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4251
c647fb88
AZ
4252 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
4253 (__write_nocancel): New macro.
4254 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
4255 Rewrite as a function prototype.
4256 (write_not_cancel): Remove macro.
4257 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
4258 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
4259 (write_gmon): Likewise.
4260 * libio/fileops.c (_IO_new_file_write): Likewise.
4261 * login/utmp_file.c (pututline_file): Likewise.
4262 (updwtmp_file): Likewise.
4263 * stdio-common/psiginfo.c (psiginfo): Likewise.
4264 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4265 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
4266 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
4267 Likewise.
4268 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
4269 Likewise.
4270
a748eb31
AZ
4271 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
4272 (__read_nocancel): New macro.
4273 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4274 __read_nocancel.
4275 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
4276 macro.
4277 (__read_nocancel): New prototype.
4278 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
4279 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
4280 with __read_nocancel.
4281 * intl/loadmsgcat.c (read): Likewise.
4282 * libio/fileops.c (_IO_file_read): Likewise.
4283 * locale/loadlocale.c (_nl_load_locale): Likewise.
4284 * login/utmp_file.c (getutent_r_file): Likewise.
4285 (internal_getut_r): Likewise.
4286 (getutline_r_file): Likewise.
4287 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
4288 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
4289 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
4290 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4291 Likewise.
4292 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
4293 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
4294 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
4295 Likewise.
4296 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
4297 Likewise.
4298 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
4299 Likewise.
4300 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
4301 Likewise.
4302 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
4303
098b9dd4
L
43042017-08-18 H.J. Lu <hongjiu.lu@intel.com>
4305
4306 [BZ #21966]
4307 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
4308 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
4309 usable.
4310
a3fe6a20
DD
43112017-08-17 DJ Delorie <dj@redhat.com>
4312
4313 * bug17079.c: Update to new test harness.
4314 * test-digits-dots.c: Likewise.
4315 * test-netdb.c: Likewise.
4316 * tst-field.c: Likewise.
4317 * tst-nss-getpwent.c: Likewise.
4318 * tst-nss-static.c: Likewise.
4319 * tst-nss-test1.c: Likewise.
4320 * tst-nss-test2.c: Likewise.
4321 * tst-nss-test3.c: Likewise.
4322 * tst-nss-test4.c: Likewise.
4323 * tst-nss-test5.c: Likewise.
4324
c2284574
AZ
43252017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4326
4327 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
4328 (open_not_cancel_2): Likewise.
4329 (open_nocancel): New macro.
4330 (open64_nocancel): Likewise.
4331 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
4332 (open_not_cancel_2): Likewise.
4333 (__open_nocancel): New prototype.
4334 (__open64_nocancel): Likewise.
4335 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4336 __open_nocancel.
4337 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
4338 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
4339 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
4340 with __open_nocancel.
4341 * csu/check_fds.c (check_one_fd): Likewise.
4342 * gmon/gmon.c (write_gmon): Likewise.
4343 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
4344 * intl/loadmsgcat.c (open): Likewise.
4345 * libio/fileops.c (_IO_file_open): Likewise.
4346 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4347 * locale/loadlocale.c (_nl_load_locale): Likewise.
4348 * login/utmp_file.c (setutent_file): Likewise.
4349 * misc/daemon.c (daemon): Likewise.
4350 * nss/nss_db/db-open.c (internal_setent): Likewise.
4351 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4352 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
4353 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
4354 (__opendir): Likewise.
4355 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4356 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
4357 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
4358 (gethostid): Likewise.
4359 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
4360 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4361 Likewise.
4362 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
4363 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
4364 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
4365 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
4366 Likewise.
4367 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
4368 Likewise.
4369 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
4370 Likewise.
4371 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
4372 Likewise.
4373 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
4374 Likewise.
4375 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
4376 Likewise.
4377 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4378 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
4379
d4505b89
WD
43802017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
4381
4382 * benchtests/bench-skeleton.c (main): Add support for
4383 latency benchmarking.
4384 * benchtests/scripts/bench.py: Add support for latency benchmarking.
4385
34d6a3cb
L
43862017-08-17 H.J. Lu <hongjiu.lu@intel.com>
4387
4388 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
4389 the startup object.
4390
038d1caf
FW
43912017-08-17 Florian Weimer <fweimer@redhat.com>
4392
4393 * include/sys/socket.h (__opensock): Remove internal_function.
4394 * socket/opensock.c (__opensock): Likewise.
4395 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
4396
67f0aff0
JM
43972017-08-16 Joseph Myers <joseph@codesourcery.com>
4398
4399 [BZ #21944]
4400 * signal/bits/types/__sigval_t.h: New file.
4401 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
4402 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
4403 and define sigval_t using __sigval_t.
4404 * include/bits/types/__sigval_t.h: New file.
4405 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
4406 instead of <bits/types/__sigval_t.h>.
4407 (struct sigevent): Use __sigval_t instead of sigval_t.
4408 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
4409 instead of <bits/types/__sigval_t.h>.
4410 (siginfo_t): Use __sigval_t instead of sigval_t.
4411 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
4412 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
4413 (struct sigevent): Use __sigval_t instead of sigval_t.
4414 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
4415 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
4416 (siginfo_t): Use __sigval_t instead of sigval_t.
4417 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
4418
87e7bf4d
L
44192017-08-16 H.J. Lu <hongjiu.lu@intel.com>
4420
4421 * NEWS: Remove "[Add new features here]" for 2.27.
4422
5047057f
JM
44232017-08-16 Joseph Myers <joseph@codesourcery.com>
4424
4425 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
4426 libc.so.
4427
20c7b195
L
44282017-08-16 H.J. Lu <hongjiu.lu@intel.com>
4429
4430 * NEWS: Mention x86-64 FMA optimization.
4431
24a2e658
L
44322017-08-16 H.J. Lu <hongjiu.lu@intel.com>
4433
4434 [BZ #21912]
4435 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4436 Add e_expf-fma.
4437 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
4438 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
4439 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
4440
eedca977
AS
44412017-08-16 Andreas Schwab <schwab@suse.de>
4442
403143e1
FW
4443 [BZ #16750]
4444 CVE-2009-5064
eedca977
AS
4445 * elf/ldd.bash.in: Never run file directly.
4446
f59f7adb
L
44472017-08-15 H.J. Lu <hongjiu.lu@intel.com>
4448
4449 [BZ #21955]
4450 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
4451 (L(SP_INF_0)): Likewise.
4452
6b11a6ad
FW
44532017-08-15 Florian Weimer <fweimer@redhat.com>
4454
4455 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
4456 run-built-tests.
4457
bbf5c438
FW
44582017-08-15 Florian Weimer <fweimer@redhat.com>
4459
4460 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
4461 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
4462 BROKEN_THREAD_SIGNALS code.
4463 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
4464 request_list): Remove caller_pid member used for
4465 BROKEN_THREAD_SIGNALS.
4466 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
4467 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
4468 Remove BROKEN_THREAD_SIGNALS support.
4469 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
4470 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
4471
6014c65d
FW
44722017-08-15 Florian Weimer <fweimer@redhat.com>
4473
4474 * gmon/Makefile (tests): Add tst-gmon.
4475 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
4476 Set.
4477 (tests-special): Add tst-gmon-prof.out.
4478 (tst-gmon.out): Depend on clean-tst-gmon-data.
4479 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
4480 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
4481 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
4482 startup object.
4483 * aclocal.m4 (GPROF): Set and substitute.
4484 * config.amke.in (GPROF): Set.
4485 * configure: Regenerate.
4486
ee72219a
GR
44872017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
4488
4489 * elf/elf.h A (NT_PPC_TAR): New macro.
4490 (NT_PPC_PPR): Likewise.
4491 (NT_PPC_DSCR): Likewise.
4492 (NT_PPC_EBB): Likewise.
4493 (NT_PPC_PMU): Likewise.
4494 (NT_PPC_TM_CGPR): Likewise.
4495 (NT_PPC_TM_CFPR): Likewise.
4496 (NT_PPC_TM_CVMX): Likewise.
4497 (NT_PPC_TM_CVSX): Likewise.
4498 (NT_PPC_TM_SPR): Likewise.
4499 (NT_PPC_TM_CTAR): Likewise.
4500 (NT_PPC_TM_CPPR): Likewise.
4501 (NT_PPC_TM_CDSCR): Likewise.
4502
4ebf934e
FW
45032017-08-15 Florian Weimer <fweimer@redhat.com>
4504
4505 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
4506 regparm (2) instead of internal_function.
4507 (_MCOUNT_DECL): Adjust.
4508
e9f57484
SL
45092017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
4510
4511 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
4512 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
4513
88ff4d55
JM
45142017-08-14 Joseph Myers <joseph@codesourcery.com>
4515
4516 * conform/data/sys/wait.h-data (si_value): Do not expect for
4517 XPG42.
4518
c88ffc23
FW
45192017-08-14 Florian Weimer <fweimer@redhat.com>
4520
4521 [BZ #21962]
4522 NSS: Create stubs for accidentally exported lookup functions.
4523 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
4524 Remove declaration.
4525 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
4526 (ether_hostton): Call __nss_ethers_lookup2 instead.
4527 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
4528 (ether_ntohost): Call __nss_ethers_lookup2 instead.
4529 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
4530 (setup): Call __nss_netgroup_lookup2 instead.
4531 * nss/Makefile (routines): Add compat-lookup.
4532 * nss/Versions (GLIBC_2.27): Add symbol version.
4533 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
4534 (DB_COMPAT_FCT): Remove.
4535 * nss/compat-lookup.c: New file.
4536 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
4537 from databases.def.
4538 * nss/service-lookup.c (NO_COMPAT): Remove definition.
4539 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
4540 (netname2user): Call __nss_publickey_lookup2 instead.
4541 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
4542 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
4543 instead.
4544
35a29136 45452017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
4546 Sergei Trofimovich <slyfox@inbox.ru>
4547
4548 [BZ #21908]
4549 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
4550 Rename to MMAP2_PAGE_UNIT.
4551 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
4552 __OFF_T_MATCHES_OFF64_T is not defined.
4553 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
4554 uint64_t.
4555 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
4556 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
4557
fbdc1e3e
FW
45582017-08-14 Florian Weimer <fweimer@redhat.com>
4559
4560 i386: Do not set internal_function.
4561 * config.h.in (USE_REGPARMS, internal_function): Remove.
4562 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
4563 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
4564
b3f85fd2
FW
45652017-08-14 Florian Weimer <fweimer@redhat.com>
4566
4567 * elf/dl-init.c (_dl_init): Remove internal_function.
4568 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
4569 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
4570
630bf491
FW
45712017-08-14 Florian Weimer <fweimer@redhat.com>
4572
4573 * elf/rtld.c (_dl_start): Remove internal_function.
4574 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
4575 _dl_start.
4576
9fa7449b
FW
45772017-08-14 Florian Weimer <fweimer@redhat.com>
4578
4579 * elf/dl-fini.c (_dl_fini): Remove internal_function
4580 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4581
73322d5f
L
45822017-08-14 H.J. Lu <hongjiu.lu@intel.com>
4583
4584 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
4585 (bit_cpu_SHSTK): Likewise.
4586 (index_cpu_IBT): Likewise.
4587 (index_cpu_SHSTK): Likewise.
4588 (reg_IBT): Likewise.
4589 (reg_SHSTK): Likewise.
4590 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4591 Handle index_cpu_IBT and index_cpu_SHSTK.
4592
dbc303ef
MF
45932017-08-14 Mike FABIAN <mfabian@redhat.com>
4594
4595 [BZ #19982]
4596 * po/fr.po: Fix spelling mistake.
4597
3012cfb0
FW
45982017-08-13 Florian Weimer <fweimer@redhat.com>
4599
4600 * elf/dl-addr.c (_dl_addr): Remove internal_function.
4601 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
4602 (_dl_catch_error, _dl_receive_error): Likewise.
4603 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
4604 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
4605 (_dl_deallocate_tls): Likewise.
4606 * include/dlfcn.h (_dl_addr): Likewise.
4607 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
4608 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
4609 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
4610 Likewise.
4611
52bcdf26
FW
46122017-08-13 Florian Weimer <fweimer@redhat.com>
4613
4614 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
4615 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
4616 internal_function.
4617 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
4618
e1d2ae8d
FW
46192017-08-13 Florian Weimer <fweimer@redhat.com>
4620
4621 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
4622 internal_function.
4623 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
4624 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
4625 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
4626 internal_function from _dl_make_stack_executable_hook member.
4627 (_dl_make_stack_executable): Remove internal_function.
4628 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
4629 Likewise.
4630 * sysdeps/unix/sysv/linux/dl-execstack.c
4631 (_dl_make_stack_executable): Likewise.
4632
c4ce0382
FW
46332017-08-13 Florian Weimer <fweimer@redhat.com>
4634
4635 * sysdeps/unix/sysv/linux/netlinkaccess.h
4636 (__netlink_assert_response): Remove internal_function.
4637 * sysdeps/unix/sysv/linux/netlink_assert_response.c
4638 (__netlink_assert_response): Likewise.
4639
c4d767f7
FW
46402017-08-13 Florian Weimer <fweimer@redhat.com>
4641
4642 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
4643 internal_function.
4644 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
4645
b2297409
FW
46462017-08-13 Florian Weimer <fweimer@redhat.com>
4647
4648 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
4649 internal_function.
4650 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
4651 * inet/netgroup.h (__internal_setnetgrent)
4652 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
4653 * inet/getnetgrent_r.c (__internal_setnetgrent)
4654 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
4655 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
4656 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
4657 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
4658 * nss/nsswitch.h (db_lookup_function): Likewise.
4659
1b0bfc69
FW
46602017-08-13 Florian Weimer <fweimer@redhat.com>
4661
4662 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
4663 Remove internal_function.
4664 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
4665 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
4666 message argument on the stack.
4667 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
4668 Likeweise.
4669
a6bd8722
MF
46702017-08-12 Mike FABIAN <mfabian@redhat.com>
4671
4672 Adapt test case data to the changes in the thousands
4673 separators.
4674
4675 [BZ #20756]
4676 * localedata/tst-langinfo.sh: Adapt test case data.
4677 * stdlib/tst-strfmon_l.c: Likewise.
4678 * stdlib/tst-strtod4.c: Likewise.
4679 * stdlib/tst-strtod5i.c: Likewise.
4680
8b2c63e4
FW
46812017-08-11 Florian Weimer <fweimer@redhat.com>
4682
4683 [BZ #21242]
4684 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
4685 Suppress pedantic warning resulting from statement expression.
4686 (__ASSERT_FUNCTION): Add missing __extension__.
4687
61c98291
SP
46882017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4689
86c6519e
SP
4690 * benchtests/bench-memmove-large.c: Print output in JSON
4691 format.
4692 * benchtests/bench-memmove.c: Likewise.
4693
61c98291
SP
4694 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
4695 * benchtests/bench-memchr.c (do_one_test): Likewise.
4696 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
4697 * benchtests/bench-memcpy.c (do_one_test): Likewise.
4698 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
4699 * benchtests/bench-memmove.c (do_one_test): Likewise.
4700 * benchtests/bench-memset-large.c (do_one_test): Likewise.
4701 * benchtests/bench-memset.c (do_one_test): Likewise.
4702 * benchtests/bench-string.h (test_init): Remove memsets.
4703
925733a9
RJ
47042017-08-10 Rical Jasan <ricaljasan@pacific.net>
4705
4706 * manual/lang.texi
4707 (Computing the Width of an Integer Data Type): Rename section to
4708 "Width of an Integer Type". Remove inaccurate statement regarding
4709 lack of C language facilities for determining width of integer
4710 types, and reorder content to improve flow and context of
4711 discussion.
4712
4fcdfbfc
RJ
47132017-08-10 Rical Jasan <ricaljasan@pacific.net>
4714
4715 * lang.texi (va_copy): Change standard from ISO to C99.
4716 (__va_copy): Add standard and header annotation.
4717 Update description for clarity of origins and current use.
4718
4d98ace9
GG
47192017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
4720
4721 [BZ #21941]
4722 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
4723 xssqrtqp requires operands to be in Vector Registers
4724 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
4725 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
4726 (__ieee754_sqrtf128): Likewise.
4727
92236903
WD
47282017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4729
4730 * sysdeps/aarch64/memcmp.S (memcmp):
4731 Rewrite of optimized memcmp.
4732
2449ae7b
FW
47332017-08-10 Florian Weimer <fweimer@redhat.com>
4734
4735 Introduce ld.so exceptions.
4736 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
4737 (_dl_exception_create, _dl_exception_create_format)
4738 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
4739 (_dl_catch_exception): Declare.
4740 (_dl_catch_error): Update comment.
4741 * elf/dl-error-skeleton.c (struct catch): Replace objname,
4742 errstring, malloced members with exception member.
4743 (_dl_out_of_memory): Remove.
4744 (fatal_error): New function, extracted from _dl_signal_error.
4745 (_dl_signal_exception, _dl_signal_cexception): New functions.
4746 (_dl_signal_error): Call _dl_exception_create to allocate an
4747 exception object.
4748 (_dl_catch_exception): New function, based on _dl_catch_error.
4749 (_dl_catch_error): Implement using _dl_catch_exception.
4750 * elf/dl-exception.c: New file.
4751 * elf/Makefile (dl-routines): Add dl-exception.
4752 (elide-routines.os): Likewise.
4753 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
4754 _dl_exception_create_format, _dl_exception_free.
4755 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
4756 _dl_signal_exception.
4757 * elf/dl-lookup.c (make_string): Remove.
4758 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
4759 _dl_signal_cexception, _dl_exception_free.
4760 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
4761 _dl_signal_exception.
4762 * elf/dl-sym.c (do_sym): Likewise.
4763 * elf/dl-version.c (make_string): Remove.
4764 (match_symbol): Use _dl_exception_create_format,
4765 _dl_signal_cexception, _dl_exception_free.
4766 (_dl_check_map_versions): Likewise.
4767 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
4768 _dl_catch_exception.
4769 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
4770 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
4771 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
4772 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
4773 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
4774 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
4775 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
4776 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
4777 Likewise.
4778 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
4780 (ld.so): Likewise.
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4782 (ld.so): Likewise.
4783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
4784 Likewise.
4785 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
4786 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
4787 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
4788 Likewise.
4789 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
4790 Likewise.
4791 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
4792
f87cc2bf
FW
47932017-08-10 Florian Weimer <fweimer@redhat.com>
4794
4795 * inet/net-internal.h (__inet6_scopeid_pton): Remove
4796 attribute_hidden, internal_function.
4797 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
4798 internal_function.
4799
eac43cbb
FW
48002017-08-10 Florian Weimer <fweimer@redhat.com>
4801
4802 * malloc/malloc.c (get_max_fast): Reimplement as an inline
4803 function which calls __builtin_unreachable.
4804
bd80111e
MF
48052017-08-10 Mike FABIAN <mfabian@redhat.com>
4806
4807 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
4808 Indian monetary formatting
4809 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
4810 test cases.
4811
60e2846e
DL
48122017-08-09 Dmitry V. Levin <ldv@altlinux.org>
4813
68dc02d1
DL
4814 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
4815 Fix typo in comment.
4816
60e2846e
DL
4817 [BZ #21928]
4818 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
4819 PTRACE_SEIZE_DEVEL): Remove.
4820 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
4821 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4822 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4823 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4824 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4825
3d452dab
JM
48262017-08-09 Joseph Myers <joseph@codesourcery.com>
4827
24d9f53a
JM
4828 * posix/bits/types.h (__qaddr_t): Remove.
4829
3d452dab
JM
4830 [BZ #21457]
4831 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
4832 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
4833 __glibc_reserved1.
4834 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
4835 (ucontext_t): Use __ctx with uc_flags.
4836 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
4837 (__ctxt): Likewise.
4838 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
4839 __glibc_reserved1.
4840 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
4841 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
4842 __glibc_reserved1.
4843 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
4844 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
4845 __glibc_reserved1.
4846 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
4847 macro.
4848 (ucontext_t): Use __ctx with uc_flags.
4849 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
4850 (ucontext_t): Use __ctx with uc_flags.
4851 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
4852 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
4853 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
4854 (ucontext_t): Use __ctx with uc_flags.
4855 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
4856 undefine further down.
4857 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
4858 __glibc_reserved1.
4859 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
4860 undefine further down.
4861 (ucontext_t): Use __ctx with uc_flags.
4862 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
4863 undefine further down.
4864 (ucontext_t): Use __ctx with uc_flags.
4865 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
4866 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
4867 Rename uc_pad to __glibc_reserved1.
4868 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
4869 undefine further down.
4870 (ucontext_t): Use __ctx with uc_flags.
4871 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
4872 further down.
4873 (ucontext_t): Use __ctx with uc_flags.
4874 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
4875 __ctx with uc_flags.
4876 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
4877 (ucontext_t): Use __ctx with uc_flags.
4878 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
4879 __ctx with uc_flags.
4880
30161498
FW
48812017-08-09 Florian Weimer <fweimer@redhat.com>
4882
4883 [BZ #21932]
4884 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
4885 before early return.
4886
5797b410
AS
48872017-08-09 Andreas Schwab <schwab@suse.de>
4888
139237a4 4889 [BZ #21041]
5797b410
AS
4890 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
4891 renamed alias.
4892
139237a4 4893 [BZ #21041]
40c06a3d
AS
4894 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
4895 tst-compat-forwarder.
4896 (modules-names): Add tst-compat-forwarder-mod.
4897 ($(objpfx)tst-compat-forwarder): Depend on
4898 $(objpfx)tst-compat-forwarder-mod.so.
4899 * nptl/tst-compat-forwarder.c: New file.
4900 * nptl/tst-compat-forwarder-mod.c: New file.
4901
36ada5f6
SP
49022017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
4903
0e02b510
SP
4904 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
4905 comments.
4906
36ada5f6
SP
4907 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
4908 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4909 memcpy_falkor.
4910 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
4911 Bump.
4912 (__libc_ifunc_impl_list): Add __memcpy_falkor.
4913 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
4914 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
4915 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4916 Add falkor.
4917 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
4918 New macro.
4919
9995c839
AZ
49202017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4921
4922 [BZ #759]
4923 * manual/setjmp.texi (getcontex): Document uc_stack value
4924 compatibility differences.
4925
f17a4233
JM
49262017-08-08 Joseph Myers <joseph@codesourcery.com>
4927
4928 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
4929 (old_malloc_hook): Likewise.
4930 (old_memalign_hook): Likewise.
4931 (old_realloc_hook): Likewise.
4932 (struct hdr): Likewise.
4933 (flood): Likewise.
4934 (freehook): Likewise.
4935 (mallochook): Likewise.
4936 (memalignhook): Likewise.
4937 (reallochook): Likewise.
4938 (mprobe): Likewise.
4939 * malloc/mtrace.c (mallwatch): Likewise.
4940 (tr_old_free_hook): Likewise.
4941 (tr_old_malloc_hook): Likewise.
4942 (tr_old_realloc_hook): Likewise.
4943 (tr_old_memalign_hook): Likewise.
4944 (tr_where): Likewise.
4945 (lock_and_info): Likewise.
4946 (tr_freehook): Likewise.
4947 (tr_mallochook): Likewise.
4948 (tr_reallochook): Likewise.
4949 (tr_memalignhook): Likewise.
4950 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
4951 * misc/mmap.c (__mmap): Likewise.
4952 * misc/mmap64.c (__mmap64): Likewise.
4953 * misc/mprotect.c (__mprotect): Likewise.
4954 * misc/msync.c (msync): Likewise.
4955 * misc/munmap.c (__munmap): Likewise.
4956 * posix/posix_madvise.c (posix_madvise): Likewise.
4957 * socket/send.c (__send): Likewise.
4958 * socket/sendto.c (__sendto): Likewise.
4959 * socket/setsockopt.c (__setsockopt): Likewise.
4960 * string/memcmp.c (__ptr_t): Remove macro.
4961 (MEMCMP): Use void * instead of ptr_t.
4962 * string/memrchr.c (__ptr_t): Remove macro.
4963 (__memrchr): Use void * instead of ptr_t.
4964 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
4965 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4966 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
4967 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
4968 * sysdeps/mach/msync.c (msync): Likewise.
4969 * sysdeps/mach/munmap.c (__munmap): Likewise.
4970 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
4971 Likewise.
4972 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4973 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
4974 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
4975 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
4976 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4977 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
4978 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
4979 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
4980 Likewise.
4981 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
4982 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
4983 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
4984 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
4985 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
4986 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
4987 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
4988 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
4989 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
4990 Likewise.
4991 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
4992 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
4993 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
4994 (MEMCMP): Use void * instead of ptr_t.
4995 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
4996 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
4997
0df595b2
FW
49982017-08-08 Florian Weimer <fweimer@redhat.com>
4999
5000 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
5001 return statement.
5002
086df229
L
50032017-08-08 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 [BZ #21913]
5006 * csu/libc-tls.c: Include <startup.h> first.
5007 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
5008 * elf/dl-tunables.c: Include <startup.h> first.
5009 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
5010 * sysdeps/generic/startup.h: New file.
5011 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
5012 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
5013 (I386_USE_SYSENTER): New. Defined to 0.
5014
fc5ad702
AS
50152017-08-08 Andreas Schwab <schwab@suse.de>
5016
5017 [BZ #21041]
5018 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
5019 * nptl/pt-system.c (system): Likewise.
5020
852d6312
AZ
50212017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5022
5023 [BZ #21780]
5024 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
5025 EOPNOTSUPP.
5026 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
5027 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
5028 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
5029 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
5030 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5031 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5032 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5033
8b164787
JM
50342017-08-07 Joseph Myers <joseph@codesourcery.com>
5035
cd65836b
JM
5036 [BZ #21899]
5037 * bits/sigaction.h (struct sigaction): Define sa_handler and
5038 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
5039 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5040 [__USE_XOPEN_EXTENDED].
5041 (SA_RESTART): Likewise.
5042 (SA_NODEFER): Likewise.
5043 (SA_RESETHAND): Likewise.
5044 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
5045 (struct sigaction): Define sa_handler and sa_sigaction using union
5046 also for [__USE_XOPEN_EXTENDED].
5047 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5048 [__USE_XOPEN_EXTENDED].
5049 (SA_RESTART): Likewise.
5050 (SA_NODEFER): Likewise.
5051 (SA_RESETHAND): Likewise.
5052 * sysdeps/unix/sysv/linux/bits/sigaction.h
5053 (struct sigaction): Define sa_handler and sa_sigaction using union
5054 also for [__USE_XOPEN_EXTENDED].
5055 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5056 [__USE_XOPEN_EXTENDED].
5057 (SA_RESTART): Likewise.
5058 (SA_NODEFER): Likewise.
5059 (SA_RESETHAND): Likewise.
5060 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
5061 (struct sigaction): Define sa_handler and sa_sigaction using union
5062 also for [__USE_XOPEN_EXTENDED].
5063 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5064 [__USE_XOPEN_EXTENDED].
5065 (SA_RESTART): Likewise.
5066 (SA_NODEFER): Likewise.
5067 (SA_RESETHAND): Likewise.
5068 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
5069 (struct sigaction): Define sa_handler and sa_sigaction using union
5070 also for [__USE_XOPEN_EXTENDED].
5071 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5072 [__USE_XOPEN_EXTENDED].
5073 (SA_RESTART): Likewise.
5074 (SA_NODEFER): Likewise.
5075 (SA_RESETHAND): Likewise.
5076 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
5077 (struct sigaction): Define sa_handler and sa_sigaction using union
5078 also for [__USE_XOPEN_EXTENDED].
5079 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5080 [__USE_XOPEN_EXTENDED].
5081 (SA_RESTART): Likewise.
5082 (SA_NODEFER): Likewise.
5083 (SA_RESETHAND): Likewise.
5084 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
5085 (struct sigaction): Define sa_handler and sa_sigaction using union
5086 also for [__USE_XOPEN_EXTENDED].
5087 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5088 [__USE_XOPEN_EXTENDED].
5089 (SA_RESTART): Likewise.
5090 (SA_NODEFER): Likewise.
5091 (SA_RESETHAND): Likewise.
5092 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
5093 (struct sigaction): Define sa_handler and sa_sigaction using union
5094 also for [__USE_XOPEN_EXTENDED].
5095 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5096 [__USE_XOPEN_EXTENDED].
5097 (SA_RESTART): Likewise.
5098 (SA_NODEFER): Likewise. Define directly rather than as alias.
5099 (SA_RESETHAND): Likewise.
5100 (SA_INTERRUPT): Define only for [__USE_MISC].
5101 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
5102 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
5103 [__USE_MISC].
5104 (SA_STACK): Define only for [__USE_MISC].
5105 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
5106 (struct sigaction): Define sa_handler and sa_sigaction using union
5107 also for [__USE_XOPEN_EXTENDED].
5108 (SA_ONSTACK): Change [__USE_UNIX98] condition to
5109 [__USE_XOPEN_EXTENDED].
5110 (SA_RESTART): Likewise.
5111 (SA_NODEFER): Likewise.
5112 (SA_RESETHAND): Likewise.
5113 (SA_NOPTRACE): Define only for [__USE_MISC].
5114
d9fee042
JM
5115 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
5116 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
5117 (struct catalog_info): Likewise.
5118 * inet/htontest.c (lo): Likewise.
5119 (foo): Likewise.
5120 * inet/inet_lnaof.c (inet_lnaof): Likewise.
5121 * inet/inet_net.c (inet_network): Likewise.
5122 * inet/inet_netof.c (inet_netof): Likewise.
5123 * inet/rcmd.c (__ivaliduser): Likewise.
5124 (iruserok): Likewise.
5125 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
5126 * locale/programs/locale-spec.c (locale_special): Likewise.
5127 * nis/nis_findserv.c (struct findserv_req): Likewise.
5128 (__nis_findfastest_with_timeout): Likewise.
5129 * nss/test-netdb.c (test_network): Likewise.
5130 * resolv/inet_neta.c (inet_neta): Likewise.
5131 * resolv/ns_date.c (ns_datetosecs): Likewise.
5132 (SECS_PER_DAY): Likewise.
5133 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
5134 Likewise.
5135 * resolv/res_comp.c (__putlong): Likewise.
5136 (__putshort): Likewise.
5137 (_getlong): Likewise.
5138 (_getshort): Likewise.
5139 * resolv/res_debug.c (p_time): Likewise.
5140 (precsize_ntoa): Likewise.
5141 (precsize_aton): Likewise.
5142 (latlon2ul): Likewise.
5143 (loc_aton): Likewise.
5144 (loc_ntoa): Likewise.
5145 * resolv/res_hconf.c (struct netaddr): Likewise.
5146 (_res_hconf_reorder_addrs): Likewise.
5147 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
5148 (clnttcp_control): Likewise.
5149 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5150 (clntudp_control): Likewise.
5151 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
5152 (clntunix_control): Likewise.
5153 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
5154 * sunrpc/rpc/auth.h (union des_block): Likewise.
5155 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
5156 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
5157 (xdrrec_create): Likewise.
5158 (xdrrec_endofrecord): Likewise.
5159 (flush_out): Likewise.
5160 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
5161 (xdrstdio_putlong): Likewise.
5162 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
5163 Likewise.
5164
8b164787
JM
5165 * misc/sys/cdefs.h (__long_double_t): Remove.
5166 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
5167 instead of __long_double_t,
5168 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
5169
7ee38e60
SP
51702017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
5171
dd3e86ad
SP
5172 * benchtests/scripts/compare_strings.py: Avoid display error when
5173 running on a text terminal.
5174
b115e819
SP
5175 * benchtests/scripts/compare_strings.py (main): Add an
5176 optional -base option.
5177 (process_results): New argument base_func.
5178
7ee38e60
SP
5179 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
5180 hardcoding memcpy.
5181 * benchtests/bench-memcpy-large.c (test_name): Likewise.
5182 * benchtests/bench-memcpy-random.c (test_name): Likewise.
5183
d5afb385
AS
51842017-08-07 Andreas Schwab <schwab@suse.de>
5185
5186 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
5187 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
5188 * intl/Makefile ($(objpfx)tst-gettext.out)
5189 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
5190 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
5191 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
5192 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
5193 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
5194 * posix/Makefile ($(objpfx)globtest.out)
5195 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
5196 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
5197 ($(objpfx)tst-printf.out): Likewise.
5198 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
5199 ($(objpfx)tst-setcontext3.out): Likewise.
5200
57a72fa3
L
52012017-08-07 H.J. Lu <hongjiu.lu@intel.com>
5202
5203 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5204 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
5205 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
5206 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
5207 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
5208 and mptan-fma.
5209 (CFLAGS-doasin-fma.c): New.
5210 (CFLAGS-dosincos-fma.c): Likewise.
5211 (CFLAGS-e_asin-fma.c): Likewise.
5212 (CFLAGS-e_atan2-fma.c): Likewise.
5213 (CFLAGS-e_exp-fma.c): Likewise.
5214 (CFLAGS-e_log-fma.c): Likewise.
5215 (CFLAGS-e_pow-fma.c): Likewise.
5216 (CFLAGS-halfulp-fma.c): Likewise.
5217 (CFLAGS-mpa-fma.c): Likewise.
5218 (CFLAGS-mpatan-fma.c): Likewise.
5219 (CFLAGS-mpatan2-fma.c): Likewise.
5220 (CFLAGS-mpexp-fma.c): Likewise.
5221 (CFLAGS-mplog-fma.c): Likewise.
5222 (CFLAGS-mpsqrt-fma.c): Likewise.
5223 (CFLAGS-mptan-fma.c): Likewise.
5224 (CFLAGS-s_atan-fma.c): Likewise.
5225 (CFLAGS-sincos32-fma.c): Likewise.
5226 (CFLAGS-slowexp-fma.c): Likewise.
5227 (CFLAGS-slowpow-fma.c): Likewise.
5228 (CFLAGS-s_sin-fma.c): Likewise.
5229 (CFLAGS-s_tan-fma.c): Likewise.
5230 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
5231 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
5232 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
5233 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
5234 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
5235 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
5236 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
5237 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
5238 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
5239 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
5240 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
5241 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
5242 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
5243 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
5244 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
5245 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
5246 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
5247 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
5248 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
5249 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
5250 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
5251 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
5252 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
5253 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
5254 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5255 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5256 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5257 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
5258 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5259 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5260 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5261
219dd320
JM
52622017-08-04 Joseph Myers <joseph@codesourcery.com>
5263
5264 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
5265 (min_of_type_f): New macro.
5266 (min_of_type_): Likewise.
5267 (min_of_type_l): Likewise.
5268 (min_of_type_f128): Likewise.
5269 (min_of_type): Define using __MATH_TG and taking an expression
5270 argument.
5271 (math_check_force_underflow): Pass expression instead of type to
5272 min_of_type.
5273 (math_check_force_underflow_nonneg): Likewise.
5274
64d4dea6
L
52752017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5276
5277 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5278 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
5279 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
5280
973da22a
L
52812017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5282
5283 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5284 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
5285 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
5286 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
5287 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
5288 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
5289 memcpy_chk-nonshared, mempcpy_chk-nonshared,
5290 memmove_chk-nonshared and memset_chk-nonshared
5291 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
5292 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
5293 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
5294 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
5295 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
5296 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
5297 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
5298 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
5299 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
5300 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
5301 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
5302 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
5303 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
5304 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
5305 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
5306 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
5307 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
5308 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
5309 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
5310 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
5311 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
5312 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
5313 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
5314 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
5315 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
5316 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
5317 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
5318 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
5319 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
5320 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
5321 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
5322 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
5323 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
5324 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
5325 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
5326 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
5327 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
5328 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
5329 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
5330 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
5331 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
5332 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
5333 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
5334 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
5335 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
5336 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
5337 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
5338 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
5339 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
5340 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
5341 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
5342 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
5343 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
5344 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
5345 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
5346 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
5347 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
5348 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
5349 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
5350 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
5351 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
5352 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
5353 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
5354 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
5355 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
5356 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
5357 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
5358 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
5359 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
5360 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
5361 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
5362 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
5363 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
5364 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
5365 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
5366 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
5367 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
5368 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
5369 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
5370 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
5371 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
5372 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
5373 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
5374 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
5375 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
5376 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
5377 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5378 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
5379 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
5380 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5381 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
5382 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
5383 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
5384 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5385 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
5386 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
5387 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
5388 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
5389 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
5390 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
5391 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
5392 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
5393 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
5394 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
5395 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
5396 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
5397 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
5398 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
5399
8537e0f6
L
54002017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5401
5402 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
5403 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
5404 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
5405 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
5406 svml_d_log2_core-sse2, svml_d_log4_core-sse,
5407 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
5408 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
5409 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
5410 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
5411 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
5412 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
5413 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
5414 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
5415 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
5416 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
5417 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
5418 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
5419 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
5420 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
5421 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
5422 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
5423 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
5424 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
5425 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
5426 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
5427 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
5428 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
5429 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
5430 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
5431 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
5432 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
5433 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
5434 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
5435 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
5436 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
5437 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
5438 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
5439 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
5440 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
5441 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
5442 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
5443 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
5444 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
5445 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
5446 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
5447 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
5448 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
5449 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
5450 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
5451 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
5452 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
5453 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
5454 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
5455 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
5456 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
5457 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
5458 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
5459 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
5460 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
5461 ...
5462 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
5463 Don't include <sysdep.h> nor <init-arch.h>.
5464 (_ZGVbN2v_cos): Removed.
5465 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
5466 ...
5467 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
5468 Don't include <sysdep.h> nor <init-arch.h>.
5469 (_ZGVdN4v_cos): Removed.
5470 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
5471 ...
5472 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
5473 Don't include <sysdep.h> nor <init-arch.h>.
5474 (_ZGVeN8v_cos): Removed.
5475 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
5476 ...
5477 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
5478 Don't include <sysdep.h> nor <init-arch.h>.
5479 (_ZGVbN2v_exp): Removed.
5480 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
5481 ...
5482 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
5483 Don't include <sysdep.h> nor <init-arch.h>.
5484 (_ZGVdN4v_exp): Removed.
5485 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
5486 ...
5487 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
5488 Don't include <sysdep.h> nor <init-arch.h>.
5489 (_ZGVeN8v_exp): Removed.
5490 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
5491 ...
5492 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
5493 Don't include <sysdep.h> nor <init-arch.h>.
5494 (_ZGVbN2v_log): Removed.
5495 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
5496 ...
5497 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
5498 Don't include <sysdep.h> nor <init-arch.h>.
5499 (_ZGVdN4v_log): Removed.
5500 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
5501 ...
5502 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
5503 Don't include <sysdep.h> nor <init-arch.h>.
5504 (_ZGVeN8v_log): Removed.
5505 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
5506 ...
5507 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
5508 Don't include <sysdep.h> nor <init-arch.h>.
5509 (_ZGVbN2vv_pow): Removed.
5510 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
5511 ...
5512 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
5513 Don't include <sysdep.h> nor <init-arch.h>.
5514 (_ZGVdN4vv_pow): Removed.
5515 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
5516 ...
5517 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
5518 Don't include <sysdep.h> nor <init-arch.h>.
5519 (_ZGVeN8vv_pow): Removed.
5520 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
5521 ...
5522 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
5523 Don't include <sysdep.h> nor <init-arch.h>.
5524 (_ZGVbN2v_sin): Removed.
5525 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
5526 ...
5527 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
5528 Don't include <sysdep.h> nor <init-arch.h>.
5529 (_ZGVbN4v_sin): Removed.
5530 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
5531 ...
5532 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
5533 Don't include <sysdep.h> nor <init-arch.h>.
5534 (_ZGVbN8v_sin): Removed.
5535 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
5536 ...
5537 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
5538 Don't include <sysdep.h> nor <init-arch.h>.
5539 (_ZGVbN2vvv_sincos): Removed.
5540 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
5541 ...
5542 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
5543 Don't include <sysdep.h> nor <init-arch.h>.
5544 (_ZGVdN4vvv_sincos): Removed.
5545 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
5546 ...
5547 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
5548 Don't include <sysdep.h> nor <init-arch.h>.
5549 (_ZGVeN8vvv_sincos): Removed.
5550 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
5551 ...
5552 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
5553 Don't include <sysdep.h> nor <init-arch.h>.
5554 (_ZGVeN16v_cosf): Removed.
5555 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
5556 ...
5557 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
5558 Don't include <sysdep.h> nor <init-arch.h>.
5559 (_ZGVbN4v_cosf): Removed.
5560 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
5561 ...
5562 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
5563 Don't include <sysdep.h> nor <init-arch.h>.
5564 (_ZGVdN8v_cosf): Removed.
5565 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
5566 ...
5567 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
5568 Don't include <sysdep.h> nor <init-arch.h>.
5569 (_ZGVeN16v_expf): Removed.
5570 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
5571 ...
5572 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
5573 Don't include <sysdep.h> nor <init-arch.h>.
5574 (_ZGVbN4v_expf): Removed.
5575 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
5576 ...
5577 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
5578 Don't include <sysdep.h> nor <init-arch.h>.
5579 (_ZGVdN8v_expf): Removed.
5580 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
5581 ...
5582 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
5583 Don't include <sysdep.h> nor <init-arch.h>.
5584 (_ZGVeN16v_logf): Removed.
5585 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
5586 ...
5587 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
5588 Don't include <sysdep.h> nor <init-arch.h>.
5589 (_ZGVbN4v_logf): Removed.
5590 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
5591 ...
5592 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
5593 Don't include <sysdep.h> nor <init-arch.h>.
5594 (_ZGVdN8v_logf): Removed.
5595 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
5596 ...
5597 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
5598 Don't include <sysdep.h> nor <init-arch.h>.
5599 (_ZGVeN16vv_powf): Removed.
5600 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
5601 ...
5602 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
5603 Don't include <sysdep.h> nor <init-arch.h>.
5604 (_ZGVbN4vv_powf): Removed.
5605 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
5606 ...
5607 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
5608 Don't include <sysdep.h> nor <init-arch.h>.
5609 (_ZGVdN8vv_powf): Removed.
5610 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
5611 ...
5612 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
5613 Don't include <sysdep.h> nor <init-arch.h>.
5614 (_ZGVeN16vvv_sincosf): Removed.
5615 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
5616 ...
5617 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
5618 Don't include <sysdep.h> nor <init-arch.h>.
5619 (_ZGVbN4vvv_sincosf): Removed.
5620 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
5621 ...
5622 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
5623 Don't include <sysdep.h> nor <init-arch.h>.
5624 (_ZGVdN8vvv_sincosf): Removed.
5625 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
5626 ...
5627 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
5628 Don't include <sysdep.h> nor <init-arch.h>.
5629 (_ZGVeN16v_sinf): Removed.
5630 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
5631 ...
5632 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
5633 Don't include <sysdep.h> nor <init-arch.h>.
5634 (_ZGVbN4v_sinf): Removed.
5635 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
5636 ...
5637 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
5638 Don't include <sysdep.h> nor <init-arch.h>.
5639 (_ZGVdN8v_sinf): Removed.
5640
10a87ca4
L
56412017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5642
5643 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5644 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
5645 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
5646 s_rint-sse4_1 and s_rintf-sse4_1.
5647 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
5648 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
5649 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
5650 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
5651 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
5652 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
5653 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
5654 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
5655 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
5656 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
5657 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
5658 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5659 (__ceil): Removed.
5660 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
5661 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
5662 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5663 (__ceilf): Removed.
5664 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
5665 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
5666 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5667 (__floor): Removed.
5668 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
5669 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
5670 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5671 (__floorf): Removed.
5672 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
5673 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
5674 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5675 (__nearbyint): Removed.
5676 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
5677 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
5678 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5679 (__nearbyintf): Removed.
5680 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
5681 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
5682 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5683 (__rint): Removed.
5684 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
5685 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
5686 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
5687 (__rintf): Removed.
5688
1e8e527d
L
56892017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5690
5691 * sysdeps/i386/start.S (_start): Check Check PIC instead of
5692 SHARED. Avoid dynamic relocation against main in static PIE.
5693
e13daad7
L
56942017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5695
5696 [BZ #21815]
5697 * elf/Makefile (CFLAGS-tst-prelink.c): New.
5698 (LDFLAGS-tst-prelink): Likewise.
5699
627c69c8
L
57002017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5701
5702 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5703 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
5704 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
5705 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
5706 (INTERNAL_SYSCALL_NCS): Likewise.
5707 (LOADARGS_1): Likewise.
5708 (LOADARGS_5): Likewise.
5709 (RESTOREARGS_1): Likewise.
5710 (RESTOREARGS_5): Likewise.
5711
fc11ff8d
L
57122017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5713
5714 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
5715 (MEMPCPY_SYMBOL): Likewise.
5716 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5717 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
5718 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
5719 in libc.a.
5720 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
5721 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
5722 Likewise.
5723 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
5724 (__hidden_ver1): Don't use in libc.a.
5725 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
5726 (__mempcpy): Don't create a weak alias in libc.a.
5727 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
5728 libc.a.
5729 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
5730 (__hidden_ver1): Don't use in libc.a.
5731
19f1a11e
L
57322017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5733
5734 * config.make.in (have-insert): New.
5735 * configure.ac (libc_cv_insert): New. Set to yes if linker
5736 supports INSERT in linker script.
5737 (AC_SUBST(libc_cv_insert): New.
5738 * configure: Regenerated.
5739 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
5740 if $(have-insert) == yes.
5741
3093fd5e
L
57422017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5743
5744 * elf/Makefile (tests): Add vismain only if
5745 $(have-protected-data) == yes.
5746 (tests-pie): Likewise.
5747
d2cf37c0
L
57482017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5749
5750 [BZ #21871]
5751 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5752 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
5753
c8a0e6ec
L
57542017-08-04 H.J. Lu <hongjiu.lu@intel.com>
5755
5756 [BZ #21790]
5757 * sysdeps/i386/i586/memset.S
5758 (__memset_zero_constant_len_parameter): Removed.
5759 * sysdeps/i386/i686/memset.S
5760 (__memset_zero_constant_len_parameter): Likewise.
5761 * sysdeps/i386/i686/multiarch/memset_chk.S
5762 (__memset_zero_constant_len_parameter): Likewise.
5763 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
5764 Likewise.
5765
2b34e271
AJ
57662017-08-03 Aurelien Jarno <aurelien@aurel32.net>
5767
5768 * stdlib/getentropy.c (getentropy): Change return type to int.
5769
144bdab0
AJ
57702017-08-03 Aurelien Jarno <aurelien@aurel32.net>
5771
5772 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
5773
24ab7723
JM
57742017-08-03 Joseph Myers <joseph@codesourcery.com>
5775
5776 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
5777 u_intN_t.
5778 * math/s_nexttowardf.c (__nexttowardf): Likewise.
5779 * sysdeps/generic/math_private.h (ieee_double_shape_type):
5780 Likewise.
5781 (ieee_float_shape_type): Likewise.
5782 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
5783 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
5784 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5785 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
5786 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
5787 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
5788 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
5789 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
5790 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5791 Likewise.
5792 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
5793 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5794 (__ieee754_yn): Likewise.
5795 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
5796 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
5797 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
5798 Likewise.
5799 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
5800 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
5801 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
5802 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
5803 (__erfc): Likewise.
5804 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
5805 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
5806 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
5807 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
5808 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
5809 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
5810 Likewise.
5811 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
5812 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
5813 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5814 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
5815 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
5816 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
5817 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
5818 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
5819 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
5820 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
5821 (__issignaling): Likewise.
5822 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
5823 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
5824 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5825 Likewise.
5826 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5827 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
5828 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
5829 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
5830 Likewise.
5831 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
5832 Likewise.
5833 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
5834 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
5835 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
5836 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
5837 (__erfcf): Likewise.
5838 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
5839 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
5840 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
5841 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
5842 Likewise.
5843 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
5844 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
5845 Likewise.
5846 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5847 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
5848 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5849 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
5850 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
5851 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
5852 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
5853 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
5854 Likewise.
5855 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
5856 Likewise.
5857 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
5858 Likewise.
5859 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
5860 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5861 Likewise.
5862 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
5863 Likewise.
5864 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5865 (__ieee754_ynl): Likewise.
5866 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
5867 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
5868 Likewise.
5869 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
5870 Likewise.
5871 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
5872 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
5873 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
5874 Likewise.
5875 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
5876 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
5877 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
5878 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
5879 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
5880 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
5881 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
5882 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
5883 Likewise.
5884 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
5885 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
5886 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
5887 Likewise.
5888 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5889 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
5890 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5891 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
5892 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
5893 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5894 Likewise.
5895 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5896 Likewise.
5897 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
5898 Likewise.
5899 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
5900 Likewise.
5901 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
5902 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
5903 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5904 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
5905 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
5906 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
5907 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
5908 Likewise.
5909 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5910 Likewise.
5911 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
5912 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5913 Likewise.
5914 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5915 (__ieee754_remainderl): Likewise.
5916 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5917 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5918 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
5919 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
5920 Likewise.
5921 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
5922 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
5923 Likewise.
5924 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5925 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
5926 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
5927 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
5928 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
5929 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5930 Likewise.
5931 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
5932 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
5933 (__ieee754_y0l): Likewise.
5934 (pzero): Likewise.
5935 (qzero): Likewise.
5936 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5937 (__ieee754_y1l): Likewise.
5938 (pone): Likewise.
5939 (qone): Likewise.
5940 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5941 (__ieee754_ynl): Likewise.
5942 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
5943 (__ieee754_lgammal_r): Likewise.
5944 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
5945 Likewise.
5946 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
5947 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
5948 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
5949 (__erfcl): Likewise.
5950 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
5951 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
5952 Likewise.
5953 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5954 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
5955 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5956 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
5957 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
5958 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5959 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
5960 Likewise.
5961 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
5962 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
5963 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
5964 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
5965 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
5966 Likewise.
5967 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
5968 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
5969 Likewise.
5970 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
5971 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
5972 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
5973 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5974 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5975
964263bb
FW
59762017-08-03 Florian Weimer <fweimer@redhat.com>
5977
5978 [BZ #21885]
5979 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
5980 on memory allocation failure.
5981
e98c925f
AM
59822017-08-03 Alan Modra <amodra@gmail.com>
5983
5984 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
5985 tst-tlsopt-powerpc.c with function name change and no test harness.
5986 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
5987 Call tls_get_addr_opt_test.
5988 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
5989 (modules-names): Add mod-tlsopt-powerpc.
5990 (mod-tlsopt-powerpc.so-no-z-defs): Define.
5991 (tst-tlsopt-powerpc): Depend on .so.
5992 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
5993 define. Expand use in TLS_GD and TLS_LD.
5994
8ee1abdb
ST
59952017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
5996
5997 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
5998 function.
3da5756e 5999 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 6000
42df8d59
JM
60012017-08-02 Joseph Myers <joseph@codesourcery.com>
6002
6003 [BZ #21686]
6004 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
6005 comparing size with that of double.
6006 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
6007 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
6008 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
6009 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
6010 (__TGMATH_BINARY_REAL_IMAG): Likewise.
6011 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
6012 unsigned __int128 types.
6013
b7f95f49
SE
60142017-08-02 Steve Ellcey <sellcey@cavium.com>
6015
6016 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
6017 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
6018 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
6019 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
6020 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
6021
5b736bc9
L
60222017-08-02 H.J. Lu <hongjiu.lu@intel.com>
6023
6024 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
6025
dfc93c41
L
60262017-08-02 H.J. Lu <hongjiu.lu@intel.com>
6027
6028 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
6029 of SHARED.
6030 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
6031 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
6032 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
6033 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
6034 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
6035 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
6036 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
6037
2fee621d
JM
60382017-08-02 Joseph Myers <joseph@codesourcery.com>
6039
6040 [BZ #21685]
6041 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
6042 bit-field expressions passed to sizeof or typeof.
6043 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6044 (__TGMATH_F128): Likewise.
6045 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6046 (__TGMATH_CF128): Likewise.
6047 (__TGMATH_UNARY_REAL_ONLY): Likewise.
6048 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
6049 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
6050 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
6051 (__TGMATH_BINARY_REAL_ONLY): Likewise.
6052 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
6053 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
6054 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
6055 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
6056 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
6057 (__TGMATH_UNARY_REAL_IMAG): Likewise.
6058 (__TGMATH_UNARY_IMAG): Likewise.
6059 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6060 (__TGMATH_BINARY_REAL_IMAG): Likewise.
6061 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
6062 type.
6063 (define_vars_for_type): Handle bit_field type specially.
6064 (Tests.__init__): Declare structure with bit-field element.
6065
b358255f
L
60662017-08-02 H.J. Lu <hongjiu.lu@intel.com>
6067
6068 [BZ #21791]
6069 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
6070 (MEMCPY_CHK): Define only if SHARED is defined.
6071 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
6072 Likewise.
6073 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
6074 Likewise.
edf66db1
SP
6075
6076See ChangeLog.18 for earlier changes.