]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add yesstr, nostr, lang_term, lang_lib to an_ES locale
[thirdparty/glibc.git] / ChangeLog
1 2017-10-24 Mike FABIAN <mfabian@redhat.com>
2
3 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
4 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
5 * localedata/locales/an_ES: Make source more readable by using ASCII
6 where possible.
7
8 2017-10-24 Mike FABIAN <mfabian@redhat.com>
9
10 [BZ #20952]
11 * localedata/locales/yuw_PG: New file.
12 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
13 * locale/iso-639.def: Add Yau (Uruwa).
14
15 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
16
17 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
18
19 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20
21 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
22 (__libc_realloc): Likewise.
23 (_mid_memalign): Likewise.
24 (__libc_calloc): Likewise.
25
26 2017-10-23 Mike FABIAN <mfabian@redhat.com>
27
28 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29 by adding the generic +1 and -0 as in all other locales.
30 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
31 day names and make it more readable by using ASCII where possible.
32
33 2017-10-24 Joseph Myers <joseph@codesourcery.com>
34
35 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
36 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
37
38 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
39
40 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
41 WNOHANG in waitpid call.
42
43 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
44
45 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
46 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
47
48 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
49 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
50 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
51 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
52 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
53 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
54 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
55 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
56 variables.
57
58 2017-10-23 Michael Collison <michael.collison@arm.com>
59
60 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
61 with __builtin_sqrt.
62 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
63 with __builtin_sqrtf.
64 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
65 with __builtin_ceil.
66 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
67 with __builtin_ceilf.
68 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
69 with __builtin_floor.
70 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
71 with __builtin_floorf.
72 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
73 with __builtin_fma.
74 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
75 with __builtin_fmaf.
76 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
77 with __builtin_fmax.
78 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
79 with __builtin_fmaxf.
80 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
81 with __builtin_fmin.
82 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
83 with __builtin_fminf.
84 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
85 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
86 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
87 with builtin_rint and conversion to int.
88 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
89 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
90 with builtin_llround.
91 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
92 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
93 with builtin_rint and conversion to long int.
94 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
95 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
96 with builtin_lround.
97 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
98 with builtin_lroundf.
99 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
100 statements with __builtin_nearbyint.
101 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
102 statements with __builtin_nearbyintf.
103 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
104 with __builtin_rint.
105 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
106 with __builtin_rintf.
107 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
108 with __builtin_round.
109 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
110 with __builtin_roundf.
111 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
112 with __builtin_trunc.
113 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
114 with __builtin_truncf.
115 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
116 and s_l[l]round[f].c too.
117
118 2017-10-23 Alan Modra <amodra@gmail.com>
119
120 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
121 Adjust stack after restoring regs. Add missing LR cfi_restore.
122
123 2017-10-23 Alan Modra <amodra@gmail.com>
124
125 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
126 Move LR save and frame setup/teardown and LR restore to
127 immediately around memset call. Provide cfi.
128
129 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
130
131 * sysdeps/i386/fpu/e_powf.S: Removed.
132 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
133 * sysdeps/i386/fpu/w_powf.c: Likewise.
134 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
135 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
136 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
137 Add e_powf-sse2.
138 (CFLAGS-e_powf-sse2.c): New.
139 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
140 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
141
142 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
143
144 * sysdeps/i386/fpu/e_log2f.S: Removed.
145 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
146 * sysdeps/i386/fpu/w_log2f.c: Likewise.
147 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
148 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
149 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
150 Add e_log2f-sse2.
151 (CFLAGS-e_log2f-sse2.c): New.
152 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
153 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
154
155 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
156
157 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
158 Add e_powf-fma.
159 (CFLAGS-e_powf-fma.c): New.
160 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
161 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
162
163 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
164
165 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
166 Add e_log2f-fma.
167 (CFLAGS-e_log2f-fma.c): New.
168 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
169 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
170
171 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
172
173 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
174 Add e_logf-fma.
175 (CFLAGS-e_logf-fma.c): New.
176 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
177 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
178
179 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
180
181 * sysdeps/i386/fpu/e_logf.S: Removed.
182 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
183 * sysdeps/i386/fpu/w_logf.c: Likewise.
184 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
185 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
186 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
187 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
188 Add e_logf-sse2.
189 (CFLAGS-e_logf-sse2.c): New.
190 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
191 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
192
193 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
194
195 * sysdeps/i386/fpu/e_exp2f.S: Removed.
196 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
197 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
198 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
199 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
200 Add e_exp2f-sse2.
201 (CFLAGS-e_exp2f-sse2.c): New.
202 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
203 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
204
205 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
206
207 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
208 Add e_exp2f-fma.
209 (CFLAGS-e_exp2f-fma.c): New.
210 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
211 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
212
213 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
214
215 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
216 * sysdeps/i386/fpu/e_expf.S: Likewise.
217 * sysdeps/i386/fpu/math_errf.c: Likewise.
218 * sysdeps/i386/fpu/w_expf.c: Likewise.
219 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
220 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
221 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
222 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
223 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
224 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
225 Remove e_expf-ia32.
226 (CFLAGS-e_expf-sse2.c): New.
227 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
228 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
229
230 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
231
232 * sysdeps/x86_64/fpu/e_expf.S: Removed.
233 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
234 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
235 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
236 e_expf.c.
237 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
238 New.
239 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
240 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
241 Renamed to ...
242 (__redirect_expf): This.
243 (SYMBOL_NAME): Changed to expf.
244 (__ieee754_expf): Renamed to ...
245 (__expf): This.
246 (__GI___expf): This.
247 (__ieee754_expf): Add strong_alias.
248 (__expf_finite): Likewise.
249 (__expf): New.
250 Include <sysdeps/ieee754/flt-32/e_expf.c>.
251
252 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
253
254 [BZ #22332]
255 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
256 unescaping.
257
258 2017-10-21 Florian Weimer <fweimer@redhat.com>
259
260 * posix/Makefile (tests): Add tst-glob-tilde.
261 (tests-special): Add tst-glob-tilde-mem.out
262 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
263 (tst-glob-tilde-mem.out): Add mtrace check.
264 * posix/tst-glob-tilde.c: New file.
265
266 2017-10-20 Joseph Myers <joseph@codesourcery.com>
267
268 * bits/floatn-common.h: New file.
269 * math/Makefile (headers): Add bits/floatn-common.h.
270 * bits/floatn.h: Include <bits/floatn-common.h>.
271 * sysdeps/ia64/bits/floatn.h: Likewise.
272 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
273 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
274 * sysdeps/powerpc/bits/floatn.h: Likewise.
275 * sysdeps/x86/bits/floatn.h: Likewise.
276
277 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
278
279 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
280 indicates whether compiler emits an warning for alias for
281 functions with incompatible types.
282
283 [BZ #22273]
284 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
285 the auxiliary process is terminated by a signal before calling _exit
286 or execve.
287
288 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
289
290 [BZ #21265]
291 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
292 New.
293 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
294 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
295 and bit_arch_XSAVEC_Usable if needed.
296 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
297 and bit_arch_Use_dl_runtime_resolve_opt.
298 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
299 Removed.
300 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
301 (bit_arch_Prefer_No_AVX512): Updated.
302 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
303 (bit_arch_XSAVEC_Usable): New.
304 (STATE_SAVE_OFFSET): Likewise.
305 (STATE_SAVE_MASK): Likewise.
306 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
307 (cpu_features): Add xsave_state_size and xsave_state_full_size.
308 (index_arch_Use_dl_runtime_resolve_opt): Removed.
309 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
310 (index_arch_XSAVEC_Usable): New.
311 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
312 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
313 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
314 is enabled.
315 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
316 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
317 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
318 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
319 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
320 _dl_runtime_resolve_xsavec.
321 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
322 Removed.
323 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
324 instead of VEC_SIZE.
325 (REGISTER_SAVE_BND0): Removed.
326 (REGISTER_SAVE_BND1): Likewise.
327 (REGISTER_SAVE_BND3): Likewise.
328 (REGISTER_SAVE_RAX): Always defined to 0.
329 (VMOV): Removed.
330 (_dl_runtime_resolve_avx): Likewise.
331 (_dl_runtime_resolve_avx_slow): Likewise.
332 (_dl_runtime_resolve_avx_opt): Likewise.
333 (_dl_runtime_resolve_avx512): Likewise.
334 (_dl_runtime_resolve_avx512_opt): Likewise.
335 (_dl_runtime_resolve_sse): Likewise.
336 (_dl_runtime_resolve_sse_vex): Likewise.
337 (USE_FXSAVE): New.
338 (_dl_runtime_resolve_fxsave): Likewise.
339 (USE_XSAVE): Likewise.
340 (_dl_runtime_resolve_xsave): Likewise.
341 (USE_XSAVEC): Likewise.
342 (_dl_runtime_resolve_xsavec): Likewise.
343 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
344 Removed.
345 (_dl_runtime_resolve_avx512_opt): Likewise.
346 (_dl_runtime_resolve_avx): Likewise.
347 (_dl_runtime_resolve_avx_opt): Likewise.
348 (_dl_runtime_resolve_sse): Likewise.
349 (_dl_runtime_resolve_sse_vex): Likewise.
350 (_dl_runtime_resolve_fxsave): New.
351 (_dl_runtime_resolve_xsave): Likewise.
352 (_dl_runtime_resolve_xsavec): Likewise.
353
354 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
355
356 [BZ #22320]
357 CVE-2017-15670
358 * posix/glob.c (__glob): Fix one-byte overflow.
359
360 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
361
362 * malloc/malloc.c (sysdep-cancel.h): Add include.
363
364 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
365
366 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
367
368 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
369
370 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
371 (tests): Remove $(objpfx)ga_test depdendency.
372 * resolv/ga_test.c: Remove file.
373
374 2017-10-20 Mike FABIAN <mfabian@redhat.com>
375
376 [BZ #18812]
377 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
378 * localedata/locales/kab_DZ: New file.
379
380 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
381
382 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
383 _dl_relocate_static_pie instead of _dl_start to compute load
384 address in static PIE.
385
386 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
387
388 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
389
390 2017-10-20 Mike FABIAN <mfabian@redhat.com>
391
392 [BZ #13605]
393 * localedata/SUPPORTED: Add shn_MM/UTF-8.
394 * localedata/locales/shn_MM: New file.
395
396 2017-10-20 Florian Weimer <fweimer@redhat.com>
397
398 [BZ #22321]
399 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
400 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
401 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
402 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
403 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
404 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
405
406 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
407
408 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
409
410 2017-10-19 Joseph Myers <joseph@codesourcery.com>
411
412 * sysdeps/mips/ieee754/bits/floatn.h: New file.
413
414 [BZ #22322]
415 * sysdeps/mips/bits/long-double.h: Move to ....
416 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
417
418 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
419
420 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
421
422 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
423 H.J. Lu <hongjiu.lu@intel.com>
424
425 [BZ #22299]
426 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
427 GLRO(dl_platform) to NULL.
428 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
429 (modules-names): Add tst-platformmod-1 and
430 x86_64/tst-platformmod-2.
431 (CFLAGS-tst-platform-1.c): New.
432 (CFLAGS-tst-platformmod-1.c): Likewise.
433 (CFLAGS-tst-platformmod-2.c): Likewise.
434 (LDFLAGS-tst-platformmod-2.so): Likewise.
435 ($(objpfx)tst-platform-1): Likewise.
436 ($(objpfx)tst-platform-1.out): Likewise.
437 (tst-platform-1-ENV): Likewise.
438 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
439 * sysdeps/x86_64/tst-platform-1.c: New file.
440 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
441 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
442
443 2017-10-19 Mike FABIAN <mfabian@redhat.com>
444
445 [BZ #13994]
446 * locale/iso-639.def: Add Karbi.
447 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
448 * localedata/locales/mjw_IN: New file.
449
450 2017-10-18 Joseph Myers <joseph@codesourcery.com>
451
452 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
453 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
454 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
455 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
456 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
457 (libm_alias_ldouble_other_r): Also create _Float128 alias.
458 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
459 <bits/floatn.h>.
460 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
461 (libm_alias_ldouble_other_r): Also create _Float128 alias.
462 * manual/math.texi (Mathematics): Document additional architecture
463 support for _Float128.
464 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
465 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
466 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
467 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
468 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
469 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
470 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
471 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
472 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
473 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
474 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
475 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
476 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
477 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
478 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
479
480 2017-10-18 Renlin Li <renlin.li@arm.com>
481
482 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
483 _DYNAMIC symbol to calculate load address.
484
485 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
486
487 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
488 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
489 summary bits.
490 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
491 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
492
493 2017-10-18 Mike FABIAN <mfabian@redhat.com>
494
495 [BZ #16777]
496 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
497 and improve readability by using more ASCII.
498 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
499 and improve readability by using more ASCII.
500
501 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
502
503 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
504 not all targets support atomics on bool.
505
506 2017-10-17 Joseph Myers <joseph@codesourcery.com>
507
508 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
509 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
510 __f128.
511 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
512 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
513 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
514 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
515 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
516 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
517
518 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
519
520 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
521 defines.
522
523 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
524
525 [BZ #22159]
526 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
527 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
528 (do_check_remalloced_chunk): Fix build bug.
529 (do_check_malloc_state): Add assert that checks arena->top.
530 (malloc_consolidate): Remove initialization.
531 (int_mallinfo): Remove call to malloc_consolidate.
532 (__libc_mallopt): Clarify why malloc_consolidate is needed.
533
534 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
535
536 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
537 (have_fastchunks): Remove.
538 (clear_fastchunks): Remove.
539 (set_fastchunks): Remove.
540 (malloc_state): Add have_fastchunks.
541 (malloc_init_state): Use have_fastchunks.
542 (do_check_malloc_state): Remove incorrect invariant checks.
543 (_int_malloc): Use have_fastchunks.
544 (_int_free): Likewise.
545 (malloc_consolidate): Likewise.
546
547 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
548
549 * malloc/malloc.c (tcache_put): Inline.
550 (tcache_get): Inline.
551
552 2017-10-17 Jordi Mallach <jordi@gnu.org>
553
554 Aurelien Jarno <aurelien@aurel32.net>
555 [BZ #2522]
556 * localedata/locales/ca_ES@valencia: New file.
557 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
558
559 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
560
561 [BZ #22296]
562 * math/math.h: Let signbit use the builtin in C++ mode with gcc
563 < 6.x
564
565 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
566
567 * scripts/build-many-glibcs.py (Context.add_all_configs):
568 Add arm-linux-gnueabihf multiarch extra_glibcs.
569
570 * sysdeps/generic/ifunc-init.h: New file.
571 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
572
573 2017-10-17 Mike FABIAN <mfabian@redhat.com>
574
575 [BZ #22019]
576 * localedata/locales/el_GR: Set n_cs_precedes to 0.
577 * localedata/locales/el_CY: copy "el_GR" because it is identical.
578 * stdlib/tst-strfmon_l.c: adapt test case.
579
580 2017-10-16 Joseph Myers <joseph@codesourcery.com>
581
582 * sysdeps/generic/float128-abi.h: New file.
583 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
584 non-__prefixed symbols to ....
585 * math/Versions: ... here. Include <float128-abi.h>.
586 * stdlib/Versions ... and here. Include <float128-abi.h>
587
588 2017-10-16 Florian Weimer <fweimer@redhat.com>
589
590 * version.h (VERSION): Switch to ".9000" as the development
591 version suffix.
592
593 2017-10-16 Florian Weimer <fweimer@redhat.com>
594
595 [BZ #22050]
596 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
597 compat_symbol_reference to access non-default version.
598
599 2017-10-16 Florian Weimer <fweimer@redhat.com>
600
601 * malloc/Makefile (others-extras): Set to mcheck-init.o.
602
603 2017-10-16 Carlos O'Donell <carlos@redhat.com>
604
605 * include/shlib-compat.h (compat_symbol_reference): Update
606 comment.
607
608 2017-10-16 Joseph Myers <joseph@codesourcery.com>
609
610 * math/Makefile (test-types): Add
611 $(type-float128-$(float128-alias-fcts)).
612 * math/test-float128.h (TYPE_STR): Define conditional on
613 [FLT128_MANT_DIG == LDBL_MANT_DIG].
614 (ULP_IDX): Likewise.
615 (ULP_I_IDX): Likewise.
616
617 * stdlib/strtold.c: Include <bits/floatn.h>
618 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
619 and later undefine as macro. Define as weak alias if
620 [!USE_WIDE_CHAR].
621 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
622 and later undefine as macro. Define as weak alias if
623 [USE_WIDE_CHAR].
624 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
625 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
626 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
627 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
628 Define and later undefine as macro. Define as weak alias if
629 [USE_WIDE_CHAR].
630 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
631 <bits/floatn.h>.
632 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
633 Define and later undefine as macro. Define as weak alias if
634 [!USE_WIDE_CHAR].
635 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
636 Define and later undefine as macro. Define as weak alias if
637 [USE_WIDE_CHAR].
638
639 2017-10-15 Carlos O'Donell <carlos@redhat.com>
640
641 * localedata/collate-test.c (allocate_arrays): Don't use \n in
642 record_verbose messages.
643
644 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
645
646 [BZ #22052]
647 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
648 to silence -O3 -Wall warning with GCC 7.
649
650 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
651
652 * Makeconfig (+link-static-before-libc): Use the first of
653 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
654 * gmon/Makefile (tests): Add tst-gmon-static.
655 (tests-static): Likewise.
656 (CFLAGS-tst-gmon-static.c): New.
657 (CRT-tst-gmon-static): Likewise.
658 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
659 (tst-gmon-static-ENV): Likewise.
660 (tests-special): Likewise.
661 ($(objpfx)tst-gmon-static.out): Likewise.
662 (clean-tst-gmon-static-data): Likewise.
663 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
664 * gmon/tst-gmon-static-gprof.sh: New file.
665 * gmon/tst-gmon-static.c: Likewise.
666
667 2017-10-13 Carlos O'Donell <carlos@redhat.com>
668
669 [BZ #22295]
670 * locale/programs/linereader.c (get_string): Don't warn on
671 non-symbolic character.
672
673 2017-10-13 Carlos O'Donell <carlos@redhat.com>
674
675 [BZ #22294]
676 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
677 int_curr_symbol.
678
679 2017-10-13 Carlos O'Donell <carlos@redhat.com>
680
681 [BZ #22292]
682 * locale/programs/record-status.h: New file
683 * locale/programs/locale.c: Add comment.
684 * locale/programs/charmap-dir.c: Don't include error.h.
685 (charmap_opendir): Use record_error.
686 * locale/programs/charmap.c: Don't include error.h.
687 (charmap_read): Use record_error, and record_warning.
688 (parse_charmap): Likewise.
689 * locale/programs/ld-address.c: Don't include error.h.
690 (address_finish): Use record_error, and record_warning.
691 * locale/programs/ld-collate.c: Don't include error.h.
692 (collate_finish): Use record_error, and record_error_at_line.
693 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
694 (ctype_class_new): Likewise.
695 (ctype_map_new): Likewise.
696 (set_one_default): Likewise.
697 (set_class_defaults): Likewise.
698 (translit_flatten): Likewise.
699 (allocate_arrays): Use record_error, and record_verbose.
700 * locale/programs/ld-identification.c: Don't include error.h.
701 (indentation_finish): Use record_error and record_warning.
702 * locale/programs/ld-measurement.c: Don't include error.h.
703 (measurement_finish): Use record_error.
704 * locale/programs/ld-messages.c
705 (message_finish): Likewise.
706 * locale/programs/ld-monetary.c
707 (monetary_finish): Likewise.
708 * locale/programs/ld-name.c (name_finish): Use record_error
709 and record_warning.
710 * locale/programs/ld-numeric.c
711 (numeric_finish): Use record_error.
712 * locale/programs/ld-paper.c: Don't include error.h.
713 (paper_finish): Use record_error.
714 * locale/programs/ld-telephone.c: Don't include error.h.
715 (telephone_finish): Use record_error.
716 * locale/programs/ld-time.c (time_finish): Likewise.
717 * locale/programs/linereader.h (lr_error): Make inline func.
718 * locale/programs/localedef.c: Define recorded_warning_count,
719 and recorded_error_count.
720 (main): Use record_error. Use recorded_error_count and
721 recorded_warning_count to issue correct error returns.
722 (add_to_readlist): Use record_error.
723 (find_locale): Likewise.
724 (load_locale): Likewise.
725 * locale/programs/localedef.h: Remove be_quiet
726 and WITH_CUR_LOCALE.
727 * locale/programs/locarchive.c (compare_from_file): Use
728 record_error.
729 * locale/programs/locfile.c (write_locale_data): Use
730 record_error.
731 * locale/programs/repertoire.c: Dont include error.h.
732 (repertoire_complain): Use record_error.
733 * localedata/tst-fmon.sh: Expect failures from localedef.
734 * localedata/tst-locale.sh: Likewise.
735 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
736
737 2017-10-12 Carlos O'Donell <carlos@redhat.com>
738
739 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
740 (REPORTS): Likewise.
741 (check): Likewise.
742 (i18n): Rename to...
743 (i18n_ctype): ...this.
744 (i18n-report): Rename to...
745 (i18n_ctype-report): ...this.
746 * localedata/locales/i18n_ctype: Regenerate.
747 * localedata/locales/i18n: copy i18n_ctype.
748
749 2017-10-13 Joseph Myers <joseph@codesourcery.com>
750
751 * stdlib/strfroml.c: Include <bits/floatn.h>.
752 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
753 Define before include of <stdlib.h> and undefine afterwards, then
754 define as weak alias.
755
756 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
757 Undefine and restore default definition. Use
758 libm_alias_ldouble_other.
759
760 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
761
762 [BZ #22153]
763 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
764 in coredumps.
765
766 2017-10-13 James Clarke <jrtc27@jrtc27.com>
767
768 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
769 Assign sym_map to be map for local symbols, as TLS relocations
770 use sym_map to determine whether the symbol is defined and to
771 extract the TLS information.
772 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
773 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
774
775 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
776
777 [BZ #22189]
778 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
779 (math_force_eval): Add powerpc version.
780
781 [BZ #22142]
782 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
783 -DBL_MAX.
784 (do_test): Likewise.
785 * stdio-common/tst-printf.sh: Likewise.
786 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
787 ifdef clause in order to set the carry bit right. Replace r0 by
788 0 without changing the behavior.
789
790 2017-10-13 Joseph Myers <joseph@codesourcery.com>
791
792 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
793 <libm-alias-ldouble.h>.
794 (fabsl): Define using libm_alias_ldouble.
795 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
796 <libm-alias-ldouble.h>.
797 (fabsl): Define using libm_alias_ldouble.
798
799 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
800 Remove conditional code.
801
802 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
803 Rename to __clog10_internal_l.
804 (__clog10_internal_l): Define aliases using
805 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
806 with __clog10.
807
808 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
809
810 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
811 * benchtests/sincosf-inputs: New file.
812 * benchtests/cosf-inputs: New file.
813 * benchtests/sinf-inputs: New file.
814
815 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
816
817 * posix/tst-spawn.c (do_test): Wait for both children.
818
819 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
820
821 [BZ #22284]
822 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
823 tests-pie): Add tst-gmon-pie.
824 (CFLAGS-tst-gmon-pie.c): New.
825 (CRT-tst-gmon-pie): Likewise.
826 (tst-gmon-pie-ENV): Likewise.
827 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
828 ($(objpfx)tst-gmon-pie.out): Likewise.
829 (clean-tst-gmon-pie-data): Likewise.
830 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
831 * gmon/gmon.c [PIC]: Include <link.h>.
832 [PIC] (callback): New function.
833 (write_hist): Add an argument for load address. Subtract load
834 address from PCs.
835 (write_call_graph): Likewise.
836 (write_gmon): Call __dl_iterate_phdr to get load address, pass
837 it to write_hist and write_call_graph.
838 * gmon/tst-gmon-pie.c: New file.
839
840 2017-10-11 Joseph Myers <joseph@codesourcery.com>
841
842 * math/Makefile (test-types-basic): New variable.
843 (test-types): Likewise.
844 (libm-test-support): Use $(test-types) instead of $(types).
845 (libm-tests-base-normal): Likewise.
846 (libm-tests-base-finite): Likewise.
847 (libm-tests-base-inline): Likewise.
848 (generated): Likewise.
849 ($(objpfx)libm-test-support-$(t).c): Likewise.
850 (libm-tests-for-type iterator): Likewise.
851 (libm-test-support iterator): Likewise.
852 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
853 (ulp_idx): Use ULP_IDX.
854 * math/test-ldouble.h: Include <float.h>.
855 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
856 (ULP_IDX): New macro.
857 (ULP_I_IDX): Likewise.
858 * math/test-double.h (ULP_IDX): Likewise.
859 (ULP_I_IDX): Likewise.
860 * math/test-float.h (ULP_IDX): Likewise.
861 (ULP_I_IDX): Likewise.
862 * math/test-float128.h (ULP_IDX): Likewise.
863 (ULP_I_IDX): Likewise.
864
865 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
866
867 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
868 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
869 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
870 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
871 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
872 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
873 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
874 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
875 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
876 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
877 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
878 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
879 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
880 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
881 (SINGLE_THREAD_BY_GLOBAL): Define.
882 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
883 Likewise.
884 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
885 Likewise.
886 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
887 Likewise.
888 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
889 Likewise.
890 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
891 (SINGLE_THREAD_BY_GLOBAL): Likewise.
892 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
893 Likewise.
894
895 2017-10-11 Andreas Schwab <schwab@suse.de>
896
897 * nis/Makefile (aux): Remove.
898 * nscd/Makefile (aux): Add nscd_hash.
899 (nscd-modules): Likewise.
900 ($(objpfx)nscd): Don't depend on libnsl.
901 * nscd/nscd_hash.c: New file.
902 * nscd/nscd_hash.h: Likewise.
903 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
904 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
905 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
906 instead of <nis/rpcsvc/nis.h>.
907 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
908
909 2017-10-11 Florian Weimer <fweimer@redhat.com>
910
911 [BZ #22078]
912 Avoid large NSS buffers with many addresses, aliases.
913 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
914 using dynarrays and struct alloc_buffer.
915 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
916 (tst-nss-files-hosts-multi): Link with -ldl.
917 * nss/tst-nss-files-hosts-multi.c: New file.
918
919 2017-10-11 Florian Weimer <fweimer@redhat.com>
920
921 [BZ #18023]
922 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
923 scratch_buffer. Eliminate gotos.
924
925 2017-10-11 Joseph Myers <joseph@codesourcery.com>
926
927 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
928 libm_alias_ldouble_other.
929 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
930 undefine and redefine.
931 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
932 (exp10l): Do not define here.
933 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
934 (weak_alias): Undefine and redefine.
935 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
936 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
937 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
938 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
939
940 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
941 [!__fma] (fma): Define using libm_alias_double.
942 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
943 [!__fmaf] (fmaf): Define using libm_alias_float.
944 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
945 (fmal): Define using libm_alias_ldouble.
946
947 2017-10-10 Joseph Myers <joseph@codesourcery.com>
948
949 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
950 New macro.
951 (libm_alias_double_other): Likewise.
952 (libm_alias_double_r): Use libm_alias_double_other_r.
953 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
954 New macro.
955 (libm_alias_float_other): Likewise.
956 (libm_alias_float_r): Use libm_alias_float_other_r.
957 * sysdeps/generic/libm-alias-float128.h
958 (libm_alias_float128_other_r): New macro.
959 (libm_alias_float128_other): Likewise.
960 (libm_alias_float128_r): Use libm_alias_float128_other_r.
961 * sysdeps/generic/libm-alias-ldouble.h
962 (libm_alias_ldouble_other_r): New macro.
963 (libm_alias_ldouble_other): Likewise.
964 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
965 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
966 (libm_alias_double_other_r): New macro.
967 (libm_alias_double_other): Likewise.
968 (libm_alias_double_r): Use libm_alias_double_other_r.
969 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
970 (libm_alias_ldouble_other_r): New macro.
971 (libm_alias_ldouble_other): Likewise.
972 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
973 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
974 [!USE_AS_COMPAT]: Use libm_alias_double_other.
975 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
976 [!USE_AS_COMPAT]: Use libm_alias_float_other.
977 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
978 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
979 * math/w_exp2f.c: Use libm_alias_float_other.
980 * math/w_expf.c: Likewise.
981 * math/w_log2f.c: Likewise.
982 * math/w_logf.c: Likewise.
983 * math/w_powf.c: Likewise.
984 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
985 [!__exp2f]: Use libm_alias_float_other.
986 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
987 [!__expf]: Use libm_alias_float_other.
988 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
989 [!__log2f]: Use libm_alias_float_other.
990 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
991 [!__logf]: Use libm_alias_float_other.
992 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
993 [!__powf]: Use libm_alias_float_other.
994
995 2017-10-10 Florian Weimer <fweimer@redhat.com>
996
997 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
998 function.
999 (_nss_files_gethostbyname3_r): Call it.
1000
1001 2017-10-09 Joseph Myers <joseph@codesourcery.com>
1002
1003 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
1004 error. Remove default definition of declare_mgen_alias.
1005 [!declare_mgen_alias_r]: Likewise.
1006 * sysdeps/generic/math-type-macros-double.h
1007 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
1008 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
1009 (declare_mgen_alias_r): Likewise.
1010 * sysdeps/generic/math-type-macros-float128.h
1011 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1012 * sysdeps/generic/math-type-macros-ldouble.h
1013 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1014 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
1015 macro.
1016 (declare_mgen_alias_r_s): Likewise.
1017 (declare_mgen_alias_r): Likewise.
1018 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
1019 (lgamma_r): Define using libm_alias_double_r.
1020 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
1021 (lgammaf_r): Define using libm_alias_float_r.
1022 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
1023 (lgammal_r): Define using libm_alias_ldouble_r.
1024 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
1025 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
1026
1027 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1028
1029 * lib/glob.c (__glob_pattern_type): Remove now-spurious
1030 extern declaration.
1031
1032 2017-10-09 Joseph Myers <joseph@codesourcery.com>
1033
1034 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
1035
1036 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
1037
1038 [BZ #21326]
1039 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
1040 [__cplusplus >= 201103] (__USE_ISOC99): Define.
1041 * math/Makefile (test-math-cxx11): New test.
1042 * math/test-math-cxx11.cc: New file.
1043
1044 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
1045
1046 * login/openpty.c (openpty): Close slave pty file descriptor on error.
1047
1048 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
1049 call to allocate the slave pty file descriptor.
1050
1051 2017-10-06 Joseph Myers <joseph@codesourcery.com>
1052
1053 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
1054 [!__fma] (fma): Define using libm_alias_double.
1055 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
1056 [!__fma] (fma): Define using libm_alias_double.
1057
1058 * sysdeps/ieee754/float128/float128_private.h: Include
1059 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
1060 (libm_alias_ldouble_r): Undefine and redefine.
1061 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
1062 <libm-alias-ldouble.h>.
1063 (asinhl): Define using libm_alias_ldouble.
1064 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
1065 <libm-alias-ldouble.h>.
1066 (atanl): Define using libm_alias_ldouble.
1067 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
1068 <libm-alias-ldouble.h>.
1069 (cbrtl): Define using libm_alias_ldouble.
1070 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
1071 <libm-alias-ldouble.h>.
1072 (ceill): Define using libm_alias_ldouble.
1073 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
1074 <libm-alias-ldouble.h>.
1075 (copysignl): Define using libm_alias_ldouble.
1076 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
1077 <libm-alias-ldouble.h>.
1078 (cosl): Define using libm_alias_ldouble.
1079 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
1080 <libm-alias-ldouble.h>.
1081 (erfl): Define using libm_alias_ldouble.
1082 (erfcl): Likewise.
1083 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
1084 <libm-alias-ldouble.h>.
1085 (expm1l): Define using libm_alias_ldouble.
1086 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
1087 <libm-alias-ldouble.h>.
1088 (fabsl): Define using libm_alias_ldouble.
1089 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
1090 <libm-alias-ldouble.h>.
1091 (floorl): Define using libm_alias_ldouble.
1092 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
1093 <libm-alias-ldouble.h>.
1094 (fmal): Define using libm_alias_ldouble.
1095 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
1096 <libm-alias-ldouble.h>.
1097 (frexpl): Define using libm_alias_ldouble.
1098 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
1099 libm_alias_ldouble.
1100 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
1101 <libm-alias-ldouble.h>.
1102 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
1103 libm_alias_ldouble.
1104 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
1105 <libm-alias-ldouble.h>.
1106 (getpayloadl): Define using libm_alias_ldouble.
1107 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
1108 <libm-alias-ldouble.h>.
1109 (llrintl): Define using libm_alias_ldouble.
1110 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
1111 <libm-alias-ldouble.h>.
1112 (llroundl): Define using libm_alias_ldouble.
1113 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
1114 <libm-alias-ldouble.h>.
1115 (logbl): Define using libm_alias_ldouble.
1116 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
1117 <libm-alias-ldouble.h>.
1118 (lrintl): Define using libm_alias_ldouble.
1119 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
1120 <libm-alias-ldouble.h>.
1121 (lroundl): Define using libm_alias_ldouble.
1122 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
1123 <libm-alias-ldouble.h>.
1124 (modfl): Define using libm_alias_ldouble.
1125 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
1126 <libm-alias-ldouble.h>.
1127 (nearbyintl): Define using libm_alias_ldouble.
1128 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
1129 <libm-alias-ldouble.h>.
1130 (nextafterl): Define using libm_alias_ldouble.
1131 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
1132 <libm-alias-ldouble.h>.
1133 (nextupl): Define using libm_alias_ldouble.
1134 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
1135 <libm-alias-ldouble.h>.
1136 (remquol): Define using libm_alias_ldouble.
1137 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
1138 <libm-alias-ldouble.h>.
1139 (rintl): Define using libm_alias_ldouble.
1140 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
1141 <libm-alias-ldouble.h>.
1142 (roundevenl): Define using libm_alias_ldouble.
1143 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
1144 <libm-alias-ldouble.h>.
1145 (roundl): Define using libm_alias_ldouble.
1146 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
1147 using libm_alias_ldouble.
1148 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
1149 <libm-alias-ldouble.h>.
1150 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
1151 Define using libm_alias_ldouble.
1152 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
1153 <libm-alias-ldouble.h>.
1154 (sincosl): Define using libm_alias_ldouble.
1155 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
1156 <libm-alias-ldouble.h>.
1157 (sinl): Define using libm_alias_ldouble.
1158 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
1159 <libm-alias-ldouble.h>.
1160 (tanhl): Define using libm_alias_ldouble.
1161 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
1162 <libm-alias-ldouble.h>.
1163 (tanl): Define using libm_alias_ldouble.
1164 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1165 <libm-alias-ldouble.h>.
1166 (totalorderl): Define using libm_alias_ldouble.
1167 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1168 <libm-alias-ldouble.h>.
1169 (totalordermagl): Define using libm_alias_ldouble.
1170 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
1171 <libm-alias-ldouble.h>.
1172 (truncl): Define using libm_alias_ldouble.
1173 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
1174 libm_alias_ldouble.
1175 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
1176 libm_alias_ldouble.
1177 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
1178 <libm-alias-ldouble.h>.
1179 (weak_alias): Do not undefine and redefine.
1180 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1181 (copysignl): Define with long_double_symbol only if [IS_IN
1182 (libc)].
1183 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
1184 <libm-alias-ldouble.h>.
1185 (weak_alias): Do not undefine and redefine.
1186 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1187 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
1188 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
1189 <libm-alias-ldouble.h>.
1190 (weak_alias): Do not undefine and redefine.
1191 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1192 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
1193 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
1194 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
1195 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
1196 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
1197 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
1198 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
1199 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
1200 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
1201 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
1202 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
1203 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
1204 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
1205 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
1206 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
1207 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
1208 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
1209 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
1210 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
1211 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
1212 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
1213 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
1214 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
1215 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
1216 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
1217
1218 2017-10-06 Carlos O'Donell <carlos@redhat.com>
1219
1220 [BZ #22111]
1221 * malloc/malloc.c (tcache_shutting_down): Use bool type.
1222 (tcache_thread_freeres): Set tcache_shutting_down before
1223 freeing the tcache.
1224 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
1225 * malloc/tst-malloc-tcache-leak.c: New file.
1226
1227 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1228
1229 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
1230 back to powerpc32 file.
1231 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1232 (memrchr): Add __memrchr_power8 to ifunc list.
1233 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
1234 extra bytes for unaligned inputs.
1235
1236 2017-10-06 Joseph Myers <joseph@codesourcery.com>
1237
1238 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
1239 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
1240 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
1241 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
1242 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
1243
1244 2017-10-05 Joseph Myers <joseph@codesourcery.com>
1245
1246 * sysdeps/arm/libm-test-ulps: Update.
1247
1248 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
1249 <libm-alias-ldouble.h>.
1250 (asinhl): Define using libm_alias_ldouble.
1251 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
1252 <libm-alias-ldouble.h>.
1253 (cbrtl): Define using libm_alias_ldouble.
1254 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
1255 <libm-alias-ldouble.h>.
1256 (copysignl): Define using libm_alias_ldouble.
1257 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
1258 <libm-alias-ldouble.h>.
1259 (cosl): Define using libm_alias_ldouble.
1260 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
1261 <libm-alias-ldouble.h>.
1262 (erfl): Define using libm_alias_ldouble.
1263 (erfcl): Likewise.
1264 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
1265 <libm-alias-ldouble.h>.
1266 (fmal): Define using libm_alias_ldouble.
1267 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
1268 <libm-alias-ldouble.h>.
1269 (frexpl): Define using libm_alias_ldouble.
1270 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
1271 libm_alias_ldouble.
1272 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
1273 <libm-alias-ldouble.h>.
1274 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
1275 libm_alias_ldouble.
1276 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
1277 <libm-alias-ldouble.h>.
1278 (getpayloadl): Define using libm_alias_ldouble.
1279 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
1280 <libm-alias-ldouble.h>.
1281 (llrintl): Define using libm_alias_ldouble.
1282 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
1283 <libm-alias-ldouble.h>.
1284 (llroundl): Define using libm_alias_ldouble.
1285 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
1286 <libm-alias-ldouble.h>.
1287 (lrintl): Define using libm_alias_ldouble.
1288 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
1289 <libm-alias-ldouble.h>.
1290 (lroundl): Define using libm_alias_ldouble.
1291 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
1292 <libm-alias-ldouble.h>.
1293 (modfl): Define using libm_alias_ldouble.
1294 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
1295 <libm-alias-ldouble.h>.
1296 (nextupl): Define using libm_alias_ldouble.
1297 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
1298 <libm-alias-ldouble.h>.
1299 (remquol): Define using libm_alias_ldouble.
1300 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
1301 <libm-alias-ldouble.h>.
1302 (roundevenl): Define using libm_alias_ldouble.
1303 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
1304 <libm-alias-ldouble.h>.
1305 (roundl): Define using libm_alias_ldouble.
1306 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
1307 using libm_alias_ldouble.
1308 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
1309 <libm-alias-ldouble.h>.
1310 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
1311 <libm-alias-ldouble.h>.
1312 (setpayloadsigl): Define using libm_alias_ldouble.
1313 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
1314 <libm-alias-ldouble.h>.
1315 (sincosl): Define using libm_alias_ldouble.
1316 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
1317 <libm-alias-ldouble.h>.
1318 (sinl): Define using libm_alias_ldouble.
1319 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
1320 <libm-alias-ldouble.h>.
1321 (tanhl): Define using libm_alias_ldouble.
1322 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
1323 <libm-alias-ldouble.h>.
1324 (tanl): Define using libm_alias_ldouble.
1325 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1326 <libm-alias-ldouble.h>.
1327 (totalorderl): Define using libm_alias_ldouble.
1328 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1329 <libm-alias-ldouble.h>.
1330 (totalordermagl): Define using libm_alias_ldouble.
1331 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
1332 libm_alias_ldouble.
1333 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
1334 libm_alias_ldouble.
1335
1336 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
1337
1338 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
1339 memmove_falkor.
1340 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1341 (__libc_ifunc_impl_list): Likewise.
1342 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
1343 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
1344
1345 * benchtests/bench-memmove-walk.c: New file.
1346 * benchtests/Makefile (string-benchset): Add it.
1347
1348 * benchtests/bench-memset-walk.c: New file.
1349 * benchtests/Makefile (string-benchset): Add it.
1350
1351 * benchtests/bench-memcpy-walk.c: New file.
1352 * benchtests/Makefile (string-benchset): Add it.
1353
1354 2017-10-05 Florian Weimer <fweimer@redhat.com>
1355
1356 nscd: Eliminate compilation time dependency in the build output.
1357 * nscd/nscd_stat.c (STATDATA_VERSION)
1358 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
1359 (STATDATA_VERSION_FULL): New macro definitions.
1360 (compilation): Remove.
1361 (struct statdata): Adjust version member.
1362 (send_stats): Set version from STATDATA_VERSION_FULL.
1363 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
1364
1365 2017-10-05 Joseph Myers <joseph@codesourcery.com>
1366
1367 * configure.ac (--enable-add-ons): Remove option.
1368 (machine): Do not mention add-ons in comment.
1369 (LIBC_PRECONFIGURE): Likewise.
1370 (add_ons): Remove variable and sanity checks and logic to locate
1371 add-ons.
1372 (add_ons_automatic): Remove variable.
1373 (configured_add_ons): Likewise.
1374 (add_ons_sfx): Likewise.
1375 (add_ons_pfx): Likewise.
1376 (add_on_subdirs): Likewise.
1377 (sysnames_add_ons): Likewise. Remove loop over add-ons and
1378 consideration of add-ons in Implies handling.
1379 (sysdeps_add_ons): Likewise.
1380 * configure: Regenerated.
1381 * libidn/configure.ac: Remove.
1382 * libidn/configure: Likewise.
1383 * sysdeps/unix/inet/configure.ac: New file.
1384 * sysdeps/unix/inet/configure: New generated file.
1385 * sysdeps/unix/inet/Subdirs: Add libidn.
1386 * Makeconfig (sysdeps-srcdirs): Remove variable.
1387 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
1388 ($(common-objpfx)config.status): Do not depend on add-on files.
1389 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
1390 comment.
1391 (all-subdirs): Do not include $(add-on-subdirs).
1392 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
1393 * config.make.in (add-ons): Remove variable.
1394 (add-on-subdirs): Likewise.
1395 (sysdeps-add-ons): Likewise.
1396 * manual/Makefile (add-chapters): Remove.
1397 ($(objpfx)texis): Do not depend on $(add-chapters).
1398 (nonexamples): Do not handle $(add-chapters).
1399 (examples): Do not handle $(add-ons).
1400 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
1401 libc-texinfo.sh.
1402 * manual/install.texi (Installation): Do not mention add-ons.
1403 (--enable-add-ons): Do not document configure option.
1404 * INSTALL: Regenerated.
1405 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
1406 * manual/maint.texi (Hierarchy Conventions): Do not mention
1407 add-ons.
1408 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
1409 --enable-add-ons.
1410 * scripts/gen-sorted.awk: Do not handle Subdirs files from
1411 add-ons.
1412 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
1413 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
1414
1415 2017-10-05 Andreas Schwab <schwab@suse.de>
1416
1417 [BZ #15142]
1418 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
1419 (_IO_flush_all_lockp): Always lock list_all_lock.
1420 (_IO_flush_all_linebuffered): Likewise.
1421 (_IO_unbuffer_all): Likewise.
1422
1423 2017-10-05 Florian Weimer <fweimer@redhat.com>
1424
1425 [BZ #15436]
1426 Do not flush stdio streams on abort.
1427 * stdlib/abort.c (fflush): Remove macro definition.
1428 (abort): Remove stages related to stdio flushing.
1429
1430 2017-10-05 Florian Weimer <fweimer@redhat.com>
1431
1432 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
1433
1434 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
1435
1436 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1437
1438 2017-10-05 Florian Weimer <fweimer@redhat.com>
1439
1440 * support/support_format_hostent.c (support_format_hostent): Add
1441 more error information for NETDB_INTERNAL.
1442
1443 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
1446 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
1447 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
1448 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
1449 AC_DEFINE if multi-arch is enabled.
1450 * sysdeps/i386/configure: Regenerated.
1451
1452 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 * Makeconfig (+link-static-before-libc): Use
1455 $(DEFAULT-LDFLAGS-$(@F)).
1456 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
1457 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
1458 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
1459
1460 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1461
1462 * elf/Makefile (tests): Add tst-main1.
1463 (modules-names): Add tst-main1mod.
1464 ($(objpfx)tst-main1): New.
1465 (CRT-tst-main1): Likewise.
1466 (LDFLAGS-tst-main1): Likewise.
1467 (LDLIBS-tst-main1): Likewise.
1468 (tst-main1mod.so-no-z-defs): Likewise.
1469 * elf/tst-main1.c: New file.
1470 * elf/tst-main1mod.c: Likewise.
1471
1472 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
1475
1476 2017-10-04 Joseph Myers <joseph@codesourcery.com>
1477
1478 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
1479 (fma): Define using libm_alias_double.
1480 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
1481 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
1482 <math_ldbl_opt.h>.
1483 (fmal): Do not define as compat symbol here.
1484 * sysdeps/alpha/fpu/s_fma.c: New file.
1485
1486 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1487
1488 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
1489
1490 2017-10-04 Joseph Myers <joseph@codesourcery.com>
1491
1492 [BZ #22229]
1493 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
1494 <math_ldbl_opt.h>
1495 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1496 and libc.
1497 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
1498 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1499 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
1500 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
1501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1502 Include <math_ldbl_opt.h>
1503 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1504 and libc.
1505 (compat_symbol): Undefine and redefine.
1506 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
1507 <math_ldbl_opt.h>
1508 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1509 (compat_symbol): Undefine and redefine.
1510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
1511 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
1512 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
1513 GLIBC_2_1 for libm.
1514 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
1515 GLIBC_2.0 copysignl symbol.
1516 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
1517 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
1518
1519 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
1520
1521 2017-10-04 Florian Weimer <fweimer@redhat.com>
1522
1523 * scripts/check-local-headers.sh: Ignore nspr4 header file
1524 directory in addition to nspr.
1525
1526 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
1527
1528 [BZ #17956]
1529 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
1530 * configure: Regenerate.
1531 * crypt/Makefile (nss-cpp-flags): New variable.
1532 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
1533 (CPPFLAGS-md5-crypt.c): Use it.
1534 * scripts/check-local-headers.sh: Ignore nspr header file
1535 directory.
1536
1537 2017-10-04 Andreas Schwab <schwab@suse.de>
1538
1539 * nis/Makefile (services): Remove compat.
1540 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
1541 ($(objpfx)libnss_compat.so): Remove rule.
1542 * nis/Versions (libnss_compat): Remove.
1543 * nss/Makefile (services): Add compat.
1544 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
1545 * nss/Versions (libnss_compat): Define.
1546 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
1547 Don't include <rpc/types.h>. Replace bool_t by bool.
1548 * nss/nss_compat/compat-initgroups.c: Likewise.
1549 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
1550 instead of <rpcsrv/ypclnt.h>.
1551 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
1552 yp_get_default_domain.
1553 * nss/nss_compat/compat-pwd.c: Likewise.
1554 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
1555 yp_get_default_domain.
1556 * nss/nss_compat/nisdomain.c: New file.
1557 * nss/nss_compat/nisdomain.h: Likewise.
1558
1559 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1560
1561 [BZ #22244]
1562 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
1563 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1564
1565 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1566
1567 [BZ #22243]
1568 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
1569 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
1570
1571 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1572
1573 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
1574 "movl main@GOTOFF(%ebx), %eax".
1575
1576 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1577
1578 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
1579 allow undefined _DYNAMIC in PIE libc.a.
1580 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
1581 Likewse.
1582
1583 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1584
1585 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
1586 check _DYNAMIC.
1587
1588 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1589
1590 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
1591 check _DYNAMIC.
1592
1593 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1594
1595 * math/test-math-iscanonical.cc (error): Replace bool with int.
1596
1597 2017-10-03 Joseph Myers <joseph@codesourcery.com>
1598
1599 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
1600 (modf): Define using libm_alias_double, only if [!__modf].
1601 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
1602 <libm-alias-double.h>.
1603 (modf): Define using libm_alias_double, only if [!__modf].
1604 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
1605 compat symbol here.
1606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
1607 (weak_alias): Do not undefine and redefine.
1608 (strong_alias): Likewise.
1609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
1610 (weak_alias): Likewise.
1611 (strong_alias): Likewise.
1612
1613 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
1614 (logb): Define using libm_alias_double, only if [!__logb].
1615 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
1616 <libm-alias-double.h>.
1617 (logb): Define using libm_alias_double, only if [!__logb].
1618 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
1619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
1620 (weak_alias): Do not undefine and redefine.
1621 (strong_alias): Likewise.
1622 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
1623 (weak_alias): Likewise.
1624 (strong_alias): Likewise.
1625
1626 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1627
1628 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
1629 Check SHARED instead PIC.
1630
1631 2017-10-03 Joseph Myers <joseph@codesourcery.com>
1632
1633 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
1634 [!__fmaf] (fmaf): Define using libm_alias_float.
1635
1636 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
1637 (frexp): Define using libm_alias_double.
1638 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
1639 <libm-alias-double.h>.
1640 (frexp): Define using libm_alias_double.
1641 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
1642 compat symbol here.
1643
1644 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1645
1646 [BZ #22235]
1647 * math/math.h: Trivial fix for unbalanced parentheses in comment.
1648 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
1649 (CFLAGS-test-math-iscanonical.cc): New variable.
1650 * math/test-math-iscanonical.cc: New file.
1651 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
1652 Provide a C++ implementation based on function overloading,
1653 rather than using __MATH_TG, which uses C-only builtins.
1654 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
1655 Likewise.
1656 * sysdeps/powerpc/powerpc64le/Makefile
1657 (CFLAGS-test-math-iscanonical.cc): New variable.
1658
1659 2017-10-03 Joseph Myers <joseph@codesourcery.com>
1660
1661 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
1662 (ceil): Define using libm_alias_double.
1663 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
1664 (floor): Define using libm_alias_double.
1665 * sysdeps/ieee754/dbl-64/s_llround.c: Include
1666 <libm-alias-double.h>.
1667 (llround): Define using libm_alias_double.
1668 * sysdeps/ieee754/dbl-64/s_lround.c: Include
1669 <libm-alias-double.h>.
1670 (lround): Define using libm_alias_double.
1671 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
1672 <libm-alias-double.h>.
1673 (nearbyint): Define using libm_alias_double.
1674 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
1675 <libm-alias-double.h>.
1676 (remquo): Define using libm_alias_double.
1677 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
1678 (rint): Define using libm_alias_double.
1679 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
1680 (round): Define using libm_alias_double.
1681 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
1682 (trunc): Define using libm_alias_double.
1683 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
1684 <libm-alias-double.h>.
1685 (ceil): Define using libm_alias_double.
1686 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
1687 <libm-alias-double.h>.
1688 (floor): Define using libm_alias_double.
1689 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
1690 <libm-alias-double.h>.
1691 (llround): Define using libm_alias_double.
1692 [_LP64] (lround): Likewise.
1693 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
1694 <libm-alias-double.h>.
1695 [!_LP64] (lround): Define using libm_alias_double.
1696 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
1697 <libm-alias-double.h>.
1698 (nearbyint): Define using libm_alias_double.
1699 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
1700 <libm-alias-double.h>.
1701 (remquo): Define using libm_alias_double.
1702 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
1703 <libm-alias-double.h>.
1704 (rint): Define using libm_alias_double.
1705 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
1706 <libm-alias-double.h>.
1707 (round): Define using libm_alias_double.
1708 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
1709 <libm-alias-double.h>.
1710 (trunc): Define using libm_alias_double.
1711 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
1712 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
1713 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
1714 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
1715 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
1716 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
1717 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
1718 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
1719 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
1720
1721 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1722
1723 * math/w_remainder.c: New file.
1724 * math/w_remainderf.c: New file.
1725 * math/w_remainderl.c: New file.
1726
1727 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 * elf/rtld.c (BOOTSTRAP_MAP): New.
1730 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
1731 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1732 Likewise.
1733 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1734 Likewise.
1735 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1736 Likewise.
1737
1738 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1739
1740 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
1741 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
1742 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
1743 rtld_hidden_data_ver): Define to empty.
1744 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
1745 __assert_perror_fail): Likewise.
1746 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1747 (__rewinddir): Likewise.
1748 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1749 (__profile_frequency): Likewise.
1750 * include/setjmp.h (__sigsetjmp): Likewise.
1751 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
1752 __libc_sigaction): Likewise.
1753 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
1754 not set hidden attribute.
1755 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
1756 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
1757 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
1758 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
1759 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
1760 __fxstatat64): Likewise.
1761 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1762 (__uname): Likewise.
1763 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1764 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
1765 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
1766 (NO_RTLD_HIDDEN): Set.
1767 * sysdeps/mach/hurd/configure: Refresh.
1768 * config.h.in: Refresh.
1769
1770 2017-10-02 Joseph Myers <joseph@codesourcery.com>
1771
1772 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
1773 (atan): Define using libm_alias_double.
1774 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
1775 (tan): Define using libm_alias_double.
1776 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
1777 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
1778
1779 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
1780 define as weak alias of __atan. Do not define any aliases if
1781 [__atan].
1782 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
1783 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
1784 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
1785 as weak alias of __tan. Do not define any aliases if [__tan].
1786 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
1787 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
1788 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
1789 __atan.
1790 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
1791 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
1792 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
1793 and define as weak alias of __atan.
1794 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
1795 __atan.
1796 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
1797 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
1798 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
1799 define as weak alias of __tan.
1800
1801 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1802
1803 * math/w_lgamma.c: New file.
1804 * math/w_lgammaf.c: New file.
1805 * math/w_lgammal.c: New file.
1806
1807 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1808
1809 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
1810 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
1811 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
1812 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
1813 * sysdeps/ieee754/flt-32/w_logf.c: New file.
1814 * sysdeps/ieee754/flt-32/w_powf.c: New file.
1815 * sysdeps/i386/fpu/w_log2f.c: New file.
1816 * sysdeps/i386/fpu/w_logf.c: New file.
1817 * sysdeps/i386/fpu/w_powf.c: New file.
1818 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
1819 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
1820 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
1821
1822 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1823 H.J. Lu <hongjiu.lu@intel.com>
1824
1825 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
1826 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
1827 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
1828 * sysdeps/ieee754/flt-32/w_expf.c: New file.
1829 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
1830 the new expf code.
1831 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
1832 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
1833 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
1834 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
1835 * sysdeps/i386/fpu/w_exp2f.c: New file.
1836 * sysdeps/i386/fpu/w_expf.c: New file.
1837 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
1838 * sysdeps/x86_64/fpu/w_expf.c: New file.
1839
1840 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1841
1842 * math/Versions (logf): New libm symbol at GLIBC_2.27.
1843 (log2f): Likewise.
1844 (powf): Likewise.
1845 * math/w_log2f.c: New file.
1846 * math/w_logf.c: New file.
1847 * math/w_powf.c: New file.
1848 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
1849 * math/w_logf_compat.c (__logf_compat): Likewise.
1850 * math/w_powf_compat.c (__powf_compat): Likewise.
1851 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
1852 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1853 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1854 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1855 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1856 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1857 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1858 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1859 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1860 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1861 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1862 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1863 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1864 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1865 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1867 Likewise.
1868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1869 Likewise.
1870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1871 Likewise.
1872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1873 Likewise.
1874 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1875 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1876 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1877 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1878 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1879 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1880 Likewise.
1881 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1882 Likewise.
1883 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1884 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1885 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1886
1887 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1888
1889 * sysdeps/powerpc/powerpc64/multiarch/Makefile
1890 (sysdep_routines): Add memrchr_power8.
1891 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1892 (memrchr): Add __memrchr_power8 to list of memrchr functions.
1893 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
1894 New file.
1895 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1896 (memrchr): Add __memrchr_power8 to ifunc list.
1897 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
1898
1899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1900
1901 [BZ #18822]
1902 * sysdeps/unix/sysv/linux/posix_fadvise64.c
1903 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
1904 libc_hidden_def.
1905 * sysdeps/unix/sysv/linux/posix_fallocate64.c
1906 (__posix_fallocate64_l64): Likewise.
1907
1908 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 [BZ #18822]
1911 * sysdeps/unix/sysv/linux/sched_setaffinity.c
1912 (__sched_setaffinity_new): Add libc_hidden_proto and
1913 libc_hidden_def.
1914
1915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1916
1917 [BZ #18822]
1918 * include/glob.h (__glob64): Add libc_hidden_proto.
1919 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
1920 libc_hidden_def.
1921
1922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1923
1924 [BZ #18822]
1925 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
1926 attribute_hidden.
1927
1928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1929
1930 [BZ #18822]
1931 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
1932
1933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1934
1935 [BZ #18822]
1936 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
1937 libc_hidden_def.
1938
1939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1940
1941 [BZ #18822]
1942 * csu/version.c (__libc_print_version): Add attribute_hidden.
1943
1944 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1945
1946 [BZ #18822]
1947 * include/libc-internal.h (__init_misc): Add attribute_hidden.
1948
1949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1950
1951 [BZ #18822]
1952 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
1953
1954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1955
1956 [BZ #18822]
1957 * nscd/nscd_helper.c (__nis_hash): New prototype.
1958
1959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1960
1961 [BZ #18822]
1962 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
1963 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
1964 libc_hidden_def.
1965 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
1966 * termios/tcgetattr.c (__tcgetattr): Likewise.
1967
1968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1969
1970 [BZ #18822]
1971 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
1972 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
1973 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
1974 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
1975 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
1976
1977 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1978
1979 [BZ #18822]
1980 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
1981
1982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1983
1984 [BZ #18822]
1985 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
1986 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
1987
1988 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 [BZ #18822]
1991 * intl/hash-string.h (__hash_string): Add attribute_hidden.
1992
1993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 [BZ #18822]
1996 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
1997 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
1998
1999 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2000
2001 [BZ #18822]
2002 * include/ifreq.h: New file.
2003 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
2004 (__ifreq): Likewise.
2005 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
2006 (__ifreq): Likewise.
2007
2008 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 [BZ #18822]
2011 * include/idna.h: New file.
2012 * inet/getnameinfo.c: Include <idna.h> instead of
2013 <libidn/idna.h>.
2014 (__idna_to_unicode_lzlz): Removed.
2015 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
2016 <libidn/idna.h>.
2017 (__idna_to_ascii_lz): Removed.
2018 (__idna_to_unicode_lzlz): Likewise.
2019
2020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2021
2022 [BZ #18822]
2023 * include/plural-exp.h: New file.
2024 * intl/plural-exp.c: Include <plural-exp.h> instead of
2025 "plural-exp.h".
2026
2027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2028
2029 [BZ #18822]
2030 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
2031 "getsourcefilter.h".
2032 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
2033 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
2034 "getsourcefilter.h".
2035 (__get_sol): Removed.
2036
2037 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2038
2039 [BZ #18822]
2040 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
2041 to ...
2042 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
2043
2044 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 [BZ #18822]
2047 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
2048 attribute_hidden.
2049
2050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 [BZ #18822]
2053 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
2054
2055 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 [BZ #18822]
2058 * include/search.h (__tdestroy): Add libc_hidden_proto.
2059 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
2060
2061 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2062
2063 [BZ #18822]
2064 * include/assert.h (__assert_fail_base): Add attribute_hidden.
2065
2066 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2067
2068 [BZ #18822]
2069 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
2070 attribute_hidden.
2071
2072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2073
2074 [BZ #18822]
2075 * include/signal.h (__kill): Add libc_hidden_proto.
2076 (__sigblock): Likewise.
2077 (__sigprocmask): Likewise.
2078 (__sigaltstack): Likewise.
2079 * signal/kill.c (__kill): Add libc_hidden_def.
2080 * signal/sigblock.c (__sigblock): Likewise.
2081 * signal/sigprocmask.c (__sigprocmask): Likewise.
2082 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2083 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2084 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
2085 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
2086 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
2087 Likewise.
2088 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
2089 Likewise.
2090 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
2091 (__sigprocmask): Likewise.
2092 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
2093 Likewise.
2094 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
2095 (__sigprocmask): Likewise.
2096 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
2097 Likewise.
2098
2099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2100
2101 [BZ #18822]
2102 * include/string.h (__strsep): Add libc_hidden_proto.
2103 * string/strsep.c (__strsep): Add libc_hidden_def.
2104
2105 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 [BZ #18822]
2108 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
2109 attribute_hidden.
2110 (__spawni): Likewise.
2111
2112 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2113
2114 [BZ #18822]
2115 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
2116 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
2117 libc_hidden_def.
2118
2119 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2120
2121 [BZ #18822]
2122 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
2123
2124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2125
2126 [BZ #18822]
2127 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
2128 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
2129 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2130 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
2131 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
2132 Likewise.
2133 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
2134 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
2135
2136 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2137
2138 [BZ #18822]
2139 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
2140 (__dcigettext): Likewise.
2141
2142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2143
2144 [BZ #18822]
2145 * include/sys/sysinfo.h (__get_nprocs_conf): Add
2146 libc_hidden_proto.
2147 (__get_nprocs): Likewise.
2148 (__get_phys_pages): Likewise.
2149 (__get_avphys_pages): Likewise.
2150 (__get_child_max): Add attribute_hidden.
2151 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
2152 (__get_nprocs): Likewise.
2153 (__get_phys_pages): Likewise.
2154 (__get_avphys_pages): Likewise.
2155 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
2156 libc_hidden_def.
2157 (__get_nprocs): Likewise.
2158 (__get_phys_pages): Likewise.
2159 (__get_avphys_pages): Likewise.
2160 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
2161 libc_hidden_def.
2162 (__get_nprocs_conf): Likewise.
2163 (__get_phys_pages): Likewise.
2164 (__get_avphys_pages): Likewise.
2165
2166 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2167
2168 [BZ #18822]
2169 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
2170 attribute_hidden.
2171 (__netlink_close): Likewise.
2172 (__netlink_free_handle): Likewise.
2173 (__netlink_request): Likewise.
2174
2175 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2176
2177 [BZ #18822]
2178 * include/rpc/rpc.h (__rpc_thread_variables): Add
2179 attribute_hidden.
2180 (__rpc_thread_svc_cleanup): Likewise.
2181 (__rpc_thread_clnt_cleanup): Likewise.
2182 (__rpc_thread_key_cleanup): Likewise.
2183
2184 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2185
2186 [BZ #18822]
2187 * include/sys/uio.h (__readv): Add libc_hidden_proto.
2188 (__writev): Likewise.
2189 * misc/readv.c (__readv): Add libc_hidden_def.
2190 * misc/writev.c (__writev): Likewise.
2191 * sysdeps/posix/readv.c (__readv): Likewise.
2192 * sysdeps/posix/writev.c (__writev): Likewise.
2193 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
2194 (__readv): Likewise.
2195 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
2196 (__writev): Likewise.
2197
2198 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 [BZ #18822]
2201 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
2202 (__regcomp): Add libc_hidden_proto.
2203 (__regexec): Likewise.
2204 (__regfree): Likewise.
2205 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
2206 (__regfree): Likewise.
2207 * posix/regexec.c (__regexec): Likewise.
2208
2209 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2210
2211 [BZ #18822]
2212 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
2213 (__getutent): Likewise.
2214 (__getutid): Likewise.
2215 (__getutline): Likewise.
2216 (__pututline): Likewise.
2217 (__getutent_r): Likewise.
2218 (__getutid_r): Likewise.
2219 (__getutline_r): Likewise.
2220 (__utmpname): Add attribute_hidden.
2221 (__setutent): Likewise.
2222 (__endutent): Likewise.
2223 * login/getutent.c (__getutent): Add libc_hidden_def.
2224 * login/getutent_r.c (__getutent_r): Likewise.
2225 (__pututline): Likewise.
2226 * login/getutid.c (__getutid): Likewise.
2227 * login/getutid_r.c (__getutid_r): Likewise.
2228 * login/getutline.c (__getutline): Likewise.
2229 * login/getutline_r.c (__getutline_r): Likewise.
2230 * login/updwtmp.c (__updwtmp): Likewise.
2231
2232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2233
2234 [BZ #18822]
2235 * include/dirent.h (__opendir): Always add attribute_hidden.
2236 (__fdopendir): Likewise.
2237 (__closedir): Likewise.
2238 (__readdir): Likewise.
2239 (__readdir64): Add libc_hidden_proto.
2240 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
2241 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
2242 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
2243 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
2244 New alias.
2245
2246 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2247
2248 [BZ #18822]
2249 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
2250 * include/netdb.h (__gethostbyaddr_r): Likewise.
2251 (__gethostbyname_r): Likewise.
2252 (__gethostbyname2_r): Likewise.
2253 (__getnetbyaddr_r): Likewise.
2254 (__getnetbyname_r): Likewise.
2255 (__getservbyname_r): Likewise.
2256 (__getservbyport_r): Likewise.
2257 (__getprotobyname_r): Likewise.
2258 (__getprotobynumber_r): Likewise.
2259 (__getnetgrent_r): Likewise.
2260 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
2261 (__getrpcbynumber_r): Likewise.
2262 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
2263
2264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2265
2266 [BZ #18822]
2267 * include/stdio.h (__fcloseall): Add attribute_hidden.
2268 (__getline): Likewise.
2269 (__path_search): Likewise.
2270 (__gen_tempname): Likewise.
2271 (__libc_message): Likewise.
2272 (__flockfile): Likewise.
2273 (__funlockfile): Likewise.
2274 (__fxprintf): Likewise.
2275 (__fxprintf_nocancel): Likewise.
2276
2277 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2278
2279 [BZ #18822]
2280 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
2281 (__sgetsgent_r): Likewise.
2282
2283 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2284
2285 [BZ #18822]
2286 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
2287 (__statfs64): Likewise.
2288 (__fstatfs64): Likewise.
2289 * include/sys/statvfs.h (__statvfs64): Likewise.
2290 (__fstatvfs64): Likewise.
2291 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
2292 (__statfs_filesize_max): Likewise.
2293 (__statfs_symlinks): Likewise.
2294 (__statfs_chown_restricted): Likewise.
2295
2296 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2297
2298 [BZ #18822]
2299 * include/time.h (__tzstring): Add attribute_hidden.
2300 (__tzfile_read): Likewise.
2301 (__tzfile_compute): Likewise.
2302 (__tzfile_default): Likewise.
2303 (__tzset_parse_tz): Likewise.
2304 (__offtime): Likewise.
2305 (__asctime_r): Likewise.
2306 (__tzset): Likewise.
2307 (__tz_convert): Likewise.
2308 (__getdate_r): Likewise.
2309 (__getclktck): Likewise.
2310
2311 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2312
2313 [BZ #18822]
2314 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
2315 (__nscd_unmap): Likewise.
2316 (__nscd_cache_search): Likewise.
2317 (__nscd_get_nl_timestamp): Likewise.
2318 (__nscd_getpwnam_r): Likewise.
2319 (__nscd_getpwuid_r): Likewise.
2320 (__nscd_getgrnam_r): Likewise.
2321 (__nscd_getgrgid_r): Likewise.
2322 (__nscd_gethostbyname_r): Likewise.
2323 (__nscd_gethostbyname2_r): Likewise.
2324 (__nscd_gethostbyaddr_r): Likewise.
2325 (__nscd_getai): Likewise.
2326 (__nscd_getgrouplist): Likewise.
2327 (__nscd_getservbyname_r): Likewise.
2328 (__nscd_getservbyport_r): Likewise.
2329 (__nscd_innetgr): Likewise.
2330 (__nscd_setnetgrent): Likewise.
2331
2332 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2333
2334 [BZ #18822]
2335 * include/gmp.h: Declare internal functions only if _ISOMAC is
2336 undefined.
2337 (__mpn_extract_double): Add attribute_hidden.
2338 (__mpn_extract_long_double): Likewise.
2339 (__mpn_extract_float128): Likewise.
2340 (__mpn_construct_float): Likewise.
2341 (__mpn_construct_double): Likewise.
2342 (__mpn_construct_long_double): Likewise.
2343 (__mpn_construct_float128): Likewise.
2344 (mpn_add_1): Likewise.
2345 (mpn_addmul_1): Likewise.
2346 (mpn_add_n): Likewise.
2347 (mpn_cmp): Likewise.
2348 (mpn_divrem): Likewise.
2349 (mpn_lshift): Likewise.
2350 (mpn_mul): Likewise.
2351 (mpn_mul_1): Likewise.
2352 (mpn_rshift): Likewise.
2353 (mpn_sub_1): Likewise.
2354 (mpn_submul_1): Likewise.
2355 (mpn_sub_n): Likewise.
2356
2357 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2358
2359 [BZ #18822]
2360 * include/wchar.h (__wcsnlen): Add attribute_hidden.
2361 (__wcscat): Likewise.
2362 (__btowc): Likewise.
2363 (__wcrtomb): Likewise.
2364 (__mbsrtowcs): Likewise.
2365 (__wcsrtombs): Likewise.
2366 (__mbsnrtowcs): Likewise.
2367 (__wcsnrtombs): Likewise.
2368 (__wcsncpy): Likewise.
2369 (__wcpncpy): Likewise.
2370 (__wmemcpy): Likewise.
2371 (__wmempcpy): Likewise.
2372 (__wmemmove): Likewise.
2373 (__wcschrnul): Likewise.
2374 (__vfwscanf): Likewise.
2375 (__vswprintf): Likewise.
2376 (__fwprintf): Likewise.
2377 (__vfwprintf): Likewise.
2378
2379 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2380
2381 [BZ #18822]
2382 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
2383 (__getgrgid_r): Likewise.
2384 (__getgrnam_r): Likewise.
2385 * include/pwd.h (__getpwuid_r): Likewise.
2386 (__getpwnam_r): Likewise.
2387 (__fgetpwent_r): Likewise.
2388 * include/shadow.h (__getspnam_r): Likewise.
2389 (__sgetspent_r): Likewise.
2390 (__fgetspent_r): Likewise.
2391
2392 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2393
2394 [BZ #18822]
2395 * include/unistd.h (__access): Add attribute_hidden.
2396 (__lseek64): Likewise.
2397 (__libc_pread64): Likewise.
2398 (__pipe2): Likewise.
2399 (__sleep): Likewise.
2400 (__chdir): Likewise.
2401 (__fchdir): Likewise.
2402 (__getcwd): Likewise.
2403 (__rmdir): Likewise.
2404 (__execvpe): Likewise.
2405 (__execve): Likewise.
2406 (__setsid): Likewise.
2407 (__getuid): Likewise.
2408 (__geteuid): Likewise.
2409 (__getgid): Likewise.
2410 (__getegid): Likewise.
2411 (__getgroups): Likewise.
2412 (__group_member): Likewise.
2413 (__ttyname_r): Likewise.
2414 (__isatty): Likewise.
2415 (__readlink): Likewise.
2416 (__unlink): Likewise.
2417 (__gethostname): Likewise.
2418 (__profil): Likewise.
2419 (__getdtablesize): Likewise.
2420 (__brk): Likewise.
2421 (__ftruncate): Likewise.
2422 (__ftruncate64): Likewise.
2423
2424 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 [BZ #18822]
2427 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
2428 * argp/argp-fs-xinl.c: Likewise.
2429 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
2430 * argp/argp-parse.c: Include <argp.h>.
2431 * argp/argp-xinl.c: Likewise.
2432 * include/argp-fmtstream.h: New file.
2433 * include/argp.h (__argp_error): Add attribute_hidden.
2434 (__argp_failure): Likewise.
2435 (__argp_input): Likewise.
2436 (__argp_state_help): Likewise.
2437
2438 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2439
2440 [BZ #18822]
2441 * include/wchar.h (____wcstof_l_internal): New prototype.
2442 (____wcstod_l_internal): Likewise.
2443 (____wcstold_l_internal): Likewise.
2444 (____wcstol_l_internal): Likewise.
2445 (____wcstoul_l_internal): Likewise.
2446 (____wcstoll_l_internal): Likewise.
2447 (____wcstoull_l_internal): Likewise.
2448 (____wcstof128_l_internal): Likewise.
2449 * sysdeps/ieee754/float128/wcstof128.c
2450 (____wcstof128_l_internal): Removed.
2451 * sysdeps/ieee754/float128/wcstof128_l.c
2452 (____wcstof128_l_internal): Likewise.
2453 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
2454 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
2455 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
2456 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
2457 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
2458 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
2459 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
2460 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
2461 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
2462 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
2463
2464 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 [BZ #18822]
2467 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
2468 instead of <sys/statvfs.h>.
2469 (__internal_statvfs): Removed.
2470 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
2471 instead of <sys/statvfs.h>.
2472 (__internal_statvfs64): Removed.
2473 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
2474 "internal_statvfs.h" instead of <sys/statvfs.h>.
2475 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
2476 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
2477 instead of <sys/statvfs.h>.
2478 (__internal_statvfs): Removed.
2479 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
2480 instead of <sys/statvfs.h>.
2481 (__internal_statvfs64): Removed.
2482
2483 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2484
2485 [BZ #18822]
2486 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
2487 (__gconv_close): Likewise.
2488 (__gconv): Likewise.
2489 (__gconv_find_transform): Likewise.
2490 (__gconv_lookup_cache): Likewise.
2491 (__gconv_compare_alias_cache): Likewise.
2492 (__gconv_load_cache): Likewise.
2493 (__gconv_get_path): Likewise.
2494 (__gconv_close_transform): Likewise.
2495 (__gconv_release_cache): Likewise.
2496 (__gconv_find_shlib): Likewise.
2497 (__gconv_release_shlib): Likewise.
2498 (__gconv_get_builtin_trans): Likewise.
2499 (__gconv_compare_alias): Likewise.
2500 * include/dlfcn.h (_dlerror_run): Likewise.
2501 * include/stdio.h (__fortify_fail_abort): Likewise.
2502 * include/time.h (__tz_compute): Likewise.
2503 (__strptime_internal): Likewise.
2504 * intl/gettextP.h (_nl_find_domain): Likewise.
2505 (_nl_load_domain): Likewise.
2506 (_nl_find_msg): Likewise.
2507 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
2508 (EXTRACT_PLURAL_EXPRESSION): Likewise.
2509 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
2510 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
2511 (__gai_find_request): Likewise.
2512 (__gai_remove_request): Likewise.
2513 (__gai_notify): Likewise.
2514 (__gai_notify_only): Likewise.
2515 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
2516 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
2517 (_dl_non_dynamic_init): Likewise.
2518 (_dl_aux_init): Likewise.
2519 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
2520 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
2521 Likewise.
2522 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
2523 (__wcsmbs_clone_conv): Likewise.
2524 (__wcsmbs_named_conv): Likewise.
2525
2526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2527
2528 [BZ #18822]
2529 * include/stdlib.h (__random): Add attribute_hidden.
2530 (__random_r): Likewise.
2531 (__srandom_r): Likewise.
2532 (__initstate_r): Likewise.
2533 (__setstate_r): Likewise.
2534 (__erand48_r): Likewise.
2535 (__nrand48_r): Likewise.
2536 (__jrand48_r): Likewise.
2537 (__srand48_r): Likewise.
2538 (__seed48_r): Likewise.
2539 (__lcong48_r): Likewise.
2540 (__drand48_iterate): Likewise.
2541 (__setenv): Likewise.
2542 (__unsetenv): Likewise.
2543 (__clearenv): Likewise.
2544 (__ptsname_r): Likewise.
2545 (__posix_openpt): Likewise.
2546 (__add_to_environ): Likewise.
2547 (__realpath): Add libc_hidden_proto.
2548 (__ecvt_r): Likewise.
2549 (__fcvt_r): Likewise.
2550 (__qecvt_r): Likewise.
2551 (__qfcvt_r): Likewise.
2552 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
2553 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
2554
2555 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2556
2557 [BZ #18822]
2558 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
2559 * include/time.h (__mktime_internal): Likewise.
2560 * libio/iolibio.h (__fopen_internal): Likewise.
2561
2562 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
2563
2564 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
2565 pointer in frame.
2566 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
2567 Correct offset used to restore PIC register.
2568
2569 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
2570
2571 [BZ libc/22165]
2572 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
2573 code to load address of __getcontext_ret when generating PIC code.
2574
2575 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
2576
2577 * elf/Makefile (tests-static-internal): Add
2578 tst-tls1-static-non-pie.
2579 (LDFLAGS-tst-tls1-static-non-pie): New.
2580 * elf/tst-tls1-static-non-pie.c: New file.
2581
2582 2017-09-29 Joseph Myers <joseph@codesourcery.com>
2583
2584 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
2585 (asinh): Define using libm_alias_double.
2586 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
2587 (cbrt): Define using libm_alias_double.
2588 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
2589 <libm-alias-double.h>.
2590 (copysign): Define using libm_alias_double.
2591 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
2592 (erf): Define using libm_alias_double.
2593 (erfc): Likewise.
2594 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
2595 (expm1): Define using libm_alias_double.
2596 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
2597 (fabs): Define using libm_alias_double.
2598 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
2599 libm_alias_double.
2600 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
2601 <libm-alias-double.h>.
2602 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
2603 libm_alias_double.
2604 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
2605 <libm-alias-double.h>.
2606 (getpayload): Define using libm_alias_double.
2607 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
2608 <libm-alias-double.h>.
2609 (llrint): Define using libm_alias_double.
2610 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
2611 (lrint): Define using libm_alias_double.
2612 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
2613 <libm-alias-double.h>.
2614 (nextup): Define using libm_alias_double.
2615 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
2616 <libm-alias-double.h>.
2617 (roundeven): Define using libm_alias_double.
2618 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
2619 libm_alias_double.
2620 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
2621 <libm-alias-double.h>.
2622 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
2623 using libm_alias_double.
2624 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
2625 (cos): Define using libm_alias_double.
2626 (sin): Likewise.
2627 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
2628 <libm-alias-double.h>.
2629 (sincos): Define using libm_alias_double.
2630 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
2631 (tanh): Define using libm_alias_double.
2632 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2633 <libm-alias-double.h>.
2634 (totalorder): Define using libm_alias_double.
2635 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2636 <libm-alias-double.h>.
2637 (totalordermag): Define using libm_alias_double.
2638 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
2639 libm_alias_double.
2640 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
2641 libm_alias_double.
2642 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
2643 <libm-alias-double.h>.
2644 (getpayload): Define using libm_alias_double.
2645 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
2646 <libm-alias-double.h>.
2647 (roundeven): Define using libm_alias_double.
2648 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
2649 <libm-alias-double.h>.
2650 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2651 <libm-alias-double.h>.
2652 (totalorder): Define using libm_alias_double.
2653 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2654 <libm-alias-double.h>.
2655 (totalordermag): Define using libm_alias_double.
2656 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
2657 libc compat symbol here.
2658 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
2659 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
2660 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
2661 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
2662 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
2663 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
2664 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
2665 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
2666 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
2667 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
2668
2669 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
2672 _dl_relocate_static_pie instead of _dl_start to compute load
2673 address in static PIE. Return 0 if _DYNAMIC is undefined for
2674 static executable.
2675
2676 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2677
2678 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
2679 _DYNAMIC is undefined for static executable.
2680
2681 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2682
2683 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
2684
2685 2017-09-29 Joseph Myers <joseph@codesourcery.com>
2686
2687 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2688
2689 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
2690
2691 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2692 (__ieee754_lgamma_r): Use fabs rather than __fabs.
2693 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
2694 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2695 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2696 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
2697 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2698 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2699 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
2700 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2701 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2702 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2703 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2704 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2705 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2706 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2707 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
2708
2709 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
2710
2711 * math/bits/cmathcalls.h (cimag): Remove inline.
2712 (creal): Remove inline.
2713 (conj): Remove inline.
2714
2715 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2716
2717 * math/Makefile (type-float-routines): Add e_powf_log2_data.
2718 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
2719 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
2720 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
2721 (issignalingf_inline): Likewise.
2722 (POWF_LOG2_TABLE_BITS): Likewise.
2723 (POWF_LOG2_POLY_ORDER): Likewise.
2724 (POWF_SCALE_BITS): Likewise.
2725 (POWF_SCALE): Likewise.
2726 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
2727 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
2728 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
2729
2730 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2731
2732 * math/Makefile (type-float-routines): Add e_log2f_data.
2733 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
2734 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
2735 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
2736 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
2737 * sysdeps/i386/fpu/e_log2f_data.c: New file.
2738 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
2739 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
2740
2741 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2742
2743 * math/Makefile (type-float-routines): Add e_logf_data.
2744 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
2745 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
2746 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
2747 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
2748 * sysdeps/i386/fpu/e_logf_data.c: New file.
2749 * sysdeps/ia64/fpu/e_logf_data.c: New file.
2750 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
2751
2752 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
2753
2754 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
2755 undefined _DYNAMIC in PIE libc.a.
2756 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2757 Likewse.
2758
2759 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2760
2761 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
2762 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
2763 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
2764 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
2765 (__signbit): Remove.
2766 (__signbitl): Remove.
2767 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
2768 (__signbit): Remove.
2769 (__signbitl): Remove.
2770 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
2771 (__signbit): Remove.
2772 (__signbitl): Remove.
2773 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
2774 (__signbit): Remove.
2775 (__signbitl): Remove.
2776 * sysdeps/tile/bits/mathinline.h: Delete file.
2777 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
2778 (__signbit): Remove.
2779 (__signbitl): Remove.
2780
2781 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2782
2783 * math/math.h: Improve handling of C99 isgreater macros.
2784 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
2785 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
2786 * sysdeps/powerpc/bits/mathinline.h: Likewise.
2787 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
2788 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2789
2790 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
2791
2792 * sysdeps/aarch64/libm-test-ulps: Update.
2793
2794 2017-09-28 Joseph Myers <joseph@codesourcery.com>
2795
2796 [BZ #22225]
2797 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2798 math_opt_barrier on argument when doing arithmetic on it.
2799 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2800 Likewise. Use math_force_eval not math_opt_barrier after
2801 arithmetic.
2802 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
2803 math_opt_barrier on argument when doing arithmetic on it.
2804 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2805 Likewise.
2806
2807 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
2808
2809 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
2810 libc_hidden_def.
2811 (__freeifaddrs): Likewise.
2812
2813 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2814
2815 * include/dirent.h (__dirfd): New declaration.
2816 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
2817 alias.
2818 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
2819 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
2820 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
2821 * include/unistd.h (__revoke): New declaration.
2822 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
2823 alias.
2824 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
2825 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
2826 revoke.
2827 * include/dirent.h (__seekdir): New declaration.
2828 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
2829 redefine as weak alias.
2830 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
2831 of seekdir.
2832 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
2833 and use libc_hidden_def on them.
2834 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
2835 them.
2836 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
2837 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
2838 instead of getifaddrs and freeifaddrs.
2839
2840 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
2841
2842 [BZ #18822]
2843 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
2844 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
2845 (__dso_handle): Remove declaration.
2846 * dlfcn/tstatexit.c (__dso_handle): Removed.
2847 (main): Don't check __dso_handle.
2848 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
2849 (main): Don't check __dso_handle.
2850 * include/dso_handle.h: New file.
2851 * malloc/mtrace.c: Include <dso_handle.h>.
2852 (mtrace): Pass __dso_handle directly.
2853 * nptl/pthread_atfork.c: Include <dso_handle.h>.
2854 (__dso_handle): Remove declaration.
2855 (__pthread_atfork): Pass __dso_handle directly.
2856 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
2857 (__dso_handle): Removed.
2858 * posix/wordexp-test.c: Include <dso_handle.h>.
2859 (__dso_handle): Remove declaration.
2860 (__app_register_atfork): Pass __dso_handle directly.
2861 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
2862 (__dso_handle): Remove declaration.
2863 (at_quick_exit): Pass __dso_handle directly.
2864 * stdlib/atexit.c: Include <dso_handle.h>.
2865 (__dso_handle): Remove declaration.
2866 (atexit): Pass __dso_handle directly.
2867 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
2868 (__dso_handle): Removed.
2869
2870 2017-09-26 Joseph Myers <joseph@codesourcery.com>
2871
2872 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
2873 using VDSO.
2874
2875 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
2876
2877 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
2878 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
2879 values to correct default value for given type.
2880
2881 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
2882
2883 [BZ #22101]
2884 * elf/Makefile (tests): Add tst-debug1.
2885 ($(objpfx)tst-debug1): New.
2886 ($(objpfx)tst-debug1.out): Likewise.
2887 ($(objpfx)tst-debug1mod1.so): Likewise.
2888 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
2889 with p_filesz == 0.
2890 * elf/tst-debug1.c: New file.
2891
2892 2017-09-26 Joseph Myers <joseph@codesourcery.com>
2893
2894 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
2895 Define using __ifunc.
2896
2897 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2898
2899 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
2900 exp2f() values.
2901
2902 2017-09-26 Joseph Myers <joseph@codesourcery.com>
2903
2904 [BZ #22156]
2905 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
2906
2907 2017-09-26 Florian Weimer <fweimer@redhat.com>
2908
2909 * resolv/Makefile (tests-internal): Fix typo in comment.
2910
2911 2017-09-26 Florian Weimer <fweimer@redhat.com>
2912
2913 * resolv/nss_dns/dns-host.c: Fix typo in comment.
2914
2915 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2916
2917 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
2918 Use an union instead of a max_align_t array for __space,
2919 so that __space is the same size on all platforms.
2920 * malloc/scratch_buffer_grow_preserve.c
2921 (__libc_scratch_buffer_grow_preserve): Likewise.
2922
2923 [BZ #22183]
2924 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
2925 version to 2.
2926 * posix/Makefile (routines): Add glob-lstat-compat and
2927 glob64-lstat-compat.
2928 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
2929 * posix/glob-lstat-compat.c: New file.
2930 * posix/glob64-lstat-compat.c: Likewise.
2931 * posix/tst-glob_lstat_compat.c: Likewise.
2932 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
2933 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
2934 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
2935 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
2936 Likewise.
2937 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
2938 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2939 * posix/glob.c (glob_lstat): New function.
2940 (glob): Rename to __glob and add versioned symbol to 2.27.
2941 (glob_in_dir): Use glob_lstat.
2942 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
2943 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2944 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
2945 2.27.
2946 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
2947 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
2948 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
2949 gl_lstat on glob call.
2950 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
2951 and glob64 symbols.
2952 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2953 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2954 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2955 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2956 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2957 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2958 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2959 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2960 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2961 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2962 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2963 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2965 Likewise.
2966 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2968 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2969 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2970 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2971 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2972 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2973 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2974 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2975 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2976 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2977 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2978
2979 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
2980
2981 * configure.ac (AS): Require binutils 2.25 or later.
2982 * configure: Regenerated.
2983
2984 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2985
2986 [BZ #22207]
2987 * stdlib/test-atexit-race-common.c (do_test): Minimize required
2988 VM size.
2989
2990 2017-09-25 DJ Delorie <dj@redhat.com>
2991
2992 [BZ #22161]
2993 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
2994 resetting timeout.
2995
2996 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
2997
2998 * sysdeps/ieee754/dbl-64/sincos32.h
2999 [SINCCOS32_H]: Remove define.
3000 [SINCOS32_H]: Define.
3001
3002 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3003
3004 * math/Versions (expf): New libm symbol at GLIBC_2.27.
3005 (exp2f): Likewise.
3006 * math/w_exp2f.c: New file.
3007 * math/w_expf.c: New file.
3008 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
3009 * math/w_expf_compat.c (__expf_compat): Likewise.
3010 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
3011 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3012 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3013 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3014 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3015 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3016 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3017 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3019 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3020 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3021 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3022 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3023 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3025 Likewise.
3026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3027 Likewise.
3028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3029 Likewise.
3030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3031 Likewise.
3032 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3033 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3034 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3035 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3036 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3037 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3038 Likewise.
3039 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3040 Likewise.
3041 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3042 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3043 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3044
3045 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3046
3047 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
3048 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
3049 (roundtoint, converttoint): Likewise.
3050 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
3051 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
3052 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
3053 * sysdeps/ieee754/flt-32/math_config.h: New file.
3054 * sysdeps/ieee754/flt-32/math_errf.c: New file.
3055 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
3056 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
3057 * sysdeps/i386/fpu/math_errf.c: New file.
3058 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
3059 * sysdeps/ia64/fpu/math_errf.c: New file.
3060 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
3061 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
3062
3063 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3064
3065 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
3066 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
3067 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
3068 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
3069 to make sure that these symbols are defined.
3070 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
3071 of <limits.h>
3072 (__need_NULL): Do not define.
3073 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
3074 alignment.
3075 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
3076 CMGROUP_MAX, cmsgcred): Do not define.
3077 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
3078 NULL.
3079 * bits/socket.h: Likewise.
3080 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
3081 __gettimeofday instead of gettimeofday.
3082 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
3083 instead of settimeofday.
3084
3085 2017-09-22 Joseph Myers <joseph@codesourcery.com>
3086
3087 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
3088 (asinhf): Define using libm_alias_float.
3089 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
3090 (atanf): Define using libm_alias_float.
3091 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
3092 (cbrtf): Define using libm_alias_float.
3093 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
3094 (ceilf): Define using libm_alias_float.
3095 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
3096 <libm-alias-float.h>.
3097 (copysignf): Define using libm_alias_float.
3098 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
3099 (cosf): Define using libm_alias_float.
3100 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
3101 (erff): Define using libm_alias_float.
3102 (erfcf): Likewise.
3103 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
3104 (expm1f): Define using libm_alias_float.
3105 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
3106 (fabsf): Define using libm_alias_float.
3107 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
3108 (floorf): Define using libm_alias_float.
3109 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
3110 (frexpf): Define using libm_alias_float.
3111 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
3112 libm_alias_float.
3113 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
3114 <libm-alias-float.h>.
3115 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
3116 libm_alias_float.
3117 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
3118 <libm-alias-float.h>.
3119 (getpayloadf): Define using libm_alias_float.
3120 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
3121 <libm-alias-float.h>.
3122 (llrintf): Define using libm_alias_float.
3123 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
3124 <libm-alias-float.h>.
3125 (llroundf): Define using libm_alias_float.
3126 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
3127 (logbf): Define using libm_alias_float.
3128 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
3129 (lrintf): Define using libm_alias_float.
3130 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
3131 (lroundf): Define using libm_alias_float.
3132 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
3133 (modff): Define using libm_alias_float.
3134 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
3135 <libm-alias-float.h>.
3136 (nearbyintf): Define using libm_alias_float.
3137 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
3138 <libm-alias-float.h>.
3139 (nextafterf): Define using libm_alias_float.
3140 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
3141 <libm-alias-float.h>.
3142 (nextupf): Define using libm_alias_float.
3143 * sysdeps/ieee754/flt-32/s_remquof.c: Include
3144 <libm-alias-float.h>.
3145 (remquof): Define using libm_alias_float.
3146 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
3147 (rintf): Define using libm_alias_float.
3148 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
3149 <libm-alias-float.h>.
3150 (roundevenf): Define using libm_alias_float.
3151 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
3152 (roundf): Define using libm_alias_float.
3153 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
3154 using libm_alias_float.
3155 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
3156 <libm-alias-float.h>.
3157 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
3158 Define using libm_alias_float.
3159 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
3160 <libm-alias-float.h>.
3161 (sincosf): Define using libm_alias_float.
3162 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
3163 (sinf): Define using libm_alias_float.
3164 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
3165 (tanf): Define using libm_alias_float.
3166 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
3167 (tanhf): Define using libm_alias_float.
3168 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
3169 <libm-alias-float.h>.
3170 (totalorderf): Define using libm_alias_float.
3171 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
3172 <libm-alias-float.h>.
3173 (totalordermagf): Define using libm_alias_float.
3174 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
3175 (truncf): Define using libm_alias_float.
3176 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
3177 libm_alias_float.
3178 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
3179 libm_alias_float.
3180
3181 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3182
3183 [BZ #22146]
3184 math/math.h: Let fpclassify use the builtin in C++ mode, even
3185 when optimazing for size.
3186
3187 2017-09-22 Joseph Myers <joseph@codesourcery.com>
3188
3189 * csu/Makefile (generated): Do not add version-info.h.
3190 (before-compile): Likewise.
3191 (all-Banner-files): Remove variable.
3192 ($(objpfx)version-info.h): Remove rule.
3193 * csu/version.c (banner): Do not include "version-info.h".
3194 * libidn/Banner: Remove.
3195 * manual/contrib.texi (Simon Josefsson): New entry.
3196
3197 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3198
3199 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3200 Remove conditionals on LDBL_MANT_DIG.
3201 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3202 (__ieee754_lgammal_r): Likewise.
3203
3204 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3205
3206 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
3207 _Float128 and L().
3208 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
3209 _Float128 and L(). Replace _Float128 with long double and L(x)
3210 with xL, throughout the file.
3211 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3212 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
3213 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
3214 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
3215
3216 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3217
3218 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
3219 sysdeps/ieee754/ldbl-128ibm.
3220 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
3221 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
3222 of including it. Keep _Float128 and L() intact. These will be
3223 reviewed by a separate patch.
3224 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3225 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
3226 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
3227 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
3228
3229 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3230
3231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
3232 (__finitef128): Define to __redirect___finitef128.
3233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
3234 (__isinff128): Define to __redirect___isinff128.
3235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
3236 (__isnanf128): Define to __redirect___isnanf128.
3237
3238 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3239
3240 * sysdeps/powerpc/powerpc64le/Makefile
3241 (CFLAGS-tst-strtod-nan-locale.c): New variable.
3242 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
3243
3244 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3245 Carlos O'Donell <carlos@redhat.com>
3246
3247 [BZ #22180]
3248 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
3249 * stdlib/test-dlclose-exit-race.c: New file.
3250 * stdlib/test-dlclose-exit-race-helper.c: New file.
3251 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
3252
3253 2017-09-21 Joseph Myers <joseph@codesourcery.com>
3254
3255 * crypt/Banner: Remove file.
3256 * nptl/Banner: Likewise.
3257 * resolv/Banner: Likewise.
3258 * soft-fp/Banner: Likewise.
3259 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
3260 ($(objpfx)version.d): Remove dependency on banner.h.
3261 ($(objpfx)version.os): Likewise.
3262 * nptl/version.c (banner): Do not include banner.h.
3263 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
3264 Jelinek and BIND code.
3265
3266 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
3267 Carlos O'Donell <carlos@redhat.com>
3268
3269 * support/xdlfcn.h: New file.
3270 * support/xdlfcn.c: New file.
3271 * support/Makefile (libsupport-routines): Add xdlfcn.
3272 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
3273
3274 2017-09-20 Joseph Myers <joseph@codesourcery.com>
3275
3276 [BZ #20142]
3277 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3278 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
3279 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
3280 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
3281 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3282 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
3283 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
3284 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3285
3286 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
3287 Ricky Zhou <rickyz@google.com>
3288 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
3289
3290 [BZ #14333]
3291 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
3292 Remove atomics.
3293 (__new_exitfn): Fail registration when we finished at_exit processing.
3294 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
3295 * stdlib/on_exit.c (__on_exit): Likewise.
3296 * stdlib/exit.c (__exit_funcs_done): New variable.
3297 (__run_exit_handlers): Use __exit_funcs_lock.
3298 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
3299 declarations.
3300 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
3301 (test-cxa_atexit-race, test-on_exit-race): New tests.
3302 * stdlib/test-atexit-race-common.c: New file.
3303 * stdlib/test-atexit-race.c: New file.
3304 * stdlib/test-at_quick_exit-race.c: New file.
3305 * stdlib/test-cxa_atexit-race.c: New file.
3306 * stdlib/test-on_exit-race.c: New file.
3307
3308 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
3309
3310 * benchtests/Makefile: Add exp2f and log2f benchmarks.
3311 * benchtests/exp2f-inputs: Copy of expf-inputs.
3312 * benchtests/log2f-inputs: Copy of logf-inputs.
3313
3314 2017-09-19 Joseph Myers <joseph@codesourcery.com>
3315
3316 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
3317 Explicitly take address of first element of array arguments in
3318 call to INLINE_SYSCALL.
3319
3320 2017-09-19 Andreas Schwab <schwab@suse.de>
3321
3322 [BZ #22134]
3323 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
3324 execveat first.
3325 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
3326 unimplemented.
3327 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
3328 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
3329 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3330 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
3331 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3332 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3333 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3334 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3335 * posix/Makefile (tests): Add tst-fexecve.
3336 * posix/tst-fexecve.c: New file.
3337
3338 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3339
3340 * benchtests/Makefile: Add logf benchmark.
3341 * benchtests/logf-inputs: Add reduced trace from wrf_r.
3342
3343 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3344
3345 * benchtests/Makefile: Add expf benchmark.
3346 * benchtests/expf-inputs: Add reduced trace from wrf_r.
3347
3348 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3349
3350 * csu/Makefile: Add -funwind-tables to libc-start.c.
3351 * debug/Makefile: Add -funwind-tables to backtrace.c.
3352 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
3353 * sysdeps/arm/Makefile: Likewise.
3354 * sysdeps/i386/Makefile: Likewise.
3355 * sysdeps/m68k/Makefile: Likewise.
3356 * sysdeps/mips/Makefile: Likewise.
3357 * sysdeps/nios2/Makefile: Likewise.
3358 * sysdeps/sh/Makefile: Likewise.
3359 * sysdeps/sparc/Makefile: Likewise.
3360
3361 2017-09-19 Joseph Myers <joseph@codesourcery.com>
3362
3363 * benchtests/Makefile (bench-math): Add trunc and truncf.
3364 (CFLAGS-bench-trunc.c): New variable.
3365 (CFLAGS-bench-truncf.c): Likewise.
3366 * benchtests/trunc-inputs: New file.
3367 * benchtests/truncf-inputs: Likewise.
3368
3369 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
3370
3371 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
3372
3373 2017-09-18 Joseph Myers <joseph@codesourcery.com>
3374
3375 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
3376 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
3377 redefine.
3378 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3379 (exp10l): Define as weak alias.
3380 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
3381 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
3382 and redefine.
3383 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
3384 (remainderl): Define as weak alias.
3385
3386 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
3387 (fmal): Define using libm_alias_ldouble.
3388 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
3389 (acoshl): Define using libm_alias_ldouble.
3390 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
3391 (acosl): Define using libm_alias_ldouble.
3392 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
3393 (asinl): Define using libm_alias_ldouble.
3394 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
3395 (atan2l): Define using libm_alias_ldouble.
3396 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
3397 (atanhl): Define using libm_alias_ldouble.
3398 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
3399 (coshl): Define using libm_alias_ldouble.
3400 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
3401 (exp10l): Define using libm_alias_ldouble.
3402 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
3403 (exp2l): Define using libm_alias_ldouble.
3404 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
3405 (expl): Define using libm_alias_ldouble.
3406 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
3407 (fmodl): Define using libm_alias_ldouble.
3408 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
3409 (hypotl): Define using libm_alias_ldouble.
3410 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
3411 (j0l): Define using libm_alias_ldouble.
3412 (y0l): Likewise.
3413 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
3414 (j1l): Define using libm_alias_ldouble.
3415 (y1l): Likewise.
3416 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
3417 (jnl): Define using libm_alias_ldouble.
3418 (ynl): Likewise.
3419 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
3420 (log10l): Define using libm_alias_ldouble.
3421 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
3422 (log2l): Define using libm_alias_ldouble.
3423 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
3424 (logl): Define using libm_alias_ldouble.
3425 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
3426 (powl): Define using libm_alias_ldouble.
3427 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
3428 (remainderl): Define using libm_alias_ldouble.
3429 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
3430 (sinhl): Define using libm_alias_ldouble.
3431 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
3432 (sqrtl): Define using libm_alias_ldouble.
3433 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
3434 (tgammal): Define using libm_alias_ldouble.
3435 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
3436 (exp10l): Do not use long_double_symbol here.
3437 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3438 [LIBM_SVID_COMPAT] (remainderl): Likewise.
3439 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
3440 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
3441 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
3442 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
3443 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
3444 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
3445 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
3446 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3447 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
3448 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
3449 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
3450 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
3451 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
3452 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
3453 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
3454 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
3455 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
3456 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
3457 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
3458 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
3459
3460 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
3461
3462 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
3463 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
3464
3465 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3466
3467 * io/read.c (read): Add libc_hidden_weak.
3468 * sysdeps/mach/hurd/read.c (read): Likewise.
3469 * io/write.c (write): Likewise.
3470 * sysdeps/mach/hurd/write.c (write): Likewise.
3471 * io/pread64.c (__pread64): Likewise.
3472 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
3473 * posix/pread64.c (__pread64): Add libc_hidden_def.
3474
3475 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3476
3477 * benchtests/scripts/compare_strings.py: New option -g.
3478 (draw_graph): Print a message that a graph is being generated.
3479 (process_results): Generate graph only if -g is passed.
3480 (main): Process option -g.
3481
3482 * benchtests/scripts/compare_strings.py (process_results):
3483 Better spacing for output.
3484
3485 * benchtests/scripts/compare_strings.py: Use argparse.
3486 * benchtests/README: Document existence of compare_strings.py.
3487
3488 2017-09-15 Joseph Myers <joseph@codesourcery.com>
3489
3490 * math/s_fma.c: Include <libm-alias-double.h>.
3491 (fma): Define using libm_alias_double.
3492 * math/s_nextafter.c: Include <libm-alias-double.h>.
3493 (nextafter): Define using libm_alias_double.
3494 * math/w_acos_compat.c: Include <libm-alias-double.h>.
3495 (acos): Define using libm_alias_double.
3496 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
3497 (aocsh): Define using libm_alias_double.
3498 * math/w_asin_compat.c: Include <libm-alias-double.h>.
3499 (asin): Define using libm_alias_double.
3500 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
3501 (atan2): Define using libm_alias_double.
3502 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
3503 (atanh): Define using libm_alias_double.
3504 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
3505 (cosh): Define using libm_alias_double.
3506 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
3507 (exp10): Define using libm_alias_double.
3508 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
3509 (exp2): Define using libm_alias_double.
3510 * math/w_exp_compat.c: Include <libm-alias-double.h>.
3511 (exp): Define using libm_alias_double.
3512 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
3513 (fmod): Define using libm_alias_double.
3514 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
3515 (hypot): Define using libm_alias_double.
3516 * math/w_j0_compat.c: Include <libm-alias-double.h>.
3517 (j0): Define using libm_alias_double.
3518 (y0): Likewise.
3519 * math/w_j1_compat.c: Include <libm-alias-double.h>.
3520 (j1): Define using libm_alias_double.
3521 (y1): Likewise.
3522 * math/w_jn_compat.c: Include <libm-alias-double.h>.
3523 (jn): Define using libm_alias_double.
3524 (yn): Likewise.
3525 * math/w_log10_compat.c: Include <libm-alias-double.h>.
3526 (log10): Define using libm_alias_double.
3527 * math/w_log2_compat.c: Include <libm-alias-double.h>.
3528 (log2): Define using libm_alias_double.
3529 * math/w_log_compat.c: Include <libm-alias-double.h>.
3530 (log): Define using libm_alias_double.
3531 * math/w_pow_compat.c: Include <libm-alias-double.h>.
3532 (pow): Define using libm_alias_double.
3533 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
3534 (remainder): Define using libm_alias_double.
3535 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
3536 (sinh): Define using libm_alias_double.
3537 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
3538 (sqrt): Define using libm_alias_double.
3539 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
3540 (tgamma): Define using libm_alias_double.
3541 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
3542 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
3543 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
3544 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
3545 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
3546 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
3547 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
3548 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
3549 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
3550 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
3551 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
3552 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
3553 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3554 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
3555 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
3556 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
3557 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
3558 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
3559 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
3560 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
3561 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
3562 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
3563 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
3564 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
3565 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
3566
3567 * math/e_acoshl.c: Remove.
3568 * math/e_acosl.c: Likewise.
3569 * math/e_asinl.c: Likewise.
3570 * math/e_atan2l.c: Likewise.
3571 * math/e_atanhl.c: Likewise.
3572 * math/e_coshl.c: Likewise.
3573 * math/e_expl.c: Likewise.
3574 * math/e_fmodl.c: Likewise.
3575 * math/e_gammal_r.c: Likewise.
3576 * math/e_hypotl.c: Likewise.
3577 * math/e_j0l.c: Likewise.
3578 * math/e_j1l.c: Likewise.
3579 * math/e_jnl.c: Likewise.
3580 * math/e_lgammal_r.c: Likewise.
3581 * math/e_log10l.c: Likewise.
3582 * math/e_log2l.c: Likewise.
3583 * math/e_logl.c: Likewise.
3584 * math/e_powl.c: Likewise.
3585 * math/e_rem_pio2l.c: Likewise.
3586 * math/e_sinhl.c: Likewise.
3587 * math/e_sqrtf128.c: Likewise.
3588 * math/e_sqrtl.c: Likewise.
3589 * math/k_cosl.c: Likewise.
3590 * math/k_sinl.c: Likewise.
3591 * math/k_tanl.c: Likewise.
3592 * math/s_asinhl.c: Likewise.
3593 * math/s_atanl.c: Likewise.
3594 * math/s_cbrtl.c: Likewise.
3595 * math/s_erfl.c: Likewise.
3596 * math/s_expm1l.c: Likewise.
3597 * math/s_log1pl.c: Likewise.
3598 * math/s_tanhl.c: Likewise.
3599
3600 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3601
3602 [BZ #21745]
3603 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
3604 [$(subdir) = math] (sysdep_calls): New variable. Has the
3605 previous contents of sysdep_routines, but re-sorted..
3606 [$(subdir) = math] (sysdep_routines): Re-use the contents from
3607 sysdep_calls.
3608 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
3609 defined in sysdep_calls and replace by the respective m_* names.
3610 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
3611 (compat_symbol): Undefine to avoid duplicated compat symbols in
3612 libc.
3613
3614 2017-09-15 Joseph Myers <joseph@codesourcery.com>
3615
3616 * math/s_fmaf.c: Include <libm-alias-float.h>.
3617 (fmaf): Define using libm_alias_float.
3618 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
3619 (acosf): Define using libm_alias_float.
3620 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
3621 (acoshf): Define using libm_alias_float.
3622 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
3623 (asinf): Define using libm_alias_float.
3624 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
3625 (atan2f): Define using libm_alias_float.
3626 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
3627 (atanhf): Define using libm_alias_float.
3628 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
3629 (coshf): Define using libm_alias_float.
3630 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
3631 (exp10f): Define using libm_alias_float.
3632 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
3633 (fmodf): Define using libm_alias_float.
3634 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
3635 (hypotf): Define using libm_alias_float.
3636 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
3637 (j0f): Define using libm_alias_float.
3638 (y0f): Likewise.
3639 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
3640 (j1f): Define using libm_alias_float.
3641 (y1f): Likewise.
3642 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
3643 (jnf): Define using libm_alias_float.
3644 (ynf): Likewise.
3645 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
3646 (log10f): Define using libm_alias_float.
3647 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
3648 (log2f): Define using libm_alias_float.
3649 * math/w_logf_compat.c: Include <libm-alias-float.h>.
3650 (logf): Define using libm_alias_float.
3651 * math/w_powf_compat.c: Include <libm-alias-float.h>.
3652 (powf): Define using libm_alias_float.
3653 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
3654 (remainderf): Define using libm_alias_float.
3655 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
3656 (sinhf): Define using libm_alias_float.
3657 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
3658 (sqrtf): Define using libm_alias_float.
3659 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
3660 (tgammaf): Define using libm_alias_float.
3661
3662 2017-09-14 Joseph Myers <joseph@codesourcery.com>
3663
3664 * include/math.h (roundeven): Change hidden_proto call to
3665 __roundeven.
3666 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
3667 alias.
3668 [NO_LONG_DOUBLE] (__j0l): New strong alias.
3669 (y0): Rename to __y0 and define as weak alias.
3670 [NO_LONG_DOUBLE] (__y0l): New strong alias.
3671 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
3672 alias.
3673 (y0f): Rename to __y0f and define as weak alias.
3674 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
3675 alias.
3676 [NO_LONG_DOUBLE] (__j1l): New strong alias.
3677 (y1): Rename to __y1 and define as weak alias.
3678 [NO_LONG_DOUBLE] (__y1l): New strong alias.
3679 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
3680 alias.
3681 (y1f): Rename to __y1f and define as weak alias.
3682 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
3683 alias.
3684 [NO_LONG_DOUBLE] (__jnl): New strong alias.
3685 (yn): Rename to __yn and define as weak alias.
3686 [NO_LONG_DOUBLE] (__ynl): New strong alias.
3687 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
3688 alias.
3689 (ynf): Rename to __ynf and define as weak alias.
3690 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
3691 (fromfp): Define as weak alias.
3692 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
3693 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
3694 (fromfpx): Define as weak alias.
3695 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
3696 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
3697 __getpayload and define as weak alias.
3698 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3699 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
3700 __roundeven and define as weak alias.
3701 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3702 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
3703 __setpayload.
3704 (setpayload): Define as weak alias.
3705 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
3706 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
3707 __setpayloadsig.
3708 (setpayloadsig): Define as weak alias.
3709 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
3710 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
3711 __totalorder and define as weak alias.
3712 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3713 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
3714 to __totalordermag and define as weak alias.
3715 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3716 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
3717 (ufromfp): Define as weak alias.
3718 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
3719 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
3720 __ufromfpx.
3721 (ufromfpx): Define as weak alias.
3722 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
3723 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
3724 Rename to __getpayload and define as weak alias.
3725 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3726 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
3727 Rename to __roundeven and define as weak alias.
3728 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3729 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
3730 Rename to __totalorder and define as weak alias.
3731 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3732 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
3733 (totalordermag): Rename to __totalordermag and define as weak
3734 alias.
3735 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3736 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
3737 macro.
3738 (__roundevenl): Likewise.
3739 (__totalorderl): Likewise.
3740 (__totalordermagl): Likewise
3741 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
3742 __fromfpf128.
3743 (fromfpf128): Define as weak alias.
3744 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
3745 __fromfpxf128.
3746 (fromfpxf128): Define as weak alias.
3747 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
3748 __setpayloadf128.
3749 (setpayloadf128): Define as weak alias.
3750 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
3751 __setpayloadsigf128.
3752 (setpayloadsigf128): Define as weak alias.
3753 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
3754 __ufromfpf128.
3755 (ufromfpf128): Define as weak alias.
3756 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
3757 __ufromfpxf128.
3758 (ufromfpxf128): Define as weak alias.
3759 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
3760 (fromfpf): Define as weak alias.
3761 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
3762 __fromfpxf.
3763 (fromfpxf): Define as weak alias.
3764 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
3765 __getpayloadf and define as weak alias.
3766 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
3767 __roundevenf and define as weak alias.
3768 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
3769 __setpayloadf.
3770 (setpayloadf): Define as weak alias.
3771 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
3772 __setpayloadsigf.
3773 (setpayloadsigf): Define as weak alias.
3774 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
3775 __totalorderf and define as weak alias.
3776 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
3777 Rename to __totalordermagf and define as weak alias.
3778 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
3779 __ufromfpf.
3780 (ufromfpf): Define as weak alias.
3781 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
3782 __ufromfpxf.
3783 (ufromfpxf): Define as weak alias.
3784 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
3785 __fromfpl.
3786 (fromfpl): Define as weak alias.
3787 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
3788 __fromfpxl.
3789 (fromfpxl): Define as weak alias.
3790 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
3791 to __getpayloadl and define as weak alias.
3792 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
3793 __roundevenl and define as weak alias.
3794 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
3795 __setpayloadl.
3796 (setpayloadl): Define as weak alias.
3797 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
3798 __setpayloadsigl.
3799 (setpayloadsigl): Define as weak alias.
3800 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
3801 to __totalorderl and define as weak alias.
3802 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
3803 Rename to __totalordermagl and define as weak alias.
3804 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
3805 __ufromfpl.
3806 (ufromfpl): Define as weak alias.
3807 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
3808 __ufromfpxl.
3809 (ufromfpxl): Define as weak alias.
3810 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
3811 __fromfpl.
3812 (fromfpl): Define as weak alias.
3813 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
3814 __fromfpxl.
3815 (fromfpxl): Define as weak alias.
3816 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
3817 Rename to __getpayloadl and define as weak alias.
3818 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
3819 to __roundevenl and define as weak alias. Call __roundeven
3820 instead of roundeven.
3821 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
3822 __setpayloadl.
3823 (setpayloadl): Define as weak alias.
3824 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
3825 __setpayloadsigl.
3826 (setpayloadsigl): Define as weak alias.
3827 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
3828 Rename to __totalorderl and define as weak alias.
3829 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
3830 Rename to __totalordermagl and define as weak alias.
3831 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
3832 __ufromfpl.
3833 (ufromfpl): Define as weak alias.
3834 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
3835 __ufromfpxl.
3836 (ufromfpxl): Define as weak alias.
3837 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
3838 __fromfpl.
3839 (fromfpl): Define as weak alias.
3840 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
3841 __fromfpxl.
3842 (fromfpxl): Define as weak alias.
3843 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
3844 __getpayloadl and define as weak alias.
3845 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
3846 __roundevenl and define as weak alias.
3847 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
3848 __setpayloadl.
3849 (setpayloadl): Define as weak alias.
3850 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
3851 __setpayloadsigl.
3852 (setpayloadsigl): Define as weak alias.
3853 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
3854 __totalorderl and define as weak alias.
3855 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
3856 Rename to __totalordermagl and define as weak alias.
3857 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
3858 __ufromfpl.
3859 (ufromfpl): Define as weak alias.
3860 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
3861 __ufromfpxl.
3862 (ufromfpxl): Define as weak alias.
3863
3864 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3865
3866 * benchtests/bench-string.h (realloc_bufs): New function.
3867 (test_init): Call it.
3868 * benchtests/bench-memset-large.c (do_test): Likewise.
3869 * benchtests/bench-memset.c (do_test): Likewise.
3870
3871 * benchtests/bench-memset-large.c: Print output in JSON
3872 format.
3873 * benchtests/bench-memset.c: Likewise.
3874
3875 2017-09-14 Mike FABIAN <mfabian@redhat.com>
3876
3877 [BZ #21084]
3878 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
3879 * iconvdata/Makefile: Add IBM858.
3880 * iconvdata/gconv-modules: Likewise.
3881 * iconvdata/tst-tables.sh: Likewise.
3882 * iconvdata/ibm858.c: New file.
3883 * localedata/charmaps/IBM858: Likewise.
3884
3885 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
3886
3887 [BZ #22023]
3888 * locales/niu_NZ (LC_TIME): copy "niu_NU".
3889 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
3890
3891 2017-09-14 Mike FABIAN <mfabian@redhat.com>
3892
3893 [BZ #22112]
3894 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
3895 and add tel_int_fmt.
3896
3897 2017-09-14 Joseph Myers <joseph@codesourcery.com>
3898
3899 * sysdeps/generic/libm-alias-float128.h: New file.
3900 * sysdeps/generic/math-type-macros-float128.h: Include
3901 <libm-alias-float128.h>.
3902 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3903
3904 2017-09-13 Joseph Myers <joseph@codesourcery.com>
3905
3906 * sysdeps/generic/libm-alias-ldouble.h: New file.
3907 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
3908 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
3909 * sysdeps/generic/math-type-macros-ldouble.h: Include
3910 <libm-alias-ldouble.h>.
3911 [!declare_mgen_alias] (declare_mgen_alias): Define to use
3912 libm_alias_ldouble.
3913
3914 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3915
3916 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
3917 * math/w_exp_compat.c: ... here.
3918 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
3919 * math/w_expf_compat.c: ... here.
3920 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
3921 * math/w_expl_compat.c: ... here.
3922 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
3923 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
3924 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
3925 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3926
3927 2017-09-13 Joseph Myers <joseph@codesourcery.com>
3928
3929 * math/w_scalbln_template.c (strong_alias): Do not undefine and
3930 redefine.
3931 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
3932 macro.
3933 (ldexpl): Only define as compat symbol for libc, not libm.
3934 (scalbnl): Define as compat symbol for libc here.
3935 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
3936 define for [IS_IN (libc)].
3937 (__ldexpl_2): Remove alias.
3938 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
3939 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
3940 name in long_double_symbol call.
3941 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
3942 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
3943 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
3944 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
3945 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
3946 Remove macro.
3947 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
3948 Define as compat symbol.
3949
3950 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3951
3952 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
3953 * sysdeps/unix/sysv/linux/alpha/Makefile
3954 [$(subdir) = csu] (sysdep_routines): Remove rule.
3955
3956 2017-09-13 Joseph Myers <joseph@codesourcery.com>
3957
3958 * sysdeps/generic/libm-alias-double.h: New file.
3959 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
3960 * sysdeps/generic/math-type-macros-double.h: Include
3961 <libm-alias-double.h>.
3962 [declare_mgen_alias] (declare_mgen_alias): Define to use
3963 libm_alias_double.
3964 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
3965 (M_LIBM_NEED_COMPAT): Remove macro.
3966 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
3967 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
3968 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
3969 code.
3970 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3971 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3972 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3973 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3974 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3975 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3976 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3977 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3978 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3979 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3980 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3981 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3982 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3983 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3984 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3985 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3986 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3987 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3988 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3989 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3990 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3991 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3992 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3993 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3994 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3995 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3996 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3997 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
3998 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
3999 macro.
4000 (declare_mgen_alias): New macro.
4001 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
4002 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
4003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
4004 (M_LIBM_NEED_COMPAT): Remove macro.
4005 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
4006 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
4007 <first-versions.h>.
4008 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
4009 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
4010
4011 2017-09-12 Joseph Myers <joseph@codesourcery.com>
4012
4013 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
4014 (declare_mgen_alias_2): Remove.
4015 * sysdeps/generic/math-type-macros-double.h
4016 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
4017 Likewise.
4018 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
4019 alias.
4020 (ldexp): Define with declare_mgen_alias.
4021 (scalbn): Likewise.
4022
4023 2017-09-12 Steve Ellcey <sellcey@cavium.com>
4024
4025 * grp/initgroups.c: Include config.h.
4026 (DEFAULT_CONFIG): New macro.
4027 (internal_getgrouplist): Use DEFAULT_CONFIG.
4028 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4029 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
4030 (DEFAULT_DEFCONFIG): New macro.
4031 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
4032 * nss/grp-lookup.c: Include config.h
4033 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
4034 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
4035 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
4036 * manual/nss.texi: Update default values section.
4037
4038 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
4039
4040 [BZ #21967]
4041 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
4042 New.
4043 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
4044 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4045 Handle MathVec_Prefer_No_AVX512.
4046 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
4047 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
4048 is set.
4049
4050 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
4051
4052 * posix/sched_primax.c (__sched_get_priority_max): Add
4053 libc_hidden_def.
4054 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
4055 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4056 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
4057 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
4058 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
4059 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
4060 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
4061 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
4062 Add aliases.
4063
4064 2017-09-11 Joseph Myers <joseph@codesourcery.com>
4065
4066 * sysdeps/generic/libm-alias-float.h: New file.
4067 * sysdeps/generic/math-type-macros-float.h: Include
4068 <libm-alias-float.h>.
4069 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4070
4071 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
4072
4073 [BZ #22093]
4074 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
4075 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
4076 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
4077 (HWCAP_IMPORTANT): Likewise.
4078 (HWCAP_X86_64): New enum.
4079 (HWCAP_X86_AVX512_1): Updated.
4080 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
4081 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
4082 (modules-names): Add x86_64/tst-x86_64mod-1.
4083 (LDFLAGS-tst-x86_64mod-1.so): New.
4084 ($(objpfx)tst-x86_64-1): Likewise.
4085 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
4086 (tst-x86_64-1-clean): Likewise.
4087 * sysdeps/x86_64/tst-x86_64-1.c: New file.
4088 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
4089
4090 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4091
4092 * po/sv.po: Update translations.
4093 * po/fr.po: Likewise.
4094
4095 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4096
4097 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
4098 seconds.
4099 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
4100 seconds.
4101 * elf/rtld-Rules: Fix $(error) use.
4102
4103 2017-09-09 Mike FABIAN <mfabian@redhat.com>
4104
4105 [BZ #14925]
4106 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
4107 * locale/iso-639.def: Change “Bengali” to “Bangla”.
4108 * localedata/locales/bn_BD: “Bengali” was still used in some
4109 comments. Change it to “Bangla”.
4110
4111 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
4112
4113 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
4114
4115 2017-09-08 Steve Ellcey <sellcey@cavium.com>
4116
4117 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
4118 thunderx2t99p1 to list of cpu names.
4119 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4120 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
4121
4122 2017-09-08 Steve Ellcey <sellcey@cavium.com>
4123
4124 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
4125 Use strcmp instead of tunable_is_name.
4126
4127 2017-09-08 Joseph Myers <joseph@codesourcery.com>
4128
4129 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4130 (F_GET_RW_HINT): New macro.
4131 [__USE_GNU] (F_SET_RW_HINT): Likewise.
4132 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
4133 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
4134 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
4135 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
4136 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
4137 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
4138 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
4139 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
4140
4141 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4142 (F_ADD_SEALS): New macro.
4143 [__USE_GNU] (F_GET_SEALS): Likewise.
4144 [__USE_GNU] (F_SEAL_SEAL): Likewise.
4145 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
4146 [__USE_GNU] (F_SEAL_GROW): Likewise.
4147 [__USE_GNU] (F_SEAL_WRITE): Likewise.
4148
4149 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4150
4151 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
4152 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
4153 * posix/glob_internal.h (__glob_pattern_type):
4154 * posix/glob.c (glob):
4155 * posix/glob_pattern_p.c (__glob_pattern_p):
4156 Use them.
4157
4158 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
4159 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4160 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
4161 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
4162 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
4163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
4164 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
4165 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
4166 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
4167 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4168 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
4169 * sysdeps/wordsize-64/glob.c: Likewise.
4170 * sysdeps/wordsize-64/glob64.c: Likewise.
4171 * sysdeps/wordsize-64/globfree.c: Likewise.
4172 * sysdeps/wordsize-64/globfree64.c: Likewise.
4173 * sysdeps/unix/sysv/linux/glob.c: New file.
4174 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
4175 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
4176 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
4177 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4178 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
4179 adds !GLOB_NO_OLD_VERSION as an extra condition.
4180 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
4181 using relative path instead of absolute one.
4182 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
4183 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4184 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4185 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4186 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
4187 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
4188
4189 [BZ #1062]
4190 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
4191 (glob): Use the same scratch buffer for both getlogin_r and
4192 getpwnam_r. Don’t require preallocation of the login name. This
4193 simplifies storage allocation, and corrects the handling of
4194 long login names.
4195
4196 [BZ #1062]
4197 * posix/glob.c (glob): Port recent patches to platforms
4198 lacking getpwnam_r.
4199 (glob): Fix longstanding misuse of errno after getpwnam_r, which
4200 returns an error number rather than setting errno.
4201
4202 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
4203 instead of GCC extension.
4204 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
4205 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
4206 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
4207
4208 [BZ #866]
4209 [BZ #1062]
4210 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
4211 * posix/bug-glob1.c: Remove file.
4212 * posix/tst-glob_symlinks.c: New file.
4213 * posix/glob.c (__lstat64): New macro.
4214 (is_dir): New function.
4215 (glob, glob_in_dir): Match symlinks even if they are dangling.
4216 (link_stat, link_exists_p): Remove. All uses removed.
4217
4218 [BZ #1062]
4219 [BZ #19971]
4220 * posix/glob.c (struct readdir_result): Remove skip_entry member.
4221 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
4222 All uses removed.
4223
4224 [BZ #1062]
4225 CVE-2017-15671
4226 * posix/Makefile (routines): Add globfree, globfree64, and
4227 glob_pattern_p.
4228 * posix/flexmember.h: New file.
4229 * posix/glob_internal.h: Likewise.
4230 * posix/glob_pattern_p.c: Likewise.
4231 * posix/globfree.c: Likewise.
4232 * posix/globfree64.c: Likewise.
4233 * sysdeps/gnu/globfree64.c: Likewise.
4234 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
4235 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
4236 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
4237 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
4238 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
4239 * sysdeps/wordsize-64/globfree.c: Likewise.
4240 * sysdeps/wordsize-64/globfree64.c: Likewise.
4241 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
4242 [NDEBUG): Remove comments.
4243 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
4244 (dirent_type): New type. Use uint_fast8_t not
4245 uint8_t, as C99 does not require uint8_t.
4246 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
4247 (struct readdir_result): Use dirent_type. Do not define skip_entry
4248 unless it is needed; this saves a byte on platforms lacking d_ino.
4249 (readdir_result_type, readdir_result_skip_entry):
4250 New functions, replacing ...
4251 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
4252 these functions, which were removed. This makes the callers
4253 easier to read. All callers changed.
4254 (D_INO_TO_RESULT): Now empty if there is no d_ino.
4255 (size_add_wrapv, glob_use_alloca): New static functions.
4256 (glob, glob_in_dir): Check for size_t overflow in several places,
4257 and fix some size_t checks that were not quite right.
4258 Remove old code using SHELL since Bash no longer
4259 uses this.
4260 (glob, prefix_array): Separate MS code better.
4261 (glob_in_dir): Remove old Amiga and VMS code.
4262 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
4263 separate files.
4264 (glob_in_dir): Do not rely on undefined behavior in accessing
4265 struct members beyond their bounds. Use a flexible array member
4266 instead
4267 (link_stat): Rename from link_exists2_p and return -1/0 instead of
4268 0/1. Caller changed.
4269 (glob): Fix memory leaks.
4270 * posix/glob64 (globfree64): Move to separate file.
4271 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
4272 (globfree64): Remove hidden alias.
4273 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
4274 oldglob.
4275 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
4276 separate file.
4277 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
4278 define.
4279 Move compat code to separate file.
4280 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
4281 separate file.
4282
4283 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
4284
4285 * resolv/tst-resolv-qtypes.c (domain): Changed to
4286 "const char domain[] =".
4287
4288 2017-09-07 Joseph Myers <joseph@codesourcery.com>
4289
4290 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4291 version to 3.1.6.
4292
4293 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
4294 (TCP_MD5SIG_EXT): Likewise.
4295 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
4296 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
4297 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
4298
4299 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
4300
4301 2017-09-07 Mike FABIAN <mfabian@redhat.com>
4302
4303 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
4304
4305 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
4306
4307 [BZ #22100]
4308 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
4309
4310 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4311
4312 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
4313 before assuming that the file is empty. Avoid testing buffer content
4314 when nread == 0.
4315
4316 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4317
4318 [BZ #18858]
4319 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4320 Remove define.
4321 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
4322 Likewise.
4323 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
4324 Likewise.
4325 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
4326 Likewise.
4327 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4328 Likewise.
4329 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
4330 Likewise.
4331 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
4332 Likewise.
4333
4334 2017-09-06 Florian Weimer <fweimer@redhat.com>
4335
4336 * malloc/dynarray_emplace_enlarge.c
4337 (__libc_dynarray_emplace_enlarge): Add missing else.
4338
4339 2017-09-06 Florian Weimer <fweimer@redhat.com>
4340
4341 [BZ #22096]
4342 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
4343 case of failure to obtain the global conf object.
4344
4345 2017-09-06 Florian Weimer <fweimer@redhat.com>
4346
4347 [BZ #22095]
4348 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
4349 dynarray allocation failure.
4350
4351 2017-09-06 Florian Weimer <fweimer@redhat.com>
4352
4353 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
4354 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
4355 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
4356 New functions.
4357 (response): Call them. Add 'p', '6' flag processing.
4358 (test_reverse): New function.
4359 (test_get2_any): Call it.
4360 (test_no_inet6): Add 'p' test.
4361 (test_inet6): Likewise.
4362
4363 2017-09-06 Florian Weimer <fweimer@redhat.com>
4364
4365 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
4366 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
4367 the QNAME.
4368 (test_gai): Adjust query names. Add additional tests.
4369 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
4370 test_get2. Adjust query names. Add additional tests.
4371 (test_no_inet6): New function, extracted from threadfunc.
4372 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
4373 Add additional tests.
4374
4375 2017-09-06 Mike FABIAN <mfabian@redhat.com>
4376
4377 [BZ #22070]
4378 * localedata/unicode-gen/utf8_gen.py: Set the width for
4379 characters with Prepended_Concatenation_Mark property to 1
4380 * localedata/charmaps/UTF-8: Updated using the improved script.
4381
4382 2017-09-06 Mike FABIAN <mfabian@redhat.com>
4383
4384 [BZ #21750]
4385 * localedata/unicode-gen/utf8_gen.py: Improve the script to
4386 use the range notation for all ranges of neighbouring characters
4387 with the same width.
4388
4389 2017-09-05 Joseph Myers <joseph@codesourcery.com>
4390
4391 * sysdeps/generic/math-type-macros-double.h: Include
4392 <math-svid-compat.h>.
4393 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4394 * sysdeps/generic/math-type-macros-float.h: Include
4395 <math-svid-compat.h>.
4396 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4397 * sysdeps/generic/math-type-macros-ldouble.h: Include
4398 <math-svid-compat.h>.
4399 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4400 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
4401 condition.
4402 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
4403 * math/w_acosf_compat.c: Likewise.
4404 * math/w_acosh_compat.c: Likewise.
4405 * math/w_acoshf_compat.c: Likewise.
4406 * math/w_acoshl_compat.c: Likewise.
4407 * math/w_acosl_compat.c: Likewise.
4408 * math/w_asin_compat.c: Likewise.
4409 * math/w_asinf_compat.c: Likewise.
4410 * math/w_asinl_compat.c: Likewise.
4411 * math/w_atan2_compat.c: Likewise.
4412 * math/w_atan2f_compat.c: Likewise.
4413 * math/w_atan2l_compat.c: Likewise.
4414 * math/w_atanh_compat.c: Likewise.
4415 * math/w_atanhf_compat.c: Likewise.
4416 * math/w_atanhl_compat.c: Likewise.
4417 * math/w_cosh_compat.c: Likewise.
4418 * math/w_coshf_compat.c: Likewise.
4419 * math/w_coshl_compat.c: Likewise.
4420 * math/w_exp10_compat.c: Likewise.
4421 * math/w_exp10f_compat.c: Likewise.
4422 * math/w_exp10l_compat.c: Likewise.
4423 * math/w_exp2_compat.c: Likewise.
4424 * math/w_exp2f_compat.c: Likewise.
4425 * math/w_exp2l_compat.c: Likewise.
4426 * math/w_fmod_compat.c: Likewise.
4427 * math/w_fmodf_compat.c: Likewise.
4428 * math/w_fmodl_compat.c: Likewise.
4429 * math/w_hypot_compat.c: Likewise.
4430 * math/w_hypotf_compat.c: Likewise.
4431 * math/w_hypotl_compat.c: Likewise.
4432 * math/w_j0_compat.c: Likewise.
4433 * math/w_j0f_compat.c: Likewise.
4434 * math/w_j0l_compat.c: Likewise.
4435 * math/w_j1_compat.c: Likewise.
4436 * math/w_j1f_compat.c: Likewise.
4437 * math/w_j1l_compat.c: Likewise.
4438 * math/w_jn_compat.c: Likewise.
4439 * math/w_jnf_compat.c: Likewise.
4440 * math/w_jnl_compat.c: Likewise.
4441 * math/w_lgamma_r_compat.c: Likewise.
4442 * math/w_lgammaf_r_compat.c: Likewise.
4443 * math/w_lgammal_r_compat.c: Likewise.
4444 * math/w_log10_compat.c: Likewise.
4445 * math/w_log10f_compat.c: Likewise.
4446 * math/w_log10l_compat.c: Likewise.
4447 * math/w_log2_compat.c: Likewise.
4448 * math/w_log2f_compat.c: Likewise.
4449 * math/w_log2l_compat.c: Likewise.
4450 * math/w_log_compat.c: Likewise.
4451 * math/w_logf_compat.c: Likewise.
4452 * math/w_logl_compat.c: Likewise.
4453 * math/w_pow_compat.c: Likewise.
4454 * math/w_powf_compat.c: Likewise.
4455 * math/w_powl_compat.c: Likewise.
4456 * math/w_remainder_compat.c: Likewise.
4457 * math/w_remainderf_compat.c: Likewise.
4458 * math/w_remainderl_compat.c: Likewise.
4459 * math/w_sinh_compat.c: Likewise.
4460 * math/w_sinhf_compat.c: Likewise.
4461 * math/w_sinhl_compat.c: Likewise.
4462 * math/w_sqrt_compat.c: Likewise.
4463 * math/w_sqrtf_compat.c: Likewise.
4464 * math/w_sqrtl_compat.c: Likewise.
4465 * math/w_tgamma_compat.c: Likewise.
4466 * math/w_tgammaf_compat.c: Likewise.
4467 * math/w_tgammal_compat.c: Likewise.
4468 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
4469 [LIBM_SVID_COMPAT].
4470 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
4471 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
4472 [LIBM_SVID_COMPAT].
4473 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
4474 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
4475 [LIBM_SVID_COMPAT].
4476 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
4477 * sysdeps/i386/fpu/w_sqrt.c: New file.
4478 * sysdeps/ia64/fpu/w_acos.c: Likewise.
4479 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
4480 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4481 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4482 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4483 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
4484 * sysdeps/ia64/fpu/w_asin.c: Likewise.
4485 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
4486 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
4487 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
4488 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
4489 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
4490 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4491 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4492 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4493 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
4494 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
4495 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
4496 * sysdeps/ia64/fpu/w_exp.c: Likewise.
4497 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4498 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4499 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4500 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4501 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4502 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4503 * sysdeps/ia64/fpu/w_expf.c: Likewise.
4504 * sysdeps/ia64/fpu/w_expl.c: Likewise.
4505 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
4506 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
4507 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
4508 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
4509 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
4510 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
4511 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4512 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4513 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4514 * sysdeps/ia64/fpu/w_log.c: Likewise.
4515 * sysdeps/ia64/fpu/w_log10.c: Likewise.
4516 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
4517 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
4518 * sysdeps/ia64/fpu/w_log2.c: Likewise.
4519 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4520 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4521 * sysdeps/ia64/fpu/w_logf.c: Likewise.
4522 * sysdeps/ia64/fpu/w_logl.c: Likewise.
4523 * sysdeps/ia64/fpu/w_pow.c: Likewise.
4524 * sysdeps/ia64/fpu/w_powf.c: Likewise.
4525 * sysdeps/ia64/fpu/w_powl.c: Likewise.
4526 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
4527 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
4528 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
4529 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4530 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4531 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4532 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
4533 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
4534 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
4535 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
4536 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
4537 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
4538 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
4539 [LIBM_SVID_COMPAT].
4540 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
4541 * sysdeps/ieee754/k_standard.c: Likewise.
4542 * sysdeps/ieee754/k_standardf.c: Likewise.
4543 * sysdeps/ieee754/k_standardl.c: Likewise.
4544 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
4545 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
4546 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
4547 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
4548 long_double_symbol call on [LIBM_SVID_COMPAT].
4549 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4550 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4551 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4552 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4553 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4554 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4555 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4556 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4557 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4558 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4559 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4560 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
4561 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4562 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4563 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4564 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4565 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
4566 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4567 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4568 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4569 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
4570 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
4571
4572 2017-09-05 Steve Ellcey <sellcey@cavium.com>
4573
4574 * include/shlib-compat.h (TEST_COMPAT): New Macro.
4575 * malloc/tst-mallocstate.c: Convert from test-skeleton
4576 to test-driver. Ifdef code using TEST_COMPAT macro.
4577 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
4578 * math/test-matherr.c: Likewise.
4579
4580 2017-09-05 Joseph Myers <joseph@codesourcery.com>
4581
4582 [BZ #22086]
4583 * debug/pcprofiledump.c (main): Use byte-swapped mask when
4584 comparing word with byte-swapped constant.
4585
4586 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
4587
4588 [BZ #20498]
4589 * locale/iso-639.def: add Miskito.
4590 * localedata/SUPPORTED: Add miq_NI/UTF-8.
4591 * localedata/locales/miq_NI: New file.
4592
4593 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 [BZ #18822]
4596 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
4597 (__mkdir): Likewise.
4598 * io/chmod.c (__chmod): Add libc_hidden_def.
4599 * io/mkdir.c (__mkdir): Likewise.
4600 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
4601 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
4602 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
4603 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
4604
4605 2017-09-04 Joseph Myers <joseph@codesourcery.com>
4606
4607 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4608 version to 4.13.
4609
4610 [BZ #22082]
4611 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
4612 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
4613
4614 2017-09-04 Florian Weimer <fweimer@redhat.com>
4615
4616 * math/math.h: Issue warning if log is defined.
4617
4618 2017-09-04 Joseph Myers <joseph@codesourcery.com>
4619
4620 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4621 kernel version to 4.13.
4622
4623 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4624
4625 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
4626 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
4627 parameter.
4628 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
4629 just <bits/types.h>.
4630 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
4631 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
4632 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
4633 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
4634 * misc/preadv2.c: Include <errno.h>.
4635 * misc/preadv64v2.c: Include <errno.h>.
4636 * misc/pwritev2.c: Include <errno.h>.
4637 * misc/pwritev64v2.c: Include <errno.h>.
4638 * sysdeps/posix/preadv2.c: Include <errno.h>.
4639 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
4640 Fix <unistd.h> inclusion.
4641 * sysdeps/posix/pwritev2.c: Include <errno.h>.
4642 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
4643 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
4644 __strtoul_internal): New functions.
4645 * sysdeps/posix/pause.c: Include <sigsetops.h>.
4646 * sysdeps/posix/system.c: Include <sigsetops.h>.
4647 * sysdeps/mach/hurd/i386/Makefile
4648 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
4649 [$(subdir) = csu] (sysdep-only-routines): Likewise.
4650 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4651 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
4652 __feraiseexcept_renamed to feraiseexcept instead of
4653 __GI_feraiseexcept.
4654 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
4655 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
4656 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
4657 RWF_NOWAIT): Define to 0 if undefined already.
4658 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
4659 boils down to 0.
4660 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
4661 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
4662
4663 2017-09-01 Joseph Myers <joseph@codesourcery.com>
4664
4665 * manual/math.texi (pow10): Do not document.
4666 (pow10f): Likewise.
4667 (pow10l): Likewise.
4668 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
4669 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
4670 * math/libm-test-exp10.inc (pow10_test): Remove.
4671 (do_test): Do not call pow10.
4672 * math/w_exp10_compat.c (pow10): Make into compat symbol.
4673 [NO_LONG_DOUBLE] (pow10l): Likewise.
4674 * math/w_exp10f_compat.c (pow10f): Likewise.
4675 * math/w_exp10l_compat.c (pow10l): Likewise.
4676 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
4677 (pow10): Make into compat symbol.
4678 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
4679 (pow10f): Make into compat symbol.
4680 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
4681 (pow10l): Make into compat symbol.
4682 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
4683 pow10.
4684 (CFLAGS-nldbl-pow10.c): Remove variable..
4685 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
4686 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
4687 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
4688 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
4689 Undefine and redefine.
4690 (pow10l): Make into compat symbol.
4691 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
4692 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4693 * sysdeps/arm/libm-test-ulps: Likewise.
4694 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
4695 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4696 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4697 * sysdeps/microblaze/libm-test-ulps: Likewise.
4698 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4699 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4700 * sysdeps/nios2/libm-test-ulps: Likewise.
4701 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4702 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4703 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4704 * sysdeps/sh/libm-test-ulps: Likewise.
4705 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4706 * sysdeps/tile/libm-test-ulps: Likewise.
4707 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4708
4709 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4710
4711 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
4712
4713 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4714
4715 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
4716 "../ChangeLog.old/ChangeLog.8".
4717 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
4718 "../ChangeLog.old/ChangeLog.14".
4719
4720 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4721
4722 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
4723 Threads Library.
4724
4725 2017-09-01 Joseph Myers <joseph@codesourcery.com>
4726
4727 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
4728
4729 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4730
4731 * csu/version.c (banner): Remove "by Roland McGrath et al.".
4732 * nptl/Banner: Remove "by Ulrich Drepper et al.".
4733
4734 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4735
4736 * stdlib/tst-atexit-common.c (do_test): Test support for at least
4737 32 atexit handlers.
4738
4739 2017-09-01 Zack Weinberg <zackw@panix.com>
4740
4741 * math/math.h (HUGE_VAL): Improve commentary.
4742
4743 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4744 Andreas Schwab <schwab@suse.de>
4745
4746 [BZ #21530]
4747 * include/stdio.h (__gen_tempfd): New function.
4748 * stdio-common/Makefile (routines): Add gentempfd.
4749 * stdio-common/gentempfd.c: New file.
4750 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
4751 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
4752 unnamed file first.
4753
4754 2017-09-01 Florian Weimer <fweimer@redhat.com>
4755
4756 [BZ #21915]
4757 [BZ #21922]
4758 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
4759 result to determine success or failure, not the errno value.
4760 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
4761 (tst-nss-files-hosts-erange): Link with -ldl.
4762 * nss/tst-nss-files-hosts-erange.c: New file.
4763 * nss/tst-resolv-basic.c (response): Handle nodata.example.
4764 (do_test): Add NO_DATA tests.
4765 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
4766 (do_test): Call it.
4767
4768 2017-09-01 Florian Weimer <fweimer@redhat.com>
4769
4770 [BZ #21922]
4771 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
4772 coming from gethostbyname2_r.
4773
4774 2017-09-01 Florian Weimer <fweimer@redhat.com>
4775
4776 * support/namespace.h (struct support_chroot_configuration): Add
4777 hosts, host_conf.
4778 (struct support_chroot): Add path_hosts, path_host_conf.
4779 * support/support_chroot.c (write_file): New function.
4780 (support_chroot_create): Call it to process /etc/resolv.conf,
4781 /etc/hosts, /etc/host.conf.
4782 (support_chroot_free): Update.
4783
4784 2017-09-01 Florian Weimer <fweimer@redhat.com>
4785
4786 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
4787 status indicates it is set.
4788
4789 2017-09-01 Florian Weimer <fweimer@redhat.com>
4790
4791 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
4792 function lookup failures more reliable.
4793
4794 2017-09-01 Florian Weimer <fweimer@redhat.com>
4795
4796 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
4797 (getcanonname): Likewise.
4798 (gaih_inet): Likewise.
4799
4800 2017-09-01 Florian Weimer <fweimer@redhat.com>
4801
4802 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
4803 (getcanonname): Likewise.
4804 (gaih_inet): Likewise.
4805
4806 2017-08-31 Steve Ellcey <sellcey@cavium.com>
4807 Richard Henderson <rth@twiddle.net>
4808
4809 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
4810 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
4811 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
4812 (IREG_SIZE, OREG_SIZE): New macros.
4813 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
4814 (IREG_SIZE, OREG_SIZE): New macros.
4815 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
4816 (IREG_SIZE): New macro.
4817 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
4818 (IREG_SIZE): New macro.
4819 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
4820 New includes.
4821 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
4822 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4823 (__CONCATX): Handle exceptions correctly on large values that may
4824 set FE_INVALID.
4825 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
4826 Initialize if not already set.
4827 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4828
4829 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4830
4831 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
4832 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
4833 Likewise.
4834 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
4835 Likewise.
4836 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
4837 Likewise.
4838 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
4839 Likewise.
4840 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
4841 Likewise.
4842 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
4843 Likewise.
4844 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
4845 Likewise.
4846 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
4847 (NO_CANCELLATION): Likewise.
4848 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
4849 Likewise.
4850 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
4851 Likewise.
4852 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
4853 Likewise.
4854 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4855 (NO_CANCELLATION): Likewise.
4856 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4857 (NO_CANCELLATION): Likewise.
4858 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
4859 Likewise
4860 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
4861 Likewise.
4862 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
4863 Likewise.
4864 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
4865 Likewise.
4866 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
4867 hidden prototype.
4868 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
4869 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
4870
4871 2017-08-31 Steve Ellcey <sellcey@cavium.com>
4872
4873 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
4874 in resolver call.
4875
4876 2017-08-31 Florian Weimer <fweimer@redhat.com>
4877
4878 * include/libc-symbols.h (internal_function): Remove.
4879
4880 2017-08-31 Florian Weimer <fweimer@redhat.com>
4881
4882 * stdlib/fmtmsg.c (internal_addseverity): Remove
4883 internal_function.
4884
4885 2017-08-31 Florian Weimer <fweimer@redhat.com>
4886
4887 * stdio-common/printf_fp.c (group_number): Remove
4888 internal_function.
4889 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4890
4891 2017-08-31 Florian Weimer <fweimer@redhat.com>
4892
4893 * posix/fnmatch.c (internal_function): Remove definition.
4894 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
4895 * posix/regcomp.c (peek_token, init_word_char)
4896 (duplicate_node_closure, fetch_token, peek_token)
4897 (peek_token_bracket, build_range_exp, build_collating_symbol):
4898 Likewise.
4899 * posix/regex_internal.c (re_string_construct_common)
4900 (create_ci_newstate, create_cd_newstate, re_string_allocate)
4901 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
4902 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
4903 (re_string_translate_buffer, re_string_reconstruct)
4904 (re_string_peek_byte_case, re_string_fetch_byte_case)
4905 (re_string_destruct, re_string_context_at, re_node_set_alloc)
4906 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
4907 (re_node_set_add_intersect, re_node_set_init_union)
4908 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
4909 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
4910 (re_dfa_add_node, calc_state_hash, re_acquire_state)
4911 (re_acquire_state_context): Likewise.
4912 * posix/regex_internal.h (internal_function): Remove definition.
4913 (re_string_realloc_buffers, build_wcs_buffer)
4914 (build_wcs_upper_buffer, build_upper_buffer)
4915 (re_string_translate_buffer, re_string_context_at)
4916 (re_string_char_size_at, re_string_wchar_at)
4917 (re_string_elem_size_at): Likewise.
4918 * posix/regexec.c (match_ctx_init, match_ctx_clean)
4919 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
4920 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
4921 (re_search_internal, re_search_2_stub, re_search_stub)
4922 (re_copy_regs, prune_impossible_nodes, check_matching)
4923 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
4924 (free_fail_stack_return, sift_states_iter_mb)
4925 (sift_states_backward, build_sifted_states)
4926 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
4927 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
4928 (check_subexp_limits, sift_states_bkref, merge_state_array)
4929 (find_recover_state, transit_state, merge_state_with_log)
4930 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
4931 (transit_state_mb, transit_state_bkref, get_subexp)
4932 (get_subexp_sub, find_subexp_node, check_arrival)
4933 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
4934 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
4935 (check_node_accept_bytes, find_collation_sequence_value)
4936 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
4937 (acquire_init_state_context, check_halt_node_context)
4938 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
4939 (sub_epsilon_src_nodes): Likewise.
4940 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
4941 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
4942 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
4943 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
4944 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
4945 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
4946 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
4947 * sysdeps/posix/ttyname.c (getttyname): Likewise.
4948 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
4949 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
4950 (PREADV): Likewise.
4951 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
4952 (PREADV): Likewise.
4953 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
4954 (PWRITEV): Likewise.
4955 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
4956 (PWRITEV): Likewise.
4957 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
4958 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4959
4960 2017-08-31 Florian Weimer <fweimer@redhat.com>
4961
4962 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
4963 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
4964 Remove internal_function.
4965 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
4966 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
4967 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
4968 (__deallocate_stack, __libc_pthread_init)
4969 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
4970 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
4971 (__libc_disable_asynccancel, __librt_disable_asynccancel):
4972 Likewise.
4973 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
4974 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
4975 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
4976 Likewise.
4977 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
4978 (__pthread_mutex_unlock_usercnt): Likewise.
4979
4980 2017-08-31 Florian Weimer <fweimer@redhat.com>
4981
4982 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
4983 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
4984 (fts_safe_changedir): Remove internal_function.
4985 * io/ftw.c (internal_function): Remove definition.
4986 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
4987
4988 2017-08-31 Florian Weimer <fweimer@redhat.com>
4989
4990 * inet/deadline.c (__deadline_current_time)
4991 (__deadline_from_timeval, __deadline_to_ms): Remove
4992 internal_function.
4993 * inet/getnameinfo.c (nrl_domainname): Likewise.
4994 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
4995 * inet/inet6_option.c (add_pad): Likewise.
4996 * inet/net-internal.h (__deadline_current_time)
4997 (__deadline_from_timeval, __deadline_to_ms): Likewise.
4998 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
4999 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
5000 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
5001
5002 2017-08-31 Joseph Myers <joseph@codesourcery.com>
5003
5004 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
5005 include <bits/nan.h>.
5006 * math/Makefile (headers): Remove bits/nan.h.
5007 * bits/nan.h: Remove.
5008 * sysdeps/ieee754/bits/nan.h: Likewise.
5009 * sysdeps/mips/bits/nan.h: Likewise.
5010
5011 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
5012 not include <bits/inf.h>.
5013 * math/Makefile (headers): Remove bits/inf.h.
5014 * bits/inf.h: Remove.
5015 * sysdeps/ieee754/bits/inf.h: Likewise.
5016
5017 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
5018 bits/huge_vall.h or bits/huge_val_flt128.h.
5019 (HUGE_VAL): Define directly here.
5020 [__USE_ISOC99] (HUGE_VALF): Likewise.
5021 [__USE_ISOC99] (HUGE_VALL): Likewise.
5022 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5023 (HUGE_VAL_F128): Likewise.
5024 * math/Makefile (headers): Remove bits/huge_val.h,
5025 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
5026 * bits/huge_val.h: Remove.
5027 * bits/huge_val_flt128.h: Likewise.
5028 * bits/huge_valf.h: Likewise.
5029 * bits/huge_vall.h: Likewise.
5030 * sysdeps/ia64/bits/huge_vall.h: Likewise.
5031 * sysdeps/ieee754/bits/huge_val.h: Likewise.
5032 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
5033 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
5034 * sysdeps/sh/bits/huge_val.h: Likewise.
5035 * sysdeps/sparc/bits/huge_vall.h: Likewise.
5036 * sysdeps/x86/bits/huge_vall.h: Likewise.
5037
5038 2017-08-31 Florian Weimer <fweimer@redhat.com>
5039
5040 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
5041 internal_function.
5042 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
5043 Likewise.
5044 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
5045 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5046 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
5047 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
5048 * elf/dl-fini.c (_dl_sort_fini): Likewise.
5049 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5050 * elf/dl-libc.c (dlerror_run): Likewise.
5051 * elf/dl-load.c (add_name_to_object, decompose_rpath)
5052 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
5053 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
5054 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
5055 Likewise.
5056 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
5057 (_dl_higher_prime_number, _dl_strtoul): Likewise.
5058 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
5059 * elf/dl-profile.c (_dl_start_profile): Likewise.
5060 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
5061 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
5062 Likewise.
5063 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
5064 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
5065 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
5066 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
5067 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
5068 (_dl_allocate_tls_storage): Likewise.
5069 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
5070 (_dl_check_all_versions): Likewise.
5071 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
5072 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
5073 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
5074 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5075 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
5076 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
5077 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
5078 internal_function from __dl_start.
5079 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
5080 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
5081 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
5082 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
5083 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
5084 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
5085 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
5086 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
5087 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
5088 (_dl_next_ld_env_entry, _dl_important_hwcaps)
5089 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
5090 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
5091 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
5092 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
5093 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
5094 Likewise.
5095 (struct rtld_global_ro): Remove internal_function from the
5096 _dl_lookup_symbol_x member.
5097 (_dl_symbol_value): Remove. No longer defined anywhere.
5098 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
5099 internal_function.
5100 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5101 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
5102 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
5103 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
5104 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
5105 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
5106 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
5107 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
5108 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
5109 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
5110 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5111 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
5112
5113 2017-08-31 Florian Weimer <fweimer@redhat.com>
5114
5115 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
5116 Remove internal_function.
5117 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5118 Likewise.
5119 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5120 Likewise.
5121
5122 2017-08-31 Florian Weimer <fweimer@redhat.com>
5123
5124 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
5125 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
5126 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
5127
5128 2017-08-31 Florian Weimer <fweimer@redhat.com>
5129
5130 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
5131 (__gai_enqueue_request): Remove internal_function.
5132 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
5133 (__gai_remove_request, __gai_notify, __gai_notify_only)
5134 (__gai_sigqueue): Likewise.
5135 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
5136 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
5137 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
5138 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
5139 Likewise.
5140
5141 2017-08-31 Florian Weimer <fweimer@redhat.com>
5142
5143 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
5144 * include/dirent.h (__opendirat, __getdents, __getdents64)
5145 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
5146 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
5147 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
5148 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
5149 Likewise.
5150 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
5151
5152 2017-08-31 Florian Weimer <fweimer@redhat.com>
5153
5154 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
5155 internal_function.
5156 (GETCWD_RETURN_TYPE): Likewise.
5157
5158 2017-08-31 Florian Weimer <fweimer@redhat.com>
5159
5160 * include/time.h (__tz_compute, __strptime_internal): Remove
5161 internal_function.
5162 * time/strptime_l.c (__strptime_internal): Likewise.
5163 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
5164
5165 2017-08-31 Florian Weimer <fweimer@redhat.com>
5166
5167 * iconv/gconv.c (__gconv): Remove internal_function.
5168 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
5169 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
5170 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
5171 (__gconv_release_cache): Likewise.
5172 * iconv/gconv_close.c (__gconv_close): Likewise.
5173 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
5174 (read_conf_file, __gconv_get_path): Likewise.
5175 * iconv/gconv_db.c (derivation_lookup, add_derivation)
5176 (__gconv_release_step, gen_steps, increment_counter)
5177 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
5178 (__gconv_close_transform, free_modules_db): Likewise.
5179 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
5180 Likewise.
5181 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
5182 (__gconv_find_transform, __gconv_lookup_cache)
5183 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
5184 (__gconv_close_transform, __gconv_release_cache)
5185 (__gconv_loaded_object, __gconv_release_shlib)
5186 (__gconv_compare_alias): Likewise.
5187 * iconv/gconv_open.c (__gconv_open): Likewise.
5188 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
5189 * iconv/iconvconfig.c (add_module): Likewise.
5190 * intl/dcigettext.c (plural_lookup, guess_category_value)
5191 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
5192 * intl/eval-plural.h (plural_eval): Likewise.
5193 * intl/finddomain.c (_nl_find_domain): Likewise.
5194 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
5195 (_nl_load_domain, _nl_find_msg): Likewise.
5196 (internal_function): Remove definition.
5197 * intl/loadinfo.h (internal_function): Likewise.
5198 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
5199 internal_function.
5200 * intl/localealias.c (internal_function): Remove definition.
5201 (read_alias_file): Remove internal_function.
5202 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
5203 * intl/plural-exp.h (internal_function): Remove definition.
5204 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
5205 internal_function.
5206 * intl/plural.c: Regenerate.
5207 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
5208 * locale/coll-lookup.c (__collidx_table_lookup)
5209 (__collseq_table_lookup): Likewise.
5210 * locale/coll-lookup.h (__collidx_table_lookup)
5211 (__collseq_table_lookup): Likewise.
5212 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
5213 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5214 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
5215 (_nl_unload_locale): Likewise.
5216 * locale/localeinfo.h (struct __locale_data): Remove
5217 internal_function from cleanup member.
5218 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
5219 (_nl_remove_locale, _nl_load_locale_from_archive)
5220 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
5221 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
5222 (_nl_cleanup_time): Remove internal_function.
5223 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
5224 (_nl_parse_alt_digit): Likewise.
5225 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
5226 (_nl_select_era_entry): Likewise.
5227 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5228 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
5229 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
5230 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
5231 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
5232
5233 2017-08-31 Florian Weimer <fweimer@redhat.com>
5234
5235 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
5236 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
5237 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
5238 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
5239 Likewise.
5240 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
5241 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
5242 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
5243 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
5244 Likewise.
5245 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
5246
5247 2017-08-31 Florian Weimer <fweimer@redhat.com>
5248
5249 * misc/getttyent.c (skip, value): Remove internal_function.
5250 * misc/syslog.c (openlog_internal): Likewise.
5251 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
5252
5253 2017-08-31 Florian Weimer <fweimer@redhat.com>
5254
5255 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
5256 (__nss_rewrite_field): Remove internal_function.
5257 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5258 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5259 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5260 * nss/nsswitch.c (nss_parse_file, nss_getline)
5261 (nss_parse_service_list, nss_new_service): Likewise.
5262 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
5263 * nss/valid_field.c (__nss_valid_field): Likewise.
5264 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
5265
5266 2017-08-31 Florian Weimer <fweimer@redhat.com>
5267
5268 * malloc/arena.c (__malloc_fork_lock_parent)
5269 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
5270 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
5271 internal_function from defintions.
5272 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
5273 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
5274 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
5275 internal_function from declarations.
5276 * malloc/malloc.c (internal_function): Do not define.
5277 (mem2mem_check): Remove internal_function from declaration.
5278 (munmap_chunk, mremap_chunk): Remove internal_function.
5279 * malloc/mtrace.c (tr_where): Likewise.
5280
5281 2017-08-31 Florian Weimer <fweimer@redhat.com>
5282
5283 * include/rpc/pmap_clnt.h (__get_socket): Remove
5284 internal_function.
5285 * sunrpc/auth_des.c (synchronize): Likewise.
5286 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
5287 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
5288 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
5289 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
5290 (key_call): Likewise.
5291 * sunrpc/pm_getport.c (__get_socket): Likewise.
5292 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
5293 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
5294 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
5295 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
5296 (invalidate): Likewise.
5297 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
5298 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
5299 (set_input_fragment, get_input_bytes): Likewise.
5300
5301 2017-08-31 Florian Weimer <fweimer@redhat.com>
5302
5303 * malloc/malloc.c (_int_free): Remove locked variable and related
5304 asserts.
5305
5306 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
5307
5308 [BZ #22051]
5309 * Makerules (build-module-helper-objlist): Filter out
5310 $(elf-objpfx)sofini.os.
5311 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
5312 needed.
5313
5314 2017-08-31 Florian Weimer <fweimer@redhat.com>
5315
5316 * libio/fcloseall.c: Assume weak_alias is defined.
5317 * libio/feof.c: Likewise.
5318 * libio/fileno.c: Likewise.
5319 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
5320 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5321 definitions.
5322 (_IO_file_open): Call __open directly.
5323 (_IO_new_file_sync): Assume ESPIPE is defined.
5324 (_IO_file_seekoff_maybe_mmap): Call __read directly.
5325 (_IO_new_file_write): Call __write directly.
5326 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
5327 * libio/ftello64.c (__ftello64): Assume EIO is defined.
5328 * libio/genops.c: Assume _LIBC is defined.
5329 (save_for_backup): Remove internal_function.
5330 * libio/getc.c: Assume weak_alias is defined.
5331 * libio/getwc.c: Likewise.
5332 * libio/iofclose.c: Assume _LIBC is defined.
5333 * libio/iofdopen.c: Likewise.
5334 (_IO_fcntl): Remove macro definition.
5335 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
5336 Call __fcntl directly.
5337 * libio/iofflush.c: Assume weak_alias is defined.
5338 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
5339 defined.
5340 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
5341 * libio/iofgets.c: Likewise.
5342 * libio/iofopen.c: Assume _LIBC is defined.
5343 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
5344 * libio/iofputs.c: Assume weak_alias is defined.
5345 * libio/iofread.c: Likewise.
5346 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
5347 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5348 * libio/ioftell.c: Assume weak_alias is defined.
5349 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
5350 * libio/iofwide.c: Assume _LIBC is defined.
5351 (_IO_fwide): Drop SHARED conditional because it is implied by
5352 SHLIB_COMPAT.
5353 * libio/iofwrite.c: Assume weak_alias is defined.
5354 * libio/iogetdelim.c: Likewise.
5355 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
5356 * libio/iogetwline.c (wmemcpy): Remove macro definition.
5357 (_IO_getwline): Call __wmemcpy directly.
5358 * libio/iopopen.c: Assume _LIBC is defined.
5359 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5360 (_IO_close): Remove macro definitions.
5361 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
5362 _exit directly.
5363 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
5364 directly.
5365 * libio/ioputs.c: Assume weak_alias is defined.
5366 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
5367 * libio/iosetbuffer.c: Assume weak_alias is defined.
5368 * libio/iosetvbuf.c: Likewise.
5369 * libio/ioungetc.c: Likewise.
5370 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
5371 libc_hidden_def, libc_hidden_weak, NULL are defined.
5372 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
5373 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
5374 defined.
5375 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5376 definitions.
5377 (_IO_old_file_init_internal): Drop SHARED conditional because it
5378 is implied by SHLIB_COMPAT.
5379 (_IO_old_file_fopen): Call __open directly.
5380 (_IO_old_file_sync): Assume ESPIPE is defined.
5381 (_IO_old_file_write): Call __write directly.
5382 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
5383 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
5384 Call __fcntl directly.
5385 * libio/oldiofgetpos.c: Assume weak_alias is defined.
5386 (_IO_old_fgetpos): Assume EIO is defined.
5387 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
5388 (_IO_old_fgetpos64): Assume EIO is defined.
5389 * libio/oldiofsetpos.c: Assume weak_alias is defined.
5390 (_IO_old_fsetpos): Assume EIO is defined.
5391 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
5392 (_IO_old_fsetpos64): Assume EIO is defined.
5393 * libio/oldiopopen.c: Assume _LIBC is defined.
5394 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5395 (_IO_close): Remove macro definitions.
5396 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
5397 directly.
5398 (_IO_old_proc_close): Call __close, __waitpid directly.
5399 * libio/put.c: Assume weak_alias is defined.
5400 * libio/stdfiles.c: Assume _LIBC is defined.
5401 * libio/stdio.c: Likewise.
5402 * libio/wfileops.c: Likewise.
5403 (_IO_wfile_sync): Assume ESPIPE is defined.
5404 * libio/wgenops.c: Assume _LIBC is defined.
5405 (save_for_wbackup): Remove internal_function.
5406
5407 2017-08-31 Florian Weimer <fweimer@redhat.com>
5408
5409 * malloc/malloc.c (top_check): Change return type to void. Remove
5410 internal_function.
5411 * malloc/hooks.c (top_check): Likewise.
5412 (malloc_check, realloc_check, memalign_check): Adjust.
5413
5414 2017-08-30 Joseph Myers <joseph@codesourcery.com>
5415
5416 [BZ #21457]
5417 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5418 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
5419 sigcontext and namespace requirements.
5420 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5421 * sysdeps/m68k/sys/ucontext.h: Likewise.
5422 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
5423 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
5424 <bits/sigcontext.h>.
5425 (__ctx): Define earlier.
5426 (mcontext_t): Define structure contents rather than using struct
5427 sigcontext.
5428 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
5429 __glibc_reserved1 instead of __reserved.
5430 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
5431 <bits/sigcontext.h>.
5432 (__ctx): Define earlier.
5433 (mcontext_t): Define structure contents rather than using struct
5434 sigcontext.
5435 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
5436 mcontext_t instead of struct sigcontext.
5437 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
5438 <bits/sigcontext.h>.
5439 (__ctx): Define earlier.
5440 (mcontext_t): Define structure contents rather than using struct
5441 sigcontext.
5442 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
5443 <bits/sigcontext.h>.
5444 (__ctx): Define earlier.
5445 (mcontext_t): Define structure contents rather than using struct
5446 sigcontext.
5447 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
5448 mcontext_t instead of struct sigcontext.
5449 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
5450 mcontext_t instead of struct sigcontext.
5451 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5452 <bits/sigcontext.h>.
5453 (__ctx): New macro.
5454 (struct __ia64_fpreg_mcontext): New type.
5455 (mcontext_t): Define structure contents rather than using struct
5456 sigcontext.
5457 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
5458 (uc_sigmask): Define using __ctx.
5459 (uc_stack): Likewise.
5460 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
5461 <bits/sigcontext.h>.
5462 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5463 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
5464 <bits/sigcontext.h>.
5465 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
5466 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
5467 <bits/sigcontext.h>.
5468 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
5469 <bits/sigcontext.h>.
5470 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
5471 <bits/sigcontext.h>.
5472 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
5473 <bits/sigcontext.h>.
5474 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
5475 <bits/sigcontext.h>.
5476 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
5477 <bits/sigcontext.h>.
5478 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
5479 <bits/sigcontext.h>.
5480 (__ctx): Define earlier.
5481 (mcontext_t): Define structure contents rather than using struct
5482 sigcontext.
5483 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
5484 <bits/sigcontext.h>. Include <bits/types.h>.
5485 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
5486 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
5487 (test-xfail-XPG42/ucontext.h/conform): Likewise.
5488 (test-xfail-UNIX98/signal.h/conform): Likewise.
5489 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5490 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5491 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5492 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5493 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5494 (test-xfail-POSIX2008/signal.h/conform): Likewise.
5495 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5496 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5497 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5498
5499 2017-08-30 Florian Weimer <fweimer@redhat.com>
5500
5501 * malloc/dynarray_emplace_enlarge.c
5502 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
5503 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5504 * malloc/tst-dynarray.c (test_long_overflow): New function.
5505 (do_test): Call it.
5506
5507 2017-08-30 Florian Weimer <fweimer@redhat.com>
5508
5509 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
5510 (set_arena_corrupt): Remove definitions.
5511 (mtrim): Do not check for corrupt arena.
5512 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
5513 Likewise.
5514
5515 2017-08-30 Florian Weimer <fweimer@redhat.com>
5516
5517 [BZ #21754]
5518 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
5519 check_action.
5520 (ptmalloc_init): Do not set or use check_action.
5521 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
5522 call to malloc_printerr. Remove return statement.
5523 (free_check): Likewise. Remove arena unlock.
5524 (top_check): Update comment. Adjust call to malloc_printerr.
5525 Remove heap repair code.
5526 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
5527 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
5528 (sysmalloc): Adjust call to malloc_printerr.
5529 (munmap_chunk, __libc_realloc): Likewise. Remove return
5530 statement.
5531 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
5532 Remove errout label and corresponding gotos.
5533 (_int_free): Likewise. Remove arena unlock.
5534 (do_set_mallopt_check): Do not set check_action.
5535 (malloc_printerr): Adjust parameter list. Do not mark arena as
5536 corrupt.
5537 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
5538 comment.
5539 * manual/probes.texi (Memory Allocation Probes): Remove
5540 memory_mallopt_check_action.
5541
5542 2017-08-30 Steve Ellcey <sellcey@cavium.com>
5543
5544 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
5545 Use pointer to uint64_t instead of long int for sp.
5546
5547 2017-08-30 Florian Weimer <fweimer@redhat.com>
5548
5549 [BZ #21754]
5550 * malloc/malloc.c (malloc_printerr): Always terminate the process,
5551 without printing a backtrace. Do not leak any information in the
5552 error message.
5553 * manual/memory.texi (Heap Consistency Checking): Update.
5554 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
5555
5556 2017-08-30 Florian Weimer <fweimer@redhat.com>
5557
5558 Do not scale NPTL tests with available number of CPUs.
5559 * nptl/tst-cond16.c (count): Set to constant value of 8.
5560 * nptl/tst-cond18.c (count): Likewise.
5561
5562 2017-08-29 Joseph Myers <joseph@codesourcery.com>
5563
5564 [BZ #22035]
5565 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
5566 Define to take a second argument that is a macro that
5567 concatentates a suffix, not the suffix itself.
5568 (__CONCAT_d): New macro.
5569 (__CONCAT_f): Likewise.
5570 (__CONCAT_l): Likewise.
5571
5572 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
5573
5574 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
5575 by child.
5576
5577 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5578 Aurelien Jarno <aurelien@aurel32.net>
5579 Maciej W. Rozycki <macro@imgtec.com>
5580
5581 [BZ #21956]
5582 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
5583 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
5584 `mips16-syscall6' and `mips16-syscall7'.
5585 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
5586 (CFLAGS-mips16-syscall7.c): Remove.
5587 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
5588 Remove `__mips16_syscall5', `__mips16_syscall6' and
5589 `__mips16_syscall7'.
5590 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
5591 (__mips16_syscall0): Rename `__mips16_syscall_return' to
5592 `__mips_syscall_return'.
5593 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
5594 (__mips16_syscall1): Likewise.
5595 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
5596 (__mips16_syscall2): Likewise.
5597 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
5598 (__mips16_syscall3): Likewise.
5599 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
5600 (__mips16_syscall4): Likewise.
5601 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
5602 Remove.
5603 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
5604 Remove.
5605 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
5606 Remove.
5607 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
5608 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
5609 `__mips16_syscall5'. Remove prototype.
5610 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
5611 `__mips16_syscall6'. Remove prototype.
5612 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
5613 `__mips16_syscall7'. Remove prototype.
5614 (__nomips16, __mips16_syscall_return): Move to...
5615 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
5616 (__nomips16, __mips_syscall_return): ... here.
5617 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
5618 `__mips16_syscall_return' to `__mips_syscall_return'.
5619 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
5620 `internal_syscall##nr'.
5621 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
5622 `internal_syscall##nr'.
5623 (FORCE_FRAME_POINTER): Remove.
5624 (__mips_syscall5): New prototype.
5625 (internal_syscall5): Rewrite to call `__mips_syscall5'.
5626 (__mips_syscall6): New prototype.
5627 (internal_syscall6): Rewrite to call `__mips_syscall6'.
5628 (__mips_syscall7): New prototype.
5629 (internal_syscall7): Rewrite to call `__mips_syscall7'.
5630 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
5631 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
5632 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
5633 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
5634 (sysdep_routines): Add libc-do-syscall.
5635 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
5636 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
5637
5638 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5639
5640 [BZ #21672]
5641 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
5642 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
5643 (advise_stack_range): New function.
5644 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
5645 stack non required to advise_stack_range at allocatestack.c
5646
5647 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
5648
5649 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
5650
5651 2017-08-29 Florian Weimer <fweimer@redhat.com>
5652
5653 [BZ #22026]
5654 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
5655 __end_fct. Mangle __end_fct after setting it to NULL.
5656 * iconv/Makefile (tests): Add tst-gconv-init-failure.
5657 (modules-names, modules-names-tests): Add
5658 tst-gconv-init-failure-mod.
5659 (gconv-modules): New target.
5660 (tst-gconv-init-failure-mod.so): Link against libsupport.
5661 (tst-gconv-init-failure): Depend on gconv-modules,
5662 tst-gconv-init-failure-mod.so.
5663 * iconv/tst-gconv-init-failure-mod.c: New file.
5664 * iconv/tst-gconv-init-failure.c: Likewise.
5665 * iconv/test-gconv-modules: Likewise.
5666
5667 2017-08-29 Florian Weimer <fweimer@redhat.com>
5668
5669 [BZ #22025]
5670 * iconv/gconv_db.c (free_derivation): Remove redundant
5671 parentheses.
5672 (gen_steps): Unconditionally mangle __btowc_fct after
5673 initialization.
5674 (increment_counter): Likewise. Do not call init_fct for internal
5675 modules.
5676
5677 2017-08-29 Joseph Myers <joseph@codesourcery.com>
5678
5679 [BZ #22028]
5680 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5681 (_MSUF_): Remove macro.
5682 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
5683 Likewise.
5684 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5685 (__REDIRFROM_X): New macro.
5686 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
5687 Likewise.
5688 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
5689 (__REDIRTO_X): Likewise.
5690 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
5691 arguments.
5692 (__MATH_REDIRCALL_2): Likewise.
5693 (__MATH_REDIRCALL_INTERNAL): Likewise.
5694 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5695 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
5696 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
5697 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5698 * math/test-finite-macros.c: New file.
5699 * math/Makefile (tests): Add test-finite-macros.
5700 (CFLAGS-test-finite-macros.c): New variable.
5701
5702 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
5703 Jeff Law <law@redhat.com>
5704
5705 [BZ #22025]
5706 Mangle NULL pointers in iconv/gconv.
5707 * iconv/gconv_cache.c (find_module): Demangle init_fct before
5708 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
5709 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
5710 is non-NULL before demangling the end_fct. Check for NULL
5711 end_fct after demangling.
5712 (__gconv_release_step): Demangle the end_fct before checking
5713 it for NULL. Remove assert on __shlibc_handle != NULL.
5714 (gen_steps): Don't check btowc_fct for NULL before mangling.
5715 Demangle init_fct before checking for NULL.
5716 (increment_counter): Likewise.
5717 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
5718 end_fct for NULL before mangling.
5719 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
5720 for NULL.
5721
5722 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
5723
5724 [BZ #21971]
5725 * locale/iso-639.def: add Morisyen.
5726
5727 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5728
5729 [BZ #21930]
5730 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
5731 (iszero): New C++ implementation that does not use
5732 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
5733 signaling nans are enabled, since __builtin_types_compatible_p
5734 is a C-only feature.
5735 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
5736 defined, include ieee754_float128.h for access to the union and
5737 member ieee854_float128.ieee.
5738 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
5739 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
5740 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5741 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
5742 options of test-math-zero on powerpc64le.
5743
5744 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
5745
5746 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
5747 Change double to float.
5748
5749 2017-08-28 Joseph Myers <joseph@codesourcery.com>
5750
5751 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
5752 unconditional.
5753 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
5754 conditional code; define contents only for [LIBM_SVID_COMPAT].
5755
5756 2017-08-28 Florian Weimer <fweimer@redhat.com>
5757
5758 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
5759 (abi-lp64_be-options): Remove.
5760 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
5761 (abi-hard-options): Likewise.
5762 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
5763 (abi-o32_hard-options, abi-o32_soft_2008-options)
5764 (abi-o32_hard_2008-options, abi-n32_soft-options)
5765 (abi-n32_hard-options, abi-n32_soft_2008-options)
5766 (abi-n32_hard_2008-options, abi-n64_soft-options)
5767 (abi-n64_hard-options, abi-n64_soft_2008-options)
5768 (abi-n64_hard_2008-options): Likewise.
5769 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
5770 (abi-64-v1-options, abi-64-v2-options): Likewise.
5771 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
5772 (abi-64-options): Likewise.
5773 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
5774 (abi-64-options): Likewise.
5775 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
5776 (abi-64-options): Likewise.
5777 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
5778 (abi-64-options, abi-x32-options): Likewise.
5779
5780 2017-08-28 Florian Weimer <fweimer@redhat.com>
5781
5782 Store supported list of SYS_* system calls in the source tree.
5783 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5784 (bits/syscall.h): Generate from list file.
5785 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
5786 [$(subdir) = misc] (tests): Add tst-syscall-list.
5787 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
5788 [$(subdir) = misc] (tst-syscall-list-macros.list)
5789 [$(subdir) = misc] (tst-syscall-list-nr.list)
5790 (tst-syscall-list-sys.list): Helper targets for new
5791 tst-syscall-list test.
5792 [$(subdir) = misc] (tst-syscall-list.out): Run test script
5793 tst-syscall-list.sh.
5794 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
5795 target. Do not include bits/syscall.d.
5796 [$(subdir) = misc] (generated): Do not update.
5797 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
5798 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
5799 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
5800 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
5801
5802 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
5803
5804 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
5805 (tst-cxa_atexit, tst-on_exit): Likewise.
5806 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
5807 tst-cxa_atexit, and tst-on_exit.
5808 * stdlib/tst-atexit-common.c: New file.
5809 * stdlib/tst-atexit.c: New file.
5810 * stdlib/tst-at_quick_exit.c: New file.
5811 * stdlib/tst-cxa_atexit.c: New file.
5812 * stdlib/tst-on_exit.c: New file.
5813
5814 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5815
5816 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
5817 * mach/stack_chk_fail_local.c: New file.
5818 * hurd/stack_chk_fail_local.c: New file.
5819 * mach/Machrules ($(interface-library)-routines): Add
5820 stack_chk_fail_local.
5821 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
5822 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
5823 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
5824 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
5825 * hurd/Makefile (CFLAGS-hurdstartup.o,
5826 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
5827
5828 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
5829
5830 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5831 (index_cpu_*, index_arch_*): Removed.
5832
5833 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5834
5835 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
5836 Use uint64_t instead of unsigned long.
5837
5838 2017-08-25 Joseph Myers <joseph@codesourcery.com>
5839
5840 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
5841 [__HAVE_DISTINCT_FLOAT128].
5842
5843 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
5844 of <bits/math-finite.h>.
5845 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
5846 inclusion of <bits/math-finite.h>.
5847 * math/bits/math-finite.h (__REDIRTO_X): Do not define
5848 conditionally on [__MATH_DECLARING_LDOUBLE && defined
5849 __NO_LONG_DOUBLE_MATH].
5850 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
5851 (__MATH_REDIRCALL_2): Likewise.
5852 (__MATH_REDIRCALL_INTERNAL): Likewise.
5853 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5854 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
5855 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5856
5857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5858 Remove file.
5859 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5860 Likewise.
5861 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5862 Likewise.
5863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5864 Likewise.
5865 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5866 Likewise.
5867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5868 Likewise.
5869 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5870 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5871 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5872 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5873 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5874 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
5875 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
5876 w_sqrtf_compat-ppc32.
5877
5878 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5879
5880 * math/math.h [defined __cplusplus] (issignaling): In the long
5881 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
5882 is not defined. Call __issignaling, otherwise.
5883
5884 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5885
5886 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
5887 syscall definitions and replace __builtin_expect with __glibc_likely.
5888 * sysdeps/unix/syscall-template.S: Update comment about cancellable
5889 syscall.
5890 (SYSCALL_CANCELLABLE): Removedefinition
5891 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
5892 definition.
5893 (PSEUDO_END): Likewise.
5894 [IS_IN (libpthread)] (CENABLE): Likewise.
5895 [IS_IN (libpthread)] (CDISABLE): Likewise.
5896 [IS_IN (libc)] (CENABLE): Likewise.
5897 [IS_IN (libc)] (CENABLE): Likewise.
5898 [IS_IN (librt)] (CDISABLE): Likewise.
5899 [IS_IN (librt)] (CDISABLE): Likewise.
5900 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5901 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
5902 definition.
5903 (PSEUDO_END): Likewise.
5904 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
5905 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
5906 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5907 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5908 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5909 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5910 (CENABLE): Likewise.
5911 (CDISABLE): Likewise.
5912 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5913 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
5914 defintion.
5915 (PSEUDO_END): Likewise.
5916 [IS_IN (libpthread)] (CENABLE): Likewise.
5917 [IS_IN (libpthread)] (CDISABLE): Likewise.
5918 [IS_IN (libc)] (CENABLE): Likewise.
5919 [IS_IN (libc)] (CENABLE): Likewise.
5920 [IS_IN (librt)] (CDISABLE): Likewise.
5921 [IS_IN (librt)] (CDISABLE): Likewise.
5922 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5923 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
5924 definition.
5925 (PSEUDO_END): Likewise.
5926 [IS_IN (libpthread)] (CENABLE): Likewise.
5927 [IS_IN (libpthread)] (CDISABLE): Likewise.
5928 [IS_IN (libc)] (CENABLE): Likewise.
5929 [IS_IN (libc)] (CENABLE): Likewise.
5930 [IS_IN (librt)] (CDISABLE): Likewise.
5931 [IS_IN (librt)] (CDISABLE): Likewise.
5932 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5933 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
5934 definition.
5935 (PSEUDO_END): Likewise.
5936 [IS_IN (libpthread)] (CENABLE): Likewise.
5937 [IS_IN (libpthread)] (CDISABLE): Likewise.
5938 [IS_IN (libc)] (CENABLE): Likewise.
5939 [IS_IN (libc)] (CENABLE): Likewise.
5940 [IS_IN (librt)] (CDISABLE): Likewise.
5941 [IS_IN (librt)] (CDISABLE): Likewise.
5942 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5943 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
5944 definition.
5945 (PSEUDO_END): Likewise.
5946 [IS_IN (libpthread)] (CENABLE): Likewise.
5947 [IS_IN (libpthread)] (CDISABLE): Likewise.
5948 [IS_IN (libc)] (CENABLE): Likewise.
5949 [IS_IN (libc)] (CENABLE): Likewise.
5950 [IS_IN (librt)] (CDISABLE): Likewise.
5951 [IS_IN (librt)] (CDISABLE): Likewise.
5952 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5953 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
5954 definition.
5955 (PSEUDO_END): Likewise.
5956 [IS_IN (libpthread)] (CENABLE): Likewise.
5957 [IS_IN (libpthread)] (CDISABLE): Likewise.
5958 [IS_IN (libc)] (CENABLE): Likewise.
5959 [IS_IN (libc)] (CENABLE): Likewise.
5960 [IS_IN (librt)] (CDISABLE): Likewise.
5961 [IS_IN (librt)] (CDISABLE): Likewise.
5962 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5963 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
5964 definition.
5965 (PSEUDO_END): Likewise.
5966 [IS_IN (libpthread)] (CENABLE): Likewise.
5967 [IS_IN (libpthread)] (CDISABLE): Likewise.
5968 [IS_IN (libc)] (CENABLE): Likewise.
5969 [IS_IN (libc)] (CENABLE): Likewise.
5970 [IS_IN (librt)] (CDISABLE): Likewise.
5971 [IS_IN (librt)] (CDISABLE): Likewise.
5972 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5973 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
5974 Remove definition.
5975 (PSEUDO_END): Likewise.
5976 [IS_IN (libpthread)] (CENABLE): Likewise.
5977 [IS_IN (libpthread)] (CDISABLE): Likewise.
5978 [IS_IN (libc)] (CENABLE): Likewise.
5979 [IS_IN (libc)] (CENABLE): Likewise.
5980 [IS_IN (librt)] (CDISABLE): Likewise.
5981 [IS_IN (librt)] (CDISABLE): Likewise.
5982 (SINGLE_THREAD_P): Likewise.
5983 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
5984 definition.
5985 (PSEUDO_END): Likewise.
5986 [IS_IN (libpthread)] (CENABLE): Likewise.
5987 [IS_IN (libpthread)] (CDISABLE): Likewise.
5988 [IS_IN (libc)] (CENABLE): Likewise.
5989 [IS_IN (libc)] (CENABLE): Likewise.
5990 [IS_IN (librt)] (CDISABLE): Likewise.
5991 [IS_IN (librt)] (CDISABLE): Likewise.
5992 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5993 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
5994 definition.
5995 (PSEUDO_END): Likewise.
5996 [IS_IN (libpthread)] (CENABLE): Likewise.
5997 [IS_IN (libpthread)] (CDISABLE): Likewise.
5998 [IS_IN (libc)] (CENABLE): Likewise.
5999 [IS_IN (libc)] (CENABLE): Likewise.
6000 [IS_IN (librt)] (CDISABLE): Likewise.
6001 [IS_IN (librt)] (CDISABLE): Likewise.
6002 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6003 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
6004 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6005 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
6006 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
6007 definition.
6008 (PSEUDO_END): Likewise.
6009 [IS_IN (libpthread)] (CENABLE): Likewise.
6010 [IS_IN (libpthread)] (CDISABLE): Likewise.
6011 [IS_IN (libc)] (CENABLE): Likewise.
6012 [IS_IN (libc)] (CENABLE): Likewise.
6013 [IS_IN (librt)] (CDISABLE): Likewise.
6014 [IS_IN (librt)] (CDISABLE): Likewise.
6015 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6016 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
6017 definition.
6018 (PSEUDO_END): Likewise.
6019 [IS_IN (libpthread)] (CENABLE): Likewise.
6020 [IS_IN (libpthread)] (CDISABLE): Likewise.
6021 [IS_IN (libc)] (CENABLE): Likewise.
6022 [IS_IN (libc)] (CENABLE): Likewise.
6023 [IS_IN (librt)] (CDISABLE): Likewise.
6024 [IS_IN (librt)] (CDISABLE): Likewise.
6025 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6026 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
6027 definition.
6028 (PSEUDO_END): Likewise.
6029 [IS_IN (libpthread)] (CENABLE): Likewise.
6030 [IS_IN (libpthread)] (CDISABLE): Likewise.
6031 [IS_IN (libc)] (CENABLE): Likewise.
6032 [IS_IN (libc)] (CENABLE): Likewise.
6033 [IS_IN (librt)] (CDISABLE): Likewise.
6034 [IS_IN (librt)] (CDISABLE): Likewise.
6035 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6036 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
6037 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6038 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
6039 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
6040 definition.
6041 (PSEUDO_END): Likewise.
6042 [IS_IN (libpthread)] (CENABLE): Likewise.
6043 [IS_IN (libpthread)] (CDISABLE): Likewise.
6044 [IS_IN (libc)] (CENABLE): Likewise.
6045 [IS_IN (libc)] (CENABLE): Likewise.
6046 [IS_IN (librt)] (CDISABLE): Likewise.
6047 [IS_IN (librt)] (CDISABLE): Likewise.
6048 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6049 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
6050 definition.
6051 (PSEUDO_END): Likewise.
6052 [IS_IN (libpthread)] (CENABLE): Likewise.
6053 [IS_IN (libpthread)] (CDISABLE): Likewise.
6054 [IS_IN (libc)] (CENABLE): Likewise.
6055 [IS_IN (libc)] (CENABLE): Likewise.
6056 [IS_IN (librt)] (CDISABLE): Likewise.
6057 [IS_IN (librt)] (CDISABLE): Likewise.
6058 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6059
6060 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6061
6062 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
6063
6064 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
6065
6066 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6067
6068 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
6069
6070 [BZ #21982]
6071 * string/stratcliff.c (do_test): Declare size, nchars, inner,
6072 middle and outer with size_t instead of int. Repleace %d and
6073 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
6074 "MAX (outer, nchars - 64)" to support unsigned outer and
6075 nchars. Also exit loop when outer == 0.
6076
6077 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6078
6079 * include/fcntl.h (__fcntl_nocancel): Remove definition.
6080 * include/signal.h (__sigsuspend_nocancel): Likewise.
6081 * include/time.h (__nanosleep_nocancel): Likewise.
6082 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
6083 * login/utmp_file.c: Include non cancellable syscall header.
6084 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
6085 prototype.
6086
6087 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
6088
6089 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
6090 .byte sequences with AVX512F instructions.
6091 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
6092 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6093 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
6094 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
6095 Likewise.
6096 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6097 Likewise.
6098
6099 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6100 Steve Ellcey <sellcey@cavium.com>
6101
6102 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
6103 Use PTR_REG macro in cmp instruction.
6104
6105 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6106
6107 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
6108 Change the return type of the ifunc resolver to match the return
6109 type of the target function.
6110
6111 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6112
6113 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
6114 (preadv64): Likewise.
6115 (pwrite64(: Likewise.
6116 (pwritev64): Likewise.
6117
6118 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6119 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
6120 (LOAD_ARGS_0): Likewise.
6121 (LOAD_ARGS_1): Likewise.
6122 (LOAD_ARGS_2): Likewise.
6123 (LOAD_ARGS_3): Likewise.
6124 (LOAD_ARGS_4): Likewise.
6125 (LOAD_ARGS_5): Likewise.
6126 (LOAD_ARGS_6): Likewise.
6127 (LOAD_REGS_0): Likewise.
6128 (LOAD_REGS_1): Likewise.
6129 (LOAD_REGS_2): Likewise.
6130 (LOAD_REGS_3): Likewise.
6131 (LOAD_REGS_4): Likewise.
6132 (LOAD_REGS_5): Likewise.
6133 (LOAD_REGS_6): Likewise.
6134 (ASM_ARGS_0): Likewise.
6135 (ASM_ARGS_1): Likewise.
6136 (ASM_ARGS_2): Likewise.
6137 (ASM_ARGS_3): Likewise.
6138 (ASM_ARGS_4): Likewise.
6139 (ASM_ARGS_5): Likewise.
6140 (ASM_ARGS_6): Likewise.
6141 (LOAD_ARGS_TYPES_1): Likewise.
6142 (LOAD_ARGS_TYPES_2): Likewise.
6143 (LOAD_ARGS_TYPES_3): Likewise.
6144 (LOAD_ARGS_TYPES_4): Likewise.
6145 (LOAD_ARGS_TYPES_5): Likewise.
6146 (LOAD_ARGS_TYPES_6): Likewise.
6147 (LOAD_REGS_TYPES_1): Likewise.
6148 (LOAD_REGS_TYPES_2): Likewise.
6149 (LOAD_REGS_TYPES_3): Likewise.
6150 (LOAD_REGS_TYPES_4): Likewise.
6151 (LOAD_REGS_TYPES_5): Likewise.
6152 (LOAD_REGS_TYPES_6): Likewise.
6153 (TYPEFY): New define.
6154 (ARGIFY): Likewise.
6155 (internal_syscall0): Likewise.
6156 (internal_syscall1): Likewise.
6157 (internal_syscall2): Likewise.
6158 (internal_syscall3): Likewise.
6159 (internal_syscall4): Likewise.
6160 (internal_syscall5): Likewise.
6161 (internal_syscall6): Likewise.
6162 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
6163 (INTERNAL_SYSCALL_NCS): Remove define.
6164 (internal_syscall1): Add define.
6165
6166 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6167
6168 * math/w_remainder_compat.c: Remove duplicate inclusion of
6169 math-svid-compat.h.
6170 * math/w_remainderf_compat.c: Likewise.
6171 * math/w_remainderl_compat.c: Likewise.
6172
6173 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6174
6175 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6176
6177 2017-08-22 Joseph Myers <joseph@codesourcery.com>
6178
6179 [BZ #21684]
6180 * math/tgmath.h (__floating_type): Simplify definitions.
6181 (__real_integer_type): New macro.
6182 (__complex_integer_type): Likewise.
6183 (__expr_is_real): Likewise.
6184 (__tgmath_real_type_sub): Update comment to describe handling of
6185 complex types.
6186 (__tgmath_complex_type_sub): New macro.
6187 (__tgmath_complex_type): Likewise.
6188 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6189 (__TGMATH_CF128): Use __expr_is_real.
6190 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
6191 __expr_is_real.
6192 (__TGMATH_BINARY_REAL_IMAG): Likewise.
6193 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
6194 * math/gen-tgmath-tests.py (Type.create_type): Create complex
6195 integer types.
6196
6197 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6198
6199 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
6200 macro.
6201 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
6202 alias.
6203 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
6204 Likewise.
6205
6206 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
6207 nanosleep_not_cancel with __nanosleep_nocancel.
6208 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
6209 (__nanosleep_nocancel): New macro.
6210 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
6211 function.
6212 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
6213 macro.
6214 (__nanosleep_nocancel): New prototype.
6215
6216 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
6217 pause_not_cancel with __pause_nocancel.
6218 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
6219 (__pause_nocancel): New macro.
6220 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
6221 macro.
6222 (__pause_nocancel): New prototype.
6223 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
6224
6225 2017-08-22 Martin Sebor <msebor@redhat.com>
6226
6227 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
6228 to return a pointer to the same type as the target function.
6229
6230 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
6231
6232 [BZ #18822]
6233 [BZ #21986]
6234 * include/printf.h (__printf_fphex): Add attribute_hidden.
6235 (__guess_grouping): New prototype.
6236 * stdio-common/printf_fp.c (__guess_grouping): Removed.
6237 * stdio-common/reg-printf.c (__register_printf_specifier): Add
6238 libc_hidden_proto and libc_hidden_def.
6239 * stdlib/strfmon_l.c (__guess_grouping): Removed.
6240 (__vstrfmon_l): Remove the third argument passed to
6241 __guess_grouping.
6242
6243 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6244
6245 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
6246 definition for issignaling that does not rely on __MATH_TG,
6247 since __MATH_TG uses __builtin_types_compatible_p, which is only
6248 available in C mode.
6249 (CFLAGS-test-math-issignaling.cc): New variable.
6250 * math/Makefile [CXX] (tests): Add test-math-issignaling.
6251 * math/test-math-issignaling.cc: New test for C++ implementation
6252 of type-generic issignaling.
6253 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6254 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
6255 options of test-math-issignaling on powerpc64le.
6256
6257 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
6258
6259 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6260 building libc.a.
6261 (hidden_proto): Likewise.
6262 (hidden_tls_proto): Likewise.
6263 (__hidden_proto): Likewise.
6264
6265 2017-08-22 Florian Weimer <fweimer@redhat.com>
6266
6267 math: Statically link tests of internal functionality.
6268 * math/Makefile (tests): Remove atest-exp, atest-sincos,
6269 atest-exp2.
6270 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
6271 (gmp-objs): Remove assignment.
6272 (atest-exp, atest-sincos, atest-exp2): Remove targets.
6273
6274 2017-08-22 Joseph Myers <joseph@codesourcery.com>
6275
6276 [BZ #21987]
6277 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
6278 and copy to ...
6279 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
6280 ... here.
6281 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
6282 ... and here.
6283
6284 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
6285 variable definitions above inclusion of ../Rules.
6286
6287 2017-08-21 Joseph Myers <joseph@codesourcery.com>
6288
6289 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
6290 case calling __builtin_unreachable.
6291
6292 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6293
6294 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
6295 __waitpid_nocancel.
6296 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
6297 (__waitpid_nocancel): New macro.
6298 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
6299 macro.
6300 (__waitpid_nocancel): Replace macro with a function.
6301 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
6302 function.
6303
6304 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
6305 __fcntl_nocancel.
6306 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
6307 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
6308
6309 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
6310 __writev_nocancel_nostatus.
6311 (write_call_graph): Likewise.
6312 (write_bb_counts): Likewise.
6313 * resolv/herror.c (herror): Likewise.
6314 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
6315 macro.
6316 (__writev_nocancel_nostatus): New macro.
6317 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
6318 Remove macro.
6319 (__writev_nocancel_nostatus): New function.
6320
6321 2017-08-21 Joseph Myers <joseph@codesourcery.com>
6322
6323 Revert:
6324 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6325
6326 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6327 building libc.a.
6328 (hidden_proto): Likewise.
6329 (hidden_tls_proto): Likewise.
6330 (__hidden_proto): Likewise.
6331
6332 [BZ #21973]
6333 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
6334 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6336 Likewise.
6337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
6338 Likewise.
6339 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6340 Likewise.
6341 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
6342 Likewise.
6343 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
6344 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6345 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6346 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6347 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
6348 GLIBC_2.0 sqrtl symbol.
6349
6350 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
6351 [__USE_MISC] (_LIB_VERSION): Likewise.
6352 [__USE_MISC] (struct exception): Likewise.
6353 [__USE_MISC] (matherr): Likewise.
6354 [__USE_MISC] (DOMAIN): Likewise.
6355 [__USE_MISC] (SING): Likewise.
6356 [__USE_MISC] (OVERFLOW): Likewise.
6357 [__USE_MISC] (UNDERFLOW): Likewise.
6358 [__USE_MISC] (TLOSS): Likewise.
6359 [__USE_MISC] (PLOSS): Likewise.
6360 [__USE_MISC] (HUGE): Likewise.
6361 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
6362 * math/math-svid-compat.h: New file.
6363 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
6364 and matherrl.
6365 * include/math.h [!_ISOMAC] (__matherr): Remove.
6366 * manual/arith.texi (FP Exceptions): Do not document matherr.
6367 * math/Makefile (tests): Change test-matherr to test-matherr-3.
6368 (tests-internal): New variable.
6369 (install-lib): Do not add libieee.a.
6370 (non-lib.a): Likewise.
6371 (extra-objs): Do not add libieee.a and ieee-math.o.
6372 (CPPFLAGS-s_lib_version.c): Remove variable.
6373 ($(objpfx)libieee.a): Remove rule.
6374 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
6375 * math/ieee-math.c: Remove.
6376 * math/libm-test-support.c (matherr): Remove.
6377 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
6378 and license notices. Include <math-svid-compat.h> and
6379 <shlib-compat.h>.
6380 (matherr): Undefine as macro. Use compat_symbol_reference.
6381 (_LIB_VERSION): Likewise.
6382 * math/test-matherr-2.c: New file.
6383 * math/test-matherr-3.c: Likewise.
6384 * sysdeps/generic/math_private.h (__kernel_standard): Remove
6385 declaration.
6386 (__kernel_standard_f): Likewise.
6387 (__kernel_standard_l): Likewise.
6388 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
6389 <math_private.h>. Include <math-svid-compat.h>.
6390 (_LIB_VERSION): Undefine as macro.
6391 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
6392 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
6393 [LIBM_SVID_COMPAT], use compat_symbol.
6394 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
6395 <math_private.h>. Include <math-svid-compat.h>.
6396 (matherr): Undefine as macro.
6397 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
6398 compat_symbol.
6399 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
6400 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
6401 compat_symbol_reference.
6402 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
6403 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
6404 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
6405 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
6406 (MATHERR_D): Remove declaration.
6407 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
6408 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
6409 [LIBM_BUILD] (pmatherrf): Likewise.
6410 [LIBM_BUILD] (pmatherr): Likewise.
6411 [LIBM_BUILD] (pmatherrl): Likewise.
6412 (DOMAIN): Likewise.
6413 (SING): Likewise.
6414 (OVERFLOW): Likewise.
6415 (UNDERFLOW): Likewise.
6416 (TLOSS): Likewise.
6417 (PLOSS): Likewise.
6418 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
6419 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
6420 compat_symbol.
6421 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
6422 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
6423 compat_symbol.
6424 * math/lgamma-compat.h: Include <math-svid-compat.h>.
6425 * math/w_acos_compat.c: Likewise.
6426 * math/w_acosf_compat.c: Likewise.
6427 * math/w_acosh_compat.c: Likewise.
6428 * math/w_acoshf_compat.c: Likewise.
6429 * math/w_acoshl_compat.c: Likewise.
6430 * math/w_acosl_compat.c: Likewise.
6431 * math/w_asin_compat.c: Likewise.
6432 * math/w_asinf_compat.c: Likewise.
6433 * math/w_asinl_compat.c: Likewise.
6434 * math/w_atan2_compat.c: Likewise.
6435 * math/w_atan2f_compat.c: Likewise.
6436 * math/w_atan2l_compat.c: Likewise.
6437 * math/w_atanh_compat.c: Likewise.
6438 * math/w_atanhf_compat.c: Likewise.
6439 * math/w_atanhl_compat.c: Likewise.
6440 * math/w_cosh_compat.c: Likewise.
6441 * math/w_coshf_compat.c: Likewise.
6442 * math/w_coshl_compat.c: Likewise.
6443 * math/w_exp10_compat.c: Likewise.
6444 * math/w_exp10f_compat.c: Likewise.
6445 * math/w_exp10l_compat.c: Likewise.
6446 * math/w_exp2_compat.c: Likewise.
6447 * math/w_exp2f_compat.c: Likewise.
6448 * math/w_exp2l_compat.c: Likewise.
6449 * math/w_fmod_compat.c: Likewise.
6450 * math/w_fmodf_compat.c: Likewise.
6451 * math/w_fmodl_compat.c: Likewise.
6452 * math/w_hypot_compat.c: Likewise.
6453 * math/w_hypotf_compat.c: Likewise.
6454 * math/w_hypotl_compat.c: Likewise.
6455 * math/w_j0_compat.c: Likewise.
6456 * math/w_j0f_compat.c: Likewise.
6457 * math/w_j0l_compat.c: Likewise.
6458 * math/w_j1_compat.c: Likewise.
6459 * math/w_j1f_compat.c: Likewise.
6460 * math/w_j1l_compat.c: Likewise.
6461 * math/w_jn_compat.c: Likewise.
6462 * math/w_jnf_compat.c: Likewise.
6463 * math/w_jnl_compat.c: Likewise.
6464 * math/w_lgamma_main.c: Likewise.
6465 * math/w_lgamma_r_compat.c: Likewise.
6466 * math/w_lgammaf_main.c: Likewise.
6467 * math/w_lgammaf_r_compat.c: Likewise.
6468 * math/w_lgammal_main.c: Likewise.
6469 * math/w_lgammal_r_compat.c: Likewise.
6470 * math/w_log10_compat.c: Likewise.
6471 * math/w_log10f_compat.c: Likewise.
6472 * math/w_log10l_compat.c: Likewise.
6473 * math/w_log2_compat.c: Likewise.
6474 * math/w_log2f_compat.c: Likewise.
6475 * math/w_log2l_compat.c: Likewise.
6476 * math/w_log_compat.c: Likewise.
6477 * math/w_logf_compat.c: Likewise.
6478 * math/w_logl_compat.c: Likewise.
6479 * math/w_pow_compat.c: Likewise.
6480 * math/w_powf_compat.c: Likewise.
6481 * math/w_powl_compat.c: Likewise.
6482 * math/w_remainder_compat.c: Likewise.
6483 * math/w_remainderf_compat.c: Likewise.
6484 * math/w_remainderl_compat.c: Likewise.
6485 * math/w_scalb_compat.c: Likewise.
6486 * math/w_scalbf_compat.c: Likewise.
6487 * math/w_scalbl_compat.c: Likewise.
6488 * math/w_sinh_compat.c: Likewise.
6489 * math/w_sinhf_compat.c: Likewise.
6490 * math/w_sinhl_compat.c: Likewise.
6491 * math/w_sqrt_compat.c: Likewise.
6492 * math/w_sqrtf_compat.c: Likewise.
6493 * math/w_sqrtl_compat.c: Likewise.
6494 * math/w_tgamma_compat.c: Likewise.
6495 * math/w_tgammaf_compat.c: Likewise.
6496 * math/w_tgammal_compat.c: Likewise.
6497 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
6498 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6499 * sysdeps/ieee754/k_standard.c: Likewise.
6500 * sysdeps/ieee754/k_standardf.c: Likewise.
6501 * sysdeps/ieee754/k_standardl.c: Likewise.
6502 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6503 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6504 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6505 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6506 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6507 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6508 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6509 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
6510 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6512 Likewise.
6513 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6514 Likewise.
6515 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
6516 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6517 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6518 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6519
6520 2017-08-21 Florian Weimer <fweimer@redhat.com>
6521
6522 [BZ #21864]
6523 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
6524 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
6525 Move before inclusion of ../Rules.
6526
6527 2017-08-21 Florian Weimer <fweimer@redhat.com>
6528
6529 [BZ #21972]
6530 * assert/assert.h (assert): Use static_cast (bool) for C++.
6531 Use the ternary operator in the warning branch for GNU C.
6532 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
6533 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
6534 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
6535 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
6536 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
6537
6538 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6539
6540 [BZ #18822]
6541 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6542 (__syscall_clock_gettime): Add attribute_hidden.
6543 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
6544 (__start_context): Likewise.
6545
6546 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6547
6548 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6549 building libc.a.
6550 (hidden_proto): Likewise.
6551 (hidden_tls_proto): Likewise.
6552 (__hidden_proto): Likewise.
6553
6554 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6555
6556 * include/libc-symbols.h (attribute_hidden): Enable hidden
6557 visibility in libc.a compiled with PIE.
6558
6559 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6560
6561 [BZ #18822]
6562 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
6563 Add attribute_hidden.
6564
6565 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6566
6567 [BZ #21864]
6568 * Makerules (all-nonlib): Add $(others-extras).
6569 * catgets/Makefile (others-extras): New.
6570 * elf/Makefile (others-extras): Likewise.
6571 * nss/Makefile (others-extras): Likewise.
6572
6573 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6574
6575 [BZ #18822]
6576 * csu/libc-start.c (__libc_multiple_libcs): Removed.
6577 * elf/dl-open.c: Include <libc-internal.h>.
6578 (__libc_multiple_libcs): Removed.
6579 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
6580 <hp-timing.h>.
6581 * include/libc-internal.h (__libc_multiple_libcs): New.
6582 * misc/sbrk.c: Include <libc-internal.h>.
6583 (__libc_multiple_libcs): Removed.
6584
6585 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6586
6587 [BZ #18822]
6588 * grp/initgroups.c (__nss_group_database): Removed.
6589 (__nss_initgroups_database): Likewise.
6590 * nscd/gai.c (__nss_hosts_database): Likewise.
6591 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
6592 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
6593 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
6594 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
6595 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
6596 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
6597 attribute_hidden.
6598 * nss/nsswitch.c (__nss_database_custom): Define only if
6599 USE_NSCD is defined.
6600 (__nss_configure_lookup): Use __nss_database_custom only if
6601 USE_NSCD is defined.
6602 * nss/nsswitch.h (__nss_database_custom): Declare only if
6603 USE_NSCD is defined. Add attribute_hidden.
6604 (__nss_setent): Add attribute_hidden.
6605 (__nss_endent): Likewise.
6606 (__nss_getent_r): Likewise.
6607 (__nss_getent): Likewise.
6608 (DEFINE_DATABASE): Declare __nss_##arg##_database.
6609
6610 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6611
6612 [BZ #18822]
6613 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
6614 libc_hidden_proto and libc_hidden_def.
6615
6616 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6617
6618 [BZ #18822]
6619 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
6620 Add libc_hidden_proto.
6621 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
6622 Add libc_hidden_def.
6623
6624 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6625
6626 [BZ #21974]
6627 * gmon/Makefile (routines): Remove bb_init_func and
6628 bb_exit_func.
6629 (elide-routines.os): Removed.
6630 * gmon/bb_exit_func.c: Likewise.
6631 * gmon/bb_init_func.c: Likewise.
6632 * include/sys/gmon.h (__bb): Likewise.
6633 (__bb_init_func): Likewise.
6634 (__bb_exit_func): Likewise.
6635 * sysdeps/alpha/bb_init_func.S: Likewise.
6636
6637 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6638
6639 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
6640 * include/setjmp.h (____longjmp_chk): Here. Add
6641 attribute_hidden.
6642
6643 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
6644
6645 [BZ #18822]
6646 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
6647 attribute_hidden.
6648 (__strspn_sse2): Likewise.
6649
6650 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6651
6652 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
6653 (close_not_cancel_no_status): Likewise.
6654 (__close_nocancel): New macro.
6655 (__close_nocancel_nostatus): Likewise.
6656 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
6657 macro.
6658 (close_not_cancel): Likewise.
6659 (close_not_cancel_no_status): Likewise.
6660 (__close_nocancel): New prototype.
6661 (__close_nocancel_nostatus): New function.
6662 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
6663 * catgets/open_catalog.c (__open_catalog): Replace
6664 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
6665 * gmon/gmon.c (write_gmon): Likewise.
6666 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6667 * intl/loadmsgcat.c (close): Likewise.
6668 * io/ftw.c (open_dir_stream): Likewise.
6669 (ftw_startup): Likewise.
6670 * libio/fileops.c (_IO_file_open): Likewise.
6671 (_IO_file_close_mmap): Likewise.
6672 (_IO_file_close): Likewise.
6673 * libio/iopopen.c (_IO_dup2): Likewise.
6674 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6675 * locale/loadlocale.c (_nl_load_locale): Likewise.
6676 * login/utmp_file.c (pututline_file): Likewise.
6677 (endutent_file): Likewise.
6678 * misc/daemon.c (daemon): Likewise.
6679 * nscd/nscd_getai.c (__nscd_getai): Likewise.
6680 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6681 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6682 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6683 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6684 * nscd/nscd_helper.c (open_socket): Likewise.
6685 (__nscd_open_socket): Likewise.
6686 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6687 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
6688 (__nscd_innetgr): Likewise.
6689 * nss/nss_db/db-open.c (internal_setent): Likewise.
6690 * resolv/res-close.c (__res_iclose): Likewise.
6691 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
6692 * sysdeps/posix/closedir.c (__closedir): Likewise.
6693 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
6694 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6695 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6696 (opendir_tail): Likewise.
6697 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6698 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
6699 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
6700 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
6701 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6702 (gethostid): Likewise.
6703 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6704 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6705 Likewise.
6706 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6707 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
6708 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6709 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6710 Likewise.
6711 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
6712 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
6713 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6714 Likewise.
6715 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
6716 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6717 Likewise.
6718 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6719 Likewise.
6720 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6721 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6722 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6723 __close_nocancel.
6724
6725 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
6726 (openat_not_cancel_3): Likewise.
6727 (openat64_not_cancel_3): Likewise).
6728 (openat_not_cancel_3): Likewise).
6729 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
6730 macro.
6731 (openat_not_cancel_3): Likewise.
6732 (openat64_not_cancel): Likewise.
6733 (openat64_not_cancel_3): Likewise.
6734 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
6735 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
6736 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
6737 __open{64}_nocancel.
6738 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6739 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6740 * sysdeps/posix/opendir.c (__opendirat): Likewise.
6741
6742 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6743
6744 [BZ #18822]
6745 * include/argz.h (__argz_create_sep): New function prototype.
6746 (__argz_append): Likewise.
6747 (__argz_add): Likewise.
6748 (__argz_add_sep): Likewise.
6749 (__argz_delete): Likewise.
6750 (__argz_insert): Likewise.
6751 (__argz_replace): Likewise.
6752 * string/argz.h (__argz_create_sep): Removed.
6753 (__argz_append): Likewise.
6754 (__argz_add): Likewise.
6755 (__argz_add_sep): Likewise.
6756 (__argz_delete): Likewise.
6757 (__argz_insert): Likewise.
6758 (__argz_replace): Likewise.
6759
6760 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6761
6762 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
6763 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
6764 (GNU_PROPERTY_STACK_SIZE): Likewie.
6765 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
6766 (GNU_PROPERTY_LOPROC): Likewise.
6767 (GNU_PROPERTY_HIPROC): Likewise.
6768 (GNU_PROPERTY_LOUSER): Likewise.
6769 (GNU_PROPERTY_HIUSER): Likewise.
6770 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
6771 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
6772 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
6773 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
6774 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
6775 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
6776 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
6777 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
6778 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
6779 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
6780 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
6781 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
6782 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
6783 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
6784 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
6785 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
6786 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
6787 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
6788 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
6789 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
6790 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
6791 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
6792 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
6793
6794 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6795
6796 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
6797 in C++ mode.
6798
6799 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6800
6801 [BZ #21930]
6802 * math/math.h (isinf): Check if in C or C++ mode before using
6803 __builtin_types_compatible_p, since this is a C mode feature.
6804
6805 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6806
6807 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
6808 (__write_nocancel): New macro.
6809 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
6810 Rewrite as a function prototype.
6811 (write_not_cancel): Remove macro.
6812 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
6813 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
6814 (write_gmon): Likewise.
6815 * libio/fileops.c (_IO_new_file_write): Likewise.
6816 * login/utmp_file.c (pututline_file): Likewise.
6817 (updwtmp_file): Likewise.
6818 * stdio-common/psiginfo.c (psiginfo): Likewise.
6819 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6820 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6821 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6822 Likewise.
6823 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6824 Likewise.
6825
6826 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
6827 (__read_nocancel): New macro.
6828 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6829 __read_nocancel.
6830 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
6831 macro.
6832 (__read_nocancel): New prototype.
6833 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
6834 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
6835 with __read_nocancel.
6836 * intl/loadmsgcat.c (read): Likewise.
6837 * libio/fileops.c (_IO_file_read): Likewise.
6838 * locale/loadlocale.c (_nl_load_locale): Likewise.
6839 * login/utmp_file.c (getutent_r_file): Likewise.
6840 (internal_getut_r): Likewise.
6841 (getutline_r_file): Likewise.
6842 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6843 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6844 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6845 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6846 Likewise.
6847 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
6848 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6849 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6850 Likewise.
6851 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6852 Likewise.
6853 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6854 Likewise.
6855 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6856 Likewise.
6857 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6858
6859 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6860
6861 [BZ #21966]
6862 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
6863 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
6864 usable.
6865
6866 2017-08-17 DJ Delorie <dj@redhat.com>
6867
6868 * bug17079.c: Update to new test harness.
6869 * test-digits-dots.c: Likewise.
6870 * test-netdb.c: Likewise.
6871 * tst-field.c: Likewise.
6872 * tst-nss-getpwent.c: Likewise.
6873 * tst-nss-static.c: Likewise.
6874 * tst-nss-test1.c: Likewise.
6875 * tst-nss-test2.c: Likewise.
6876 * tst-nss-test3.c: Likewise.
6877 * tst-nss-test4.c: Likewise.
6878 * tst-nss-test5.c: Likewise.
6879
6880 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6881
6882 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
6883 (open_not_cancel_2): Likewise.
6884 (open_nocancel): New macro.
6885 (open64_nocancel): Likewise.
6886 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
6887 (open_not_cancel_2): Likewise.
6888 (__open_nocancel): New prototype.
6889 (__open64_nocancel): Likewise.
6890 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6891 __open_nocancel.
6892 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
6893 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
6894 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
6895 with __open_nocancel.
6896 * csu/check_fds.c (check_one_fd): Likewise.
6897 * gmon/gmon.c (write_gmon): Likewise.
6898 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
6899 * intl/loadmsgcat.c (open): Likewise.
6900 * libio/fileops.c (_IO_file_open): Likewise.
6901 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6902 * locale/loadlocale.c (_nl_load_locale): Likewise.
6903 * login/utmp_file.c (setutent_file): Likewise.
6904 * misc/daemon.c (daemon): Likewise.
6905 * nss/nss_db/db-open.c (internal_setent): Likewise.
6906 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6907 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
6908 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6909 (__opendir): Likewise.
6910 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6911 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6912 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6913 (gethostid): Likewise.
6914 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6915 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6916 Likewise.
6917 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6918 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
6919 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6920 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6921 Likewise.
6922 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6923 Likewise.
6924 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6925 Likewise.
6926 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
6927 Likewise.
6928 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6929 Likewise.
6930 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6931 Likewise.
6932 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6933 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6934
6935 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
6936
6937 * benchtests/bench-skeleton.c (main): Add support for
6938 latency benchmarking.
6939 * benchtests/scripts/bench.py: Add support for latency benchmarking.
6940
6941 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
6942
6943 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
6944 the startup object.
6945
6946 2017-08-17 Florian Weimer <fweimer@redhat.com>
6947
6948 * include/sys/socket.h (__opensock): Remove internal_function.
6949 * socket/opensock.c (__opensock): Likewise.
6950 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
6951
6952 2017-08-16 Joseph Myers <joseph@codesourcery.com>
6953
6954 [BZ #21944]
6955 * signal/bits/types/__sigval_t.h: New file.
6956 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
6957 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
6958 and define sigval_t using __sigval_t.
6959 * include/bits/types/__sigval_t.h: New file.
6960 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
6961 instead of <bits/types/__sigval_t.h>.
6962 (struct sigevent): Use __sigval_t instead of sigval_t.
6963 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
6964 instead of <bits/types/__sigval_t.h>.
6965 (siginfo_t): Use __sigval_t instead of sigval_t.
6966 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
6967 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6968 (struct sigevent): Use __sigval_t instead of sigval_t.
6969 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
6970 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6971 (siginfo_t): Use __sigval_t instead of sigval_t.
6972 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
6973
6974 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6975
6976 * NEWS: Remove "[Add new features here]" for 2.27.
6977
6978 2017-08-16 Joseph Myers <joseph@codesourcery.com>
6979
6980 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
6981 libc.so.
6982
6983 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6984
6985 * NEWS: Mention x86-64 FMA optimization.
6986
6987 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6988
6989 [BZ #21912]
6990 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6991 Add e_expf-fma.
6992 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
6993 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
6994 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
6995
6996 2017-08-16 Andreas Schwab <schwab@suse.de>
6997
6998 [BZ #16750]
6999 CVE-2009-5064
7000 * elf/ldd.bash.in: Never run file directly.
7001
7002 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
7003
7004 [BZ #21955]
7005 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
7006 (L(SP_INF_0)): Likewise.
7007
7008 2017-08-15 Florian Weimer <fweimer@redhat.com>
7009
7010 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
7011 run-built-tests.
7012
7013 2017-08-15 Florian Weimer <fweimer@redhat.com>
7014
7015 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
7016 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
7017 BROKEN_THREAD_SIGNALS code.
7018 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
7019 request_list): Remove caller_pid member used for
7020 BROKEN_THREAD_SIGNALS.
7021 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
7022 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7023 Remove BROKEN_THREAD_SIGNALS support.
7024 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7025 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
7026
7027 2017-08-15 Florian Weimer <fweimer@redhat.com>
7028
7029 * gmon/Makefile (tests): Add tst-gmon.
7030 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
7031 Set.
7032 (tests-special): Add tst-gmon-prof.out.
7033 (tst-gmon.out): Depend on clean-tst-gmon-data.
7034 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
7035 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
7036 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
7037 startup object.
7038 * aclocal.m4 (GPROF): Set and substitute.
7039 * config.amke.in (GPROF): Set.
7040 * configure: Regenerate.
7041
7042 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
7043
7044 * elf/elf.h A (NT_PPC_TAR): New macro.
7045 (NT_PPC_PPR): Likewise.
7046 (NT_PPC_DSCR): Likewise.
7047 (NT_PPC_EBB): Likewise.
7048 (NT_PPC_PMU): Likewise.
7049 (NT_PPC_TM_CGPR): Likewise.
7050 (NT_PPC_TM_CFPR): Likewise.
7051 (NT_PPC_TM_CVMX): Likewise.
7052 (NT_PPC_TM_CVSX): Likewise.
7053 (NT_PPC_TM_SPR): Likewise.
7054 (NT_PPC_TM_CTAR): Likewise.
7055 (NT_PPC_TM_CPPR): Likewise.
7056 (NT_PPC_TM_CDSCR): Likewise.
7057
7058 2017-08-15 Florian Weimer <fweimer@redhat.com>
7059
7060 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
7061 regparm (2) instead of internal_function.
7062 (_MCOUNT_DECL): Adjust.
7063
7064 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
7065
7066 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
7067 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
7068
7069 2017-08-14 Joseph Myers <joseph@codesourcery.com>
7070
7071 * conform/data/sys/wait.h-data (si_value): Do not expect for
7072 XPG42.
7073
7074 2017-08-14 Florian Weimer <fweimer@redhat.com>
7075
7076 [BZ #21962]
7077 NSS: Create stubs for accidentally exported lookup functions.
7078 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
7079 Remove declaration.
7080 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7081 (ether_hostton): Call __nss_ethers_lookup2 instead.
7082 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
7083 (ether_ntohost): Call __nss_ethers_lookup2 instead.
7084 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
7085 (setup): Call __nss_netgroup_lookup2 instead.
7086 * nss/Makefile (routines): Add compat-lookup.
7087 * nss/Versions (GLIBC_2.27): Add symbol version.
7088 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
7089 (DB_COMPAT_FCT): Remove.
7090 * nss/compat-lookup.c: New file.
7091 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
7092 from databases.def.
7093 * nss/service-lookup.c (NO_COMPAT): Remove definition.
7094 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
7095 (netname2user): Call __nss_publickey_lookup2 instead.
7096 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
7097 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
7098 instead.
7099
7100 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7101 Sergei Trofimovich <slyfox@inbox.ru>
7102
7103 [BZ #21908]
7104 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
7105 Rename to MMAP2_PAGE_UNIT.
7106 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
7107 __OFF_T_MATCHES_OFF64_T is not defined.
7108 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
7109 uint64_t.
7110 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
7111 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
7112
7113 2017-08-14 Florian Weimer <fweimer@redhat.com>
7114
7115 i386: Do not set internal_function.
7116 * config.h.in (USE_REGPARMS, internal_function): Remove.
7117 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
7118 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
7119
7120 2017-08-14 Florian Weimer <fweimer@redhat.com>
7121
7122 * elf/dl-init.c (_dl_init): Remove internal_function.
7123 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
7124 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
7125
7126 2017-08-14 Florian Weimer <fweimer@redhat.com>
7127
7128 * elf/rtld.c (_dl_start): Remove internal_function.
7129 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
7130 _dl_start.
7131
7132 2017-08-14 Florian Weimer <fweimer@redhat.com>
7133
7134 * elf/dl-fini.c (_dl_fini): Remove internal_function
7135 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
7136
7137 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
7138
7139 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
7140 (bit_cpu_SHSTK): Likewise.
7141 (index_cpu_IBT): Likewise.
7142 (index_cpu_SHSTK): Likewise.
7143 (reg_IBT): Likewise.
7144 (reg_SHSTK): Likewise.
7145 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7146 Handle index_cpu_IBT and index_cpu_SHSTK.
7147
7148 2017-08-14 Mike FABIAN <mfabian@redhat.com>
7149
7150 [BZ #19982]
7151 * po/fr.po: Fix spelling mistake.
7152
7153 2017-08-13 Florian Weimer <fweimer@redhat.com>
7154
7155 * elf/dl-addr.c (_dl_addr): Remove internal_function.
7156 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
7157 (_dl_catch_error, _dl_receive_error): Likewise.
7158 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
7159 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
7160 (_dl_deallocate_tls): Likewise.
7161 * include/dlfcn.h (_dl_addr): Likewise.
7162 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
7163 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
7164 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
7165 Likewise.
7166
7167 2017-08-13 Florian Weimer <fweimer@redhat.com>
7168
7169 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
7170 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
7171 internal_function.
7172 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
7173
7174 2017-08-13 Florian Weimer <fweimer@redhat.com>
7175
7176 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
7177 internal_function.
7178 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
7179 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
7180 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
7181 internal_function from _dl_make_stack_executable_hook member.
7182 (_dl_make_stack_executable): Remove internal_function.
7183 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
7184 Likewise.
7185 * sysdeps/unix/sysv/linux/dl-execstack.c
7186 (_dl_make_stack_executable): Likewise.
7187
7188 2017-08-13 Florian Weimer <fweimer@redhat.com>
7189
7190 * sysdeps/unix/sysv/linux/netlinkaccess.h
7191 (__netlink_assert_response): Remove internal_function.
7192 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7193 (__netlink_assert_response): Likewise.
7194
7195 2017-08-13 Florian Weimer <fweimer@redhat.com>
7196
7197 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
7198 internal_function.
7199 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
7200
7201 2017-08-13 Florian Weimer <fweimer@redhat.com>
7202
7203 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
7204 internal_function.
7205 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
7206 * inet/netgroup.h (__internal_setnetgrent)
7207 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
7208 * inet/getnetgrent_r.c (__internal_setnetgrent)
7209 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
7210 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
7211 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
7212 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
7213 * nss/nsswitch.h (db_lookup_function): Likewise.
7214
7215 2017-08-13 Florian Weimer <fweimer@redhat.com>
7216
7217 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
7218 Remove internal_function.
7219 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
7220 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
7221 message argument on the stack.
7222 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
7223 Likeweise.
7224
7225 2017-08-12 Mike FABIAN <mfabian@redhat.com>
7226
7227 Adapt test case data to the changes in the thousands
7228 separators.
7229
7230 [BZ #20756]
7231 * localedata/tst-langinfo.sh: Adapt test case data.
7232 * stdlib/tst-strfmon_l.c: Likewise.
7233 * stdlib/tst-strtod4.c: Likewise.
7234 * stdlib/tst-strtod5i.c: Likewise.
7235
7236 2017-08-11 Florian Weimer <fweimer@redhat.com>
7237
7238 [BZ #21242]
7239 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
7240 Suppress pedantic warning resulting from statement expression.
7241 (__ASSERT_FUNCTION): Add missing __extension__.
7242
7243 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7244
7245 * benchtests/bench-memmove-large.c: Print output in JSON
7246 format.
7247 * benchtests/bench-memmove.c: Likewise.
7248
7249 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
7250 * benchtests/bench-memchr.c (do_one_test): Likewise.
7251 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
7252 * benchtests/bench-memcpy.c (do_one_test): Likewise.
7253 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
7254 * benchtests/bench-memmove.c (do_one_test): Likewise.
7255 * benchtests/bench-memset-large.c (do_one_test): Likewise.
7256 * benchtests/bench-memset.c (do_one_test): Likewise.
7257 * benchtests/bench-string.h (test_init): Remove memsets.
7258
7259 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
7260
7261 * manual/lang.texi
7262 (Computing the Width of an Integer Data Type): Rename section to
7263 "Width of an Integer Type". Remove inaccurate statement regarding
7264 lack of C language facilities for determining width of integer
7265 types, and reorder content to improve flow and context of
7266 discussion.
7267
7268 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
7269
7270 * lang.texi (va_copy): Change standard from ISO to C99.
7271 (__va_copy): Add standard and header annotation.
7272 Update description for clarity of origins and current use.
7273
7274 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7275
7276 [BZ #21941]
7277 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
7278 xssqrtqp requires operands to be in Vector Registers
7279 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
7280 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
7281 (__ieee754_sqrtf128): Likewise.
7282
7283 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7284
7285 * sysdeps/aarch64/memcmp.S (memcmp):
7286 Rewrite of optimized memcmp.
7287
7288 2017-08-10 Florian Weimer <fweimer@redhat.com>
7289
7290 Introduce ld.so exceptions.
7291 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
7292 (_dl_exception_create, _dl_exception_create_format)
7293 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
7294 (_dl_catch_exception): Declare.
7295 (_dl_catch_error): Update comment.
7296 * elf/dl-error-skeleton.c (struct catch): Replace objname,
7297 errstring, malloced members with exception member.
7298 (_dl_out_of_memory): Remove.
7299 (fatal_error): New function, extracted from _dl_signal_error.
7300 (_dl_signal_exception, _dl_signal_cexception): New functions.
7301 (_dl_signal_error): Call _dl_exception_create to allocate an
7302 exception object.
7303 (_dl_catch_exception): New function, based on _dl_catch_error.
7304 (_dl_catch_error): Implement using _dl_catch_exception.
7305 * elf/dl-exception.c: New file.
7306 * elf/Makefile (dl-routines): Add dl-exception.
7307 (elide-routines.os): Likewise.
7308 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
7309 _dl_exception_create_format, _dl_exception_free.
7310 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
7311 _dl_signal_exception.
7312 * elf/dl-lookup.c (make_string): Remove.
7313 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
7314 _dl_signal_cexception, _dl_exception_free.
7315 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
7316 _dl_signal_exception.
7317 * elf/dl-sym.c (do_sym): Likewise.
7318 * elf/dl-version.c (make_string): Remove.
7319 (match_symbol): Use _dl_exception_create_format,
7320 _dl_signal_cexception, _dl_exception_free.
7321 (_dl_check_map_versions): Likewise.
7322 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
7323 _dl_catch_exception.
7324 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7325 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7326 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7327 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7328 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7329 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7330 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7331 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7332 Likewise.
7333 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7335 (ld.so): Likewise.
7336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7337 (ld.so): Likewise.
7338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7339 Likewise.
7340 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7341 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7342 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7343 Likewise.
7344 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7345 Likewise.
7346 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7347
7348 2017-08-10 Florian Weimer <fweimer@redhat.com>
7349
7350 * inet/net-internal.h (__inet6_scopeid_pton): Remove
7351 attribute_hidden, internal_function.
7352 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
7353 internal_function.
7354
7355 2017-08-10 Florian Weimer <fweimer@redhat.com>
7356
7357 * malloc/malloc.c (get_max_fast): Reimplement as an inline
7358 function which calls __builtin_unreachable.
7359
7360 2017-08-10 Mike FABIAN <mfabian@redhat.com>
7361
7362 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
7363 Indian monetary formatting
7364 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
7365 test cases.
7366
7367 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
7368
7369 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
7370 Fix typo in comment.
7371
7372 [BZ #21928]
7373 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
7374 PTRACE_SEIZE_DEVEL): Remove.
7375 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
7376 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7377 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7378 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7379 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7380
7381 2017-08-09 Joseph Myers <joseph@codesourcery.com>
7382
7383 * posix/bits/types.h (__qaddr_t): Remove.
7384
7385 [BZ #21457]
7386 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
7387 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7388 __glibc_reserved1.
7389 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
7390 (ucontext_t): Use __ctx with uc_flags.
7391 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
7392 (__ctxt): Likewise.
7393 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7394 __glibc_reserved1.
7395 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
7396 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7397 __glibc_reserved1.
7398 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
7399 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7400 __glibc_reserved1.
7401 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
7402 macro.
7403 (ucontext_t): Use __ctx with uc_flags.
7404 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
7405 (ucontext_t): Use __ctx with uc_flags.
7406 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
7407 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
7408 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
7409 (ucontext_t): Use __ctx with uc_flags.
7410 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
7411 undefine further down.
7412 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7413 __glibc_reserved1.
7414 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
7415 undefine further down.
7416 (ucontext_t): Use __ctx with uc_flags.
7417 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
7418 undefine further down.
7419 (ucontext_t): Use __ctx with uc_flags.
7420 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
7421 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
7422 Rename uc_pad to __glibc_reserved1.
7423 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
7424 undefine further down.
7425 (ucontext_t): Use __ctx with uc_flags.
7426 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
7427 further down.
7428 (ucontext_t): Use __ctx with uc_flags.
7429 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
7430 __ctx with uc_flags.
7431 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
7432 (ucontext_t): Use __ctx with uc_flags.
7433 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
7434 __ctx with uc_flags.
7435
7436 2017-08-09 Florian Weimer <fweimer@redhat.com>
7437
7438 [BZ #21932]
7439 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
7440 before early return.
7441
7442 2017-08-09 Andreas Schwab <schwab@suse.de>
7443
7444 [BZ #21041]
7445 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
7446 renamed alias.
7447
7448 [BZ #21041]
7449 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
7450 tst-compat-forwarder.
7451 (modules-names): Add tst-compat-forwarder-mod.
7452 ($(objpfx)tst-compat-forwarder): Depend on
7453 $(objpfx)tst-compat-forwarder-mod.so.
7454 * nptl/tst-compat-forwarder.c: New file.
7455 * nptl/tst-compat-forwarder-mod.c: New file.
7456
7457 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
7458
7459 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
7460 comments.
7461
7462 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
7463 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7464 memcpy_falkor.
7465 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
7466 Bump.
7467 (__libc_ifunc_impl_list): Add __memcpy_falkor.
7468 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
7469 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
7470 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7471 Add falkor.
7472 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
7473 New macro.
7474
7475 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7476
7477 [BZ #759]
7478 * manual/setjmp.texi (getcontex): Document uc_stack value
7479 compatibility differences.
7480
7481 2017-08-08 Joseph Myers <joseph@codesourcery.com>
7482
7483 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
7484 (old_malloc_hook): Likewise.
7485 (old_memalign_hook): Likewise.
7486 (old_realloc_hook): Likewise.
7487 (struct hdr): Likewise.
7488 (flood): Likewise.
7489 (freehook): Likewise.
7490 (mallochook): Likewise.
7491 (memalignhook): Likewise.
7492 (reallochook): Likewise.
7493 (mprobe): Likewise.
7494 * malloc/mtrace.c (mallwatch): Likewise.
7495 (tr_old_free_hook): Likewise.
7496 (tr_old_malloc_hook): Likewise.
7497 (tr_old_realloc_hook): Likewise.
7498 (tr_old_memalign_hook): Likewise.
7499 (tr_where): Likewise.
7500 (lock_and_info): Likewise.
7501 (tr_freehook): Likewise.
7502 (tr_mallochook): Likewise.
7503 (tr_reallochook): Likewise.
7504 (tr_memalignhook): Likewise.
7505 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
7506 * misc/mmap.c (__mmap): Likewise.
7507 * misc/mmap64.c (__mmap64): Likewise.
7508 * misc/mprotect.c (__mprotect): Likewise.
7509 * misc/msync.c (msync): Likewise.
7510 * misc/munmap.c (__munmap): Likewise.
7511 * posix/posix_madvise.c (posix_madvise): Likewise.
7512 * socket/send.c (__send): Likewise.
7513 * socket/sendto.c (__sendto): Likewise.
7514 * socket/setsockopt.c (__setsockopt): Likewise.
7515 * string/memcmp.c (__ptr_t): Remove macro.
7516 (MEMCMP): Use void * instead of ptr_t.
7517 * string/memrchr.c (__ptr_t): Remove macro.
7518 (__memrchr): Use void * instead of ptr_t.
7519 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
7520 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
7521 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
7522 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
7523 * sysdeps/mach/msync.c (msync): Likewise.
7524 * sysdeps/mach/munmap.c (__munmap): Likewise.
7525 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
7526 Likewise.
7527 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7528 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
7529 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
7530 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
7531 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
7532 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
7533 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
7534 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
7535 Likewise.
7536 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
7537 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
7538 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
7539 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
7540 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
7541 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
7542 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
7543 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
7544 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
7545 Likewise.
7546 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
7547 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
7548 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
7549 (MEMCMP): Use void * instead of ptr_t.
7550 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
7551 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
7552
7553 2017-08-08 Florian Weimer <fweimer@redhat.com>
7554
7555 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
7556 return statement.
7557
7558 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
7559
7560 [BZ #21913]
7561 * csu/libc-tls.c: Include <startup.h> first.
7562 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
7563 * elf/dl-tunables.c: Include <startup.h> first.
7564 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
7565 * sysdeps/generic/startup.h: New file.
7566 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
7567 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
7568 (I386_USE_SYSENTER): New. Defined to 0.
7569
7570 2017-08-08 Andreas Schwab <schwab@suse.de>
7571
7572 [BZ #21041]
7573 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
7574 * nptl/pt-system.c (system): Likewise.
7575
7576 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7577
7578 [BZ #21780]
7579 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
7580 EOPNOTSUPP.
7581 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
7582 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
7583 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
7584 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
7585 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7586 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7587 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7588
7589 2017-08-07 Joseph Myers <joseph@codesourcery.com>
7590
7591 [BZ #21899]
7592 * bits/sigaction.h (struct sigaction): Define sa_handler and
7593 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
7594 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7595 [__USE_XOPEN_EXTENDED].
7596 (SA_RESTART): Likewise.
7597 (SA_NODEFER): Likewise.
7598 (SA_RESETHAND): Likewise.
7599 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
7600 (struct sigaction): Define sa_handler and sa_sigaction using union
7601 also for [__USE_XOPEN_EXTENDED].
7602 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7603 [__USE_XOPEN_EXTENDED].
7604 (SA_RESTART): Likewise.
7605 (SA_NODEFER): Likewise.
7606 (SA_RESETHAND): Likewise.
7607 * sysdeps/unix/sysv/linux/bits/sigaction.h
7608 (struct sigaction): Define sa_handler and sa_sigaction using union
7609 also for [__USE_XOPEN_EXTENDED].
7610 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7611 [__USE_XOPEN_EXTENDED].
7612 (SA_RESTART): Likewise.
7613 (SA_NODEFER): Likewise.
7614 (SA_RESETHAND): Likewise.
7615 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
7616 (struct sigaction): Define sa_handler and sa_sigaction using union
7617 also for [__USE_XOPEN_EXTENDED].
7618 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7619 [__USE_XOPEN_EXTENDED].
7620 (SA_RESTART): Likewise.
7621 (SA_NODEFER): Likewise.
7622 (SA_RESETHAND): Likewise.
7623 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
7624 (struct sigaction): Define sa_handler and sa_sigaction using union
7625 also for [__USE_XOPEN_EXTENDED].
7626 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7627 [__USE_XOPEN_EXTENDED].
7628 (SA_RESTART): Likewise.
7629 (SA_NODEFER): Likewise.
7630 (SA_RESETHAND): Likewise.
7631 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
7632 (struct sigaction): Define sa_handler and sa_sigaction using union
7633 also for [__USE_XOPEN_EXTENDED].
7634 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7635 [__USE_XOPEN_EXTENDED].
7636 (SA_RESTART): Likewise.
7637 (SA_NODEFER): Likewise.
7638 (SA_RESETHAND): Likewise.
7639 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
7640 (struct sigaction): Define sa_handler and sa_sigaction using union
7641 also for [__USE_XOPEN_EXTENDED].
7642 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7643 [__USE_XOPEN_EXTENDED].
7644 (SA_RESTART): Likewise.
7645 (SA_NODEFER): Likewise.
7646 (SA_RESETHAND): Likewise.
7647 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
7648 (struct sigaction): Define sa_handler and sa_sigaction using union
7649 also for [__USE_XOPEN_EXTENDED].
7650 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7651 [__USE_XOPEN_EXTENDED].
7652 (SA_RESTART): Likewise.
7653 (SA_NODEFER): Likewise. Define directly rather than as alias.
7654 (SA_RESETHAND): Likewise.
7655 (SA_INTERRUPT): Define only for [__USE_MISC].
7656 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
7657 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
7658 [__USE_MISC].
7659 (SA_STACK): Define only for [__USE_MISC].
7660 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
7661 (struct sigaction): Define sa_handler and sa_sigaction using union
7662 also for [__USE_XOPEN_EXTENDED].
7663 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7664 [__USE_XOPEN_EXTENDED].
7665 (SA_RESTART): Likewise.
7666 (SA_NODEFER): Likewise.
7667 (SA_RESETHAND): Likewise.
7668 (SA_NOPTRACE): Define only for [__USE_MISC].
7669
7670 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
7671 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
7672 (struct catalog_info): Likewise.
7673 * inet/htontest.c (lo): Likewise.
7674 (foo): Likewise.
7675 * inet/inet_lnaof.c (inet_lnaof): Likewise.
7676 * inet/inet_net.c (inet_network): Likewise.
7677 * inet/inet_netof.c (inet_netof): Likewise.
7678 * inet/rcmd.c (__ivaliduser): Likewise.
7679 (iruserok): Likewise.
7680 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
7681 * locale/programs/locale-spec.c (locale_special): Likewise.
7682 * nis/nis_findserv.c (struct findserv_req): Likewise.
7683 (__nis_findfastest_with_timeout): Likewise.
7684 * nss/test-netdb.c (test_network): Likewise.
7685 * resolv/inet_neta.c (inet_neta): Likewise.
7686 * resolv/ns_date.c (ns_datetosecs): Likewise.
7687 (SECS_PER_DAY): Likewise.
7688 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
7689 Likewise.
7690 * resolv/res_comp.c (__putlong): Likewise.
7691 (__putshort): Likewise.
7692 (_getlong): Likewise.
7693 (_getshort): Likewise.
7694 * resolv/res_debug.c (p_time): Likewise.
7695 (precsize_ntoa): Likewise.
7696 (precsize_aton): Likewise.
7697 (latlon2ul): Likewise.
7698 (loc_aton): Likewise.
7699 (loc_ntoa): Likewise.
7700 * resolv/res_hconf.c (struct netaddr): Likewise.
7701 (_res_hconf_reorder_addrs): Likewise.
7702 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
7703 (clnttcp_control): Likewise.
7704 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7705 (clntudp_control): Likewise.
7706 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
7707 (clntunix_control): Likewise.
7708 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7709 * sunrpc/rpc/auth.h (union des_block): Likewise.
7710 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
7711 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
7712 (xdrrec_create): Likewise.
7713 (xdrrec_endofrecord): Likewise.
7714 (flush_out): Likewise.
7715 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
7716 (xdrstdio_putlong): Likewise.
7717 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
7718 Likewise.
7719
7720 * misc/sys/cdefs.h (__long_double_t): Remove.
7721 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
7722 instead of __long_double_t,
7723 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
7724
7725 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7726
7727 * benchtests/scripts/compare_strings.py: Avoid display error when
7728 running on a text terminal.
7729
7730 * benchtests/scripts/compare_strings.py (main): Add an
7731 optional -base option.
7732 (process_results): New argument base_func.
7733
7734 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
7735 hardcoding memcpy.
7736 * benchtests/bench-memcpy-large.c (test_name): Likewise.
7737 * benchtests/bench-memcpy-random.c (test_name): Likewise.
7738
7739 2017-08-07 Andreas Schwab <schwab@suse.de>
7740
7741 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
7742 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7743 * intl/Makefile ($(objpfx)tst-gettext.out)
7744 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
7745 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
7746 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7747 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7748 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
7749 * posix/Makefile ($(objpfx)globtest.out)
7750 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
7751 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
7752 ($(objpfx)tst-printf.out): Likewise.
7753 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
7754 ($(objpfx)tst-setcontext3.out): Likewise.
7755
7756 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
7757
7758 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7759 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
7760 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
7761 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
7762 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
7763 and mptan-fma.
7764 (CFLAGS-doasin-fma.c): New.
7765 (CFLAGS-dosincos-fma.c): Likewise.
7766 (CFLAGS-e_asin-fma.c): Likewise.
7767 (CFLAGS-e_atan2-fma.c): Likewise.
7768 (CFLAGS-e_exp-fma.c): Likewise.
7769 (CFLAGS-e_log-fma.c): Likewise.
7770 (CFLAGS-e_pow-fma.c): Likewise.
7771 (CFLAGS-halfulp-fma.c): Likewise.
7772 (CFLAGS-mpa-fma.c): Likewise.
7773 (CFLAGS-mpatan-fma.c): Likewise.
7774 (CFLAGS-mpatan2-fma.c): Likewise.
7775 (CFLAGS-mpexp-fma.c): Likewise.
7776 (CFLAGS-mplog-fma.c): Likewise.
7777 (CFLAGS-mpsqrt-fma.c): Likewise.
7778 (CFLAGS-mptan-fma.c): Likewise.
7779 (CFLAGS-s_atan-fma.c): Likewise.
7780 (CFLAGS-sincos32-fma.c): Likewise.
7781 (CFLAGS-slowexp-fma.c): Likewise.
7782 (CFLAGS-slowpow-fma.c): Likewise.
7783 (CFLAGS-s_sin-fma.c): Likewise.
7784 (CFLAGS-s_tan-fma.c): Likewise.
7785 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
7786 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
7787 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
7788 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
7789 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
7790 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
7791 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
7792 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
7793 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
7794 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
7795 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
7796 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
7797 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
7798 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
7799 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
7800 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
7801 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
7802 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
7803 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
7804 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
7805 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
7806 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7807 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
7808 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
7809 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7810 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7811 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7812 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
7813 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7814 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7815 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7816
7817 2017-08-04 Joseph Myers <joseph@codesourcery.com>
7818
7819 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
7820 (min_of_type_f): New macro.
7821 (min_of_type_): Likewise.
7822 (min_of_type_l): Likewise.
7823 (min_of_type_f128): Likewise.
7824 (min_of_type): Define using __MATH_TG and taking an expression
7825 argument.
7826 (math_check_force_underflow): Pass expression instead of type to
7827 min_of_type.
7828 (math_check_force_underflow_nonneg): Likewise.
7829
7830 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7831
7832 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7833 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
7834 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
7835
7836 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7837
7838 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7839 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
7840 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
7841 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
7842 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
7843 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
7844 memcpy_chk-nonshared, mempcpy_chk-nonshared,
7845 memmove_chk-nonshared and memset_chk-nonshared
7846 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
7847 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
7848 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
7849 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
7850 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
7851 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
7852 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
7853 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
7854 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
7855 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
7856 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
7857 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
7858 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
7859 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
7860 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
7861 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
7862 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
7863 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
7864 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
7865 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
7866 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
7867 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
7868 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
7869 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
7870 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
7871 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
7872 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
7873 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
7874 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
7875 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
7876 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
7877 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
7878 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
7879 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7880 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7881 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
7882 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
7883 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
7884 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
7885 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
7886 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
7887 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
7888 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
7889 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
7890 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
7891 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
7892 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
7893 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
7894 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
7895 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
7896 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
7897 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
7898 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
7899 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
7900 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
7901 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
7902 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
7903 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
7904 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
7905 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
7906 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
7907 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
7908 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
7909 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
7910 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
7911 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
7912 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
7913 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
7914 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
7915 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7916 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
7917 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7918 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7919 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7920 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7921 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7922 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7923 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7924 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7925 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7926 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7927 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7928 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7929 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7930 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7931 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7932 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7933 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7934 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7935 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7936 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7937 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7938 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7939 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7940 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7941 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7942 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7943 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7944 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7945 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7946 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7947 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7948 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7949 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7950 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7951 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7952 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7953 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7954
7955 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7956
7957 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
7958 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
7959 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
7960 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
7961 svml_d_log2_core-sse2, svml_d_log4_core-sse,
7962 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
7963 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
7964 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
7965 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
7966 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
7967 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
7968 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
7969 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
7970 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
7971 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
7972 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
7973 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
7974 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
7975 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
7976 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
7977 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
7978 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
7979 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
7980 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
7981 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
7982 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
7983 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
7984 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
7985 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
7986 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
7987 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
7988 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
7989 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
7990 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
7991 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
7992 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
7993 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
7994 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
7995 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
7996 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
7997 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
7998 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
7999 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
8000 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
8001 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
8002 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
8003 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
8004 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
8005 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
8006 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
8007 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
8008 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
8009 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
8010 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
8011 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
8012 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
8013 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
8014 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
8015 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
8016 ...
8017 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
8018 Don't include <sysdep.h> nor <init-arch.h>.
8019 (_ZGVbN2v_cos): Removed.
8020 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
8021 ...
8022 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
8023 Don't include <sysdep.h> nor <init-arch.h>.
8024 (_ZGVdN4v_cos): Removed.
8025 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
8026 ...
8027 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
8028 Don't include <sysdep.h> nor <init-arch.h>.
8029 (_ZGVeN8v_cos): Removed.
8030 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
8031 ...
8032 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
8033 Don't include <sysdep.h> nor <init-arch.h>.
8034 (_ZGVbN2v_exp): Removed.
8035 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
8036 ...
8037 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
8038 Don't include <sysdep.h> nor <init-arch.h>.
8039 (_ZGVdN4v_exp): Removed.
8040 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
8041 ...
8042 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
8043 Don't include <sysdep.h> nor <init-arch.h>.
8044 (_ZGVeN8v_exp): Removed.
8045 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
8046 ...
8047 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
8048 Don't include <sysdep.h> nor <init-arch.h>.
8049 (_ZGVbN2v_log): Removed.
8050 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
8051 ...
8052 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
8053 Don't include <sysdep.h> nor <init-arch.h>.
8054 (_ZGVdN4v_log): Removed.
8055 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
8056 ...
8057 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
8058 Don't include <sysdep.h> nor <init-arch.h>.
8059 (_ZGVeN8v_log): Removed.
8060 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
8061 ...
8062 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
8063 Don't include <sysdep.h> nor <init-arch.h>.
8064 (_ZGVbN2vv_pow): Removed.
8065 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
8066 ...
8067 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
8068 Don't include <sysdep.h> nor <init-arch.h>.
8069 (_ZGVdN4vv_pow): Removed.
8070 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
8071 ...
8072 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
8073 Don't include <sysdep.h> nor <init-arch.h>.
8074 (_ZGVeN8vv_pow): Removed.
8075 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
8076 ...
8077 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
8078 Don't include <sysdep.h> nor <init-arch.h>.
8079 (_ZGVbN2v_sin): Removed.
8080 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
8081 ...
8082 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
8083 Don't include <sysdep.h> nor <init-arch.h>.
8084 (_ZGVbN4v_sin): Removed.
8085 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
8086 ...
8087 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
8088 Don't include <sysdep.h> nor <init-arch.h>.
8089 (_ZGVbN8v_sin): Removed.
8090 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
8091 ...
8092 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
8093 Don't include <sysdep.h> nor <init-arch.h>.
8094 (_ZGVbN2vvv_sincos): Removed.
8095 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
8096 ...
8097 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
8098 Don't include <sysdep.h> nor <init-arch.h>.
8099 (_ZGVdN4vvv_sincos): Removed.
8100 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
8101 ...
8102 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
8103 Don't include <sysdep.h> nor <init-arch.h>.
8104 (_ZGVeN8vvv_sincos): Removed.
8105 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
8106 ...
8107 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
8108 Don't include <sysdep.h> nor <init-arch.h>.
8109 (_ZGVeN16v_cosf): Removed.
8110 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
8111 ...
8112 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
8113 Don't include <sysdep.h> nor <init-arch.h>.
8114 (_ZGVbN4v_cosf): Removed.
8115 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
8116 ...
8117 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
8118 Don't include <sysdep.h> nor <init-arch.h>.
8119 (_ZGVdN8v_cosf): Removed.
8120 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
8121 ...
8122 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
8123 Don't include <sysdep.h> nor <init-arch.h>.
8124 (_ZGVeN16v_expf): Removed.
8125 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
8126 ...
8127 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
8128 Don't include <sysdep.h> nor <init-arch.h>.
8129 (_ZGVbN4v_expf): Removed.
8130 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
8131 ...
8132 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
8133 Don't include <sysdep.h> nor <init-arch.h>.
8134 (_ZGVdN8v_expf): Removed.
8135 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
8136 ...
8137 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
8138 Don't include <sysdep.h> nor <init-arch.h>.
8139 (_ZGVeN16v_logf): Removed.
8140 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
8141 ...
8142 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
8143 Don't include <sysdep.h> nor <init-arch.h>.
8144 (_ZGVbN4v_logf): Removed.
8145 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
8146 ...
8147 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
8148 Don't include <sysdep.h> nor <init-arch.h>.
8149 (_ZGVdN8v_logf): Removed.
8150 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
8151 ...
8152 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
8153 Don't include <sysdep.h> nor <init-arch.h>.
8154 (_ZGVeN16vv_powf): Removed.
8155 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
8156 ...
8157 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
8158 Don't include <sysdep.h> nor <init-arch.h>.
8159 (_ZGVbN4vv_powf): Removed.
8160 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
8161 ...
8162 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
8163 Don't include <sysdep.h> nor <init-arch.h>.
8164 (_ZGVdN8vv_powf): Removed.
8165 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
8166 ...
8167 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
8168 Don't include <sysdep.h> nor <init-arch.h>.
8169 (_ZGVeN16vvv_sincosf): Removed.
8170 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
8171 ...
8172 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
8173 Don't include <sysdep.h> nor <init-arch.h>.
8174 (_ZGVbN4vvv_sincosf): Removed.
8175 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
8176 ...
8177 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
8178 Don't include <sysdep.h> nor <init-arch.h>.
8179 (_ZGVdN8vvv_sincosf): Removed.
8180 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
8181 ...
8182 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
8183 Don't include <sysdep.h> nor <init-arch.h>.
8184 (_ZGVeN16v_sinf): Removed.
8185 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
8186 ...
8187 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
8188 Don't include <sysdep.h> nor <init-arch.h>.
8189 (_ZGVbN4v_sinf): Removed.
8190 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
8191 ...
8192 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
8193 Don't include <sysdep.h> nor <init-arch.h>.
8194 (_ZGVdN8v_sinf): Removed.
8195
8196 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8197
8198 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8199 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
8200 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
8201 s_rint-sse4_1 and s_rintf-sse4_1.
8202 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
8203 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8204 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8205 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8206 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8207 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
8208 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
8209 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8210 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8211 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
8212 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
8213 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8214 (__ceil): Removed.
8215 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
8216 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
8217 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8218 (__ceilf): Removed.
8219 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
8220 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
8221 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8222 (__floor): Removed.
8223 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
8224 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
8225 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8226 (__floorf): Removed.
8227 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
8228 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
8229 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8230 (__nearbyint): Removed.
8231 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
8232 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
8233 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8234 (__nearbyintf): Removed.
8235 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
8236 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
8237 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8238 (__rint): Removed.
8239 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
8240 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
8241 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
8242 (__rintf): Removed.
8243
8244 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8245
8246 * sysdeps/i386/start.S (_start): Check Check PIC instead of
8247 SHARED. Avoid dynamic relocation against main in static PIE.
8248
8249 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8250
8251 [BZ #21815]
8252 * elf/Makefile (CFLAGS-tst-prelink.c): New.
8253 (LDFLAGS-tst-prelink): Likewise.
8254
8255 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8256
8257 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8258 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
8259 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
8260 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
8261 (INTERNAL_SYSCALL_NCS): Likewise.
8262 (LOADARGS_1): Likewise.
8263 (LOADARGS_5): Likewise.
8264 (RESTOREARGS_1): Likewise.
8265 (RESTOREARGS_5): Likewise.
8266
8267 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8268
8269 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
8270 (MEMPCPY_SYMBOL): Likewise.
8271 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8272 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
8273 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
8274 in libc.a.
8275 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
8276 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
8277 Likewise.
8278 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
8279 (__hidden_ver1): Don't use in libc.a.
8280 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
8281 (__mempcpy): Don't create a weak alias in libc.a.
8282 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
8283 libc.a.
8284 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
8285 (__hidden_ver1): Don't use in libc.a.
8286
8287 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8288
8289 * config.make.in (have-insert): New.
8290 * configure.ac (libc_cv_insert): New. Set to yes if linker
8291 supports INSERT in linker script.
8292 (AC_SUBST(libc_cv_insert): New.
8293 * configure: Regenerated.
8294 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
8295 if $(have-insert) == yes.
8296
8297 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8298
8299 * elf/Makefile (tests): Add vismain only if
8300 $(have-protected-data) == yes.
8301 (tests-pie): Likewise.
8302
8303 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8304
8305 [BZ #21871]
8306 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
8307 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
8308
8309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8310
8311 [BZ #21790]
8312 * sysdeps/i386/i586/memset.S
8313 (__memset_zero_constant_len_parameter): Removed.
8314 * sysdeps/i386/i686/memset.S
8315 (__memset_zero_constant_len_parameter): Likewise.
8316 * sysdeps/i386/i686/multiarch/memset_chk.S
8317 (__memset_zero_constant_len_parameter): Likewise.
8318 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
8319 Likewise.
8320
8321 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
8322
8323 * stdlib/getentropy.c (getentropy): Change return type to int.
8324
8325 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
8326
8327 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
8328
8329 2017-08-03 Joseph Myers <joseph@codesourcery.com>
8330
8331 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
8332 u_intN_t.
8333 * math/s_nexttowardf.c (__nexttowardf): Likewise.
8334 * sysdeps/generic/math_private.h (ieee_double_shape_type):
8335 Likewise.
8336 (ieee_float_shape_type): Likewise.
8337 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
8338 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
8339 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
8340 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8341 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
8342 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
8343 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
8344 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8345 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8346 Likewise.
8347 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8348 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8349 (__ieee754_yn): Likewise.
8350 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8351 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8352 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
8353 Likewise.
8354 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8355 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
8356 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
8357 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
8358 (__erfc): Likewise.
8359 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
8360 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
8361 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
8362 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
8363 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
8364 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
8365 Likewise.
8366 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
8367 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
8368 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8369 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
8370 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8371 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
8372 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
8373 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
8374 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
8375 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
8376 (__issignaling): Likewise.
8377 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
8378 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
8379 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8380 Likewise.
8381 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8382 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8383 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
8384 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
8385 Likewise.
8386 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
8387 Likewise.
8388 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
8389 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
8390 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
8391 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
8392 (__erfcf): Likewise.
8393 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
8394 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
8395 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
8396 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
8397 Likewise.
8398 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
8399 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
8400 Likewise.
8401 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8402 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
8403 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8404 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
8405 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
8406 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
8407 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
8408 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
8409 Likewise.
8410 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
8411 Likewise.
8412 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
8413 Likewise.
8414 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
8415 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8416 Likewise.
8417 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
8418 Likewise.
8419 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8420 (__ieee754_ynl): Likewise.
8421 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8422 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
8423 Likewise.
8424 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
8425 Likewise.
8426 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
8427 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
8428 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8429 Likewise.
8430 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
8431 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
8432 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
8433 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
8434 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
8435 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
8436 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
8437 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
8438 Likewise.
8439 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
8440 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
8441 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
8442 Likewise.
8443 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8444 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
8445 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8446 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
8447 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
8448 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8449 Likewise.
8450 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
8451 Likewise.
8452 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8453 Likewise.
8454 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8455 Likewise.
8456 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
8457 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
8458 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8459 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
8460 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
8461 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
8462 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
8463 Likewise.
8464 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8465 Likewise.
8466 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8467 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
8468 Likewise.
8469 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8470 (__ieee754_remainderl): Likewise.
8471 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8472 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8473 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
8474 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
8475 Likewise.
8476 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
8477 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8478 Likewise.
8479 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
8480 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
8481 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
8482 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
8483 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
8484 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8485 Likewise.
8486 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
8487 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
8488 (__ieee754_y0l): Likewise.
8489 (pzero): Likewise.
8490 (qzero): Likewise.
8491 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8492 (__ieee754_y1l): Likewise.
8493 (pone): Likewise.
8494 (qone): Likewise.
8495 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8496 (__ieee754_ynl): Likewise.
8497 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8498 (__ieee754_lgammal_r): Likewise.
8499 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
8500 Likewise.
8501 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
8502 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
8503 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
8504 (__erfcl): Likewise.
8505 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
8506 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
8507 Likewise.
8508 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8509 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
8510 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8511 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
8512 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
8513 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8514 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8515 Likewise.
8516 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
8517 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
8518 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
8519 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
8520 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8521 Likewise.
8522 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
8523 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
8524 Likewise.
8525 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
8526 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
8527 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
8528 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
8529 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8530
8531 2017-08-03 Florian Weimer <fweimer@redhat.com>
8532
8533 [BZ #21885]
8534 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
8535 on memory allocation failure.
8536
8537 2017-08-03 Alan Modra <amodra@gmail.com>
8538
8539 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
8540 tst-tlsopt-powerpc.c with function name change and no test harness.
8541 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
8542 Call tls_get_addr_opt_test.
8543 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
8544 (modules-names): Add mod-tlsopt-powerpc.
8545 (mod-tlsopt-powerpc.so-no-z-defs): Define.
8546 (tst-tlsopt-powerpc): Depend on .so.
8547 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
8548 define. Expand use in TLS_GD and TLS_LD.
8549
8550 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8551
8552 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
8553 function.
8554 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8555
8556 2017-08-02 Joseph Myers <joseph@codesourcery.com>
8557
8558 [BZ #21686]
8559 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
8560 comparing size with that of double.
8561 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8562 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8563 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8564 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8565 (__TGMATH_BINARY_REAL_IMAG): Likewise.
8566 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
8567 unsigned __int128 types.
8568
8569 2017-08-02 Steve Ellcey <sellcey@cavium.com>
8570
8571 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
8572 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
8573 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
8574 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
8575 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
8576
8577 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8578
8579 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
8580
8581 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8582
8583 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
8584 of SHARED.
8585 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
8586 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8587 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8588 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8589 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8590 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8591 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8592
8593 2017-08-02 Joseph Myers <joseph@codesourcery.com>
8594
8595 [BZ #21685]
8596 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
8597 bit-field expressions passed to sizeof or typeof.
8598 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8599 (__TGMATH_F128): Likewise.
8600 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8601 (__TGMATH_CF128): Likewise.
8602 (__TGMATH_UNARY_REAL_ONLY): Likewise.
8603 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8604 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
8605 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
8606 (__TGMATH_BINARY_REAL_ONLY): Likewise.
8607 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8608 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8609 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8610 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8611 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
8612 (__TGMATH_UNARY_REAL_IMAG): Likewise.
8613 (__TGMATH_UNARY_IMAG): Likewise.
8614 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8615 (__TGMATH_BINARY_REAL_IMAG): Likewise.
8616 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
8617 type.
8618 (define_vars_for_type): Handle bit_field type specially.
8619 (Tests.__init__): Declare structure with bit-field element.
8620
8621 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8622
8623 [BZ #21791]
8624 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
8625 (MEMCPY_CHK): Define only if SHARED is defined.
8626 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
8627 Likewise.
8628 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
8629 Likewise.
8630
8631 See ChangeLog.18 for earlier changes.