]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
malloc: Change top_check return type to void
[thirdparty/glibc.git] / ChangeLog
1 2017-08-31 Florian Weimer <fweimer@redhat.com>
2
3 * malloc/malloc.c (top_check): Change return type to void. Remove
4 internal_function.
5 * malloc/hooks.c (top_check): Likewise.
6 (malloc_check, realloc_check, memalign_check): Adjust.
7
8 2017-08-30 Joseph Myers <joseph@codesourcery.com>
9
10 [BZ #21457]
11 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
12 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
13 sigcontext and namespace requirements.
14 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
15 * sysdeps/m68k/sys/ucontext.h: Likewise.
16 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
17 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
18 <bits/sigcontext.h>.
19 (__ctx): Define earlier.
20 (mcontext_t): Define structure contents rather than using struct
21 sigcontext.
22 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
23 __glibc_reserved1 instead of __reserved.
24 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
25 <bits/sigcontext.h>.
26 (__ctx): Define earlier.
27 (mcontext_t): Define structure contents rather than using struct
28 sigcontext.
29 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30 mcontext_t instead of struct sigcontext.
31 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32 <bits/sigcontext.h>.
33 (__ctx): Define earlier.
34 (mcontext_t): Define structure contents rather than using struct
35 sigcontext.
36 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
37 <bits/sigcontext.h>.
38 (__ctx): Define earlier.
39 (mcontext_t): Define structure contents rather than using struct
40 sigcontext.
41 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
42 mcontext_t instead of struct sigcontext.
43 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
44 mcontext_t instead of struct sigcontext.
45 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
46 <bits/sigcontext.h>.
47 (__ctx): New macro.
48 (struct __ia64_fpreg_mcontext): New type.
49 (mcontext_t): Define structure contents rather than using struct
50 sigcontext.
51 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
52 (uc_sigmask): Define using __ctx.
53 (uc_stack): Likewise.
54 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
55 <bits/sigcontext.h>.
56 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
57 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
58 <bits/sigcontext.h>.
59 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
60 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
61 <bits/sigcontext.h>.
62 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
63 <bits/sigcontext.h>.
64 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
65 <bits/sigcontext.h>.
66 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
67 <bits/sigcontext.h>.
68 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
69 <bits/sigcontext.h>.
70 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
71 <bits/sigcontext.h>.
72 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
73 <bits/sigcontext.h>.
74 (__ctx): Define earlier.
75 (mcontext_t): Define structure contents rather than using struct
76 sigcontext.
77 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
78 <bits/sigcontext.h>. Include <bits/types.h>.
79 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
80 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
81 (test-xfail-XPG42/ucontext.h/conform): Likewise.
82 (test-xfail-UNIX98/signal.h/conform): Likewise.
83 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
84 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
85 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
86 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
87 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
88 (test-xfail-POSIX2008/signal.h/conform): Likewise.
89 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
90 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
91 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
92
93 2017-08-30 Florian Weimer <fweimer@redhat.com>
94
95 * malloc/dynarray_emplace_enlarge.c
96 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
97 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
98 * malloc/tst-dynarray.c (test_long_overflow): New function.
99 (do_test): Call it.
100
101 2017-08-30 Florian Weimer <fweimer@redhat.com>
102
103 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
104 (set_arena_corrupt): Remove definitions.
105 (mtrim): Do not check for corrupt arena.
106 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
107 Likewise.
108
109 2017-08-30 Florian Weimer <fweimer@redhat.com>
110
111 [BZ #21754]
112 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
113 check_action.
114 (ptmalloc_init): Do not set or use check_action.
115 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
116 call to malloc_printerr. Remove return statement.
117 (free_check): Likewise. Remove arena unlock.
118 (top_check): Update comment. Adjust call to malloc_printerr.
119 Remove heap repair code.
120 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
121 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
122 (sysmalloc): Adjust call to malloc_printerr.
123 (munmap_chunk, __libc_realloc): Likewise. Remove return
124 statement.
125 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
126 Remove errout label and corresponding gotos.
127 (_int_free): Likewise. Remove arena unlock.
128 (do_set_mallopt_check): Do not set check_action.
129 (malloc_printerr): Adjust parameter list. Do not mark arena as
130 corrupt.
131 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
132 comment.
133 * manual/probes.texi (Memory Allocation Probes): Remove
134 memory_mallopt_check_action.
135
136 2017-08-30 Steve Ellcey <sellcey@cavium.com>
137
138 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
139 Use pointer to uint64_t instead of long int for sp.
140
141 2017-08-30 Florian Weimer <fweimer@redhat.com>
142
143 [BZ #21754]
144 * malloc/malloc.c (malloc_printerr): Always terminate the process,
145 without printing a backtrace. Do not leak any information in the
146 error message.
147 * manual/memory.texi (Heap Consistency Checking): Update.
148 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
149
150 2017-08-30 Florian Weimer <fweimer@redhat.com>
151
152 Do not scale NPTL tests with available number of CPUs.
153 * nptl/tst-cond16.c (count): Set to constant value of 8.
154 * nptl/tst-cond18.c (count): Likewise.
155
156 2017-08-29 Joseph Myers <joseph@codesourcery.com>
157
158 [BZ #22035]
159 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
160 Define to take a second argument that is a macro that
161 concatentates a suffix, not the suffix itself.
162 (__CONCAT_d): New macro.
163 (__CONCAT_f): Likewise.
164 (__CONCAT_l): Likewise.
165
166 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
167
168 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
169 by child.
170
171 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
172 Aurelien Jarno <aurelien@aurel32.net>
173 Maciej W. Rozycki <macro@imgtec.com>
174
175 [BZ #21956]
176 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
177 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
178 `mips16-syscall6' and `mips16-syscall7'.
179 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
180 (CFLAGS-mips16-syscall7.c): Remove.
181 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
182 Remove `__mips16_syscall5', `__mips16_syscall6' and
183 `__mips16_syscall7'.
184 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
185 (__mips16_syscall0): Rename `__mips16_syscall_return' to
186 `__mips_syscall_return'.
187 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
188 (__mips16_syscall1): Likewise.
189 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
190 (__mips16_syscall2): Likewise.
191 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
192 (__mips16_syscall3): Likewise.
193 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
194 (__mips16_syscall4): Likewise.
195 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
196 Remove.
197 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
198 Remove.
199 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
200 Remove.
201 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
202 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
203 `__mips16_syscall5'. Remove prototype.
204 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
205 `__mips16_syscall6'. Remove prototype.
206 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
207 `__mips16_syscall7'. Remove prototype.
208 (__nomips16, __mips16_syscall_return): Move to...
209 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
210 (__nomips16, __mips_syscall_return): ... here.
211 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
212 `__mips16_syscall_return' to `__mips_syscall_return'.
213 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
214 `internal_syscall##nr'.
215 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
216 `internal_syscall##nr'.
217 (FORCE_FRAME_POINTER): Remove.
218 (__mips_syscall5): New prototype.
219 (internal_syscall5): Rewrite to call `__mips_syscall5'.
220 (__mips_syscall6): New prototype.
221 (internal_syscall6): Rewrite to call `__mips_syscall6'.
222 (__mips_syscall7): New prototype.
223 (internal_syscall7): Rewrite to call `__mips_syscall7'.
224 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
225 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
226 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
227 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
228 (sysdep_routines): Add libc-do-syscall.
229 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
230 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
231
232 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
233
234 [BZ #21672]
235 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
236 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
237 (advise_stack_range): New function.
238 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
239 stack non required to advise_stack_range at allocatestack.c
240
241 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
242
243 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
244
245 2017-08-29 Florian Weimer <fweimer@redhat.com>
246
247 [BZ #22026]
248 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
249 __end_fct. Mangle __end_fct after setting it to NULL.
250 * iconv/Makefile (tests): Add tst-gconv-init-failure.
251 (modules-names, modules-names-tests): Add
252 tst-gconv-init-failure-mod.
253 (gconv-modules): New target.
254 (tst-gconv-init-failure-mod.so): Link against libsupport.
255 (tst-gconv-init-failure): Depend on gconv-modules,
256 tst-gconv-init-failure-mod.so.
257 * iconv/tst-gconv-init-failure-mod.c: New file.
258 * iconv/tst-gconv-init-failure.c: Likewise.
259 * iconv/test-gconv-modules: Likewise.
260
261 2017-08-29 Florian Weimer <fweimer@redhat.com>
262
263 [BZ #22025]
264 * iconv/gconv_db.c (free_derivation): Remove redundant
265 parentheses.
266 (gen_steps): Unconditionally mangle __btowc_fct after
267 initialization.
268 (increment_counter): Likewise. Do not call init_fct for internal
269 modules.
270
271 2017-08-29 Joseph Myers <joseph@codesourcery.com>
272
273 [BZ #22028]
274 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
275 (_MSUF_): Remove macro.
276 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
277 Likewise.
278 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
279 (__REDIRFROM_X): New macro.
280 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
281 Likewise.
282 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
283 (__REDIRTO_X): Likewise.
284 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
285 arguments.
286 (__MATH_REDIRCALL_2): Likewise.
287 (__MATH_REDIRCALL_INTERNAL): Likewise.
288 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
289 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
290 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
291 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
292 * math/test-finite-macros.c: New file.
293 * math/Makefile (tests): Add test-finite-macros.
294 (CFLAGS-test-finite-macros.c): New variable.
295
296 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
297 Jeff Law <law@redhat.com>
298
299 [BZ #22025]
300 Mangle NULL pointers in iconv/gconv.
301 * iconv/gconv_cache.c (find_module): Demangle init_fct before
302 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
303 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
304 is non-NULL before demangling the end_fct. Check for NULL
305 end_fct after demangling.
306 (__gconv_release_step): Demangle the end_fct before checking
307 it for NULL. Remove assert on __shlibc_handle != NULL.
308 (gen_steps): Don't check btowc_fct for NULL before mangling.
309 Demangle init_fct before checking for NULL.
310 (increment_counter): Likewise.
311 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
312 end_fct for NULL before mangling.
313 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
314 for NULL.
315
316 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
317
318 [BZ #21971]
319 * locale/iso-639.def: add Morisyen.
320
321 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
322
323 [BZ #21930]
324 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
325 (iszero): New C++ implementation that does not use
326 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
327 signaling nans are enabled, since __builtin_types_compatible_p
328 is a C-only feature.
329 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
330 defined, include ieee754_float128.h for access to the union and
331 member ieee854_float128.ieee.
332 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
333 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
334 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
335 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
336 options of test-math-zero on powerpc64le.
337
338 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
339
340 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
341 Change double to float.
342
343 2017-08-28 Joseph Myers <joseph@codesourcery.com>
344
345 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
346 unconditional.
347 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
348 conditional code; define contents only for [LIBM_SVID_COMPAT].
349
350 2017-08-28 Florian Weimer <fweimer@redhat.com>
351
352 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
353 (abi-lp64_be-options): Remove.
354 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
355 (abi-hard-options): Likewise.
356 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
357 (abi-o32_hard-options, abi-o32_soft_2008-options)
358 (abi-o32_hard_2008-options, abi-n32_soft-options)
359 (abi-n32_hard-options, abi-n32_soft_2008-options)
360 (abi-n32_hard_2008-options, abi-n64_soft-options)
361 (abi-n64_hard-options, abi-n64_soft_2008-options)
362 (abi-n64_hard_2008-options): Likewise.
363 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
364 (abi-64-v1-options, abi-64-v2-options): Likewise.
365 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
366 (abi-64-options): Likewise.
367 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
368 (abi-64-options): Likewise.
369 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
370 (abi-64-options): Likewise.
371 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
372 (abi-64-options, abi-x32-options): Likewise.
373
374 2017-08-28 Florian Weimer <fweimer@redhat.com>
375
376 Store supported list of SYS_* system calls in the source tree.
377 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
378 (bits/syscall.h): Generate from list file.
379 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
380 [$(subdir) = misc] (tests): Add tst-syscall-list.
381 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
382 [$(subdir) = misc] (tst-syscall-list-macros.list)
383 [$(subdir) = misc] (tst-syscall-list-nr.list)
384 (tst-syscall-list-sys.list): Helper targets for new
385 tst-syscall-list test.
386 [$(subdir) = misc] (tst-syscall-list.out): Run test script
387 tst-syscall-list.sh.
388 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
389 target. Do not include bits/syscall.d.
390 [$(subdir) = misc] (generated): Do not update.
391 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
392 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
393 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
394 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
395
396 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
397
398 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
399 (tst-cxa_atexit, tst-on_exit): Likewise.
400 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
401 tst-cxa_atexit, and tst-on_exit.
402 * stdlib/tst-atexit-common.c: New file.
403 * stdlib/tst-atexit.c: New file.
404 * stdlib/tst-at_quick_exit.c: New file.
405 * stdlib/tst-cxa_atexit.c: New file.
406 * stdlib/tst-on_exit.c: New file.
407
408 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
409
410 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
411 * mach/stack_chk_fail_local.c: New file.
412 * hurd/stack_chk_fail_local.c: New file.
413 * mach/Machrules ($(interface-library)-routines): Add
414 stack_chk_fail_local.
415 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
416 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
417 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
418 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
419 * hurd/Makefile (CFLAGS-hurdstartup.o,
420 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
421
422 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
423
424 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
425 (index_cpu_*, index_arch_*): Removed.
426
427 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
428
429 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
430 Use uint64_t instead of unsigned long.
431
432 2017-08-25 Joseph Myers <joseph@codesourcery.com>
433
434 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
435 [__HAVE_DISTINCT_FLOAT128].
436
437 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
438 of <bits/math-finite.h>.
439 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
440 inclusion of <bits/math-finite.h>.
441 * math/bits/math-finite.h (__REDIRTO_X): Do not define
442 conditionally on [__MATH_DECLARING_LDOUBLE && defined
443 __NO_LONG_DOUBLE_MATH].
444 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
445 (__MATH_REDIRCALL_2): Likewise.
446 (__MATH_REDIRCALL_INTERNAL): Likewise.
447 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
448 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
449 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
450
451 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
452 Remove file.
453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
454 Likewise.
455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
456 Likewise.
457 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
458 Likewise.
459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
460 Likewise.
461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
462 Likewise.
463 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
464 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
465 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
466 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
468 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
469 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
470 w_sqrtf_compat-ppc32.
471
472 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
473
474 * math/math.h [defined __cplusplus] (issignaling): In the long
475 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
476 is not defined. Call __issignaling, otherwise.
477
478 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
479
480 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
481 syscall definitions and replace __builtin_expect with __glibc_likely.
482 * sysdeps/unix/syscall-template.S: Update comment about cancellable
483 syscall.
484 (SYSCALL_CANCELLABLE): Removedefinition
485 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
486 definition.
487 (PSEUDO_END): Likewise.
488 [IS_IN (libpthread)] (CENABLE): Likewise.
489 [IS_IN (libpthread)] (CDISABLE): Likewise.
490 [IS_IN (libc)] (CENABLE): Likewise.
491 [IS_IN (libc)] (CENABLE): Likewise.
492 [IS_IN (librt)] (CDISABLE): Likewise.
493 [IS_IN (librt)] (CDISABLE): Likewise.
494 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
495 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
496 definition.
497 (PSEUDO_END): Likewise.
498 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
499 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
500 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
501 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
502 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
503 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
504 (CENABLE): Likewise.
505 (CDISABLE): Likewise.
506 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
507 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
508 defintion.
509 (PSEUDO_END): Likewise.
510 [IS_IN (libpthread)] (CENABLE): Likewise.
511 [IS_IN (libpthread)] (CDISABLE): Likewise.
512 [IS_IN (libc)] (CENABLE): Likewise.
513 [IS_IN (libc)] (CENABLE): Likewise.
514 [IS_IN (librt)] (CDISABLE): Likewise.
515 [IS_IN (librt)] (CDISABLE): Likewise.
516 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
517 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
518 definition.
519 (PSEUDO_END): Likewise.
520 [IS_IN (libpthread)] (CENABLE): Likewise.
521 [IS_IN (libpthread)] (CDISABLE): Likewise.
522 [IS_IN (libc)] (CENABLE): Likewise.
523 [IS_IN (libc)] (CENABLE): Likewise.
524 [IS_IN (librt)] (CDISABLE): Likewise.
525 [IS_IN (librt)] (CDISABLE): Likewise.
526 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
527 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
528 definition.
529 (PSEUDO_END): Likewise.
530 [IS_IN (libpthread)] (CENABLE): Likewise.
531 [IS_IN (libpthread)] (CDISABLE): Likewise.
532 [IS_IN (libc)] (CENABLE): Likewise.
533 [IS_IN (libc)] (CENABLE): Likewise.
534 [IS_IN (librt)] (CDISABLE): Likewise.
535 [IS_IN (librt)] (CDISABLE): Likewise.
536 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
537 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
538 definition.
539 (PSEUDO_END): Likewise.
540 [IS_IN (libpthread)] (CENABLE): Likewise.
541 [IS_IN (libpthread)] (CDISABLE): Likewise.
542 [IS_IN (libc)] (CENABLE): Likewise.
543 [IS_IN (libc)] (CENABLE): Likewise.
544 [IS_IN (librt)] (CDISABLE): Likewise.
545 [IS_IN (librt)] (CDISABLE): Likewise.
546 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
547 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
548 definition.
549 (PSEUDO_END): Likewise.
550 [IS_IN (libpthread)] (CENABLE): Likewise.
551 [IS_IN (libpthread)] (CDISABLE): Likewise.
552 [IS_IN (libc)] (CENABLE): Likewise.
553 [IS_IN (libc)] (CENABLE): Likewise.
554 [IS_IN (librt)] (CDISABLE): Likewise.
555 [IS_IN (librt)] (CDISABLE): Likewise.
556 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
557 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
558 definition.
559 (PSEUDO_END): Likewise.
560 [IS_IN (libpthread)] (CENABLE): Likewise.
561 [IS_IN (libpthread)] (CDISABLE): Likewise.
562 [IS_IN (libc)] (CENABLE): Likewise.
563 [IS_IN (libc)] (CENABLE): Likewise.
564 [IS_IN (librt)] (CDISABLE): Likewise.
565 [IS_IN (librt)] (CDISABLE): Likewise.
566 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
567 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
568 Remove definition.
569 (PSEUDO_END): Likewise.
570 [IS_IN (libpthread)] (CENABLE): Likewise.
571 [IS_IN (libpthread)] (CDISABLE): Likewise.
572 [IS_IN (libc)] (CENABLE): Likewise.
573 [IS_IN (libc)] (CENABLE): Likewise.
574 [IS_IN (librt)] (CDISABLE): Likewise.
575 [IS_IN (librt)] (CDISABLE): Likewise.
576 (SINGLE_THREAD_P): Likewise.
577 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
578 definition.
579 (PSEUDO_END): Likewise.
580 [IS_IN (libpthread)] (CENABLE): Likewise.
581 [IS_IN (libpthread)] (CDISABLE): Likewise.
582 [IS_IN (libc)] (CENABLE): Likewise.
583 [IS_IN (libc)] (CENABLE): Likewise.
584 [IS_IN (librt)] (CDISABLE): Likewise.
585 [IS_IN (librt)] (CDISABLE): Likewise.
586 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
587 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
588 definition.
589 (PSEUDO_END): Likewise.
590 [IS_IN (libpthread)] (CENABLE): Likewise.
591 [IS_IN (libpthread)] (CDISABLE): Likewise.
592 [IS_IN (libc)] (CENABLE): Likewise.
593 [IS_IN (libc)] (CENABLE): Likewise.
594 [IS_IN (librt)] (CDISABLE): Likewise.
595 [IS_IN (librt)] (CDISABLE): Likewise.
596 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
597 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
598 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
599 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
600 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
601 definition.
602 (PSEUDO_END): Likewise.
603 [IS_IN (libpthread)] (CENABLE): Likewise.
604 [IS_IN (libpthread)] (CDISABLE): Likewise.
605 [IS_IN (libc)] (CENABLE): Likewise.
606 [IS_IN (libc)] (CENABLE): Likewise.
607 [IS_IN (librt)] (CDISABLE): Likewise.
608 [IS_IN (librt)] (CDISABLE): Likewise.
609 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
610 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
611 definition.
612 (PSEUDO_END): Likewise.
613 [IS_IN (libpthread)] (CENABLE): Likewise.
614 [IS_IN (libpthread)] (CDISABLE): Likewise.
615 [IS_IN (libc)] (CENABLE): Likewise.
616 [IS_IN (libc)] (CENABLE): Likewise.
617 [IS_IN (librt)] (CDISABLE): Likewise.
618 [IS_IN (librt)] (CDISABLE): Likewise.
619 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
620 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
621 definition.
622 (PSEUDO_END): Likewise.
623 [IS_IN (libpthread)] (CENABLE): Likewise.
624 [IS_IN (libpthread)] (CDISABLE): Likewise.
625 [IS_IN (libc)] (CENABLE): Likewise.
626 [IS_IN (libc)] (CENABLE): Likewise.
627 [IS_IN (librt)] (CDISABLE): Likewise.
628 [IS_IN (librt)] (CDISABLE): Likewise.
629 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
630 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
631 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
632 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
633 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
634 definition.
635 (PSEUDO_END): Likewise.
636 [IS_IN (libpthread)] (CENABLE): Likewise.
637 [IS_IN (libpthread)] (CDISABLE): Likewise.
638 [IS_IN (libc)] (CENABLE): Likewise.
639 [IS_IN (libc)] (CENABLE): Likewise.
640 [IS_IN (librt)] (CDISABLE): Likewise.
641 [IS_IN (librt)] (CDISABLE): Likewise.
642 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
643 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
644 definition.
645 (PSEUDO_END): Likewise.
646 [IS_IN (libpthread)] (CENABLE): Likewise.
647 [IS_IN (libpthread)] (CDISABLE): Likewise.
648 [IS_IN (libc)] (CENABLE): Likewise.
649 [IS_IN (libc)] (CENABLE): Likewise.
650 [IS_IN (librt)] (CDISABLE): Likewise.
651 [IS_IN (librt)] (CDISABLE): Likewise.
652 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
653
654 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
655
656 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
657
658 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
659
660 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
661
662 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
663
664 [BZ #21982]
665 * string/stratcliff.c (do_test): Declare size, nchars, inner,
666 middle and outer with size_t instead of int. Repleace %d and
667 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
668 "MAX (outer, nchars - 64)" to support unsigned outer and
669 nchars. Also exit loop when outer == 0.
670
671 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
672
673 * include/fcntl.h (__fcntl_nocancel): Remove definition.
674 * include/signal.h (__sigsuspend_nocancel): Likewise.
675 * include/time.h (__nanosleep_nocancel): Likewise.
676 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
677 * login/utmp_file.c: Include non cancellable syscall header.
678 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
679 prototype.
680
681 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
682
683 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
684 .byte sequences with AVX512F instructions.
685 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
686 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
687 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
688 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
689 Likewise.
690 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
691 Likewise.
692
693 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
694 Steve Ellcey <sellcey@cavium.com>
695
696 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
697 Use PTR_REG macro in cmp instruction.
698
699 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
700
701 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
702 Change the return type of the ifunc resolver to match the return
703 type of the target function.
704
705 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
706
707 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
708 (preadv64): Likewise.
709 (pwrite64(: Likewise.
710 (pwritev64): Likewise.
711
712 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
713 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
714 (LOAD_ARGS_0): Likewise.
715 (LOAD_ARGS_1): Likewise.
716 (LOAD_ARGS_2): Likewise.
717 (LOAD_ARGS_3): Likewise.
718 (LOAD_ARGS_4): Likewise.
719 (LOAD_ARGS_5): Likewise.
720 (LOAD_ARGS_6): Likewise.
721 (LOAD_REGS_0): Likewise.
722 (LOAD_REGS_1): Likewise.
723 (LOAD_REGS_2): Likewise.
724 (LOAD_REGS_3): Likewise.
725 (LOAD_REGS_4): Likewise.
726 (LOAD_REGS_5): Likewise.
727 (LOAD_REGS_6): Likewise.
728 (ASM_ARGS_0): Likewise.
729 (ASM_ARGS_1): Likewise.
730 (ASM_ARGS_2): Likewise.
731 (ASM_ARGS_3): Likewise.
732 (ASM_ARGS_4): Likewise.
733 (ASM_ARGS_5): Likewise.
734 (ASM_ARGS_6): Likewise.
735 (LOAD_ARGS_TYPES_1): Likewise.
736 (LOAD_ARGS_TYPES_2): Likewise.
737 (LOAD_ARGS_TYPES_3): Likewise.
738 (LOAD_ARGS_TYPES_4): Likewise.
739 (LOAD_ARGS_TYPES_5): Likewise.
740 (LOAD_ARGS_TYPES_6): Likewise.
741 (LOAD_REGS_TYPES_1): Likewise.
742 (LOAD_REGS_TYPES_2): Likewise.
743 (LOAD_REGS_TYPES_3): Likewise.
744 (LOAD_REGS_TYPES_4): Likewise.
745 (LOAD_REGS_TYPES_5): Likewise.
746 (LOAD_REGS_TYPES_6): Likewise.
747 (TYPEFY): New define.
748 (ARGIFY): Likewise.
749 (internal_syscall0): Likewise.
750 (internal_syscall1): Likewise.
751 (internal_syscall2): Likewise.
752 (internal_syscall3): Likewise.
753 (internal_syscall4): Likewise.
754 (internal_syscall5): Likewise.
755 (internal_syscall6): Likewise.
756 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
757 (INTERNAL_SYSCALL_NCS): Remove define.
758 (internal_syscall1): Add define.
759
760 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
761
762 * math/w_remainder_compat.c: Remove duplicate inclusion of
763 math-svid-compat.h.
764 * math/w_remainderf_compat.c: Likewise.
765 * math/w_remainderl_compat.c: Likewise.
766
767 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
768
769 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
770
771 2017-08-22 Joseph Myers <joseph@codesourcery.com>
772
773 [BZ #21684]
774 * math/tgmath.h (__floating_type): Simplify definitions.
775 (__real_integer_type): New macro.
776 (__complex_integer_type): Likewise.
777 (__expr_is_real): Likewise.
778 (__tgmath_real_type_sub): Update comment to describe handling of
779 complex types.
780 (__tgmath_complex_type_sub): New macro.
781 (__tgmath_complex_type): Likewise.
782 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
783 (__TGMATH_CF128): Use __expr_is_real.
784 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
785 __expr_is_real.
786 (__TGMATH_BINARY_REAL_IMAG): Likewise.
787 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
788 * math/gen-tgmath-tests.py (Type.create_type): Create complex
789 integer types.
790
791 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
792
793 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
794 macro.
795 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
796 alias.
797 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
798 Likewise.
799
800 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
801 nanosleep_not_cancel with __nanosleep_nocancel.
802 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
803 (__nanosleep_nocancel): New macro.
804 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
805 function.
806 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
807 macro.
808 (__nanosleep_nocancel): New prototype.
809
810 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
811 pause_not_cancel with __pause_nocancel.
812 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
813 (__pause_nocancel): New macro.
814 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
815 macro.
816 (__pause_nocancel): New prototype.
817 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
818
819 2017-08-22 Martin Sebor <msebor@redhat.com>
820
821 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
822 to return a pointer to the same type as the target function.
823
824 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
825
826 [BZ #18822]
827 [BZ #21986]
828 * include/printf.h (__printf_fphex): Add attribute_hidden.
829 (__guess_grouping): New prototype.
830 * stdio-common/printf_fp.c (__guess_grouping): Removed.
831 * stdio-common/reg-printf.c (__register_printf_specifier): Add
832 libc_hidden_proto and libc_hidden_def.
833 * stdlib/strfmon_l.c (__guess_grouping): Removed.
834 (__vstrfmon_l): Remove the third argument passed to
835 __guess_grouping.
836
837 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
838
839 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
840 definition for issignaling that does not rely on __MATH_TG,
841 since __MATH_TG uses __builtin_types_compatible_p, which is only
842 available in C mode.
843 (CFLAGS-test-math-issignaling.cc): New variable.
844 * math/Makefile [CXX] (tests): Add test-math-issignaling.
845 * math/test-math-issignaling.cc: New test for C++ implementation
846 of type-generic issignaling.
847 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
848 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
849 options of test-math-issignaling on powerpc64le.
850
851 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
852
853 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
854 building libc.a.
855 (hidden_proto): Likewise.
856 (hidden_tls_proto): Likewise.
857 (__hidden_proto): Likewise.
858
859 2017-08-22 Florian Weimer <fweimer@redhat.com>
860
861 math: Statically link tests of internal functionality.
862 * math/Makefile (tests): Remove atest-exp, atest-sincos,
863 atest-exp2.
864 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
865 (gmp-objs): Remove assignment.
866 (atest-exp, atest-sincos, atest-exp2): Remove targets.
867
868 2017-08-22 Joseph Myers <joseph@codesourcery.com>
869
870 [BZ #21987]
871 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
872 and copy to ...
873 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
874 ... here.
875 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
876 ... and here.
877
878 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
879 variable definitions above inclusion of ../Rules.
880
881 2017-08-21 Joseph Myers <joseph@codesourcery.com>
882
883 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
884 case calling __builtin_unreachable.
885
886 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
887
888 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
889 __waitpid_nocancel.
890 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
891 (__waitpid_nocancel): New macro.
892 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
893 macro.
894 (__waitpid_nocancel): Replace macro with a function.
895 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
896 function.
897
898 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
899 __fcntl_nocancel.
900 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
901 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
902
903 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
904 __writev_nocancel_nostatus.
905 (write_call_graph): Likewise.
906 (write_bb_counts): Likewise.
907 * resolv/herror.c (herror): Likewise.
908 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
909 macro.
910 (__writev_nocancel_nostatus): New macro.
911 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
912 Remove macro.
913 (__writev_nocancel_nostatus): New function.
914
915 2017-08-21 Joseph Myers <joseph@codesourcery.com>
916
917 Revert:
918 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
919
920 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
921 building libc.a.
922 (hidden_proto): Likewise.
923 (hidden_tls_proto): Likewise.
924 (__hidden_proto): Likewise.
925
926 [BZ #21973]
927 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
928 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
930 Likewise.
931 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
932 Likewise.
933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
934 Likewise.
935 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
936 Likewise.
937 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
938 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
939 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
940 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
941 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
942 GLIBC_2.0 sqrtl symbol.
943
944 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
945 [__USE_MISC] (_LIB_VERSION): Likewise.
946 [__USE_MISC] (struct exception): Likewise.
947 [__USE_MISC] (matherr): Likewise.
948 [__USE_MISC] (DOMAIN): Likewise.
949 [__USE_MISC] (SING): Likewise.
950 [__USE_MISC] (OVERFLOW): Likewise.
951 [__USE_MISC] (UNDERFLOW): Likewise.
952 [__USE_MISC] (TLOSS): Likewise.
953 [__USE_MISC] (PLOSS): Likewise.
954 [__USE_MISC] (HUGE): Likewise.
955 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
956 * math/math-svid-compat.h: New file.
957 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
958 and matherrl.
959 * include/math.h [!_ISOMAC] (__matherr): Remove.
960 * manual/arith.texi (FP Exceptions): Do not document matherr.
961 * math/Makefile (tests): Change test-matherr to test-matherr-3.
962 (tests-internal): New variable.
963 (install-lib): Do not add libieee.a.
964 (non-lib.a): Likewise.
965 (extra-objs): Do not add libieee.a and ieee-math.o.
966 (CPPFLAGS-s_lib_version.c): Remove variable.
967 ($(objpfx)libieee.a): Remove rule.
968 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
969 * math/ieee-math.c: Remove.
970 * math/libm-test-support.c (matherr): Remove.
971 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
972 and license notices. Include <math-svid-compat.h> and
973 <shlib-compat.h>.
974 (matherr): Undefine as macro. Use compat_symbol_reference.
975 (_LIB_VERSION): Likewise.
976 * math/test-matherr-2.c: New file.
977 * math/test-matherr-3.c: Likewise.
978 * sysdeps/generic/math_private.h (__kernel_standard): Remove
979 declaration.
980 (__kernel_standard_f): Likewise.
981 (__kernel_standard_l): Likewise.
982 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
983 <math_private.h>. Include <math-svid-compat.h>.
984 (_LIB_VERSION): Undefine as macro.
985 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
986 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
987 [LIBM_SVID_COMPAT], use compat_symbol.
988 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
989 <math_private.h>. Include <math-svid-compat.h>.
990 (matherr): Undefine as macro.
991 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
992 compat_symbol.
993 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
994 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
995 compat_symbol_reference.
996 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
997 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
998 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
999 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
1000 (MATHERR_D): Remove declaration.
1001 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
1002 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
1003 [LIBM_BUILD] (pmatherrf): Likewise.
1004 [LIBM_BUILD] (pmatherr): Likewise.
1005 [LIBM_BUILD] (pmatherrl): Likewise.
1006 (DOMAIN): Likewise.
1007 (SING): Likewise.
1008 (OVERFLOW): Likewise.
1009 (UNDERFLOW): Likewise.
1010 (TLOSS): Likewise.
1011 (PLOSS): Likewise.
1012 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
1013 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
1014 compat_symbol.
1015 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
1016 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
1017 compat_symbol.
1018 * math/lgamma-compat.h: Include <math-svid-compat.h>.
1019 * math/w_acos_compat.c: Likewise.
1020 * math/w_acosf_compat.c: Likewise.
1021 * math/w_acosh_compat.c: Likewise.
1022 * math/w_acoshf_compat.c: Likewise.
1023 * math/w_acoshl_compat.c: Likewise.
1024 * math/w_acosl_compat.c: Likewise.
1025 * math/w_asin_compat.c: Likewise.
1026 * math/w_asinf_compat.c: Likewise.
1027 * math/w_asinl_compat.c: Likewise.
1028 * math/w_atan2_compat.c: Likewise.
1029 * math/w_atan2f_compat.c: Likewise.
1030 * math/w_atan2l_compat.c: Likewise.
1031 * math/w_atanh_compat.c: Likewise.
1032 * math/w_atanhf_compat.c: Likewise.
1033 * math/w_atanhl_compat.c: Likewise.
1034 * math/w_cosh_compat.c: Likewise.
1035 * math/w_coshf_compat.c: Likewise.
1036 * math/w_coshl_compat.c: Likewise.
1037 * math/w_exp10_compat.c: Likewise.
1038 * math/w_exp10f_compat.c: Likewise.
1039 * math/w_exp10l_compat.c: Likewise.
1040 * math/w_exp2_compat.c: Likewise.
1041 * math/w_exp2f_compat.c: Likewise.
1042 * math/w_exp2l_compat.c: Likewise.
1043 * math/w_fmod_compat.c: Likewise.
1044 * math/w_fmodf_compat.c: Likewise.
1045 * math/w_fmodl_compat.c: Likewise.
1046 * math/w_hypot_compat.c: Likewise.
1047 * math/w_hypotf_compat.c: Likewise.
1048 * math/w_hypotl_compat.c: Likewise.
1049 * math/w_j0_compat.c: Likewise.
1050 * math/w_j0f_compat.c: Likewise.
1051 * math/w_j0l_compat.c: Likewise.
1052 * math/w_j1_compat.c: Likewise.
1053 * math/w_j1f_compat.c: Likewise.
1054 * math/w_j1l_compat.c: Likewise.
1055 * math/w_jn_compat.c: Likewise.
1056 * math/w_jnf_compat.c: Likewise.
1057 * math/w_jnl_compat.c: Likewise.
1058 * math/w_lgamma_main.c: Likewise.
1059 * math/w_lgamma_r_compat.c: Likewise.
1060 * math/w_lgammaf_main.c: Likewise.
1061 * math/w_lgammaf_r_compat.c: Likewise.
1062 * math/w_lgammal_main.c: Likewise.
1063 * math/w_lgammal_r_compat.c: Likewise.
1064 * math/w_log10_compat.c: Likewise.
1065 * math/w_log10f_compat.c: Likewise.
1066 * math/w_log10l_compat.c: Likewise.
1067 * math/w_log2_compat.c: Likewise.
1068 * math/w_log2f_compat.c: Likewise.
1069 * math/w_log2l_compat.c: Likewise.
1070 * math/w_log_compat.c: Likewise.
1071 * math/w_logf_compat.c: Likewise.
1072 * math/w_logl_compat.c: Likewise.
1073 * math/w_pow_compat.c: Likewise.
1074 * math/w_powf_compat.c: Likewise.
1075 * math/w_powl_compat.c: Likewise.
1076 * math/w_remainder_compat.c: Likewise.
1077 * math/w_remainderf_compat.c: Likewise.
1078 * math/w_remainderl_compat.c: Likewise.
1079 * math/w_scalb_compat.c: Likewise.
1080 * math/w_scalbf_compat.c: Likewise.
1081 * math/w_scalbl_compat.c: Likewise.
1082 * math/w_sinh_compat.c: Likewise.
1083 * math/w_sinhf_compat.c: Likewise.
1084 * math/w_sinhl_compat.c: Likewise.
1085 * math/w_sqrt_compat.c: Likewise.
1086 * math/w_sqrtf_compat.c: Likewise.
1087 * math/w_sqrtl_compat.c: Likewise.
1088 * math/w_tgamma_compat.c: Likewise.
1089 * math/w_tgammaf_compat.c: Likewise.
1090 * math/w_tgammal_compat.c: Likewise.
1091 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
1092 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
1093 * sysdeps/ieee754/k_standard.c: Likewise.
1094 * sysdeps/ieee754/k_standardf.c: Likewise.
1095 * sysdeps/ieee754/k_standardl.c: Likewise.
1096 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
1097 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
1098 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
1099 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1100 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1101 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1102 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1103 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
1104 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1106 Likewise.
1107 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1108 Likewise.
1109 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
1110 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1111 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1112 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1113
1114 2017-08-21 Florian Weimer <fweimer@redhat.com>
1115
1116 [BZ #21864]
1117 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
1118 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
1119 Move before inclusion of ../Rules.
1120
1121 2017-08-21 Florian Weimer <fweimer@redhat.com>
1122
1123 [BZ #21972]
1124 * assert/assert.h (assert): Use static_cast (bool) for C++.
1125 Use the ternary operator in the warning branch for GNU C.
1126 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
1127 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
1128 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
1129 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
1130 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
1131
1132 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1133
1134 [BZ #18822]
1135 * sysdeps/unix/sysv/linux/x86_64/init-first.c
1136 (__syscall_clock_gettime): Add attribute_hidden.
1137 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
1138 (__start_context): Likewise.
1139
1140 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1143 building libc.a.
1144 (hidden_proto): Likewise.
1145 (hidden_tls_proto): Likewise.
1146 (__hidden_proto): Likewise.
1147
1148 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1149
1150 * include/libc-symbols.h (attribute_hidden): Enable hidden
1151 visibility in libc.a compiled with PIE.
1152
1153 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 [BZ #18822]
1156 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
1157 Add attribute_hidden.
1158
1159 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1160
1161 [BZ #21864]
1162 * Makerules (all-nonlib): Add $(others-extras).
1163 * catgets/Makefile (others-extras): New.
1164 * elf/Makefile (others-extras): Likewise.
1165 * nss/Makefile (others-extras): Likewise.
1166
1167 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1168
1169 [BZ #18822]
1170 * csu/libc-start.c (__libc_multiple_libcs): Removed.
1171 * elf/dl-open.c: Include <libc-internal.h>.
1172 (__libc_multiple_libcs): Removed.
1173 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
1174 <hp-timing.h>.
1175 * include/libc-internal.h (__libc_multiple_libcs): New.
1176 * misc/sbrk.c: Include <libc-internal.h>.
1177 (__libc_multiple_libcs): Removed.
1178
1179 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
1180
1181 [BZ #18822]
1182 * grp/initgroups.c (__nss_group_database): Removed.
1183 (__nss_initgroups_database): Likewise.
1184 * nscd/gai.c (__nss_hosts_database): Likewise.
1185 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
1186 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1187 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1188 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1189 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
1190 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
1191 attribute_hidden.
1192 * nss/nsswitch.c (__nss_database_custom): Define only if
1193 USE_NSCD is defined.
1194 (__nss_configure_lookup): Use __nss_database_custom only if
1195 USE_NSCD is defined.
1196 * nss/nsswitch.h (__nss_database_custom): Declare only if
1197 USE_NSCD is defined. Add attribute_hidden.
1198 (__nss_setent): Add attribute_hidden.
1199 (__nss_endent): Likewise.
1200 (__nss_getent_r): Likewise.
1201 (__nss_getent): Likewise.
1202 (DEFINE_DATABASE): Declare __nss_##arg##_database.
1203
1204 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1205
1206 [BZ #18822]
1207 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
1208 libc_hidden_proto and libc_hidden_def.
1209
1210 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1211
1212 [BZ #18822]
1213 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
1214 Add libc_hidden_proto.
1215 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
1216 Add libc_hidden_def.
1217
1218 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1219
1220 [BZ #21974]
1221 * gmon/Makefile (routines): Remove bb_init_func and
1222 bb_exit_func.
1223 (elide-routines.os): Removed.
1224 * gmon/bb_exit_func.c: Likewise.
1225 * gmon/bb_init_func.c: Likewise.
1226 * include/sys/gmon.h (__bb): Likewise.
1227 (__bb_init_func): Likewise.
1228 (__bb_exit_func): Likewise.
1229 * sysdeps/alpha/bb_init_func.S: Likewise.
1230
1231 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
1232
1233 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
1234 * include/setjmp.h (____longjmp_chk): Here. Add
1235 attribute_hidden.
1236
1237 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
1238
1239 [BZ #18822]
1240 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
1241 attribute_hidden.
1242 (__strspn_sse2): Likewise.
1243
1244 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1245
1246 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
1247 (close_not_cancel_no_status): Likewise.
1248 (__close_nocancel): New macro.
1249 (__close_nocancel_nostatus): Likewise.
1250 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
1251 macro.
1252 (close_not_cancel): Likewise.
1253 (close_not_cancel_no_status): Likewise.
1254 (__close_nocancel): New prototype.
1255 (__close_nocancel_nostatus): New function.
1256 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
1257 * catgets/open_catalog.c (__open_catalog): Replace
1258 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
1259 * gmon/gmon.c (write_gmon): Likewise.
1260 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1261 * intl/loadmsgcat.c (close): Likewise.
1262 * io/ftw.c (open_dir_stream): Likewise.
1263 (ftw_startup): Likewise.
1264 * libio/fileops.c (_IO_file_open): Likewise.
1265 (_IO_file_close_mmap): Likewise.
1266 (_IO_file_close): Likewise.
1267 * libio/iopopen.c (_IO_dup2): Likewise.
1268 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1269 * locale/loadlocale.c (_nl_load_locale): Likewise.
1270 * login/utmp_file.c (pututline_file): Likewise.
1271 (endutent_file): Likewise.
1272 * misc/daemon.c (daemon): Likewise.
1273 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1274 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1275 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1276 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1277 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1278 * nscd/nscd_helper.c (open_socket): Likewise.
1279 (__nscd_open_socket): Likewise.
1280 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1281 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
1282 (__nscd_innetgr): Likewise.
1283 * nss/nss_db/db-open.c (internal_setent): Likewise.
1284 * resolv/res-close.c (__res_iclose): Likewise.
1285 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
1286 * sysdeps/posix/closedir.c (__closedir): Likewise.
1287 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
1288 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1289 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1290 (opendir_tail): Likewise.
1291 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1292 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
1293 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
1294 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1295 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1296 (gethostid): Likewise.
1297 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1298 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1299 Likewise.
1300 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1301 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
1302 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1303 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1304 Likewise.
1305 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
1306 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
1307 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1308 Likewise.
1309 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1310 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1311 Likewise.
1312 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1313 Likewise.
1314 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1315 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1316 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1317 __close_nocancel.
1318
1319 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
1320 (openat_not_cancel_3): Likewise.
1321 (openat64_not_cancel_3): Likewise).
1322 (openat_not_cancel_3): Likewise).
1323 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
1324 macro.
1325 (openat_not_cancel_3): Likewise.
1326 (openat64_not_cancel): Likewise.
1327 (openat64_not_cancel_3): Likewise.
1328 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
1329 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
1330 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
1331 __open{64}_nocancel.
1332 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1333 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1334 * sysdeps/posix/opendir.c (__opendirat): Likewise.
1335
1336 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 [BZ #18822]
1339 * include/argz.h (__argz_create_sep): New function prototype.
1340 (__argz_append): Likewise.
1341 (__argz_add): Likewise.
1342 (__argz_add_sep): Likewise.
1343 (__argz_delete): Likewise.
1344 (__argz_insert): Likewise.
1345 (__argz_replace): Likewise.
1346 * string/argz.h (__argz_create_sep): Removed.
1347 (__argz_append): Likewise.
1348 (__argz_add): Likewise.
1349 (__argz_add_sep): Likewise.
1350 (__argz_delete): Likewise.
1351 (__argz_insert): Likewise.
1352 (__argz_replace): Likewise.
1353
1354 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1355
1356 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
1357 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
1358 (GNU_PROPERTY_STACK_SIZE): Likewie.
1359 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
1360 (GNU_PROPERTY_LOPROC): Likewise.
1361 (GNU_PROPERTY_HIPROC): Likewise.
1362 (GNU_PROPERTY_LOUSER): Likewise.
1363 (GNU_PROPERTY_HIUSER): Likewise.
1364 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
1365 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
1366 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
1367 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
1368 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
1369 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
1370 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
1371 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
1372 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
1373 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
1374 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
1375 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
1376 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
1377 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
1378 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
1379 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
1380 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
1381 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
1382 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
1383 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
1384 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
1385 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
1386 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
1387
1388 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1389
1390 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
1391 in C++ mode.
1392
1393 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1394
1395 [BZ #21930]
1396 * math/math.h (isinf): Check if in C or C++ mode before using
1397 __builtin_types_compatible_p, since this is a C mode feature.
1398
1399 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1400
1401 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
1402 (__write_nocancel): New macro.
1403 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
1404 Rewrite as a function prototype.
1405 (write_not_cancel): Remove macro.
1406 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
1407 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
1408 (write_gmon): Likewise.
1409 * libio/fileops.c (_IO_new_file_write): Likewise.
1410 * login/utmp_file.c (pututline_file): Likewise.
1411 (updwtmp_file): Likewise.
1412 * stdio-common/psiginfo.c (psiginfo): Likewise.
1413 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1414 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1415 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1416 Likewise.
1417 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1418 Likewise.
1419
1420 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
1421 (__read_nocancel): New macro.
1422 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1423 __read_nocancel.
1424 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
1425 macro.
1426 (__read_nocancel): New prototype.
1427 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
1428 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
1429 with __read_nocancel.
1430 * intl/loadmsgcat.c (read): Likewise.
1431 * libio/fileops.c (_IO_file_read): Likewise.
1432 * locale/loadlocale.c (_nl_load_locale): Likewise.
1433 * login/utmp_file.c (getutent_r_file): Likewise.
1434 (internal_getut_r): Likewise.
1435 (getutline_r_file): Likewise.
1436 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1437 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1438 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1439 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
1442 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1443 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1444 Likewise.
1445 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1446 Likewise.
1447 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1448 Likewise.
1449 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1450 Likewise.
1451 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1452
1453 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1454
1455 [BZ #21966]
1456 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
1457 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
1458 usable.
1459
1460 2017-08-17 DJ Delorie <dj@redhat.com>
1461
1462 * bug17079.c: Update to new test harness.
1463 * test-digits-dots.c: Likewise.
1464 * test-netdb.c: Likewise.
1465 * tst-field.c: Likewise.
1466 * tst-nss-getpwent.c: Likewise.
1467 * tst-nss-static.c: Likewise.
1468 * tst-nss-test1.c: Likewise.
1469 * tst-nss-test2.c: Likewise.
1470 * tst-nss-test3.c: Likewise.
1471 * tst-nss-test4.c: Likewise.
1472 * tst-nss-test5.c: Likewise.
1473
1474 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1475
1476 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
1477 (open_not_cancel_2): Likewise.
1478 (open_nocancel): New macro.
1479 (open64_nocancel): Likewise.
1480 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
1481 (open_not_cancel_2): Likewise.
1482 (__open_nocancel): New prototype.
1483 (__open64_nocancel): Likewise.
1484 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1485 __open_nocancel.
1486 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
1487 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
1488 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
1489 with __open_nocancel.
1490 * csu/check_fds.c (check_one_fd): Likewise.
1491 * gmon/gmon.c (write_gmon): Likewise.
1492 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
1493 * intl/loadmsgcat.c (open): Likewise.
1494 * libio/fileops.c (_IO_file_open): Likewise.
1495 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1496 * locale/loadlocale.c (_nl_load_locale): Likewise.
1497 * login/utmp_file.c (setutent_file): Likewise.
1498 * misc/daemon.c (daemon): Likewise.
1499 * nss/nss_db/db-open.c (internal_setent): Likewise.
1500 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1501 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
1502 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1503 (__opendir): Likewise.
1504 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1505 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1506 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1507 (gethostid): Likewise.
1508 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1509 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1510 Likewise.
1511 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1512 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
1513 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1514 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1515 Likewise.
1516 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1517 Likewise.
1518 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1519 Likewise.
1520 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
1521 Likewise.
1522 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1523 Likewise.
1524 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1525 Likewise.
1526 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1527 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1528
1529 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
1530
1531 * benchtests/bench-skeleton.c (main): Add support for
1532 latency benchmarking.
1533 * benchtests/scripts/bench.py: Add support for latency benchmarking.
1534
1535 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
1536
1537 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
1538 the startup object.
1539
1540 2017-08-17 Florian Weimer <fweimer@redhat.com>
1541
1542 * include/sys/socket.h (__opensock): Remove internal_function.
1543 * socket/opensock.c (__opensock): Likewise.
1544 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
1545
1546 2017-08-16 Joseph Myers <joseph@codesourcery.com>
1547
1548 [BZ #21944]
1549 * signal/bits/types/__sigval_t.h: New file.
1550 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
1551 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
1552 and define sigval_t using __sigval_t.
1553 * include/bits/types/__sigval_t.h: New file.
1554 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
1555 instead of <bits/types/__sigval_t.h>.
1556 (struct sigevent): Use __sigval_t instead of sigval_t.
1557 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
1558 instead of <bits/types/__sigval_t.h>.
1559 (siginfo_t): Use __sigval_t instead of sigval_t.
1560 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
1561 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1562 (struct sigevent): Use __sigval_t instead of sigval_t.
1563 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
1564 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1565 (siginfo_t): Use __sigval_t instead of sigval_t.
1566 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
1567
1568 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1569
1570 * NEWS: Remove "[Add new features here]" for 2.27.
1571
1572 2017-08-16 Joseph Myers <joseph@codesourcery.com>
1573
1574 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
1575 libc.so.
1576
1577 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1578
1579 * NEWS: Mention x86-64 FMA optimization.
1580
1581 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
1582
1583 [BZ #21912]
1584 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1585 Add e_expf-fma.
1586 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
1587 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
1588 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
1589
1590 2017-08-16 Andreas Schwab <schwab@suse.de>
1591
1592 [BZ #16750]
1593 CVE-2009-5064
1594 * elf/ldd.bash.in: Never run file directly.
1595
1596 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 [BZ #21955]
1599 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
1600 (L(SP_INF_0)): Likewise.
1601
1602 2017-08-15 Florian Weimer <fweimer@redhat.com>
1603
1604 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
1605 run-built-tests.
1606
1607 2017-08-15 Florian Weimer <fweimer@redhat.com>
1608
1609 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
1610 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
1611 BROKEN_THREAD_SIGNALS code.
1612 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
1613 request_list): Remove caller_pid member used for
1614 BROKEN_THREAD_SIGNALS.
1615 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
1616 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
1617 Remove BROKEN_THREAD_SIGNALS support.
1618 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1619 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
1620
1621 2017-08-15 Florian Weimer <fweimer@redhat.com>
1622
1623 * gmon/Makefile (tests): Add tst-gmon.
1624 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
1625 Set.
1626 (tests-special): Add tst-gmon-prof.out.
1627 (tst-gmon.out): Depend on clean-tst-gmon-data.
1628 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
1629 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
1630 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
1631 startup object.
1632 * aclocal.m4 (GPROF): Set and substitute.
1633 * config.amke.in (GPROF): Set.
1634 * configure: Regenerate.
1635
1636 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
1637
1638 * elf/elf.h A (NT_PPC_TAR): New macro.
1639 (NT_PPC_PPR): Likewise.
1640 (NT_PPC_DSCR): Likewise.
1641 (NT_PPC_EBB): Likewise.
1642 (NT_PPC_PMU): Likewise.
1643 (NT_PPC_TM_CGPR): Likewise.
1644 (NT_PPC_TM_CFPR): Likewise.
1645 (NT_PPC_TM_CVMX): Likewise.
1646 (NT_PPC_TM_CVSX): Likewise.
1647 (NT_PPC_TM_SPR): Likewise.
1648 (NT_PPC_TM_CTAR): Likewise.
1649 (NT_PPC_TM_CPPR): Likewise.
1650 (NT_PPC_TM_CDSCR): Likewise.
1651
1652 2017-08-15 Florian Weimer <fweimer@redhat.com>
1653
1654 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
1655 regparm (2) instead of internal_function.
1656 (_MCOUNT_DECL): Adjust.
1657
1658 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
1659
1660 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
1661 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
1662
1663 2017-08-14 Joseph Myers <joseph@codesourcery.com>
1664
1665 * conform/data/sys/wait.h-data (si_value): Do not expect for
1666 XPG42.
1667
1668 2017-08-14 Florian Weimer <fweimer@redhat.com>
1669
1670 [BZ #21962]
1671 NSS: Create stubs for accidentally exported lookup functions.
1672 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
1673 Remove declaration.
1674 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1675 (ether_hostton): Call __nss_ethers_lookup2 instead.
1676 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
1677 (ether_ntohost): Call __nss_ethers_lookup2 instead.
1678 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
1679 (setup): Call __nss_netgroup_lookup2 instead.
1680 * nss/Makefile (routines): Add compat-lookup.
1681 * nss/Versions (GLIBC_2.27): Add symbol version.
1682 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
1683 (DB_COMPAT_FCT): Remove.
1684 * nss/compat-lookup.c: New file.
1685 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
1686 from databases.def.
1687 * nss/service-lookup.c (NO_COMPAT): Remove definition.
1688 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
1689 (netname2user): Call __nss_publickey_lookup2 instead.
1690 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
1691 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
1692 instead.
1693
1694 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1695 Sergei Trofimovich <slyfox@inbox.ru>
1696
1697 [BZ #21908]
1698 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
1699 Rename to MMAP2_PAGE_UNIT.
1700 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
1701 __OFF_T_MATCHES_OFF64_T is not defined.
1702 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
1703 uint64_t.
1704 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
1705 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
1706
1707 2017-08-14 Florian Weimer <fweimer@redhat.com>
1708
1709 i386: Do not set internal_function.
1710 * config.h.in (USE_REGPARMS, internal_function): Remove.
1711 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
1712 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
1713
1714 2017-08-14 Florian Weimer <fweimer@redhat.com>
1715
1716 * elf/dl-init.c (_dl_init): Remove internal_function.
1717 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
1718 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
1719
1720 2017-08-14 Florian Weimer <fweimer@redhat.com>
1721
1722 * elf/rtld.c (_dl_start): Remove internal_function.
1723 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
1724 _dl_start.
1725
1726 2017-08-14 Florian Weimer <fweimer@redhat.com>
1727
1728 * elf/dl-fini.c (_dl_fini): Remove internal_function
1729 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
1730
1731 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
1734 (bit_cpu_SHSTK): Likewise.
1735 (index_cpu_IBT): Likewise.
1736 (index_cpu_SHSTK): Likewise.
1737 (reg_IBT): Likewise.
1738 (reg_SHSTK): Likewise.
1739 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1740 Handle index_cpu_IBT and index_cpu_SHSTK.
1741
1742 2017-08-14 Mike FABIAN <mfabian@redhat.com>
1743
1744 [BZ #19982]
1745 * po/fr.po: Fix spelling mistake.
1746
1747 2017-08-13 Florian Weimer <fweimer@redhat.com>
1748
1749 * elf/dl-addr.c (_dl_addr): Remove internal_function.
1750 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
1751 (_dl_catch_error, _dl_receive_error): Likewise.
1752 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
1753 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
1754 (_dl_deallocate_tls): Likewise.
1755 * include/dlfcn.h (_dl_addr): Likewise.
1756 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
1757 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
1758 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
1759 Likewise.
1760
1761 2017-08-13 Florian Weimer <fweimer@redhat.com>
1762
1763 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
1764 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
1765 internal_function.
1766 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
1767
1768 2017-08-13 Florian Weimer <fweimer@redhat.com>
1769
1770 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
1771 internal_function.
1772 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
1773 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
1774 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
1775 internal_function from _dl_make_stack_executable_hook member.
1776 (_dl_make_stack_executable): Remove internal_function.
1777 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
1778 Likewise.
1779 * sysdeps/unix/sysv/linux/dl-execstack.c
1780 (_dl_make_stack_executable): Likewise.
1781
1782 2017-08-13 Florian Weimer <fweimer@redhat.com>
1783
1784 * sysdeps/unix/sysv/linux/netlinkaccess.h
1785 (__netlink_assert_response): Remove internal_function.
1786 * sysdeps/unix/sysv/linux/netlink_assert_response.c
1787 (__netlink_assert_response): Likewise.
1788
1789 2017-08-13 Florian Weimer <fweimer@redhat.com>
1790
1791 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
1792 internal_function.
1793 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
1794
1795 2017-08-13 Florian Weimer <fweimer@redhat.com>
1796
1797 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
1798 internal_function.
1799 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
1800 * inet/netgroup.h (__internal_setnetgrent)
1801 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1802 * inet/getnetgrent_r.c (__internal_setnetgrent)
1803 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1804 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
1805 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
1806 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
1807 * nss/nsswitch.h (db_lookup_function): Likewise.
1808
1809 2017-08-13 Florian Weimer <fweimer@redhat.com>
1810
1811 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
1812 Remove internal_function.
1813 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
1814 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
1815 message argument on the stack.
1816 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
1817 Likeweise.
1818
1819 2017-08-12 Mike FABIAN <mfabian@redhat.com>
1820
1821 Adapt test case data to the changes in the thousands
1822 separators.
1823
1824 [BZ #20756]
1825 * localedata/tst-langinfo.sh: Adapt test case data.
1826 * stdlib/tst-strfmon_l.c: Likewise.
1827 * stdlib/tst-strtod4.c: Likewise.
1828 * stdlib/tst-strtod5i.c: Likewise.
1829
1830 2017-08-11 Florian Weimer <fweimer@redhat.com>
1831
1832 [BZ #21242]
1833 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
1834 Suppress pedantic warning resulting from statement expression.
1835 (__ASSERT_FUNCTION): Add missing __extension__.
1836
1837 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
1838
1839 * benchtests/bench-memmove-large.c: Print output in JSON
1840 format.
1841 * benchtests/bench-memmove.c: Likewise.
1842
1843 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
1844 * benchtests/bench-memchr.c (do_one_test): Likewise.
1845 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
1846 * benchtests/bench-memcpy.c (do_one_test): Likewise.
1847 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
1848 * benchtests/bench-memmove.c (do_one_test): Likewise.
1849 * benchtests/bench-memset-large.c (do_one_test): Likewise.
1850 * benchtests/bench-memset.c (do_one_test): Likewise.
1851 * benchtests/bench-string.h (test_init): Remove memsets.
1852
1853 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
1854
1855 * manual/lang.texi
1856 (Computing the Width of an Integer Data Type): Rename section to
1857 "Width of an Integer Type". Remove inaccurate statement regarding
1858 lack of C language facilities for determining width of integer
1859 types, and reorder content to improve flow and context of
1860 discussion.
1861
1862 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
1863
1864 * lang.texi (va_copy): Change standard from ISO to C99.
1865 (__va_copy): Add standard and header annotation.
1866 Update description for clarity of origins and current use.
1867
1868 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
1869
1870 [BZ #21941]
1871 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
1872 xssqrtqp requires operands to be in Vector Registers
1873 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
1874 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
1875 (__ieee754_sqrtf128): Likewise.
1876
1877 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
1878
1879 * sysdeps/aarch64/memcmp.S (memcmp):
1880 Rewrite of optimized memcmp.
1881
1882 2017-08-10 Florian Weimer <fweimer@redhat.com>
1883
1884 Introduce ld.so exceptions.
1885 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
1886 (_dl_exception_create, _dl_exception_create_format)
1887 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
1888 (_dl_catch_exception): Declare.
1889 (_dl_catch_error): Update comment.
1890 * elf/dl-error-skeleton.c (struct catch): Replace objname,
1891 errstring, malloced members with exception member.
1892 (_dl_out_of_memory): Remove.
1893 (fatal_error): New function, extracted from _dl_signal_error.
1894 (_dl_signal_exception, _dl_signal_cexception): New functions.
1895 (_dl_signal_error): Call _dl_exception_create to allocate an
1896 exception object.
1897 (_dl_catch_exception): New function, based on _dl_catch_error.
1898 (_dl_catch_error): Implement using _dl_catch_exception.
1899 * elf/dl-exception.c: New file.
1900 * elf/Makefile (dl-routines): Add dl-exception.
1901 (elide-routines.os): Likewise.
1902 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
1903 _dl_exception_create_format, _dl_exception_free.
1904 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
1905 _dl_signal_exception.
1906 * elf/dl-lookup.c (make_string): Remove.
1907 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
1908 _dl_signal_cexception, _dl_exception_free.
1909 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
1910 _dl_signal_exception.
1911 * elf/dl-sym.c (do_sym): Likewise.
1912 * elf/dl-version.c (make_string): Remove.
1913 (match_symbol): Use _dl_exception_create_format,
1914 _dl_signal_cexception, _dl_exception_free.
1915 (_dl_check_map_versions): Likewise.
1916 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
1917 _dl_catch_exception.
1918 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
1919 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
1920 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
1921 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
1922 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
1923 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
1924 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
1925 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
1926 Likewise.
1927 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
1928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
1929 (ld.so): Likewise.
1930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
1931 (ld.so): Likewise.
1932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
1933 Likewise.
1934 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
1935 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
1936 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
1937 Likewise.
1938 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
1939 Likewise.
1940 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
1941
1942 2017-08-10 Florian Weimer <fweimer@redhat.com>
1943
1944 * inet/net-internal.h (__inet6_scopeid_pton): Remove
1945 attribute_hidden, internal_function.
1946 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
1947 internal_function.
1948
1949 2017-08-10 Florian Weimer <fweimer@redhat.com>
1950
1951 * malloc/malloc.c (get_max_fast): Reimplement as an inline
1952 function which calls __builtin_unreachable.
1953
1954 2017-08-10 Mike FABIAN <mfabian@redhat.com>
1955
1956 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
1957 Indian monetary formatting
1958 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
1959 test cases.
1960
1961 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
1962
1963 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
1964 Fix typo in comment.
1965
1966 [BZ #21928]
1967 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
1968 PTRACE_SEIZE_DEVEL): Remove.
1969 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
1970 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1971 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1972 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1973 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1974
1975 2017-08-09 Joseph Myers <joseph@codesourcery.com>
1976
1977 * posix/bits/types.h (__qaddr_t): Remove.
1978
1979 [BZ #21457]
1980 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
1981 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
1982 __glibc_reserved1.
1983 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
1984 (ucontext_t): Use __ctx with uc_flags.
1985 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
1986 (__ctxt): Likewise.
1987 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
1988 __glibc_reserved1.
1989 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
1990 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
1991 __glibc_reserved1.
1992 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
1993 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
1994 __glibc_reserved1.
1995 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
1996 macro.
1997 (ucontext_t): Use __ctx with uc_flags.
1998 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
1999 (ucontext_t): Use __ctx with uc_flags.
2000 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
2001 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
2002 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
2003 (ucontext_t): Use __ctx with uc_flags.
2004 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
2005 undefine further down.
2006 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
2007 __glibc_reserved1.
2008 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
2009 undefine further down.
2010 (ucontext_t): Use __ctx with uc_flags.
2011 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
2012 undefine further down.
2013 (ucontext_t): Use __ctx with uc_flags.
2014 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
2015 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
2016 Rename uc_pad to __glibc_reserved1.
2017 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
2018 undefine further down.
2019 (ucontext_t): Use __ctx with uc_flags.
2020 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
2021 further down.
2022 (ucontext_t): Use __ctx with uc_flags.
2023 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
2024 __ctx with uc_flags.
2025 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
2026 (ucontext_t): Use __ctx with uc_flags.
2027 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
2028 __ctx with uc_flags.
2029
2030 2017-08-09 Florian Weimer <fweimer@redhat.com>
2031
2032 [BZ #21932]
2033 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
2034 before early return.
2035
2036 2017-08-09 Andreas Schwab <schwab@suse.de>
2037
2038 [BZ #21041]
2039 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
2040 renamed alias.
2041
2042 [BZ #21041]
2043 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
2044 tst-compat-forwarder.
2045 (modules-names): Add tst-compat-forwarder-mod.
2046 ($(objpfx)tst-compat-forwarder): Depend on
2047 $(objpfx)tst-compat-forwarder-mod.so.
2048 * nptl/tst-compat-forwarder.c: New file.
2049 * nptl/tst-compat-forwarder-mod.c: New file.
2050
2051 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
2052
2053 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
2054 comments.
2055
2056 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
2057 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2058 memcpy_falkor.
2059 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
2060 Bump.
2061 (__libc_ifunc_impl_list): Add __memcpy_falkor.
2062 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
2063 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
2064 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2065 Add falkor.
2066 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
2067 New macro.
2068
2069 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2070
2071 [BZ #759]
2072 * manual/setjmp.texi (getcontex): Document uc_stack value
2073 compatibility differences.
2074
2075 2017-08-08 Joseph Myers <joseph@codesourcery.com>
2076
2077 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
2078 (old_malloc_hook): Likewise.
2079 (old_memalign_hook): Likewise.
2080 (old_realloc_hook): Likewise.
2081 (struct hdr): Likewise.
2082 (flood): Likewise.
2083 (freehook): Likewise.
2084 (mallochook): Likewise.
2085 (memalignhook): Likewise.
2086 (reallochook): Likewise.
2087 (mprobe): Likewise.
2088 * malloc/mtrace.c (mallwatch): Likewise.
2089 (tr_old_free_hook): Likewise.
2090 (tr_old_malloc_hook): Likewise.
2091 (tr_old_realloc_hook): Likewise.
2092 (tr_old_memalign_hook): Likewise.
2093 (tr_where): Likewise.
2094 (lock_and_info): Likewise.
2095 (tr_freehook): Likewise.
2096 (tr_mallochook): Likewise.
2097 (tr_reallochook): Likewise.
2098 (tr_memalignhook): Likewise.
2099 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
2100 * misc/mmap.c (__mmap): Likewise.
2101 * misc/mmap64.c (__mmap64): Likewise.
2102 * misc/mprotect.c (__mprotect): Likewise.
2103 * misc/msync.c (msync): Likewise.
2104 * misc/munmap.c (__munmap): Likewise.
2105 * posix/posix_madvise.c (posix_madvise): Likewise.
2106 * socket/send.c (__send): Likewise.
2107 * socket/sendto.c (__sendto): Likewise.
2108 * socket/setsockopt.c (__setsockopt): Likewise.
2109 * string/memcmp.c (__ptr_t): Remove macro.
2110 (MEMCMP): Use void * instead of ptr_t.
2111 * string/memrchr.c (__ptr_t): Remove macro.
2112 (__memrchr): Use void * instead of ptr_t.
2113 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
2114 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2115 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2116 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
2117 * sysdeps/mach/msync.c (msync): Likewise.
2118 * sysdeps/mach/munmap.c (__munmap): Likewise.
2119 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
2120 Likewise.
2121 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2122 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2123 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
2124 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
2125 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
2126 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2127 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
2128 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
2129 Likewise.
2130 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2131 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2132 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2133 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
2134 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
2135 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
2136 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
2137 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
2138 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
2139 Likewise.
2140 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
2141 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
2142 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
2143 (MEMCMP): Use void * instead of ptr_t.
2144 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
2145 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
2146
2147 2017-08-08 Florian Weimer <fweimer@redhat.com>
2148
2149 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
2150 return statement.
2151
2152 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
2153
2154 [BZ #21913]
2155 * csu/libc-tls.c: Include <startup.h> first.
2156 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
2157 * elf/dl-tunables.c: Include <startup.h> first.
2158 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
2159 * sysdeps/generic/startup.h: New file.
2160 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
2161 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
2162 (I386_USE_SYSENTER): New. Defined to 0.
2163
2164 2017-08-08 Andreas Schwab <schwab@suse.de>
2165
2166 [BZ #21041]
2167 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
2168 * nptl/pt-system.c (system): Likewise.
2169
2170 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2171
2172 [BZ #21780]
2173 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
2174 EOPNOTSUPP.
2175 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2176 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2177 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
2178 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2179 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2180 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2181 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2182
2183 2017-08-07 Joseph Myers <joseph@codesourcery.com>
2184
2185 [BZ #21899]
2186 * bits/sigaction.h (struct sigaction): Define sa_handler and
2187 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
2188 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2189 [__USE_XOPEN_EXTENDED].
2190 (SA_RESTART): Likewise.
2191 (SA_NODEFER): Likewise.
2192 (SA_RESETHAND): Likewise.
2193 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
2194 (struct sigaction): Define sa_handler and sa_sigaction using union
2195 also for [__USE_XOPEN_EXTENDED].
2196 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2197 [__USE_XOPEN_EXTENDED].
2198 (SA_RESTART): Likewise.
2199 (SA_NODEFER): Likewise.
2200 (SA_RESETHAND): Likewise.
2201 * sysdeps/unix/sysv/linux/bits/sigaction.h
2202 (struct sigaction): Define sa_handler and sa_sigaction using union
2203 also for [__USE_XOPEN_EXTENDED].
2204 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2205 [__USE_XOPEN_EXTENDED].
2206 (SA_RESTART): Likewise.
2207 (SA_NODEFER): Likewise.
2208 (SA_RESETHAND): Likewise.
2209 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
2210 (struct sigaction): Define sa_handler and sa_sigaction using union
2211 also for [__USE_XOPEN_EXTENDED].
2212 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2213 [__USE_XOPEN_EXTENDED].
2214 (SA_RESTART): Likewise.
2215 (SA_NODEFER): Likewise.
2216 (SA_RESETHAND): Likewise.
2217 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
2218 (struct sigaction): Define sa_handler and sa_sigaction using union
2219 also for [__USE_XOPEN_EXTENDED].
2220 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2221 [__USE_XOPEN_EXTENDED].
2222 (SA_RESTART): Likewise.
2223 (SA_NODEFER): Likewise.
2224 (SA_RESETHAND): Likewise.
2225 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
2226 (struct sigaction): Define sa_handler and sa_sigaction using union
2227 also for [__USE_XOPEN_EXTENDED].
2228 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2229 [__USE_XOPEN_EXTENDED].
2230 (SA_RESTART): Likewise.
2231 (SA_NODEFER): Likewise.
2232 (SA_RESETHAND): Likewise.
2233 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2234 (struct sigaction): Define sa_handler and sa_sigaction using union
2235 also for [__USE_XOPEN_EXTENDED].
2236 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2237 [__USE_XOPEN_EXTENDED].
2238 (SA_RESTART): Likewise.
2239 (SA_NODEFER): Likewise.
2240 (SA_RESETHAND): Likewise.
2241 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
2242 (struct sigaction): Define sa_handler and sa_sigaction using union
2243 also for [__USE_XOPEN_EXTENDED].
2244 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2245 [__USE_XOPEN_EXTENDED].
2246 (SA_RESTART): Likewise.
2247 (SA_NODEFER): Likewise. Define directly rather than as alias.
2248 (SA_RESETHAND): Likewise.
2249 (SA_INTERRUPT): Define only for [__USE_MISC].
2250 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
2251 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
2252 [__USE_MISC].
2253 (SA_STACK): Define only for [__USE_MISC].
2254 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
2255 (struct sigaction): Define sa_handler and sa_sigaction using union
2256 also for [__USE_XOPEN_EXTENDED].
2257 (SA_ONSTACK): Change [__USE_UNIX98] condition to
2258 [__USE_XOPEN_EXTENDED].
2259 (SA_RESTART): Likewise.
2260 (SA_NODEFER): Likewise.
2261 (SA_RESETHAND): Likewise.
2262 (SA_NOPTRACE): Define only for [__USE_MISC].
2263
2264 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
2265 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
2266 (struct catalog_info): Likewise.
2267 * inet/htontest.c (lo): Likewise.
2268 (foo): Likewise.
2269 * inet/inet_lnaof.c (inet_lnaof): Likewise.
2270 * inet/inet_net.c (inet_network): Likewise.
2271 * inet/inet_netof.c (inet_netof): Likewise.
2272 * inet/rcmd.c (__ivaliduser): Likewise.
2273 (iruserok): Likewise.
2274 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2275 * locale/programs/locale-spec.c (locale_special): Likewise.
2276 * nis/nis_findserv.c (struct findserv_req): Likewise.
2277 (__nis_findfastest_with_timeout): Likewise.
2278 * nss/test-netdb.c (test_network): Likewise.
2279 * resolv/inet_neta.c (inet_neta): Likewise.
2280 * resolv/ns_date.c (ns_datetosecs): Likewise.
2281 (SECS_PER_DAY): Likewise.
2282 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
2283 Likewise.
2284 * resolv/res_comp.c (__putlong): Likewise.
2285 (__putshort): Likewise.
2286 (_getlong): Likewise.
2287 (_getshort): Likewise.
2288 * resolv/res_debug.c (p_time): Likewise.
2289 (precsize_ntoa): Likewise.
2290 (precsize_aton): Likewise.
2291 (latlon2ul): Likewise.
2292 (loc_aton): Likewise.
2293 (loc_ntoa): Likewise.
2294 * resolv/res_hconf.c (struct netaddr): Likewise.
2295 (_res_hconf_reorder_addrs): Likewise.
2296 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
2297 (clnttcp_control): Likewise.
2298 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
2299 (clntudp_control): Likewise.
2300 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
2301 (clntunix_control): Likewise.
2302 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
2303 * sunrpc/rpc/auth.h (union des_block): Likewise.
2304 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
2305 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
2306 (xdrrec_create): Likewise.
2307 (xdrrec_endofrecord): Likewise.
2308 (flush_out): Likewise.
2309 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
2310 (xdrstdio_putlong): Likewise.
2311 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
2312 Likewise.
2313
2314 * misc/sys/cdefs.h (__long_double_t): Remove.
2315 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
2316 instead of __long_double_t,
2317 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
2318
2319 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
2320
2321 * benchtests/scripts/compare_strings.py: Avoid display error when
2322 running on a text terminal.
2323
2324 * benchtests/scripts/compare_strings.py (main): Add an
2325 optional -base option.
2326 (process_results): New argument base_func.
2327
2328 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
2329 hardcoding memcpy.
2330 * benchtests/bench-memcpy-large.c (test_name): Likewise.
2331 * benchtests/bench-memcpy-random.c (test_name): Likewise.
2332
2333 2017-08-07 Andreas Schwab <schwab@suse.de>
2334
2335 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
2336 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
2337 * intl/Makefile ($(objpfx)tst-gettext.out)
2338 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
2339 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
2340 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
2341 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
2342 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
2343 * posix/Makefile ($(objpfx)globtest.out)
2344 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
2345 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
2346 ($(objpfx)tst-printf.out): Likewise.
2347 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
2348 ($(objpfx)tst-setcontext3.out): Likewise.
2349
2350 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
2351
2352 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2353 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
2354 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
2355 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
2356 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
2357 and mptan-fma.
2358 (CFLAGS-doasin-fma.c): New.
2359 (CFLAGS-dosincos-fma.c): Likewise.
2360 (CFLAGS-e_asin-fma.c): Likewise.
2361 (CFLAGS-e_atan2-fma.c): Likewise.
2362 (CFLAGS-e_exp-fma.c): Likewise.
2363 (CFLAGS-e_log-fma.c): Likewise.
2364 (CFLAGS-e_pow-fma.c): Likewise.
2365 (CFLAGS-halfulp-fma.c): Likewise.
2366 (CFLAGS-mpa-fma.c): Likewise.
2367 (CFLAGS-mpatan-fma.c): Likewise.
2368 (CFLAGS-mpatan2-fma.c): Likewise.
2369 (CFLAGS-mpexp-fma.c): Likewise.
2370 (CFLAGS-mplog-fma.c): Likewise.
2371 (CFLAGS-mpsqrt-fma.c): Likewise.
2372 (CFLAGS-mptan-fma.c): Likewise.
2373 (CFLAGS-s_atan-fma.c): Likewise.
2374 (CFLAGS-sincos32-fma.c): Likewise.
2375 (CFLAGS-slowexp-fma.c): Likewise.
2376 (CFLAGS-slowpow-fma.c): Likewise.
2377 (CFLAGS-s_sin-fma.c): Likewise.
2378 (CFLAGS-s_tan-fma.c): Likewise.
2379 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
2380 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
2381 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
2382 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
2383 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
2384 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
2385 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
2386 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
2387 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
2388 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
2389 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
2390 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
2391 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
2392 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
2393 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
2394 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
2395 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
2396 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
2397 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
2398 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
2399 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
2400 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
2401 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
2402 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
2403 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
2404 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
2405 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
2406 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
2407 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
2408 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
2409 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
2410
2411 2017-08-04 Joseph Myers <joseph@codesourcery.com>
2412
2413 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
2414 (min_of_type_f): New macro.
2415 (min_of_type_): Likewise.
2416 (min_of_type_l): Likewise.
2417 (min_of_type_f128): Likewise.
2418 (min_of_type): Define using __MATH_TG and taking an expression
2419 argument.
2420 (math_check_force_underflow): Pass expression instead of type to
2421 min_of_type.
2422 (math_check_force_underflow_nonneg): Likewise.
2423
2424 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
2427 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
2428 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
2429
2430 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2431
2432 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2433 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
2434 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
2435 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
2436 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
2437 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
2438 memcpy_chk-nonshared, mempcpy_chk-nonshared,
2439 memmove_chk-nonshared and memset_chk-nonshared
2440 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
2441 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
2442 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
2443 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
2444 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
2445 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
2446 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
2447 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
2448 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
2449 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
2450 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
2451 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
2452 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
2453 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
2454 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
2455 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
2456 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
2457 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
2458 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
2459 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
2460 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
2461 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
2462 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
2463 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
2464 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
2465 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
2466 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
2467 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
2468 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
2469 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
2470 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
2471 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
2472 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
2473 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2474 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2475 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
2476 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
2477 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
2478 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
2479 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
2480 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
2481 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
2482 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
2483 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
2484 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
2485 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
2486 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
2487 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
2488 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
2489 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
2490 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
2491 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
2492 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
2493 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
2494 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
2495 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
2496 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
2497 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
2498 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
2499 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
2500 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
2501 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
2502 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
2503 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
2504 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
2505 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
2506 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
2507 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
2508 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
2509 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2510 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
2511 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2512 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2513 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2514 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2515 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2516 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2517 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2518 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2519 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2520 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2521 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2522 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2523 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2524 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2525 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2526 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2527 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2528 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2529 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2530 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2531 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2532 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2533 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2534 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2535 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2536 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2537 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2538 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2539 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2540 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2541 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2542 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2543 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2544 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2545 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2546 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2547 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2548
2549 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2550
2551 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
2552 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
2553 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
2554 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
2555 svml_d_log2_core-sse2, svml_d_log4_core-sse,
2556 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
2557 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
2558 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
2559 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
2560 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
2561 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
2562 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
2563 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
2564 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
2565 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
2566 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
2567 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
2568 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
2569 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
2570 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
2571 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
2572 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
2573 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
2574 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
2575 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
2576 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
2577 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
2578 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
2579 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
2580 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
2581 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
2582 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
2583 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
2584 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
2585 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
2586 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
2587 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
2588 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
2589 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
2590 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
2591 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
2592 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
2593 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
2594 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
2595 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
2596 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
2597 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
2598 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
2599 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
2600 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
2601 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
2602 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
2603 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
2604 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
2605 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
2606 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
2607 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
2608 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
2609 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
2610 ...
2611 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
2612 Don't include <sysdep.h> nor <init-arch.h>.
2613 (_ZGVbN2v_cos): Removed.
2614 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
2615 ...
2616 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
2617 Don't include <sysdep.h> nor <init-arch.h>.
2618 (_ZGVdN4v_cos): Removed.
2619 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
2620 ...
2621 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
2622 Don't include <sysdep.h> nor <init-arch.h>.
2623 (_ZGVeN8v_cos): Removed.
2624 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
2625 ...
2626 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
2627 Don't include <sysdep.h> nor <init-arch.h>.
2628 (_ZGVbN2v_exp): Removed.
2629 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
2630 ...
2631 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
2632 Don't include <sysdep.h> nor <init-arch.h>.
2633 (_ZGVdN4v_exp): Removed.
2634 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
2635 ...
2636 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
2637 Don't include <sysdep.h> nor <init-arch.h>.
2638 (_ZGVeN8v_exp): Removed.
2639 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
2640 ...
2641 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
2642 Don't include <sysdep.h> nor <init-arch.h>.
2643 (_ZGVbN2v_log): Removed.
2644 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
2645 ...
2646 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
2647 Don't include <sysdep.h> nor <init-arch.h>.
2648 (_ZGVdN4v_log): Removed.
2649 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
2650 ...
2651 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
2652 Don't include <sysdep.h> nor <init-arch.h>.
2653 (_ZGVeN8v_log): Removed.
2654 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
2655 ...
2656 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
2657 Don't include <sysdep.h> nor <init-arch.h>.
2658 (_ZGVbN2vv_pow): Removed.
2659 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
2660 ...
2661 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
2662 Don't include <sysdep.h> nor <init-arch.h>.
2663 (_ZGVdN4vv_pow): Removed.
2664 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
2665 ...
2666 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
2667 Don't include <sysdep.h> nor <init-arch.h>.
2668 (_ZGVeN8vv_pow): Removed.
2669 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
2670 ...
2671 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
2672 Don't include <sysdep.h> nor <init-arch.h>.
2673 (_ZGVbN2v_sin): Removed.
2674 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
2675 ...
2676 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
2677 Don't include <sysdep.h> nor <init-arch.h>.
2678 (_ZGVbN4v_sin): Removed.
2679 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
2680 ...
2681 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
2682 Don't include <sysdep.h> nor <init-arch.h>.
2683 (_ZGVbN8v_sin): Removed.
2684 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
2685 ...
2686 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
2687 Don't include <sysdep.h> nor <init-arch.h>.
2688 (_ZGVbN2vvv_sincos): Removed.
2689 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
2690 ...
2691 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
2692 Don't include <sysdep.h> nor <init-arch.h>.
2693 (_ZGVdN4vvv_sincos): Removed.
2694 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
2695 ...
2696 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
2697 Don't include <sysdep.h> nor <init-arch.h>.
2698 (_ZGVeN8vvv_sincos): Removed.
2699 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
2700 ...
2701 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
2702 Don't include <sysdep.h> nor <init-arch.h>.
2703 (_ZGVeN16v_cosf): Removed.
2704 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
2705 ...
2706 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
2707 Don't include <sysdep.h> nor <init-arch.h>.
2708 (_ZGVbN4v_cosf): Removed.
2709 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
2710 ...
2711 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
2712 Don't include <sysdep.h> nor <init-arch.h>.
2713 (_ZGVdN8v_cosf): Removed.
2714 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
2715 ...
2716 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
2717 Don't include <sysdep.h> nor <init-arch.h>.
2718 (_ZGVeN16v_expf): Removed.
2719 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
2720 ...
2721 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
2722 Don't include <sysdep.h> nor <init-arch.h>.
2723 (_ZGVbN4v_expf): Removed.
2724 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
2725 ...
2726 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
2727 Don't include <sysdep.h> nor <init-arch.h>.
2728 (_ZGVdN8v_expf): Removed.
2729 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
2730 ...
2731 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
2732 Don't include <sysdep.h> nor <init-arch.h>.
2733 (_ZGVeN16v_logf): Removed.
2734 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
2735 ...
2736 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
2737 Don't include <sysdep.h> nor <init-arch.h>.
2738 (_ZGVbN4v_logf): Removed.
2739 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
2740 ...
2741 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
2742 Don't include <sysdep.h> nor <init-arch.h>.
2743 (_ZGVdN8v_logf): Removed.
2744 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
2745 ...
2746 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
2747 Don't include <sysdep.h> nor <init-arch.h>.
2748 (_ZGVeN16vv_powf): Removed.
2749 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
2750 ...
2751 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
2752 Don't include <sysdep.h> nor <init-arch.h>.
2753 (_ZGVbN4vv_powf): Removed.
2754 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
2755 ...
2756 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
2757 Don't include <sysdep.h> nor <init-arch.h>.
2758 (_ZGVdN8vv_powf): Removed.
2759 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
2760 ...
2761 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
2762 Don't include <sysdep.h> nor <init-arch.h>.
2763 (_ZGVeN16vvv_sincosf): Removed.
2764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
2765 ...
2766 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
2767 Don't include <sysdep.h> nor <init-arch.h>.
2768 (_ZGVbN4vvv_sincosf): Removed.
2769 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
2770 ...
2771 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
2772 Don't include <sysdep.h> nor <init-arch.h>.
2773 (_ZGVdN8vvv_sincosf): Removed.
2774 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
2775 ...
2776 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
2777 Don't include <sysdep.h> nor <init-arch.h>.
2778 (_ZGVeN16v_sinf): Removed.
2779 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
2780 ...
2781 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
2782 Don't include <sysdep.h> nor <init-arch.h>.
2783 (_ZGVbN4v_sinf): Removed.
2784 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
2785 ...
2786 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
2787 Don't include <sysdep.h> nor <init-arch.h>.
2788 (_ZGVdN8v_sinf): Removed.
2789
2790 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2791
2792 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2793 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
2794 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
2795 s_rint-sse4_1 and s_rintf-sse4_1.
2796 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
2797 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
2798 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
2799 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
2800 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
2801 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
2802 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
2803 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
2804 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
2805 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
2806 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
2807 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2808 (__ceil): Removed.
2809 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
2810 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
2811 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2812 (__ceilf): Removed.
2813 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
2814 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
2815 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2816 (__floor): Removed.
2817 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
2818 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
2819 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2820 (__floorf): Removed.
2821 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
2822 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
2823 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2824 (__nearbyint): Removed.
2825 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
2826 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
2827 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2828 (__nearbyintf): Removed.
2829 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
2830 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
2831 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2832 (__rint): Removed.
2833 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
2834 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
2835 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
2836 (__rintf): Removed.
2837
2838 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2839
2840 * sysdeps/i386/start.S (_start): Check Check PIC instead of
2841 SHARED. Avoid dynamic relocation against main in static PIE.
2842
2843 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2844
2845 [BZ #21815]
2846 * elf/Makefile (CFLAGS-tst-prelink.c): New.
2847 (LDFLAGS-tst-prelink): Likewise.
2848
2849 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2850
2851 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
2852 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
2853 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
2854 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
2855 (INTERNAL_SYSCALL_NCS): Likewise.
2856 (LOADARGS_1): Likewise.
2857 (LOADARGS_5): Likewise.
2858 (RESTOREARGS_1): Likewise.
2859 (RESTOREARGS_5): Likewise.
2860
2861 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2862
2863 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
2864 (MEMPCPY_SYMBOL): Likewise.
2865 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
2866 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
2867 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
2868 in libc.a.
2869 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2870 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2871 Likewise.
2872 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
2873 (__hidden_ver1): Don't use in libc.a.
2874 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2875 (__mempcpy): Don't create a weak alias in libc.a.
2876 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
2877 libc.a.
2878 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
2879 (__hidden_ver1): Don't use in libc.a.
2880
2881 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2882
2883 * config.make.in (have-insert): New.
2884 * configure.ac (libc_cv_insert): New. Set to yes if linker
2885 supports INSERT in linker script.
2886 (AC_SUBST(libc_cv_insert): New.
2887 * configure: Regenerated.
2888 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
2889 if $(have-insert) == yes.
2890
2891 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2892
2893 * elf/Makefile (tests): Add vismain only if
2894 $(have-protected-data) == yes.
2895 (tests-pie): Likewise.
2896
2897 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2898
2899 [BZ #21871]
2900 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
2901 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
2902
2903 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
2904
2905 [BZ #21790]
2906 * sysdeps/i386/i586/memset.S
2907 (__memset_zero_constant_len_parameter): Removed.
2908 * sysdeps/i386/i686/memset.S
2909 (__memset_zero_constant_len_parameter): Likewise.
2910 * sysdeps/i386/i686/multiarch/memset_chk.S
2911 (__memset_zero_constant_len_parameter): Likewise.
2912 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
2913 Likewise.
2914
2915 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
2916
2917 * stdlib/getentropy.c (getentropy): Change return type to int.
2918
2919 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
2920
2921 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
2922
2923 2017-08-03 Joseph Myers <joseph@codesourcery.com>
2924
2925 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
2926 u_intN_t.
2927 * math/s_nexttowardf.c (__nexttowardf): Likewise.
2928 * sysdeps/generic/math_private.h (ieee_double_shape_type):
2929 Likewise.
2930 (ieee_float_shape_type): Likewise.
2931 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
2932 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
2933 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
2934 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2935 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
2936 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
2937 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
2938 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
2939 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2940 Likewise.
2941 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
2942 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
2943 (__ieee754_yn): Likewise.
2944 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
2945 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2946 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
2947 Likewise.
2948 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
2949 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
2950 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
2951 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
2952 (__erfc): Likewise.
2953 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
2954 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
2955 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
2956 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
2957 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
2958 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
2959 Likewise.
2960 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
2961 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
2962 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2963 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
2964 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
2965 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
2966 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
2967 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
2968 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
2969 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
2970 (__issignaling): Likewise.
2971 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
2972 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
2973 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2974 Likewise.
2975 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2976 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2977 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
2978 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
2979 Likewise.
2980 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
2981 Likewise.
2982 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
2983 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
2984 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
2985 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
2986 (__erfcf): Likewise.
2987 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
2988 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
2989 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
2990 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
2991 Likewise.
2992 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
2993 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
2994 Likewise.
2995 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
2996 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
2997 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
2998 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
2999 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
3000 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
3001 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
3002 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
3003 Likewise.
3004 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
3005 Likewise.
3006 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
3007 Likewise.
3008 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
3009 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3010 Likewise.
3011 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
3012 Likewise.
3013 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3014 (__ieee754_ynl): Likewise.
3015 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3016 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
3017 Likewise.
3018 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
3019 Likewise.
3020 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
3021 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
3022 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3023 Likewise.
3024 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
3025 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
3026 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
3027 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
3028 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
3029 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
3030 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
3031 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
3032 Likewise.
3033 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
3034 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
3035 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
3036 Likewise.
3037 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3038 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
3039 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3040 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
3041 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
3042 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3043 Likewise.
3044 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3045 Likewise.
3046 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3047 Likewise.
3048 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3049 Likewise.
3050 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
3051 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
3052 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3053 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
3054 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
3055 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
3056 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
3057 Likewise.
3058 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3059 Likewise.
3060 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3061 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3062 Likewise.
3063 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
3064 (__ieee754_remainderl): Likewise.
3065 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3066 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3067 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
3068 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
3069 Likewise.
3070 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
3071 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3072 Likewise.
3073 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
3074 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
3075 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
3076 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
3077 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
3078 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3079 Likewise.
3080 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
3081 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
3082 (__ieee754_y0l): Likewise.
3083 (pzero): Likewise.
3084 (qzero): Likewise.
3085 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
3086 (__ieee754_y1l): Likewise.
3087 (pone): Likewise.
3088 (qone): Likewise.
3089 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3090 (__ieee754_ynl): Likewise.
3091 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3092 (__ieee754_lgammal_r): Likewise.
3093 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
3094 Likewise.
3095 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
3096 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
3097 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
3098 (__erfcl): Likewise.
3099 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
3100 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
3101 Likewise.
3102 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3103 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
3104 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3105 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
3106 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
3107 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3108 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3109 Likewise.
3110 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
3111 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
3112 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
3113 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
3114 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3115 Likewise.
3116 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
3117 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
3118 Likewise.
3119 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
3120 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
3121 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
3122 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3123 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3124
3125 2017-08-03 Florian Weimer <fweimer@redhat.com>
3126
3127 [BZ #21885]
3128 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
3129 on memory allocation failure.
3130
3131 2017-08-03 Alan Modra <amodra@gmail.com>
3132
3133 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
3134 tst-tlsopt-powerpc.c with function name change and no test harness.
3135 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
3136 Call tls_get_addr_opt_test.
3137 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
3138 (modules-names): Add mod-tlsopt-powerpc.
3139 (mod-tlsopt-powerpc.so-no-z-defs): Define.
3140 (tst-tlsopt-powerpc): Depend on .so.
3141 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
3142 define. Expand use in TLS_GD and TLS_LD.
3143
3144 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3145
3146 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
3147 function.
3148 * sysdeps/posix/shm_open.c: Include <pthread.h>.
3149
3150 2017-08-02 Joseph Myers <joseph@codesourcery.com>
3151
3152 [BZ #21686]
3153 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
3154 comparing size with that of double.
3155 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3156 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3157 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3158 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3159 (__TGMATH_BINARY_REAL_IMAG): Likewise.
3160 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
3161 unsigned __int128 types.
3162
3163 2017-08-02 Steve Ellcey <sellcey@cavium.com>
3164
3165 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
3166 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
3167 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
3168 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
3169 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
3170
3171 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3172
3173 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
3174
3175 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3176
3177 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
3178 of SHARED.
3179 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
3180 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3181 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3182 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3183 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3184 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3185 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3186
3187 2017-08-02 Joseph Myers <joseph@codesourcery.com>
3188
3189 [BZ #21685]
3190 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
3191 bit-field expressions passed to sizeof or typeof.
3192 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3193 (__TGMATH_F128): Likewise.
3194 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3195 (__TGMATH_CF128): Likewise.
3196 (__TGMATH_UNARY_REAL_ONLY): Likewise.
3197 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
3198 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
3199 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
3200 (__TGMATH_BINARY_REAL_ONLY): Likewise.
3201 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3202 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3203 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3204 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3205 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
3206 (__TGMATH_UNARY_REAL_IMAG): Likewise.
3207 (__TGMATH_UNARY_IMAG): Likewise.
3208 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3209 (__TGMATH_BINARY_REAL_IMAG): Likewise.
3210 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
3211 type.
3212 (define_vars_for_type): Handle bit_field type specially.
3213 (Tests.__init__): Declare structure with bit-field element.
3214
3215 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 [BZ #21791]
3218 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
3219 (MEMCPY_CHK): Define only if SHARED is defined.
3220 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
3221 Likewise.
3222 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
3223 Likewise.
3224
3225 See ChangeLog.18 for earlier changes.