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