hurd: Fix link cthread/pthread symbol exposition.
[platform/upstream/glibc.git] / ChangeLog
1 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2
3         * hurd/hurdsig.c: Include <pthread.h>.
4         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
5         get the signal thread stack layout.
6         * hurd/Makefile (headers): Remove threadvar.h.
7         (inline-headers): Remove threadvar.h.
8         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
9         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
10         __hurd_threadvar_max, __hurd_errno_location.
11         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
12         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
15         unless TLS is not initialized yet, in which case we do not need a
16         critical section yet anyway.
17         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
18         <machine-sp.h>.
19         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
20         declarations.
21         (__hurd_threadvar_index): Remove enum.
22         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
23         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
24         inlines.
25         (__hurd_reply_port0): New variable declaration.
26         (__hurd_local_reply_port): New macro.
27         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
28         (interrupted_reply_port_location): Add thread_t parameter.  Use it
29         with THREAD_TCB to access thread-local variables.
30         (_hurdsig_abort_rpcs): Pass ss->thread to
31         interrupted_reply_port_location.
32         (_hurd_internal_post_signal): Likewise.
33         (_hurdsig_init): Use presence of cthread_fork instead of
34         __hurd_threadvar_stack_mask to start signal thread by hand.
35         Remove signal thread threadvar initialization.
36         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
37         * hurd/sigunwind.c: Include <hurd/threadvar.h>
38         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
39         of threadvar.
40         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
41         __libc_lock_self0.
42         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
43         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
44         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
45         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
46         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
47         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
48         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
49         define variables.
50         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
51         <hurd/threadvar.h>.
52         [IS_IN(rtld)] (rtld_errno): New variable.
53         [IS_IN(rtld)] (__errno_location): New weak function.
54         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
55         * sysdeps/mach/hurd/errno.c: Remove file.
56         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
57         (__fork): Remove THREADVAR_SPACE macro and its use.
58         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
59         variable.
60         (init): Do not initialize threadvar.
61         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
62         symbol.
63         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
64         __hurd_local_reply_port instead of threadvar.
65         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
66         _hurd_sigstate fields.
67         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
68         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
69         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
70         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
71         instead of threadvar.
72         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
73         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
74         (use_threadvar, global_reply_port): Remove variables.
75         (__hurd_reply_port0): New variable.
76         (__mig_get_reply_port): Use __hurd_local_reply_port and
77         __hurd_reply_port0 instead of threadvar.
78         (__mig_dealloc_reply_port): Likewise.
79         (__mig_init): Do not initialize threadvar.
80         * sysdeps/mach/hurd/profil.c: Fix comment.
81         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
82         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
83         cthread_keycreate, cthread_getspecific, cthread_setspecific to
84         __cthread_fork, __cthread_detach, __pthread_getattr_np,
85         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
86         __cthread_setspecific.
87         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
88         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
89         __cthread_t instead of cthread_fork, cthread_detach,
90         pthread_getattr_np, pthread_attr_getstack.
91         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
92         __cthread_keycreate.
93         (cthread_getspecific): Rename to __cthread_getspecific.
94         (cthread_setspecific): Rename to __cthread_setspecific.
95         (__libc_getspecific): Use __cthread_getspecific instead of
96         cthread_getspecific.
97         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
98         __cthread_keycreate instead of cthread_keycreate.
99         (__libc_setspecific): Use __cthread_setspecific instead of
100         cthread_setspecific.
101         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
102         Likewise.
103
104 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
105
106         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
107         Define macro.
108         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
109         * sysdeps/mach/i386/thread_state.h
110         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
111         i386_THREAD_STATE.
112         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
113         i386_THREAD_STATE.
114         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
115
116         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
117         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
118
119         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
120         macros.
121         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
122         descriptor instead of creating a new one.
123         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
124
125         * mach/setup-thread.c: Include <ldsodefs.h>.
126         (__mach_setup_thread): Call _dl_allocate_tls, pass
127         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
128         MACHINE_THREAD_STATE_FLAVOR, before getting
129         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
130         MACHINE_THREAD_STATE_FLAVOR with the result.
131         * hurd/hurdfault.c (_hurdsig_fault_init): Call
132         MACHINE_THREAD_STATE_FIX_NEW.
133         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
134         too.  Add original thread parameter.
135
136 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
137
138         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
139         Remove inline function.
140
141         * sysdeps/i386/fpu/libm-test-ulps: Update.
142         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
143
144 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
145
146         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
147         commit.
148
149 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
150
151         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
152         (__sincos_code): Remove define and undefine.
153         [__FAST_MATH__] (__sincos): Remove inline function.
154         [__FAST_MATH__] (__sincosf): Remove inline function.
155         [__FAST_MATH__] (__sincosl): Remove inline function.
156         (__atan2l): Remove inline functions.
157         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
158         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
159         function.
160         (floor): Remove inline function.
161         (ceil): Likewise.
162         [__FAST_MATH__] (__ldexp_code): Remove macro.
163         [__FAST_MATH__] (ldexp): Remove inline function.
164         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
165         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
166         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
167         [__USE_ISOC99] (__lrint_code): Remove macro.
168         [__USE_ISOC99] (__llrint_code): Likewise.
169         [__USE_ISOC99] (lrintf): Remove inline function.
170         [__USE_ISOC99] (lrint): Likewise.
171         [__USE_ISOC99] (lrintl): Likewise.
172         [__USE_ISOC99] (llrint): Likewise.
173         [__USE_ISOC99] (llrintf): Likewise.
174         [__USE_ISOC99] (llrintl): Likewise.
175
176 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
177
178         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
179         (__ieee754_sqrtf): Remove.
180         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
181         (__ieee754_sqrtf): Remove.
182         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
183         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
184         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
185         (__ieee754_sqrtf): Remove.
186         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
187         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
188         (sqrtf): Remove.
189         (sqrtl): Remove.
190         (__ieee754_sqrt): Remove.
191         (__ieee754_sqrtf): Remove.
192         (__ieee754_sqrtl): Remove.
193         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
194         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
195         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
196         (__ieee754_sqrtf): Remove.
197         (__ieee754_sqrtl): Remove.
198
199 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
200
201         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
202         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
203         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
204         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
205         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
206         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
207         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
208         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
209         Likewise.
210         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
211         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
212         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
213         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
214         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
215         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
216         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
217         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
218         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
219         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
220         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
221         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
222         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
223         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
224         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
225         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
226         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
227         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
228         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
229         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
230         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
231         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
232         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
233         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
234         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
235         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
236         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
237         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
238         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
239         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
240         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
241         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
242         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
243         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
244         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
245         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
246         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
247         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
248         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
249         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
250
251 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
252
253         * include/math.h (sqrt): Declare with asm redirect.
254         (sqrtf): Likewise.
255         (sqrtl): Likewise.
256         (sqrtf128): Likewise.
257         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
258         nonlib and libnldbl with -fmath-errno.
259         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
260         * math/w_sqrt_template.c: Likewise.
261         * math/w_sqrtf_compat.c: Likewise.
262         * math/w_sqrtl_compat.c: Likewise.
263         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
264         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
265         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
266         complex.h.
267
268 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
269
270         * benchtests/Makefile: Define _ISOMAC.
271         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
272         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
273         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
274         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
275         * benchtests/bench-timing.h: Define attribute_hidden.
276
277 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
278
279         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
280         mov + lsr.
281
282 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
283
284         [BZ #22963]
285         * localedata/locales/cs_CZ (mon): Rename to...
286         (alt_mon): This.
287         (mon): Import from CLDR (genitive case).
288
289 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
290
291         [BZ #22937]
292         * localedata/locales/el_CY (abmon): Rename to...
293         (ab_alt_mon): This.
294         (abmon): Import from CLDR (abbreviated genitive case).
295         * localedata/locales/el_GR (abmon): Rename to...
296         (ab_alt_mon): This.
297         (abmon): Import from CLDR (abbreviated genitive case).
298
299 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
300
301         [BZ #22932]
302         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
303
304 2018-03-15  Robert Buj  <robert.buj@gmail.com>
305
306         [BZ #22848]
307         * localedata/locales/ca_ES (abmon): Rename to...
308         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
309         (mon): Rename to...
310         (alt_mon): This.
311         (abmon): Import from CLDR (genitive case, month names preceded by
312         "de" or "d’").
313         (mon): Likewise.
314         (abday): Synchronize with CLDR.
315         (d_t_fmt): Likewise.
316         (d_fmt): Likewise.
317         (am_pm): Likewise.
318
319         (LC_TIME): Improve indentation.
320         (LC_TELEPHONE): Likewise.
321         (LC_NAME): Likewise.
322         (LC_ADDRESS): Likewise.
323
324 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
325
326         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
327         (lrintf): Remove definitions used only with old GCC.
328         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
329         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
330         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
331         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
332         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
333         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
334         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
335         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
336         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
337         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
338         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
339         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
340         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
341         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
342         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
343         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
344         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
345         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
346         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
347         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
348         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
349         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
350         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
351         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
352         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
353         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
354         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
355         [__FAST_MATH__] (__M_SQRT2): Remove macro.
356
357 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
358
359         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
360         instruction to unbreak builds with binutils 2.26 and older.
361
362 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
363
364         * sysdeps/aarch64/strncmp.S (count): New macro.
365         (strncmp): Store misaligned length in SRC1 in COUNT.
366         (mutual_align): Adjust.
367         (misaligned8): Load dword at a time when it is safe.
368
369 2018-03-12  Zack Weinberg  <zackw@panix.com>
370
371         [BZ #1190]
372         [BZ #19476]
373         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
374         if the _IO_EOF_SEEN bit is already set; update commentary.
375         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
376         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
377
378         * support/support_openpty.c, support/tty.h: New files.
379         * support/Makefile (libsupport-routines): Add support_openpty.
380
381         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
382         New test cases.
383         * libio/Makefile (tests): Add tst-fgetc-after-eof.
384         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
385
386 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
387
388         * po/pt_BR.po: Update translations.
389
390 2018-03-12  David Michael <fedora.dm0@gmail.com>
391
392         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
393         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
394         get a port to the startup server.
395
396 2018-03-11  Zack Weinberg  <zackw@panix.com>
397
398         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
399         before nldbl-compat.h.
400
401 2018-03-10  Zack Weinberg  <zackw@panix.com>
402
403         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
404         math.h or math_private.h.
405
406         * sysdeps/alpha/fpu/s_isnan.c
407         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
408         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
409         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
410         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
411         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
412         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
413         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
414         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
415         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
418         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
419         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
420         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
421         Include math_private.h.
422
423         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
424         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
425         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
426         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
427         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
428         * sysdeps/powerpc/power7/fpu/s_logb.c:
429         Include math.h and math_private.h.
430
431         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
432         uses of $at in .set noat / .set at.
433
434 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
435
436         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
437         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
438         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
439         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
440         Likewise.
441
442 2018-03-09  Florian Weimer  <fweimer@redhat.com>
443
444         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
445         in comment.
446
447 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
448
449         [BZ #22919]
450         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
451         Add nop before __startcontext, add explaining comments.
452
453 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
454
455         [BZ #22926]
456         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
457         empty for __SPE__.
458         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
459         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
460         Do not build hardware transactional code for __SPE__.
461         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
462         (__lll_trylock_elision): Likewise.
463         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
464         (__lll_unlock_elision): Likewise.
465
466         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
467         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
468         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
469         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
470         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
471         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
472         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
473         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
474         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
475         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
476         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
477         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
478         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
479         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
480         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
481         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
482         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
483         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
484         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
485         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
486         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
487         * sysdeps/unix/sysv/linux/arm/kernel-features.h
488         (__ASSUME_CLONE_BACKWARDS): Define.
489         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
490         __clone2 if __NR_clone2 is defined.
491         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
492         (__ASSUME_CLONE_BACKWARDS): Likewise.
493         * sysdeps/unix/sysv/linux/i386/kernel-features.h
494         (__ASSUME_CLONE_BACKWARDS): Likewise.
495         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
496         (__ASSUME_CLONE2): Likewise.
497         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
498         (__ASSUME_CLONE_BACKWARDS3): Likewise.
499         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
500         variants and the define architecture can use.
501         (__ASSUME_CLONE_DEFAULT): Define as default.
502         * sysdeps/unix/sysv/linux/mips/kernel-features.h
503         (__ASSUME_CLONE_BACKWARDS): Likewise.
504         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
505         (__ASSUME_CLONE_BACKWARDS): Likewise.
506         * sysdeps/unix/sysv/linux/s390/kernel-features.h
507         (__ASSUME_CLONE_BACKWARDS2): Likewise.
508
509 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
510
511         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
512
513         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
514         time.
515
516         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
517         (do_test_limit): Likewise.
518
519         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
520         for every implementation.
521         (do_test): Likewise.
522
523         * benchtests/bench-strncmp.c: Convert output to json.
524
525 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
526
527         * io/futimens.c: Add missing start-of-file descriptive comment.
528         * io/utime.c: Likewise.
529         * misc/futimesat.c: Likewise.
530         * misc/utimes.c: Likewise.
531         * sysdeps/mach/hurd/futimesat.c: Likewise.
532         * sysdeps/mach/hurd/utimes.c: Likewise.
533         * sysdeps/posix/utime.c: Likewise.
534         * sysdeps/posix/utimes.c: Likewise.
535         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
536         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
537         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
538         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
539
540 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
541
542         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
543         hurd_futimes.
544         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
545         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
546         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
547         (__futimens): Move implementation to...
548         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
549         utime_tvalue_from_tspec): ... new helper functions.
550         (hurd_futimens): New function.
551         * sysdeps/mach/hurd/futimesat.c: New file.
552         * sysdeps/mach/hurd/utimensat.c: New file.
553
554 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
555
556         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
557         UTIME_OMIT): New macros.
558         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
559         before reverting to converting time spec to time value and calling
560         __file_utimes.
561         * sysdeps/mach/hurd/utime-helper.c: New file.
562         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
563         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
564         reverting to utime_tvalue_from_tval and __file_utimes.
565         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
566         (__lutimes): Just call hurd_futimens after lookup.
567         * sysdeps/mach/hurd/utimes.c: Likewise.
568
569 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
570
571         * bits/sigaction.h: Add include guard.
572         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
573         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
574         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
575         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
576         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
577         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
578         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
579         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
580         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
581
582 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
583
584         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
585         -Wmaybe-uninitialized for -Os.
586         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
587         this disabling.
588
589 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
590
591         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
592         __INO_T_MATCHES_INO64_T is defined.
593         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
594         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
595         of definition.
596         * dirent/alphasort64.c: Likewise.
597         * dirent/scandir.c: Likewise.
598         * dirent/scandir64-tail.c: Likewise.
599         * dirent/scandir64.c: Likewise.
600         * dirent/scandirat.c: Likewise.
601         * dirent/scandirat64.c: Likewise.
602         * dirent/versionsort.c: Likewise.
603         * dirent/versionsort64.c: Likewise.
604         * include/dirent.h: Likewise.
605
606         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
607         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
608         for socketpair endpoint.
609         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
610         WRITE_BUFFER_SIZE as buffer size for sending socket.
611         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
612         issue on system where send is implemented with sendto syscall.
613         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
614         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
615         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
616         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
617
618         [BZ #21269]
619         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
620         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
621         sa_restorer for vDSO case.
622         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
623
624 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
625
626         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
627         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
628         * hurd/hurd/ioctl.h: Include <mach/port.h>
629         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
630         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
631         <mach/mach_types.h> and <mach/message.h>.
632         (headers): Move mach/param.h to bits/mach/param.h.
633         * sysdeps/mach/i386/mach/param.h: Move file to ...
634         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
635         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
636         of <mach/param.h>.
637         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
638         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
639         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
640         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
641         trivial, for C++ conformity.
642         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
643         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
644         Process mig output through $(migheadersed).
645         * hurd/Makefile (migheadersed): Define variable.
646         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
647         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
648         headers.
649         * hurd/hurd.h: Include <bits/types/sigset_t.h>
650         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
651         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
652         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
653         <bits/types/sigset_t.h>.
654         [!defined __USE_GNU]: Do not #error out.
655         (struct hurd_sigstate): Use _NSIG instead of NSIG.
656         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
657         Include <stddef.h> and <bits/types/sigset_t.h>
658         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
659         instead of sighandler_t.
660         * stdlib/errno.h (error_t): Move definition to...
661         * bits/types/error_t.h: ... new header.
662         * stdlib/Makefile (headers): Add bits/types/error_t.h.
663         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
664         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
665         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
666         * hurd/hurd.h: Include <bits/types/error_t.h>
667         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
668         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
669         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
670         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
671         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
672         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
673         * sysdeps/mach/hurd/futimens.c: New file.
674
675 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
676
677         [BZ #22918]
678         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
679         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
680         * nscd/gai.c (__nss_hosts_database): Readd definition.
681         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
682         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
683         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
684
685 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
686
687         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
688         (ifunc_one): Likewise.
689
690 2018-03-01  DJ Delorie  <dj@delorie.com>
691
692         [BZ #22342]
693         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
694         key value.
695
696 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
697
698         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
699         `match_pid' parameter.
700         (td_ta_thr_iter): Update accordingly.
701
702 2018-03-01  Florian Weimer  <fweimer@redhat.com>
703
704         * nptl/Makefile (install-lib-ldscripts): Remove.
705         (install): Remove rule.
706         ($(inst_libdir)/libpthread.so): Likewise.
707
708 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
709
710         [BZ #22896]
711         * localedata/locales/an_ES: update month and day names,
712         improve d_fmt, improve postal_fmt, add country_post,
713         add country_isbn
714
715 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
716
717         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
718         Ukrainian instead of Bulgarian.
719
720 2018-03-01  Florian Weimer  <fweimer@redhat.com>
721
722         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
723         reference.
724
725 2018-03-01  Florian Weimer  <fweimer@redhat.com>
726
727         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
728         * nptl/Makefile (routines): Add pthread_atfork.
729         (static-only-routines): Set to pthread_atfork.
730         (libpthread-routines): Remove pthread_atfork.
731         (libpthread-static-only-routines): Remove.
732         (install): Update comment.
733         (libpthread.so): Do not install libpthread_nonshared.a.
734         (tests): Do not link with libpthread_nonshared.a.
735         (generated): Remove libpthread_nonshared.a.
736         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
737         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
738         with libpthread_nonshared.a.
739
740 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
741
742         [BZ #22902]
743         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
744         (libc_feholdexcept_setroundf128): New macro.
745         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
746
747         [BZ #15105]
748         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
749         libc_hidden_def.
750         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
751         * include/inttypes.h: New file.
752
753 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
754
755         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
756         -Os in two more places.
757
758 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
759
760         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
761         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
762         be sorted correctly at the moment because of a bug.
763
764 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
765
766         [BZ #22550] - es_ES locale (and other es_* locales): collation should
767         treat ñ as a primary different character, sync the collation
768         for Spanish with CLDR.
769         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
770         * localedata/Makefile: Add new test files.
771         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
772         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
773         collation order.
774         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
775         * localedata/am_ET.UTF-8.in: New test file.
776         * localedata/az_AZ.UTF-8.in: Likewise.
777         * localedata/be_BY.UTF-8.in: Likewise.
778         * localedata/ber_DZ.UTF-8.in: Likewise.
779         * localedata/ber_MA.UTF-8.in: Likewise.
780         * localedata/bg_BG.UTF-8.in: Likewise.
781         * localedata/br_FR.UTF-8.in: Likewise.
782         * localedata/cmn_TW.UTF-8.in: Likewise.
783         * localedata/crh_UA.UTF-8.in: Likewise.
784         * localedata/csb_PL.UTF-8.in: Likewise.
785         * localedata/cv_RU.UTF-8.in: Likewise.
786         * localedata/cy_GB.UTF-8.in: Likewise.
787         * localedata/dz_BT.UTF-8.in: Likewise.
788         * localedata/eo.UTF-8.in: Likewise.
789         * localedata/es_ES.UTF-8.in: Likewise.
790         * localedata/fa_IR.UTF-8.in: Likewise.
791         * localedata/fi_FI.UTF-8.in: Likewise.
792         * localedata/fil_PH.UTF-8.in: Likewise.
793         * localedata/fur_IT.UTF-8.in: Likewise.
794         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
795         * localedata/ha_NG.UTF-8.in: Likewise.
796         * localedata/ig_NG.UTF-8.in: Likewise.
797         * localedata/ik_CA.UTF-8.in: Likewise.
798         * localedata/kk_KZ.UTF-8.in: Likewise.
799         * localedata/ku_TR.UTF-8.in: Likewise.
800         * localedata/ky_KG.UTF-8.in: Likewise.
801         * localedata/ln_CD.UTF-8.in: Likewise.
802         * localedata/mi_NZ.UTF-8.in: Likewise.
803         * localedata/ml_IN.UTF-8.in: Likewise.
804         * localedata/mn_MN.UTF-8.in: Likewise.
805         * localedata/mr_IN.UTF-8.in: Likewise.
806         * localedata/mt_MT.UTF-8.in: Likewise.
807         * localedata/nb_NO.UTF-8.in: Likewise.
808         * localedata/om_KE.UTF-8.in: Likewise.
809         * localedata/os_RU.UTF-8.in: Likewise.
810         * localedata/ps_AF.UTF-8.in: Likewise.
811         * localedata/ro_RO.UTF-8.in: Likewise.
812         * localedata/ru_RU.UTF-8.in: Likewise.
813         * localedata/sc_IT.UTF-8.in: Likewise.
814         * localedata/se_NO.UTF-8.in: Likewise.
815         * localedata/sq_AL.UTF-8.in: Likewise.
816         * localedata/sv_SE.UTF-8.in: Likewise.
817         * localedata/szl_PL.UTF-8.in: Likewise.
818         * localedata/tg_TJ.UTF-8.in: Likewise.
819         * localedata/tk_TM.UTF-8.in: Likewise.
820         * localedata/tt_RU.UTF-8.in: Likewise.
821         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
822         * localedata/ug_CN.UTF-8.in: Likewise.
823         * localedata/uz_UZ.UTF-8.in: Likewise.
824         * localedata/vi_VN.UTF-8.in: Likewise.
825         * localedata/yi_US.UTF-8.in: Likewise.
826         * localedata/yo_NG.UTF-8.in: Likewise.
827         * localedata/zh_CN.UTF-8.in: Likewise.
828         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
829         file and fix bugs in the collation.
830         * localedata/locales/az_AZ: Likewise.
831         * localedata/locales/be_BY: Likewise.
832         * localedata/locales/ber_DZ: Likewise.
833         * localedata/locales/ber_MA: Likewise.
834         * localedata/locales/bg_BG: Likewise.
835         * localedata/locales/br_FR: Likewise.
836         * localedata/locales/br_FR@euro: Likewise.
837         * localedata/locales/ca_ES: Likewise.
838         * localedata/locales/cns11643_stroke: Likewise.
839         * localedata/locales/crh_UA: Likewise.
840         * localedata/locales/cs_CZ: Likewise.
841         * localedata/locales/csb_PL: Likewise.
842         * localedata/locales/cv_RU: Likewise.
843         * localedata/locales/cy_GB: Likewise.
844         * localedata/locales/da_DK: Likewise.
845         * localedata/locales/dz_BT: Likewise.
846         * localedata/locales/en_CA: Likewise.
847         * localedata/locales/eo: Likewise.
848         * localedata/locales/es_CU: Likewise.
849         * localedata/locales/es_EC: Likewise.
850         * localedata/locales/es_ES: Likewise.
851         * localedata/locales/es_US: Likewise.
852         * localedata/locales/et_EE: Likewise.
853         * localedata/locales/fa_IR: Likewise.
854         * localedata/locales/fi_FI: Likewise.
855         * localedata/locales/fil_PH: Likewise.
856         * localedata/locales/fur_IT: Likewise.
857         * localedata/locales/gez_ER@abegede: Likewise.
858         * localedata/locales/ha_NG: Likewise.
859         * localedata/locales/hr_HR: Likewise.
860         * localedata/locales/hsb_DE: Likewise.
861         * localedata/locales/hu_HU: Likewise.
862         * localedata/locales/ig_NG: Likewise.
863         * localedata/locales/ik_CA: Likewise.
864         * localedata/locales/is_IS: Likewise.
865         * localedata/locales/iso14651_t1_pinyin: Likewise.
866         * localedata/locales/kk_KZ: Likewise.
867         * localedata/locales/ku_TR: Likewise.
868         * localedata/locales/ky_KG: Likewise.
869         * localedata/locales/ln_CD: Likewise.
870         * localedata/locales/lt_LT: Likewise.
871         * localedata/locales/lv_LV: Likewise.
872         * localedata/locales/mi_NZ: Likewise.
873         * localedata/locales/ml_IN: Likewise.
874         * localedata/locales/mn_MN: Likewise.
875         * localedata/locales/mr_IN: Likewise.
876         * localedata/locales/mt_MT: Likewise.
877         * localedata/locales/nb_NO: Likewise.
878         * localedata/locales/om_KE: Likewise.
879         * localedata/locales/os_RU: Likewise.
880         * localedata/locales/pl_PL: Likewise.
881         * localedata/locales/ps_AF: Likewise.
882         * localedata/locales/ro_RO: Likewise.
883         * localedata/locales/ru_RU: Likewise.
884         * localedata/locales/ru_UA: Likewise.
885         * localedata/locales/sc_IT: Likewise.
886         * localedata/locales/se_NO: Likewise.
887         * localedata/locales/si_LK: Likewise.
888         * localedata/locales/sq_AL: Likewise.
889         * localedata/locales/sv_FI: Likewise.
890         * localedata/locales/sv_FI@euro: Likewise.
891         * localedata/locales/sv_SE: Likewise.
892         * localedata/locales/szl_PL: Likewise.
893         * localedata/locales/tg_TJ: Likewise.
894         * localedata/locales/ti_ER: Likewise.
895         * localedata/locales/tk_TM: Likewise.
896         * localedata/locales/tl_PH: Likewise.
897         * localedata/locales/tr_TR: Likewise.
898         * localedata/locales/tt_RU: Likewise.
899         * localedata/locales/tt_RU@iqtelif: Likewise.
900         * localedata/locales/ug_CN: Likewise.
901         * localedata/locales/uk_UA: Likewise.
902         * localedata/locales/uz_UZ: Likewise.
903         * localedata/locales/uz_UZ@cyrillic: Likewise.
904         * localedata/locales/vi_VN: Likewise.
905         * localedata/locales/yi_US: Likewise.
906         * localedata/locales/yo_NG: Likewise.
907
908 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
909
910         * gen-locales.mk: Make test files which contain @ modifiers in their
911         name work.
912         * localedata/gen-locale.sh: Likewise.
913
914 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
915
916         * posix/tst-fnmatch.input: Fix results for range expressions
917         for non C locales.
918         * posix/tst-regexloc.c: Do not use a range expression for
919         de_DE.ISO-8859-1 locale.
920
921 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
922
923         * posix/bug-regex5.c: Fix test case because with the new
924         iso14651_t1_common file, the da_DK locale now has 6 collating elements
925         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
926         file.
927
928 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
929
930         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
931         downloaded from ISO, the collation order of @-. and space has changed.
932         Therefore, this test file needed to be adapted.
933         * localedata/fr_CA.UTF-8.in: Likewise.
934         * localedata/fr_FR.UTF-8.in: Likewise.
935         * localedata/uk_UA.UTF-8.in: Likewise.
936
937 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
938
939         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
940         order of ȥ in the new iso14651_t1_common file.
941         * localedata/pl_PL.UTF-8.in: Likewise.
942
943 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
944
945         * localedata/locales/iso14651_t1_common: Add sections for various
946         scripts to the iso14651_t1_common file.
947
948 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
949
950         * localedata/locales/iso14651_t1_common: Use the code point of a
951         character in the fourth collation level instead of IGNORE for all
952         entries which have IGNORE on all 4 levels.
953
954 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
955
956         * localedata/locales/iso14651_t1_common: Add some convenient collation
957         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
958         rules similar to those in CLDR.
959
960 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
961
962         * localedata/locales/iso14651_t1_common: The new version of this
963         file downloaded from ISO contained several syntax errors which
964         are fixed by this patch.
965
966 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
967
968         * localedata/locales/iso14651_t1_common: replace all <U.....>
969         with <U000.....> because glibc understands only 4 digit or 8 digit
970
971 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
972
973         * localedata/locales/iso14651_t1_common: Necessary changes
974         to make the file downloaded from ISO usable by glibc.
975
976 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
977
978         [BZ #14095]
979         * localedata/locales/iso14651_t1_common: Update file to
980         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
981
982 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
983
984         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
985         of <nptl/pthreadP.h>
986         (thread_attr_compare): Move function to...
987         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
988         * sysdeps/nptl/timer_routines.h: ... new header.
989         * sysdeps/mach/hurd/gai_misc.h: New file.
990
991 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
992
993         * string/strcoll_l.c: Include <libc-diag.h>.
994         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
995         declarations of seq1 and seq2.
996
997         [BZ #15105]
998         * stdlib/atoi.c (atoi): Use libc_hidden_def.
999         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
1000
1001 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
1002
1003         [BZ #22433]
1004         [BZ #22807]
1005         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
1006         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
1007         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
1008         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
1009         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
1010         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
1011
1012 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1013
1014         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
1015         macros used in __ptrace_request.
1016
1017 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1018
1019         [BZ #22792]
1020         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
1021         to $(CC).
1022         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
1023         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
1024         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
1025         <tcb-offsets.h>.
1026
1027 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
1028
1029         [BZ #15105]
1030         * ctype/ctype.c (tolower): Use libc_hidden_def.
1031         (toupper): Likewise.
1032         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
1033         [!_ISOMAC] (toupper): Likewise.
1034
1035 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1036
1037         * localedata/Makefile: Remove --quiet argument when
1038         installing locales
1039
1040 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1041
1042         [BZ #17438]
1043         * localedata/locales/pt_BR (LC_TIME): use / instead of -
1044         in d_fmt.
1045         * localedata/locales/pt_PT (LC_TIME): likewise
1046
1047 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1048
1049         [BZ #22646]
1050         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
1051         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
1052         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
1053
1054 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1055
1056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1057
1058         * nptl/Makefile (routines): Remove unregister-atfork.
1059         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
1060         (fork_handler_alloc): Remove function.
1061         (fork_handlers, fork_handler_init): New variables.
1062         (__fork_lock): Rename to atfork_lock.
1063         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
1064         to use a dynamic array to add/remove atfork handlers.
1065         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1066         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
1067         Remove declaration.
1068         (fork_handler): Remove next, refcntr, and need_signal member.
1069         (__run_fork_handler_type): New enum.
1070         (__run_fork_handlers): New prototype.
1071         * nptl/register-atfork.c: Remove file.
1072         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
1073
1074         * sysdeps/nptl/nptl-signals.h: Move to ...
1075         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
1076         comments.
1077         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
1078         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
1079         unnecessary check for SIGTIMER.
1080         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
1081         remove unnecessary removal of SIGTIMER.
1082         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
1083         include-signals.h rename.
1084         * nptl/pthreadP.h: Likewise.
1085         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
1086         __is_internal_signal instead of __nptl_is_internal_signal.
1087
1088 2018-02-22  Andrew Waterman <andrew@sifive.com>
1089
1090         [BZ # 22884]
1091         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
1092         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
1093         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
1094         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
1095
1096 2018-02-22  DJ Delorie  <dj@delorie.com>
1097
1098         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
1099
1100 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1101
1102         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
1103         do_misaligned, not misaligned8.
1104
1105 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
1106
1107         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1108         Add memcpy_thunderx2.
1109         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
1110         Increment to 4.
1111         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
1112         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
1113         and IS_THUNDERX2PA checks.
1114         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
1115         Use macro to set name appropriately.
1116         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
1117         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
1118         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
1119         New macro.
1120         (IS_THUNDERX2): New macro.
1121
1122 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
1123
1124         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1125
1126 2018-02-21  Zack Weinberg  <zackw@panix.com>
1127
1128         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
1129         Define here, unconditionally.
1130         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
1131         * libio/libioP.h: Remove #if 0 blocks.
1132         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
1133         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
1134         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
1135
1136         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
1137         Assume weak_alias is always defined.
1138
1139         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
1140         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
1141         Remove #if 0 and #ifdef TODO blocks.
1142         Assume text_set_element is always defined.
1143
1144         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
1145         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
1146         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
1147
1148         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
1149         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
1150         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
1151         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
1152         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
1153         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
1154         Reformat bit flags for _flags field to make occupancy clearer.
1155         Update commentary.
1156         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
1157         Keep definitions consistent with those in libio/libio.h.
1158
1159         * libio/libio.h (_IO_file_flags): Remove macro.
1160         All uses changed to _flags.
1161
1162         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
1163         (__HAVE_COLUMN, _IO_BE): Don't define.
1164         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
1165         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
1166         * libio/libioP.h (EOF): Don't define.
1167         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
1168         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
1169         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
1170         testing _IO_UNIFIED_JUMPTABLES.
1171
1172         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
1173         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
1174         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
1175         (_IO_size_t): Delete; all uses changed to size_t.
1176         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
1177         (_IO_off_t): Delete; all uses changed to off_t.
1178         (_IO_off64_t): Delete; all uses changed to off64_t.
1179         (_IO_pid_t): Delete; all uses changed to pid_t.
1180         (_IO_uid_t): Delete; all uses changed to uid_t.
1181         (_IO_wint_t): Delete; all uses changed to wint_t.
1182         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
1183         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
1184         (_IO_cookie_io_functions_t): Delete; all uses changed to
1185         cookie_io_functions_t.
1186         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
1187         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
1188         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
1189         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
1190
1191         * libio/iofopncook.c: Remove unnecessary forward declarations.
1192         * libio/iolibio.h: Correct outdated commentary.
1193         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
1194         * stdio-common/fxprintf.c (__fxprintf_nocancel):
1195         Remove unnecessary casts.
1196         * stdio-common/getline.c: Use _IO_getdelim directly.
1197         Don't redefine ssize_t.
1198         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
1199         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
1200         Remove outdated comments.
1201         * stdio-common/vfscanf.c: Don't redefine va_list.
1202
1203         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
1204         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
1205         Remove preprocessor conditionals on _LIBC and __USE_GNU,
1206         which are always true, and __cplusplus, which is always false.
1207
1208 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
1209
1210         [BZ #15105]
1211         [BZ #19463]
1212         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
1213         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
1214         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
1215         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
1216         libc_hidden_proto.
1217         [!_ISOMAC] (putc_unlocked): Likewise.
1218         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
1219         define inline if [__USE_EXTERN_INLINES].
1220         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
1221         putc_unlocked.
1222
1223         [BZ #15105]
1224         [BZ #19463]
1225         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
1226         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
1227         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
1228         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
1229         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
1230         getc_unlocked.
1231         * time/tzfile.c (__tzfile_read): Likewise.
1232
1233 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
1234
1235         [BZ #22517]
1236         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
1237
1238 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
1239
1240         * io/fcntl.h: Fix a typo in a comment.
1241
1242 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
1243
1244         [BZ #22862]
1245         * include/features.h: Add _ISOC11_SOURCE to test for whether to
1246         define _DEFAULT_SOURCE.
1247         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
1248
1249 2018-02-21  Florian Weimer  <fweimer@redhat.com>
1250
1251         [BZ #20890]
1252         * elf/cache.c (save_cache): Call fsync on temporary file before
1253         renaming it.
1254         (save_aux_cache): Call fdatasync on temporary file before renaming
1255         it.
1256
1257 2018-02-21  Florian Weimer  <fweimer@redhat.com>
1258
1259         [BZ #22787]
1260         * include/caller.h: Remove file.
1261         * elf/dl-caller.c: Likewise.
1262         * elf/Makefile (dl-routines): Remove dl-caller.
1263         (shared-only-routines): Do not add dl-caller.
1264         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
1265         __check_caller.
1266         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
1267         member.
1268         (dl_open_worker): Do not call __check_caller.
1269         (_dl_open): Do not set caller_dl_open member.
1270         * elf/rtld.c (_rtld_global_ro): Do not initialize
1271         _dl_check_caller member.
1272         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
1273         _dl_check_caller member.
1274         (_dl_check_caller): Remove declaration.
1275         * sysdeps/unix/sysv/linux/dl-execstack.c
1276         (_dl_make_stack_executable): Do not call __check_caller.
1277
1278 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1279
1280         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
1281         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
1282
1283 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
1284
1285         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
1286         description.
1287
1288 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
1289
1290         [BZ #16335]
1291         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
1292         of 199606L, 200112L, and 200809L.
1293         (_XOPEN_SOURCE): Document special values of 600 and 700.
1294         (_ISOC11_SOURCE): Document macro.
1295         (_ATFILE_SOURCE): Likewise.
1296         (_FORTIFY_SOURCE): Likewise.
1297
1298 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
1299
1300         [BZ #15105]
1301         [BZ #19463]
1302         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
1303         and define as weak alias of __ferror_unlocked.  Use
1304         libc_hidden_weak.
1305         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
1306         libc_hidden_proto.
1307         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
1308         function if [__USE_EXTERN_INLINES].
1309         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
1310         ferror_unlocked.
1311
1312 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
1313
1314         [BZ #6889]
1315         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
1316
1317 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
1318
1319         [BZ #22818]
1320         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
1321         the GLIBC_2.1 version.
1322
1323 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
1324
1325         [BZ #21508]
1326         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
1327         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
1328         intl/tst-gettext-de.po from po/de.po by removing the
1329         POT-Creation-Date line.
1330         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
1331         ../po/de.po.
1332         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
1333         ../po/de.po.
1334
1335 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1336
1337         * mach/Makefile (headers): Add mach/param.h.
1338         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
1339         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
1340         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
1341         (__ptsname_r): Move implementation to...
1342         (__ptsname_internal): ... new function.  Add filling the STP
1343         structure.
1344
1345 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
1346
1347         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
1348         idouble to 1 ULP.
1349
1350 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
1351
1352         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
1353         syntax.
1354
1355 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
1356
1357         * nptl/Makefile (tst-mutex8-ENV): Delete.
1358         * nptl/tst-mutex8.c (check_type):
1359         Add runtime check if mutex will be elided.
1360
1361 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
1362
1363         [BZ #20980]
1364         [BZ #21234]
1365         * manual/install.texi (Configuring and compiling): Describe
1366         passing CC and CFLAGS on configure command line, not as
1367         environment variables.  Use @code markup on those variables.
1368         Specify what options go in CC and what go in CFLAGS.  Note the
1369         requirement to compile with optimization.
1370         * INSTALL: Regenerated.
1371
1372         [BZ #18124]
1373         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
1374         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
1375         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
1376         __sigprocmask instead of sigprocmask.
1377         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
1378         Likewise.
1379         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
1380         __sigsetjmp and sigprocmask.
1381
1382         [BZ #15105]
1383         * include/argz.h (argz_next): Use libc_hidden_proto.
1384         (__argz_next): Likewise.
1385         * string-argz-next.c (__argz_next): Use libc_hidden_def.
1386         (argz_next): Use libc_hidden_weak.
1387
1388         [BZ #15105]
1389         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
1390         libc_hidden_proto.
1391         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
1392         libc_hidden_def.
1393
1394         [BZ #15105]
1395         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
1396         libc_hidden_proto.
1397         * libio/iofputs.c (fputs): Use libc_hidden_weak.
1398
1399         [BZ #15105]
1400         [BZ #19463]
1401         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
1402         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
1403         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
1404         (__feof_unlocked): New declaration, and inline function if
1405         [__USE_EXTERN_INLINES].
1406         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
1407         instead of feof_unlocked.
1408         * intl/localealias.c [_LIBC] (FEOF): Likewise.
1409         * nss/nsswitch.c (nss_parse_file): Likewise.
1410         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
1411         Likewise.
1412         * time/getdate.c (__getdate_r): Likewise.
1413         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
1414         Define as macro to call __feof_unlocked.
1415
1416 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
1417
1418         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
1419
1420 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
1421
1422         * math/Makefile: Remove mpexp.c and mplog.c
1423         * sysdeps/i386/fpu/mpexp.c: Delete file.
1424         * sysdeps/i386/fpu/mplog.c: Likewise.
1425         * sysdeps/ia64/fpu/mpexp.c: Likewise.
1426         * sysdeps/ia64/fpu/mplog.c: Likewise.
1427         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
1428         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
1429         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
1430         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1431         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
1432         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
1433         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
1434         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
1435         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
1436         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
1437         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
1438         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
1439         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
1440         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
1441         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
1442         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
1443
1444 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
1445
1446         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1447
1448 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1449
1450         * sysdeps/sh/libm-test-ulps: Update.
1451
1452 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1453
1454         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
1455         idouble to 1 ULP.
1456
1457 2018-02-12  Zack Weinberg  <zackw@panix.com>
1458
1459         [BZ #19239]
1460         * posix/sys/types.h: Don't include sys/sysmacros.h.
1461         * misc/sys/sysmacros.h: Remove the conditional deprecation
1462         warnings for the macros defined by this header.
1463
1464 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1465
1466         * manual/probes.texi: Remove slowexp probes.
1467         * math/Makefile: Remove slowexp.
1468         * sysdeps/generic/math_private.h (__slowexp): Remove.
1469         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
1470         document error bounds.
1471         * sysdeps/i386/fpu/slowexp.c: Remove.
1472         * sysdeps/ia64/fpu/slowexp.c: Remove.
1473         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
1474         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
1475         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
1476         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
1477         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
1478         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
1479         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
1480         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
1481         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
1482         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
1483         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
1484
1485 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
1486
1487         [BZ #13932]
1488         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
1489         * benchtests/pow-inputs: Update comment for slow path cases.
1490         * manual/probes.texi (slowpow_p10): Delete removed probe.
1491         (slowpow_p10): Likewise.
1492         * math/Makefile: Remove halfulp.c and slowpow.c.
1493         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
1494         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
1495         (__halfulp): Remove.
1496         (__slowpow): Remove.
1497         * sysdeps/i386/fpu/halfulp.c: Delete file.
1498         * sysdeps/i386/fpu/slowpow.c: Likewise.
1499         * sysdeps/ia64/fpu/halfulp.c: Likewise.
1500         * sysdeps/ia64/fpu/slowpow.c: Likewise.
1501         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
1502         improve comments and add error analysis.
1503         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
1504         (power1): Remove function:
1505         (log1): Remove error argument, add error analysis.
1506         (my_log2): Remove function.
1507         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
1508         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1509         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
1510         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
1511         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
1512         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
1513         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
1514         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
1515         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
1516         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
1517         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
1518         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
1519         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
1520         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
1521
1522 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1523
1524         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
1525         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
1526
1527 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
1528
1529         [BZ #22433]
1530         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
1531         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
1532         and PTRACE_SETHBPREGS.
1533
1534 2018-02-10  Zack Weinberg  <zackw@panix.com>
1535
1536         [BZ #22830]
1537         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
1538         correctly.
1539         * malloc/tst-malloc-stats-cancellation.c: New test case.
1540         * malloc/Makefile: Add new test case.
1541
1542 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
1543
1544         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
1545
1546 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
1547
1548         * math/Makefile (libm-narrow-fns): Add add.
1549         (libm-test-funcs-narrow): Likewise.
1550         * math/Versions (GLIBC_2.28): Add narrowing add functions.
1551         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
1552         * math/gen-auto-libm-tests.c (test_functions): Add add.
1553         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
1554         (NARROW_ADD_ROUND_TO_ODD): Likewise.
1555         (NARROW_ADD_TRIVIAL): Likewise.
1556         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
1557         macro.
1558         (__daddl): Likewise.
1559         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
1560         dadd.
1561         (CFLAGS-nldbl-dadd.c): New variable.
1562         (CFLAGS-nldbl-fadd.c): Likewise.
1563         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
1564         __nldbl_daddl.
1565         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
1566         prototype.
1567         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
1568         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
1569         * math/auto-libm-test-in: Add tests of add.
1570         * math/auto-libm-test-out-narrow-add: New generated file.
1571         * math/libm-test-narrow-add.inc: New file.
1572         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
1573         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
1574         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
1575         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
1576         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
1577         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
1578         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
1579         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
1580         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
1581         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
1582         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
1583         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
1584         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
1585         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
1586         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
1587         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1588         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
1589         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1591         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
1592         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1593         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1594         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1595         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1596         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1597         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1598         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1599         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1600         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1601         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1602         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1603         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
1606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
1607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
1608         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1609         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1610         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1611         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1612         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1613         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1614         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
1615         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
1616         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1617         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1618
1619         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
1620         (f128-pairs): New variable.
1621         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
1622         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
1623         to CFLAGS.
1624         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
1625         Also make tests add $(f128-loader-link) to gnulib-tests.
1626
1627 2018-02-09  DJ Delorie  <dj@redhat.com>
1628
1629         [BZ #22827]
1630         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
1631         64-bit ELF type for 64-bit ELF objects.
1632
1633 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
1634
1635         * math/libm-test-driver.c (snan_tests_arg): New variable.
1636         * math/libm-test-support.h (snan_tests_arg): New declaration.
1637         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
1638
1639         * math/Makefile (test-type-pairs): New variable.
1640         (test-type-pairs-f64xf128-yes): Likewise.
1641         (tests): Add test-narrow-macros.
1642         (libm-test-funcs-narrow): New variable.
1643         (libm-test-c-narrow): Likewise.
1644         (generated): Add $(libm-test-c-narrow).
1645         (libm-tests-base-narrow): New variable.
1646         (libm-tests-narrow): Likewise.
1647         (libm-tests): Add $(libm-tests-narrow).
1648         (libm-tests-for-type): Handle $(libm-tests-narrow).
1649         (libm-test-c-narrow-obj): New variable.
1650         ($(libm-test-c-narrow-obj)): New rule.
1651         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
1652         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
1653         $(o-iterator) to set dependencies and CFLAGS.
1654         * math/gen-auto-libm-tests.c: Document use for narrowing
1655         functions.
1656         (output_for_one_input_case): Take argument NARROW.
1657         (generate_output): Likewise.  Update call to
1658         output_for_one_input_case.
1659         (main): Take --narrow option.  Update call to generate_output.
1660         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
1661         (apply_lit): Update call to _apply_lit.
1662         (apply_arglit): New function.
1663         (parse_args): Handle "a" arguments.
1664         (parse_auto_input): Handle format names using ":".
1665         * math/README.libm-test: Document "a" parameter type.
1666         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
1667         (ARG_TYPE_TRUE_MIN): Likewise.
1668         (ARG_TYPE_MAX): Likwise.
1669         (ARG_MIN_EXP): Likewise.
1670         (ARG_MAX_EXP): Likewise.
1671         (ARG_MANT_DIG): Likewise.
1672         (TEST_COND_arg_ibm128): Likewise.
1673         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
1674         (TEST_COND_arg_fmt): New macro.
1675         (init_max_error): Update prototype.
1676         * math/libm-test-support.c (test_ibm128): New variable.
1677         (init_max_error): Take argument testing_ibm128 and set test_ibm128
1678         instead of using [TEST_COND_ibm128] conditional.
1679         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
1680         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
1681         [TEST_NARROW] (TEST_MSG): New definition.
1682         (arg_plus_zero): New macro.
1683         (arg_minus_zero): Likewise.
1684         (arg_plus_infty): Likewise.
1685         (arg_minus_infty): Likewise.
1686         (arg_qnan_value_pl): Likewise.
1687         (arg_qnan_value): Likewise.
1688         (arg_snan_value_pl): Likewise.
1689         (arg_snan_value): Likewise.
1690         (arg_max_value): Likewise.
1691         (arg_min_value): Likewise.
1692         (arg_min_subnorm_value): Likewise.
1693         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
1694         (RUN_TEST_LOOP_aa_f): New macro.
1695         (TEST_SUFF): New macro.
1696         (TEST_SUFF_STR): Likewise.
1697         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
1698         (TEST_COND_any_ibm128): New macro.
1699         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
1700         this_func.  Update call to init_max_error.
1701         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
1702         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
1703         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
1704         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
1705         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
1706         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
1707         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
1708         * math/test-math-scalar.h (TEST_NARROW): Likewise.
1709         * math/test-math-vector.h (TEST_NARROW): Likewise.
1710         * math/test-arg-double.h: New file.
1711         * math/test-arg-float128.h: Likewise.
1712         * math/test-arg-float32x.h: Likewise.
1713         * math/test-arg-float64.h: Likewise.
1714         * math/test-arg-float64x.h: Likewise.
1715         * math/test-arg-ldouble.h: Likewise.
1716         * math/test-math-narrow.h: Likewise.
1717         * math/test-narrow-macros.c: Likewise.
1718         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
1719         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
1720         test-narrow-macros-ldbl-64.
1721         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
1722
1723         * math/bits/mathcalls-narrow.h: New file.
1724         * include/bits/mathcalls-narrow.h: Likewise.
1725         * math/math-narrow.h: Likewise.
1726         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
1727         (__MATHCALL_NARROW_ARGS_2): Likewise.
1728         (__MATHCALL_NARROW_ARGS_3): Likewise.
1729         (__MATHCALL_NARROW_NORMAL): Likewise.
1730         (__MATHCALL_NARROW_REDIR): Likewise.
1731         (__MATHCALL_NARROW): Likewise.
1732         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
1733         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
1734         defined.
1735         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1736         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
1737         (libm-narrow-fns): New variable.
1738         (libm-narrow-types-basic): Likewise.
1739         (libm-narrow-types-ldouble-yes): Likewise.
1740         (libm-narrow-types-float128-yes): Likewise.
1741         (libm-narrow-types-float128-alias-yes): Likewise.
1742         (libm-narrow-types): Likewise.
1743         (libm-routines): Add narrowing functions.
1744         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
1745         (libc_feholdexcept_setroundf128): New macro.
1746         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
1747         * sysdeps/ieee754/float128/float128_private.h: Include
1748         <math/math-narrow.h>.
1749         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
1750         Undefine and redefine.
1751         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
1752         (libm_alias_float_ldouble): Undefine and redefine.
1753         (libm_alias_double_ldouble): Likewise.
1754
1755         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
1756
1757 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
1758
1759         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
1760         FPCR/FPSR.
1761
1762 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
1763
1764         * manual/creature.texi: Convert references to gcc.info to gcc.
1765         * manual/stdio.texi: Likewise.
1766         * manual/string.texi: Likewise.
1767
1768 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
1769
1770         [BZ #17979]
1771         * posix/bits/types.h (__int_least8_t): New typedef.
1772         (__uint_least8_t): Likewise.
1773         (__int_least16_t): Likewise.
1774         (__uint_least16_t): Likewise.
1775         (__int_least32_t): Likewise.
1776         (__uint_least32_t): Likewise.
1777         (__int_least64_t): Likewise.
1778         (__uint_least64_t): Likewise.
1779         * sysdeps/generic/stdint.h (int_least8_t): Define using
1780         __int_least8_t.
1781         (int_least16_t): Define using __int_least16_t.
1782         (int_least32_t): Define using __int_least32_t.
1783         (int_least64_t): Define using __int_least64_t.
1784         (uint_least8_t): Define using __uint_least8_t.
1785         (uint_least16_t): Define using __uint_least16_t.
1786         (uint_least32_t): Define using __uint_least32_t.
1787         (uint_least64_t): Define using __uint_least64_t.
1788         * wcsmbs/uchar.h: Include <bits/types.h>.
1789         (char16_t): Define using __uint_least16_t conditional only on
1790         [!__USE_ISOCXX11].
1791         (char32_t): Define using __uint_least32_t conditional only on
1792         [!__USE_ISOCXX11].
1793         * wcsmbs/test-char-types.c: New file.
1794         * wcsmbs/Makefile (tests): Add test-char-types.
1795
1796         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1797         version to 4.0.1.
1798
1799 2018-02-07  Zack Weinberg  <zackw@panix.com>
1800
1801         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
1802         Delete all contents except for definitions of _G_HAVE_MMAP and
1803         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
1804         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
1805         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
1806         change as above.
1807
1808         * libio/libio.h: Don't include bits/_G_config.h here.
1809         Include stddef.h with __need_wchar_t defined.  Include
1810         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
1811         Define _IO_iconv_t here, directly.
1812         Don't define _IO_HAVE_ST_BLKSIZE.
1813         * libio/libioP.h: Include _G_config.h here.  Move include of
1814         shlib-compat.h up with rest of includes.  Simplify conditionals
1815         controlling definition of _IO_JUMPS_OFFSET.
1816
1817         * csu/init.c: Remove always-true #if around entire file.
1818         Don't include stdio.h.  Set _IO_stdin_used to hardwired
1819         constant 0x20001, and update commentary.
1820         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
1821         Replace all uses of _G_va_list with __gnuc_va_list.
1822         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
1823         instead of #if _IO_HAVE_ST_BLKSIZE.
1824         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
1825         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
1826         not #ifdef.
1827
1828         * libio/bits/libio.h: Move back to libio/libio.h and adjust
1829         multiple-include guard to match.
1830         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
1831         into this file.
1832         Remove preprocessor conditionals that are always true and/or
1833         redundant to other preprocessor conditionals in the same nest.
1834         Include shlib-compat.h unconditionally.
1835         Error out if _LIBC is not defined, or if _ISOMAC is defined,
1836         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
1837         defined after including stdio.h.
1838         Use __BEGIN_DECLS/__END_DECLS.
1839
1840         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
1841         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
1842         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
1843
1844 2018-02-07  Zack Weinberg  <zackw@panix.com>
1845
1846         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
1847         New single-type headers split from _G_config.h.
1848         * libio/bits/types/cookie_io_functions_t.h
1849         * libio/bits/types/struct_FILE.h
1850         New single-type headers split from libio.h.
1851
1852         * libio/Makefile: Install the above new headers.  Don't install
1853         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
1854         bits/libio-ldbl.h.
1855         * libio/_G_config.h, libio/libio.h: Delete file.
1856
1857         * libio/bits/libio.h: Remove improper-inclusion guard.
1858         Include stdio.h and don't repeat anything that it does.
1859         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
1860         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
1861         __io_read_fn as cookie_read_function_t,
1862         __io_write_fn as cookie_write_function_t,
1863         __io_seek_fn as cookie_seek_function_t,
1864         __io_close_fn as cookie_close_function_t,
1865         and _IO_cookie_io_functions_t as cookie_io_functions_t.
1866         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
1867         here, in the "compatibility defines" section.  Remove an #if 0
1868         block.  Use the "body" macros from bits/types/struct_FILE.h to
1869         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
1870         and _IO_ferror_unlocked.
1871         Move prototypes of __uflow and __overflow...
1872
1873         * libio/stdio.h: ...here.  Don't include bits/libio.h.
1874         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
1875         directly from stdarg.h.  Include bits/types/__fpos_t.h,
1876         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
1877         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
1878         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
1879         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
1880         cookie_io_functions_t, not _IO_cookie_io_functions_t;
1881         __ssize_t, not _IO_ssize_t.  Unconditionally define
1882         BUFSIZ as 8192 and EOF as (-1).
1883
1884         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
1885         macros from bits/types/struct_FILE.h instead of _IO_* macros
1886         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
1887         instead of _IO_ssize_t.
1888         * libio/bits/stdio2.h: Similarly.
1889
1890         * libio/iolibio.h: Add multiple-include guard.
1891         Include bits/libio.h after stdio.h.
1892         * libio/libioP.h: Add multiple-include guard.
1893         Include stdio.h and bits/libio.h before iolibio.h.
1894
1895         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
1896         * include/bits/types/cookie_io_functions_t.h
1897         * include/bits/types/struct_FILE.h: New wrappers.
1898
1899         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
1900         Get definitions of _G_fpos_t and _G_fpos64_t from
1901         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
1902         respectively.  Remove improper-inclusion guards.
1903
1904         * conform/data/stdio.h-data: Update expectations of va_list.
1905         * scripts/check-installed-headers.sh: Remove special case for
1906         libio.h and _G_config.h.
1907
1908 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
1909
1910         [BZ #15105]
1911         [BZ #19463]
1912         * include/sys/sysmacros.h [!_ISOMAC]
1913         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
1914         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
1915         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
1916         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
1917         libc_hidden_proto.
1918         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
1919         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
1920         Likewise.
1921         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
1922         Undefine and redefine to add use __gnu_dev_ prefix.
1923         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
1924         Likewise.
1925         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
1926         and define as hidden inline function.
1927         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
1928         Likewise.
1929         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
1930         Likewise.
1931         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
1932         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
1933         (gnu_dev_minor): Likewise.
1934         (gnu_dev_makedev): Likewise.
1935         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
1936         makedev.
1937         * posix/wordexp.c (exec_comm_child): Likewise.
1938         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
1939         instead of minor and __gnu_dev_major instead of major.
1940         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
1941         __gnu_dev_major instead of major.
1942         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
1943         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
1944         instead of gnu_dev_minor.
1945         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
1946         (SLAVE_P): Likewise.
1947         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
1948         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
1949         instead of major.
1950
1951         [BZ #21313]
1952         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
1953         in another place.
1954         * locale/weightwc.h (findidx): Likewise.
1955
1956 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
1957
1958         * manual/probes.texi (slowlog): Delete documentation of removed probe.
1959         (slowlog_inexact): Likewise
1960         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
1961         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
1962
1963 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
1964
1965         [BZ #22797]
1966         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
1967         missing second underscore to parameter name.
1968
1969 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
1970
1971         [BZ #14508]
1972         [BZ #15512]
1973         [BZ #17082]
1974         [BZ #20530]
1975         * bits/byteswap.h: Update file comment.  Do not include
1976         <bits/byteswap-16.h>.
1977         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
1978         constant.
1979         (__bswap_16): Define as inline function.
1980         (__bswap_constant_32): Reformat definition.
1981         (__bswap_32): Always define as inline function, not macro, using
1982         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
1983         otherwise __bswap_constant_32.
1984         (__bswap_constant_64): Reformat definition.  Do not use
1985         __extension__ here.
1986         (__bswap_64): Always define as inline function, not macro.  Use
1987         __extension__ on function definition.  Use __builtin_bswap64 if
1988         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
1989         * string/test-endian-file-scope.c: New file.
1990         * string/test-endian-sign-conversion.c: Likewise.
1991         * string/Makefile (headers): Remove bits/byteswap-16.h.
1992         (tests): Add test-endian-file-scope and
1993         test-endian-sign-conversion.
1994         (CFLAGS-test-endian-sign-conversion.c): New variable.
1995         * bits/byteswap-16.h: Remove file.
1996         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
1997         * sysdeps/ia64/bits/byteswap.h: Likewise.
1998         * sysdeps/m68k/bits/byteswap.h: Likewise.
1999         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2000         * sysdeps/s390/bits/byteswap.h: Likewise.
2001         * sysdeps/tile/bits/byteswap.h: Likewise.
2002         * sysdeps/x86/bits/byteswap-16.h: Likewise.
2003         * sysdeps/x86/bits/byteswap.h: Likewise.
2004
2005         [BZ #17721]
2006         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
2007         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
2008         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
2009         199901L] (__restrict): Define to restrict.
2010
2011         [BZ #19667]
2012         * string/testcopy.c: Include <support/support.h>.  Do not include
2013         <malloc.h>.  Use <support/test-driver.c>.
2014         (main): Rename to do_test.  Make static.  Use xmalloc instead of
2015         malloc.
2016
2017         [BZ #13575]
2018         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
2019         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
2020         (SSIZE_MAX): Define to INT_MAX.
2021         * posix/test-ssize-max.c: New file.
2022         * posix/Makefile (tests): Add test-ssize-max.
2023
2024         [BZ #19668]
2025         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2026         <support/support.h>.  Do not include <malloc.h>.
2027         (query_auxv): Use xmalloc instead of malloc.
2028
2029         [BZ #14553]
2030         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
2031         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
2032         instead of loff_t.
2033
2034 2018-02-06  Florian Weimer <fweimer@redhat.com>
2035
2036         [BZ #18023]
2037         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2038         Use scratch_buffer instead of extend_alloca.
2039
2040 2018-02-06  Zack Weinberg  <zackw@panix.com>
2041
2042         * libio/stdio.h: Don't define getc or putc as macros.
2043         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
2044         not _IO_getc and _IO_putc.
2045
2046         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
2047         * stdio-common/tstgetln.c: Don't redefine ssize_t.
2048
2049 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
2050
2051         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
2052         (TCP_FASTOPEN_NO_COOKIE): Likewise.
2053
2054         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
2055
2056         [BZ #14890]
2057         * elf/elf.h (NT_PRFPREG): New macro.
2058         (NT_S390_VXRS_LOW): Likewise.
2059         (NT_S390_VXRS_HIGH): Likewise.
2060         (NT_S390_GS_CB): Likewise.
2061         (NT_S390_GS_BC): Likewise.
2062         (NT_S390_RI_CB): Likewise.
2063
2064         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
2065         (MAP_SYNC): New macro.
2066         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
2067         Likewise.
2068         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
2069         (MAP_SYNC): Likewise.
2070         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
2071         (MAP_SYNC): Likewise.
2072         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
2073         (MAP_SYNC): Likewise.
2074         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
2075         (MAP_SYNC): Likewise.
2076         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
2077         (MAP_SYNC): Likewise.
2078         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
2079         (MAP_SYNC): Likewise.
2080         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
2081         Likewise.
2082         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
2083         Likewise.
2084
2085         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
2086         (MAP_SHARED_VALIDATE): New macro.
2087         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
2088         (MAP_SHARED_VALIDATE): Likewise.
2089
2090 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2091
2092         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
2093         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
2094         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2095
2096 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2097
2098         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
2099         (DT_NUM): Updated to 35.
2100
2101 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2102
2103         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
2104         __builtin_expect with __glibc_likely and __glibc_unlikely.
2105         (elf_machine_rela): Likewise.
2106         (elf_machine_lazy_rel): Likewise.
2107
2108 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2109
2110         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
2111         __builtin_expect with __glibc_likely and __glibc_unlikely.
2112         (elf_machine_lazy_rel): Likewise.
2113
2114 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2115
2116         [BZ #22638]
2117         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
2118         SHARED.
2119         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
2120
2121 2018-02-05  Andreas Schwab  <schwab@suse.de>
2122
2123         [BZ #22761]
2124         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
2125         string.
2126
2127 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2128
2129         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
2130         not check against PTHREAD_STACK_MIN.
2131
2132 2018-02-02  Sean McKean  <smckean83@gmail.com>
2133
2134         [BZ #22735]
2135         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
2136
2137 2018-02-02  Florian Weimer  <fweimer@redhat.com>
2138
2139         [BZ #22753]
2140         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
2141         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2142         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2143         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
2144         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2145         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2146         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2147         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
2148         * manual/llio.texi (Scatter-Gather): Mention offset -1.
2149         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
2150         * misc/tst-preadvwritev2.c (do_test): Call it.
2151         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
2152
2153 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2154
2155         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
2156
2157         * benchtests/bench-memcmp.c: Print json instead of plain text.
2158
2159         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
2160         every test run.
2161
2162 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
2163
2164         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2165         version to 4.15.
2166         (s390_sthyi): New syscall.
2167
2168         * sysdeps/generic/ldbl-classify-compat.h: New file.
2169         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
2170         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
2171         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
2172         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
2173         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
2174         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
2175         * sysdeps/ieee754/dbl-64/s_finite.c: Include
2176         <ldbl-classify-compat.h>.
2177         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2178         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
2179         <ldbl-classify-compat.h>.
2180         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2181         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
2182         <ldbl-classify-compat.h>.
2183         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2184         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
2185         <ldbl-classify-compat.h>.
2186         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2187         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
2188         <ldbl-classify-compat.h>.
2189         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2190         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
2191         <ldbl-classify-compat.h>.
2192         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
2193         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
2194         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
2195         * sysdeps/m68k/coldfire/math_private.h: Remove file.
2196         * sysdeps/microblaze/math_private.h: Likewise.
2197         * sysdeps/nios2/math_private.h: Likewise.
2198         * sysdeps/sh/math_private.h: Likewise.
2199
2200         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
2201         * sysdeps/m68k/coldfire/math_private.h: ... here.
2202         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
2203         * sysdeps/tile/math_private.h: Likewise.
2204         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
2205         Remove macro.
2206         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
2207         Likewise.
2208
2209         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
2210         Remove macro.
2211         (libc_fetestexcept): Likewise.
2212         (libc_feupdateenv_test): Likewise.
2213         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
2214         (libc_fetestexcept): Likewise.
2215         (libc_feupdateenv_test): Likewise.
2216         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
2217         (libc_fetestexcept): Likewise.
2218         (libc_feupdateenv_test): Likewise.
2219         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
2220         (libc_fetestexcept): Likewise.
2221         (libc_feupdateenv_test): Likewise.
2222
2223         * sysdeps/generic/math_private.h
2224         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
2225         New inline function.
2226         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
2227         Likewise.
2228
2229         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
2230         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
2231         * sysdeps/generic/math_private.h
2232         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
2233         inline function.
2234         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
2235         Likewise.
2236         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
2237         Likewise.
2238         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
2239         Likewise.
2240         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
2241         Likewise.
2242         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
2243         Likewise.
2244         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
2245         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
2246         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
2247         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
2248         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
2249         (__fegetenv): Likewise.
2250         (fesetenv): Likewise.
2251         (__fesetenv): Likewise.
2252         (feupdateenv): Likewise.
2253         (__feupdateenv): Likewise.
2254         (fegetround): Likewise.
2255         (__fegetround): Likewise.
2256         (fesetround): Likewise.
2257         (__fesetround): Likewise.
2258
2259         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
2260         (feraiseexcept): New macro.
2261         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
2262         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
2263         Remove macro.
2264         (__feraiseexcept): Likewise.
2265         (feclearexcept): Likewise.
2266         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
2267         (__feraiseexcept): Likewise.
2268         (feclearexcept): Likewise.
2269         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
2270         (__feraiseexcept): Likewise.
2271         (feclearexcept): Likewise.
2272         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
2273         (__feraiseexcept): Likewise.
2274         (feclearexcept): Likewise.
2275         (fetestexcept): Likewise.
2276
2277         * sysdeps/m68k/coldfire/math-tests.h: New file.
2278
2279         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
2280         * sysdeps/m68k/bits/fenv.h: ... here.
2281         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
2282         not define.
2283         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
2284         Likewise.
2285         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
2286         Likewise.
2287         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
2288         Likewise.
2289         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
2290         Likewise.
2291         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
2292         Define to 0.
2293         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
2294         (__FE_UNDEFINED): New enum constant.
2295         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
2296         Do not define.
2297         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
2298         Likewise.
2299         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
2300         Likewise.
2301         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
2302         to match generic bits/fenv.h.
2303         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
2304         Do not define.
2305
2306         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
2307         packed on bits.
2308         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
2309         * soft-fp/half.h (union _FP_UNION_H): Likewise.
2310         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
2311         * soft-fp/single.h (union _FP_UNION_S): Likewise.
2312
2313 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
2314             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
2315             Joseph Myers  <joseph@codesourcery.com>
2316
2317         [BZ #21314]
2318         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
2319         (__log1p): Disable -Wmaybe-uninitialized for -Os around
2320         computation using c.
2321         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
2322         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
2323         computation using c.
2324
2325 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
2326
2327         * version.h (RELEASE): Set to "development".
2328         (VERSION): Set to "2.27.9000".
2329         * NEWS (2.28): New section.
2330
2331         * version.h (RELEASE): Set to "stable".
2332         (VERSION): Set to "2.27".
2333         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
2334
2335         * NEWS: Add the list of bugs fixed in 2.27.
2336
2337 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2338
2339         * stdlib/test-atexit-race-common.c (do_test): Check stack size
2340         against PTHREAD_STACK_MIN.
2341
2342 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
2343
2344         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
2345         New entries.
2346         (Rafal Luzynski, Andreas Schwab): Update.
2347
2348 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
2349
2350         [BZ #10871]
2351         * NEWS: List the languages which actually use the alternative
2352         months feature in this release.  Also explain that "alt_mon" and
2353         "ab_alt_mon" are optional.
2354
2355 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
2356
2357         [BZ #22765]
2358         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
2359
2360 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
2361
2362         * manual/install.texi (Tools for Compilation): Update the newest
2363         versions of gcc, binutils, texinfo, gawk, bison, and sed.
2364         * INSTALL: Regenerated.
2365
2366 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2367
2368         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
2369         instead of __builtin_expect.
2370
2371 2018-01-30  Florian Weimer  <fweimer@redhat.com>
2372
2373         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
2374         data.
2375         * nss/tst-nss-getpwent.c (do_test): Likewise.
2376
2377 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
2378
2379         [BZ #10871]
2380         * localedata/locales/hr_HR (mon): Rename to...
2381         (alt_mon): This.
2382         (mon): Import from CLDR (genitive case).
2383         (d_t_fmt): Update the comment.
2384
2385 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
2386
2387         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
2388         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
2389         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
2390
2391 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2392
2393         * mach/Versions: Fix version when __mach_host_self_ was added.
2394         * hurd/Versions: Fix version when _hurd_exec_paths was added.
2395         * sysdeps/mach/hurd/i386/ld.abilist: New file.
2396         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
2397         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
2398         * sysdeps/mach/hurd/i386/libc.abilist: New file.
2399         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
2400         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
2401         * sysdeps/mach/hurd/i386/libm.abilist: New file.
2402         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
2403         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
2404         * sysdeps/mach/hurd/i386/librt.abilist: New file.
2405         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
2406         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
2407         || to respect codestyle.
2408         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
2409         (do_test_bz20181): Rename accordingly.
2410         * malloc/malloc.c: Include <assert.h>.
2411         (assert): Do not define.
2412         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
2413         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
2414         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
2415         * sysdeps/mach/hurd/hp-timing.h: New file.
2416         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
2417
2418 2018-01-29  Darius Rad  <darius@bluespec.com>
2419
2420         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
2421
2422 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
2423
2424         * sysdeps/init_array/crti.S (.section .init_array): Add
2425         PREINIT_FUNCTION when defined.
2426         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
2427         * config.h.in: Regenerate.
2428         * manual/platform.texi: Add RISC-V documenation for
2429         __riscv_flush_icache.
2430         * sysdeps/riscv/__longjmp.S: New file.
2431         * sysdeps/riscv/backtrace.c: Likewise.
2432         * sysdeps/riscv/bits/endian.h: Likewise.
2433         * sysdeps/riscv/bits/setjmp.h: Likewise.
2434         * sysdeps/riscv/bits/wordsize.h: Likewise.
2435         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
2436         * sysdeps/riscv/bsd-setjmp.c: Likewise.
2437         * sysdeps/riscv/dl-trampoline.S: Likewise.
2438         * sysdeps/riscv/gccframe.h: Likewise.
2439         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
2440         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
2441         * sysdeps/riscv/machine-gmon.h: Likewise.
2442         * sysdeps/riscv/memusage.h: Likewise.
2443         * sysdeps/riscv/setjmp.S: Likewise.
2444         * sysdeps/riscv/sys/asm.h: Likewise.
2445         * sysdeps/riscv/tls-macros.h: Likewise.
2446         * sysdeps/riscv/dl-tls.h: New file.
2447         * sysdeps/riscv/libc-tls.c: Likewise.
2448         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
2449         * sysdeps/riscv/nptl/tls.h: Likewise.
2450         * sysdeps/riscv/stackinfo.h: Likewise.
2451         * sysdeps/riscv/bits/fenv.h: New file.
2452         * sysdeps/riscv/e_sqrtl.c: Likewise.
2453         * sysdeps/riscv/fpu_control.h: Likewise.
2454         * sysdeps/riscv/math-tests.h: Likewise.
2455         * sysdeps/riscv/nofpu/Implies: Likewise.
2456         * sysdeps/riscv/sfp-machine.h: Likewise.
2457         * sysdeps/riscv/tininess.h: Likewise.
2458         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
2459         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2460         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
2461         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
2462         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
2463         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
2464         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
2465         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
2466         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2467         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
2468         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2469         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
2470         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
2471         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
2472         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
2473         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
2474         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
2475         * sysdeps/riscv/rvd/s_finite.c: Likewise.
2476         * sysdeps/riscv/rvd/s_fma.c: Likewise.
2477         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
2478         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
2479         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
2480         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
2481         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
2482         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
2483         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
2484         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
2485         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
2486         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
2487         * sysdeps/riscv/rvf/fegetround.c: Likewise.
2488         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
2489         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
2490         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
2491         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
2492         * sysdeps/riscv/rvf/fesetround.c: Likewise.
2493         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
2494         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
2495         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
2496         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
2497         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
2498         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
2499         * sysdeps/riscv/rvf/math_private.h: Likewise.
2500         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2501         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
2502         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
2503         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2504         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
2505         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
2506         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
2507         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
2508         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
2509         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
2510         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
2511         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
2512         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2513         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
2514         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2515         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2516         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
2517         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
2518         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
2519         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
2520         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
2521         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
2522         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
2523         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
2524         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2525         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
2526         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
2527         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
2528         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
2529         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
2530         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
2531         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
2532         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
2533         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
2534         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
2535         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
2536         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
2537         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
2538         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
2539         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
2540         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
2541         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
2542         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
2543         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
2544         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
2545         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
2546         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
2547         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
2548         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
2549         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
2550         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
2551         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
2552         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
2553         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
2554         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
2555         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
2556         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
2557         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
2558         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
2559         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
2560         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
2561         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
2562         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
2563         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
2564         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
2565         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
2566         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
2567         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
2568         * sysdeps/riscv/Implies: New file.
2569         * sysdeps/riscv/Makefile: Likewise.
2570         * sysdeps/riscv/configure: Likewise.
2571         * sysdeps/riscv/configure.ac: Likewise.
2572         * sysdeps/riscv/nptl/Makefile: Likewise.
2573         * sysdeps/riscv/preconfigure: Likewise.
2574         * sysdeps/riscv/rv64/Implies-after: Likewise.
2575         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
2576         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
2577         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
2578         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
2579         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
2580         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
2581         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
2582         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
2583         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
2584         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
2585         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
2586         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
2587         (Config): Likewise.
2588
2589 2018-01-29  Florian Weimer  <fweimer@redhat.com>
2590
2591         [BZ #22701]
2592         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
2593         libnsl_hidden_proto.
2594         * include/rpcsvc/yp.h (yp_xdrall): Declare with
2595         libnsl_hidden_proto.
2596         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
2597         * nis/Makefile (libnsl-routines): Add nss-default only for
2598         build-obsolete-nsl.
2599         * nis/nis_defaults.c (__nis_default_ttl): Add
2600         libnsl_hidden_nolink_def.
2601         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
2602         declaration.
2603         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
2604         * nis/ypclnt.c (yp_maplist): Likewise.
2605
2606 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2607
2608         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2609         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
2610
2611 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
2614         clean -dxfq for git updates when replacing sources.
2615
2616         * scripts/build-many-glibcs.py (Config.build_gcc): Use
2617         --disable-libcilkrts unconditionally, not just for the final GCC
2618         build for Hurd.
2619
2620         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2621         version to 4.15.
2622
2623 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2624
2625         [BZ #10871]
2626         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
2627         case).
2628
2629 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2630
2631         [BZ #10871]
2632         * localedata/locales/be_BY (mon): Rename to...
2633         (alt_mon): This, then synchronize with CLDR (nominative case).
2634         (abmon): Rename to...
2635         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
2636         (mon): Import from CLDR (genitive case).
2637         (abmon): Likewise.
2638         * localedata/locales/be_BY@latin (mon): Rename to...
2639         (alt_mon): This.
2640         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
2641
2642         * localedata/locales/be_BY@latin (lang_name): Reworded to
2643         "biełaruskaja mova".
2644
2645 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2646
2647         [BZ #10871]
2648         * localedata/locales/el_CY (mon): Renamed to...
2649         (alt_mon): This.
2650         (mon): Import from CLDR (genitive case).
2651         * localedata/locales/el_GR: Likewise.
2652
2653 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2654
2655         [BZ #10871]
2656         * localedata/locales/ru_RU (mon): Rename to...
2657         (alt_mon): This.
2658         (abmon): Rename to...
2659         (ab_alt_mon): This.
2660         (mon): Import from CLDR (genitive case).
2661         (abmon): Copy from the old content except the 5th month which is
2662         now in the genitive case, even when abbreviated.
2663         * localedata/locales/ru_UA: Likewise.
2664         * time/tst-strptime.c (day_tests): Add an actual example of
2665         a difference between %b and %Ob in Russian.
2666
2667 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2668
2669         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
2670         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
2671         a `c' variable.
2672         * resolv/res-close.c: Include <stdlib.h>.
2673         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
2674         <sys/wait.h>, <time.h>, <sys/uio.h>.
2675         (NOT_CANCEL_H): Add inclusion guard.
2676         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
2677         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
2678         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
2679         return 0.
2680         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
2681         vm_address_t * to ElfW(Addr) * for dl_main parameter.
2682         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
2683         instead of void *.
2684         * sysdeps/pthread/timer_create.c (timer_create): Do not use
2685         timer_ptr2id to cast struct timer_node * to void *.
2686         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
2687         --disable-libcilkrts to gcc configure.
2688         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
2689         and make them the default for now.
2690         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
2691         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
2692         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
2693         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
2694         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
2695         MACH_IPC_COMPAT.
2696         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
2697         __task_terminate would ever return successfully.
2698         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
2699         to global scope.
2700         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
2701         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
2702         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
2703         critical section to make code simpler and avoid warning.
2704         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
2705         critical section to make code simpler and avoid warning.
2706         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
2707         const char * instead of char *.
2708         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
2709         __hurd_file_name_split, hurd_file_name_split,
2710         __hurd_directory_name_split, hurd_directory_name_split,
2711         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
2712         hurd_file_name_path_lookup): Make lookup function parameter take a
2713         const char *name instead of char *name.
2714         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
2715         __hurd_directory_name_split): Likewise.
2716         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2717         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
2718         * sysdeps/mach/hurd/check_native.c: New file.
2719         * sysdeps/mach/hurd/check_pf.c: New file.
2720         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
2721         (__freeifaddrs): Define macro to freeifaddrs.
2722         * sysdeps/mach/hurd/libhurduser.abilist: New file.
2723         * sysdeps/mach/libmachuser.abilist: New file.
2724         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
2725         (do_test_bz20181): Rename accordingly.
2726         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
2727         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
2728         <sys/mount.h>.
2729         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
2730         version only if __USE_EXTERN_INLINES is defined.
2731         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
2732         __hurd_sockfail): Likewise.
2733         (_hurd_fd_get): Always declare functions, and provide inline versions
2734         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
2735         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
2736         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
2737         _hurd_port_set): Always declare functions, and provide inline versions
2738         only if __USE_EXTERN_INLINES and _LIBC are defined and
2739         IS_IN(libc).
2740         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
2741         _hurd_critical_section_unlock): Likewise.
2742         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
2743         * __hurd_threadvar_location): Likewise.
2744         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
2745         _hurd_userlink_clear): Likewise.
2746         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
2747         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
2748         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
2749         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
2750         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
2751         __spin_lock_locked): Likewise.
2752         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
2753         __spin_lock_locked): Likewise.
2754         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
2755         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
2756         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
2757         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
2758         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
2759         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
2760         _POSIX_NO_TRUNC): Define to 0.
2761         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
2762         check size against PTHREAD_STACK_MIN.
2763         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
2764         IS_IN(libpthread)]: Include <sigsetops.h>.
2765         * mach/Makefile (user-interfaces): Add mach/gnumach.
2766         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
2767         * sysdeps/mach/configure (mach_interface_list): Regenerate.
2768         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
2769         instead of invalid -1.
2770         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
2771         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
2772         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
2773         <net/ppp_defs.h>.
2774
2775 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
2776
2777         * hurd/fcntl-internal.h: New file.
2778
2779 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
2780
2781         * sysdeps/hppa/fpu/libm-test-ulps: Update.
2782
2783         * sysdeps/alpha/fpu/libm-test-ulps: Update.
2784
2785 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
2786
2787         [BZ #22701]
2788         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
2789         Build only shared objects.
2790
2791 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
2792
2793         * README: Update for hppa.
2794
2795 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2796
2797         * sysdeps/sparc/fpu/libm-test-ulps: Update
2798         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
2799
2800 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
2801
2802         Revert:
2803
2804         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
2805
2806         [BZ #22563]
2807         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2808         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
2809         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2810         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
2811         to feature_1.
2812
2813         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
2814
2815         [BZ #22563]
2816         * bits/types/__cancel_jmp_buf_tag.h: New file.
2817         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
2818         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
2819         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
2820         * nptl/Makefile (headers): Add
2821         bits/types/__cancel_jmp_buf_tag.h.
2822         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
2823         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
2824         * sysdeps/nptl/pthread.h: Include
2825         <bits/types/__cancel_jmp_buf_tag.h>.
2826         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
2827         __cancel_jmp_buf.
2828         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
2829
2830 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
2831
2832         [BZ #10871]
2833         * localedata/locales/uk_UA (mon): Renamed to...
2834         (alt_mon): This.
2835         (alt_digits): "0" removed and then renamed to...
2836         (mon): This.
2837         (date_fmt): Definition changed not to use the alternative
2838         digits hack.
2839
2840 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
2841
2842         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
2843         FLAG_RISCV_FLOAT_ABI_DOUBLE.
2844         * elf/elf.h (EF_RISCV_RVC): New define.
2845         (EF_RISCV_FLOAT_ABI): Likewise.
2846         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
2847         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
2848         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
2849         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
2850         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
2851         define.
2852         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
2853
2854 2018-01-25  Andreas Schwab  <schwab@suse.de>
2855
2856         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
2857         single quotes.
2858         * sysdeps/gnu/configure: Regenerate.
2859         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
2860         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
2861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
2862         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
2863         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
2864         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
2865         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
2866         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
2867
2868 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2869
2870         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
2871         URL, and run autoconf, make it the default for now.
2872
2873 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
2874
2875         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2876         soft-float ColdFire configuration.
2877
2878         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
2879         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
2880         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
2881
2882         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
2883         MicroBlaze file.
2884
2885         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
2886         ....
2887         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
2888         ... here.
2889         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
2890         New file.
2891
2892         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
2893         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
2894         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
2895         file.
2896
2897 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2898
2899         [BZ #22742]
2900         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
2901         Rename to __reserved and add comment.
2902         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
2903         Rename to __reserved.
2904
2905 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
2906
2907         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2908         i686-gnu configurations.
2909         (Context.run_builds): Include mig, gnumach and hurd in components
2910         considered.
2911         (Context.checkout): Add mig, gnumach and hurd to components.
2912         (Context.checkout_tar): Add URL mappings for mig, gnumach and
2913         hurd.
2914         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
2915         (Config.build): Install gnumach headers, build mig and install
2916         hurd headers for 'gnu' OS.
2917         (Config.install_gnumach_headers): New function.
2918         (Config.install_hurd_headers): Likewise.
2919         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
2920         when building for 'gnu' OS.
2921
2922 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
2923
2924         * manual/tunables.texi (Hardware Capability Tunables): Fix
2925         spelling.
2926
2927 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
2928
2929         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
2930         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
2931         (ALTMON_11, ALTMON_12): Improve documentation.
2932         * manual/time.texi (strftime): Likewise.
2933
2934 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
2935
2936         [BZ #10871]
2937         * localedata/locales/pl_PL: Alternative month names added,
2938         primary month names are genitive now.
2939         * time/tst-strptime.c (day_tests): Actually use a genitive case
2940         of a month name in Polish language.
2941
2942 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
2943
2944         [BZ #10871]
2945         * manual/locale.texi: Document ALTMON_1..12 constants for
2946         nl_langinfo.  Specify when to use ALTMON instead of MON.
2947         * manual/time.texi (strftime, strptime): Document GNU extension
2948         permitting O modifier with %B and %b.  Specify when to use
2949         %OB instead of %B.
2950
2951 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
2952
2953         [BZ #10871]
2954         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
2955         names, define them as the same as abbreviated month names explicitly.
2956         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
2957         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
2958         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
2959         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
2960         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
2961         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
2962         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
2963         _NL_WABALTMON_12): New enum constants.
2964         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
2965         wab_alt_mon, and ab_alt_mon_defined members.
2966         (time_output): Output ab_alt_mon and wab_alt_mon members.
2967         (time_read): Read them, initialize them as copies of abmon and wabmon
2968         respectively if they are missing, initialize ab_alt_mon_defined.
2969         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
2970         * locale/programs/locfile-kw.h: Regenerate.
2971         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
2972         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
2973         and ru_RU.UTF-8.
2974         * time/strftime_l.c (a_altmonth, aam_len): New macros.
2975         [!COMPILE_WIDE] (ABALTMON_1): New macro.
2976         (__strftime_internal): Handle %Ob and %Oh formats.
2977         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
2978         (__strptime_internal): Handle %Ob and %Oh formats.
2979         * time/tst-strptime.c (day_tests): Add more tests to parse different
2980         forms of month names including the new %Ob format specifier.
2981
2982 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
2983
2984         [BZ #10871]
2985         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
2986         define them as the same as primary full month names explicitly.
2987         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
2988         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
2989         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
2990         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
2991         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
2992         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
2993         _NL_WALTMON_12): New enum constants.
2994         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
2995         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
2996         macros.
2997         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
2998         walt_mon, and alt_mon_defined members.
2999         (time_output): Output alt_mon and walt_mon members.
3000         (time_read): Read them, initialize them as copies of mon and wmon
3001         respectively if they are missing, initialize alt_mon_defined.
3002         * locale/programs/locfile-kw.gperf (alt_mon): Define.
3003         * locale/programs/locfile-kw.h: Regenerate.
3004         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
3005         * localedata/tst-langinfo.c (map): Add tests for the new constants
3006         ALTMON_1 .. ALTMON_12.
3007         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
3008         and pl_PL.UTF-8.
3009         * time/strftime_l.c (f_altmonth): New macro.
3010         (__strftime_internal): Handle %OB format.
3011         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
3012         (__strptime_internal): Handle %OB format.
3013         * time/tst-strptime.c (day_tests): Add tests to parse different forms
3014         of month names including the new %OB format specifier.
3015
3016 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3017
3018         [BZ #22685]
3019         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
3020         from ABORT_TRANSACTION.
3021         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
3022         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
3023         ABORT_TRANSACTION_IMPL): Likewise.
3024         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
3025         Linux code, but remove the code that aborts transactions.
3026
3027 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3028
3029         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
3030
3031 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
3032
3033         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
3034         in date: "2004-14-09" should be "2004-09-14".
3035         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
3036         "2003-15-09" should be "2003-09-15".
3037
3038 2018-01-18  Arjun Shankar  <arjun@redhat.com>
3039
3040         [BZ #22343]
3041         [BZ #22774]
3042         CVE-2018-6485
3043         CVE-2018-6551
3044         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
3045         after padding.
3046         (_int_memalign): check for integer overflow before calling
3047         _int_malloc.
3048         * malloc/tst-malloc-too-large.c: New test.
3049         * malloc/Makefile: Add tst-malloc-too-large.
3050
3051 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
3052
3053         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
3054         in date: "2017-24-07" should be "2017-07-24".
3055         * localedata/locales/mai_IN: Likewise.
3056         * localedata/locales/mai_NP: Likewise.
3057
3058 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
3059
3060         * po/ru.po: Update translations.
3061
3062 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
3063
3064         [BZ #22719]
3065         * sysdeps/hppa/backtrace.c: New file.
3066
3067 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3068
3069         [BZ #22715]
3070         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
3071         align La_x86_64_retval to VEC_SIZE.
3072
3073 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
3074
3075         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
3076         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
3077
3078 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3079
3080         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
3081         Move tst-thread-exit-clobber ...
3082         [$(CXX)] (tests-unsupported): ... to here.
3083
3084 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3085
3086         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
3087         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
3088         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3089         (_dl_aarch64_cap_flags): Update.
3090         (_DL_HWCAP_COUNT): Update.
3091
3092 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3093
3094         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
3095         (_DL_HWCAP_LAST): Remove.
3096         (_DL_HWCAP_COUNT): Move to ...
3097         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3098         (_DL_HWCAP_COUNT): ... here.
3099
3100 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3101
3102         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
3103         mode with GNU extensions.
3104
3105 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
3106
3107         * elf/elf.h (NT_ARM_SVE): Define.
3108
3109 2018-01-15  Florian Weimer  <fweimer@redhat.com>
3110
3111         [BZ #22636]
3112         * nptl/tst-minstack-throw.cc: New file.
3113         * nptl/Makefile (tests): Add tst-minstack-throw.
3114         (LDLIBS-tst-minstack-throw): Link with libstdc++.
3115         [!CXX] (tests-unsupported): Add tst-minstack-throw.
3116
3117 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
3118
3119         * scripts/build-many-glibcs.py (Context.checkout): Default
3120         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
3121         version to 1.1.0.
3122
3123 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
3124
3125         [BZ #22707]
3126         * elf/elf.h (DF_1_STUB): Define.
3127         (DF_1_PIE): Define.
3128
3129 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3130
3131         [BZ #22697]
3132         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3133         Do not add 0.5 to integer or out-of-range arguments.
3134
3135 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3136
3137         * po/bg.po: Update translations.
3138         * po/cs.po: Likewise.
3139         * po/de.po: Likewise.
3140         * po/ko.po: Likewise.
3141         * po/pl.po: Likewise.
3142         * po/sv.po: Likewise.
3143         * po/uk.po: Likewise.
3144         * po/vi.po: Likewise.
3145
3146 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3147
3148         * aarch64/start.S (_start): Use __wrap_main.
3149         (__wrap_main): New local symbol.
3150
3151 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3152
3153         [BZ #22679]
3154         CVE-2018-1000001
3155         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
3156         generic_getcwd if the path returned by getcwd syscall is not absolute.
3157         * io/tst-getcwd-abspath.c: New test.
3158         * io/Makefile (tests): Add tst-getcwd-abspath.
3159
3160 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
3161
3162         * malloc/malloc.c (malloc_consolidate): Add size check.
3163
3164 2018-01-12  Florian Weimer  <fweimer@redhat.com>
3165
3166         * support/write_message.c (write_message): Preserve errno.
3167         * support/check.c (print_failure): Likewise.
3168         * support/support_test_verify_impl.c (support_test_verify_impl):
3169         Likewise.
3170         * support/support_test_compare_failure.c
3171         (support_test_compare_failure): Likewise.
3172
3173 2018-01-12  Florian Weimer  <fweimer@redhat.com>
3174
3175         [BZ #22701]
3176         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
3177         Prevent installation of libnsl.so.
3178         (libnsl-inhibit-o): Do not build (or install) static libraries.
3179
3180 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
3181
3182         [BZ #22657]
3183         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
3184         before the day number which may produce a double space.
3185         (date_fmt): Likewise.
3186
3187 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
3188
3189         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
3190         instead of fegetenv.
3191
3192 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
3193
3194         [BZ #22702]
3195         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
3196         comment to say exceptions are discarded.
3197         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
3198         __fegetenv.
3199         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
3200         be enabled.
3201
3202 2018-01-11  Florian Weimer  <fweimer@redhat.com>
3203
3204         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
3205         and error message.
3206
3207 2018-01-11  Florian Weimer  <fweimer@redhat.com>
3208
3209         [BZ #22636]
3210         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
3211         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
3212
3213 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
3214
3215         [BZ #22693]
3216         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
3217         negative arguments in test for NaN or infinity argument.
3218
3219 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
3220
3221         * po/libc.pot: Regenerate.
3222
3223 2018-01-10  Florian Weimer  <fweimer@redhat.com>
3224
3225         [BZ #22636]
3226         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
3227         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
3228
3229 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3230
3231         * hurd/hurd/fd.h: Include <fcntl.h>
3232         (__hurd_at_flags): New function.
3233         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
3234         with call to __hurd_at_flags.
3235         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
3236         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
3237         __faccessat
3238         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
3239         (__access_noerrno): Use __faccessat_common instead of access_common.
3240         (__access): Likewise.
3241         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
3242         with a call to __faccessat.
3243         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
3244         (__faccessat_common): ... this. Move implementation of __access into it when
3245         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
3246         reauthenticate_cwdir_at helper to implement AT mechanism.
3247         (__faccessat_noerrno): New function, just calls __faccessat_common.
3248         (__faccessat): New function, just calls __faccessat_common.
3249         (faccessat): Define weak alias.
3250
3251 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
3252
3253         [BZ #22691]
3254         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
3255         (CFLAGS-s_fmaxmagl.c): New variable.
3256         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
3257
3258         [BZ #22690]
3259         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
3260         long int for arguments of possibly overflowing addition or
3261         subtraction.
3262         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
3263
3264 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
3265
3266         [BZ #22688]
3267         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
3268         (CFLAGS-e_remainderl.c): New variable.
3269
3270         [BZ #22687]
3271         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
3272         variable.
3273         (CFLAGS-s_cacoshl.c): Likewise.
3274         (CFLAGS-s_casinhl.c): Likewise.
3275         (CFLAGS-s_catanl.c): Likewise.
3276         (CFLAGS-s_catanhl.c): Likewise.
3277         (CFLAGS-s_cexpl.c): Likewise.
3278         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
3279         (CFLAGS-s_csinhl.c): Likewise.
3280         (CFLAGS-s_clogl.c): Likewise.
3281         (CFLAGS-s_clog10l.c): Likewise.
3282         (CFLAGS-s_csinl.c): Likewise.
3283         (CFLAGS-s_csqrtl.c): Likewise.
3284
3285 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
3286 2017-01-09  Svante Signell  <svante.signell@gmail.com>
3287
3288         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
3289         (_hurd_exec_paths): New function.
3290         * hurd/hurd.h (_hurd_exec): Deprecate function.
3291         (_hurd_exec_paths): Declare function.
3292         * hurd/Versions: Export _hurd_exec_paths.
3293         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
3294         (__execve): Use __getcwd to build absolute path, and use
3295         _hurd_exec_paths instead of _hurd_exec.
3296         * sysdeps/mach/hurd/spawni.c: Likewise.
3297         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
3298         _hurd_exec.
3299
3300 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
3301
3302         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
3303         test instead of failing in case of ENOENT returned by posix_openpt.
3304
3305 2018-01-08  Florian Weimer  <fweimer@redhat.com>
3306
3307         resolv: Support binary labels in test framework.
3308         * support/resolv_test.c (struct to_be_freed): Remove.
3309         (struct compressed_name): New.
3310         (allocate_compressed_name, ascii_tolower)
3311         (compare_compressed_name): New functions.
3312         (struct resolv_response_builder): Update type of
3313         compression_offsets for use with tsearch.  Rempve to_be_freed.
3314         (response_push_pointer_to_free): Remove function.
3315         (resolv_response_add_name): Rewrite using struct compressed_name
3316         and tsearch instead of hsearch_r.
3317         (response_builder_allocate): Remove initialization of
3318         compression_offsets.
3319         (response_builder_free): Update for removal of to_be_freed.  Use
3320         tdestroy instead of hdestroy_r.
3321         * resolv/Makefile (tests): Add tst-resolv-binary.
3322         (tst-resolv-binary): Link with -lresolv -lpthread.
3323
3324 2018-01-08  Florian Weimer  <fweimer@redhat.com>
3325
3326         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
3327         time.  Pass positive flag instead of negative flag to
3328         support_test_compare_failure.
3329         (support_test_compare_failure): Change negative parameter to
3330         positive.
3331         * support/support_test_compare_failure.c (report)
3332         (support_test_compare_failure): Likewise.
3333         * support/tst-test_compare.c (return_ssize_t, return_int): New.
3334         (do_test): Check int/size_t, ssize_t/size_t comparisons.
3335
3336 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3337
3338         [BZ #22637]
3339         * nptl/descr.h (stackblock, stackblock_size): Update comments.
3340         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
3341         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
3342         stacksize.
3343         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
3344
3345 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
3346
3347         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3348         Add s_sincosf-sse2 and s_sincosf-fma.
3349         (CFLAGS-s_sincosf-fma.c): New.
3350         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
3351         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
3352         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
3353         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
3354         __sincosf is defined.
3355
3356 2018-01-08  Florian Weimer  <fweimer@redhat.com>
3357
3358         * nptl/tst-thread-exit-clobber.cc: New file.
3359         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
3360         C++11 mode.
3361         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
3362         (tests): Add tst-thread-exit-clobber.
3363         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
3364
3365 2018-01-08  Florian Weimer  <fweimer@redhat.com>
3366
3367         * support/check.h (support_static_assert): Define.
3368         (TEST_COMPARE): Use it.
3369
3370 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
3371
3372         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
3373         [!__RLIM_T_MATCHES_RLIM64_T]
3374         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
3375         __getrlimit64. Add libc_hidden_weak.
3376
3377 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
3378
3379         * elf/elf.h (R_RISCV_NONE): New define.
3380         (R_RISCV_32): Likewise.
3381         (R_RISCV_64): Likewise.
3382         (R_RISCV_RELATIVE): Likewise.
3383         (R_RISCV_COPY): Likewise.
3384         (R_RISCV_JUMP_SLOT): Likewise.
3385         (R_RISCV_TLS_DTPMOD32): Likewise.
3386         (R_RISCV_TLS_DTPMOD64): Likewise.
3387         (R_RISCV_TLS_DTPREL32): Likewise.
3388         (R_RISCV_TLS_DTPREL64): Likewise.
3389         (R_RISCV_TLS_TPREL32): Likewise.
3390         (R_RISCV_TLS_TPREL64): Likewise.
3391         * Makerules (make-link-multidir): Make directories before linking into
3392         them.
3393         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
3394         define.
3395         (VDSO_HASH_LINUX_4_15): Likewise.
3396         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
3397         in subdirectories of lib.
3398         * nptl/Makefile (/librt.so): Always depend on
3399         "$(shared-thread-library)".
3400
3401 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3402
3403         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
3404         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
3405         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
3406         (___tls_get_addr).
3407         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
3408         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
3409         "-O2 -march=i686".
3410         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
3411         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
3412         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
3413         * sysdeps/gnu/glob-lstat-compat.c: New file.
3414         * sysdeps/gnu/glob64-lstat-compat.c: New file.
3415         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
3416
3417 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3418
3419         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3420         Reserve 16 chars to reloc_addr before calling _itoa_word.
3421
3422 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
3423
3424         [BZ #22678]
3425         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
3426         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
3427
3428         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
3429         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
3430
3431         * resource/tst-getrlimit.c: Add copyright header.
3432
3433 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
3434             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3435
3436         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
3437         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
3438         Define __GI_getrlimit64 as weak alias of __getrlimit64.
3439         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
3440         instead.
3441         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
3442         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
3443         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
3444         RLIM64_INFINITY): Fix values to match the kernel ones.
3445         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
3446         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
3447         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
3448         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
3449         getrlimit64@@GLIBC_2_27.
3450         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
3451         and setrlimit64.
3452         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
3453         getrlimit, setrlimit, getrlimit64 and setrlimit64.
3454         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
3455         setrlimit, getrlimit64 and setrlimit64.
3456
3457 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
3458
3459         [BZ #22648]
3460         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
3461         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
3462
3463 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
3464
3465         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
3466         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
3467         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
3468
3469 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3470
3471         [BZ #15479]
3472         [BZ #22666]
3473         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
3474         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
3475
3476         [BZ #15479]
3477         [BZ #22665]
3478         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
3479         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3480         * sysdeps/alpha/fpu/s_floor.c: Likewise.
3481         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3482
3483 2018-01-04  Florian Weimer  <fweimer@redhat.com>
3484
3485         [BZ #22667]
3486         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
3487         Align the stack before calling exit.
3488         * stdlib/tst-makecontext-align.c: New file.
3489         * stdlib/Makefile (tests): Add tst-makecontext-align.
3490
3491 2018-01-04  Florian Weimer  <fweimer@redhat.com>
3492
3493         Add support for calling dlvsym from libc.so.
3494         * include/dlfcn.h (__libc_dlvsym): Declare.
3495         * elf/Makefile (tests-static-internal): Add
3496         tst-libc_dlvsym-static.
3497         (tests-internal): Add tst-libc_dlvsym.
3498         (modules-names): Add tst-libc_dlvsym-dso.
3499         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
3500         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
3501         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
3502         object tst-libc_dlvsym-dso.so needs to be built before running
3503         these tests.
3504         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
3505         * elf/Versions: Export __libc_dlvsym.
3506         * elf/dl-libc.c (struct do_dlvsym_args): New.
3507         (do_dlvsym, __libc_dlvsym): New functions.
3508         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
3509         (_dl_open_hook2): New variable.
3510         (__libc_register_dl_open_hook): Set it.
3511         * elf/tst-libc_dlvsym-dso.c: New file.
3512         * elf/tst-libc_dlvsym-static.c: Likewise.
3513         * elf/tst-libc_dlvsym.c: Likewise.
3514         * elf/tst-libc_dlvsym.h: Likewise.
3515
3516 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3517
3518         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
3519         include <sys/mount.h>.
3520
3521 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
3522
3523         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
3524         Add __NO_MATH_ERRNO__ check.
3525
3526 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
3527
3528         * sysdeps/mips/mips32/libm-test-ulps: Update.
3529         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3530
3531 2018-01-02  Florian Weimer  <fweimer@redhat.com>
3532
3533         * misc/tst-pselect.c: Add copyright header.
3534
3535 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
3536
3537         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
3538         comment.
3539         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
3540         comment.
3541         (settrlimit): Rename into setrlimit.
3542         (__sttrlimit): Rename into __setrlimit.
3543
3544         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
3545         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
3546         never defined in that case.
3547
3548 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
3549
3550         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3551
3552         * sysdeps/arm/libm-test-ulps: Update.
3553
3554         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
3555         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
3556
3557 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3558
3559         * NEWS: Add cosf and sincosf to list of optimized functions.
3560
3561 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
3562
3563         [BZ #22660]
3564         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
3565         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
3566         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
3567         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
3568
3569 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
3570
3571         [BZ #22433]
3572         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
3573
3574         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
3575         making a copy of it.
3576
3577 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
3578
3579         * manual/texinfo.tex: Update to version 2017-12-26.21 with
3580         trailing whitespace removed.
3581         * scripts/config.guess: Update to version 2018-01-01.
3582         * scripts/config.sub: Update to version 2018-01-01.
3583         * scripts/move-if-change: Update from gnulib.
3584
3585         * NEWS: Update copyright dates.
3586         * catgets/gencat.c (print_version): Likewise.
3587         * csu/version.c (banner): Likewise.
3588         * debug/catchsegv.sh: Likewise.
3589         * debug/pcprofiledump.c (print_version): Likewise.
3590         * debug/xtrace.sh (do_version): Likewise.
3591         * elf/ldconfig.c (print_version): Likewise.
3592         * elf/ldd.bash.in: Likewise.
3593         * elf/pldd.c (print_version): Likewise.
3594         * elf/sotruss.sh: Likewise.
3595         * elf/sprof.c (print_version): Likewise.
3596         * iconv/iconv_prog.c (print_version): Likewise.
3597         * iconv/iconvconfig.c (print_version): Likewise.
3598         * locale/programs/locale.c (print_version): Likewise.
3599         * locale/programs/localedef.c (print_version): Likewise.
3600         * login/programs/pt_chown.c (print_version): Likewise.
3601         * malloc/memusage.sh (do_version): Likewise.
3602         * malloc/memusagestat.c (print_version): Likewise.
3603         * malloc/mtrace.pl: Likewise.
3604         * manual/libc.texinfo: Likewise.
3605         * nptl/version.c (banner): Likewise.
3606         * nscd/nscd.c (print_version): Likewise.
3607         * nss/getent.c (print_version): Likewise.
3608         * nss/makedb.c (print_version): Likewise.
3609         * posix/getconf.c (main): Likewise.
3610         * scripts/test-installation.pl: Likewise.
3611         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
3612
3613         * All files with FSF copyright notices: Update copyright dates
3614         using scripts/update-copyrights.
3615         * locale/programs/charmap-kw.h: Regenerated.
3616         * locale/programs/locfile-kw.h: Likewise.
3617
3618 2017-12-31  Zack Weinberg  <zackw@panix.com>
3619
3620         * libio/bits/libio-ldbl.h: Correct check for improper
3621         inclusion.  Add own multiple include guard.
3622
3623 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
3624             Dmitry V. Levin  <ldv@altlinux.org>
3625
3626         [BZ #22625]
3627         CVE-2017-16997
3628         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
3629         string token expansion. Check for NULL pointer or empty string possibly
3630         returned by expand_dynamic_string_token.
3631         (decompose_rpath): Check for empty path after dynamic string
3632         token expansion.
3633
3634 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
3635
3636         [BZ #22433]
3637         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
3638
3639         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
3640         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
3641         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
3642         and PTRACE_SYSCALL.
3643         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
3644         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3645         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3646         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3647         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3648         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3649
3650         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
3651         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
3652         __ptrace_peeksiginfo_flags, ptrace): Move to ...
3653         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
3654         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3655         bits/ptrace-shared.h.
3656         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
3657         <bits/ptrace-shared.h>.
3658         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
3659         __ptrace_peeksiginfo_flags, ptrace): Remove.
3660         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3661         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3662         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3663         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3664         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3665
3666 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
3667
3668         [BZ #17804]
3669         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
3670         end of the loop. Improve comments.
3671
3672 2017-12-29  Zack Weinberg  <zackw@panix.com>
3673
3674         [BZ #22615]
3675         * manual/errno.texi (Checking for Errors): Explicitly say that errno
3676         might be set on success.
3677
3678 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
3679
3680         [BZ #22611]
3681         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
3682         is unchanged on success.
3683
3684 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
3685
3686         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
3687         updated.
3688         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
3689         expand_dynamic_string_token): Likewise.
3690         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
3691         is_path argument.
3692
3693         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
3694         contains ':'.
3695
3696         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
3697         is set and name contains ':', and all code depending on these checks.
3698
3699 2017-12-24  Zack Weinberg  <zackw@panix.com>
3700
3701         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
3702         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
3703         respectively.
3704         * libio/libio.h: Rename the original version of this file to
3705         libio/bits/libio.h.  Error out if not included by stdio.h or the
3706         stub libio.h.
3707         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
3708         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
3709         if not included by bits/libio.h or the stub _G_config.h.
3710         * sysdeps/unix/sysv/linux/_G_config.h: Move to
3711         sysdeps/unix/sysv/linux/bits.  Error out if not included by
3712         bits/libio.h or the stub _G_config.h.
3713         * libio/stdio.h: Include bits/libio.h, not libio.h.
3714         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
3715         well as libio.h and _G_config.h.
3716
3717         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
3718         * libio/strfile.h, stdio-common/vfscanf.c
3719         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
3720         Include stdio.h, not _G_config.h nor libio.h.
3721         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
3722         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
3723
3724         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
3725
3726 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
3727
3728         [BZ #22347]
3729         * stdlib/getrandom.c (getrandom): Fix comment.
3730         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
3731
3732 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
3733
3734         [BZ #21161]
3735         * manual/arith.texi (strtoul): Fix a typo.
3736
3737         [BZ #22596]
3738         * manual/arith.texi (finite): Fix the description of the return
3739         value.
3740
3741 2017-12-22  Eric Blake  <ebb9@byu.net>
3742
3743         Avoid gcc warnings on cygwin
3744         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3745         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3746         Avoid unused variable.
3747
3748 2017-12-22  Florian Weimer  <fweimer@redhat.com>
3749
3750         * io/Makefile (routines): Add copy_file_range.
3751         (tests): Add tst-copy_file_range.
3752         (tests-static, tests-internal): Add tst-copy_file_range-compat.
3753         * io/Versions (GLIBC_2.27): Export copy_file_range.
3754         * io/copy_file_range-compat.c: New file.
3755         * io/copy_file_range.c: Likewise.
3756         * io/tst-copy_file_range-compat.c: Likewise.
3757         * io/tst-copy_file_range.c: Likewise.
3758         * manual/llio.texi (Copying File Data): New section.
3759         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
3760         * support/Makefile (libsupport-routines): Add support-xfstat,
3761         xftruncate, xlseek.
3762         * support/support-xfstat.c: New file.
3763         * support/xftruncate.c: Likewise.
3764         * support/xlseek.c: Likewise.
3765         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
3766         * sysdeps/unix/sysv/linux/**.abilist: Update.
3767         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
3768
3769 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3770
3771         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3772         disable-multi-arch variant to aarch64-linux-gnu.
3773
3774 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
3775
3776         * manual/texinfo.tex: Update to version 2017-12-18.20 with
3777         trailing whitespace removed.
3778         * scripts/config.guess: Update to version 2017-12-17.
3779         * scripts/config.sub: Update to version 2017-11-23.
3780         * scripts/install-sh: Update to version 2017-09-23.17.
3781         * scripts/move-if-change: Update to version 2017-09-13 06:45.
3782
3783 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3784
3785         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
3786         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
3787         * sysdeps/tile/_mcount.S (__mcount): Likewise.
3788         * sysdeps/tile/crti.S (_init, _fini): Likewise.
3789         * sysdeps/tile/crtn.S: Likewise.
3790         * sysdeps/tile/dl-start.S (_start): Likewise.
3791         * sysdeps/tile/dl-trampoline.S: Likewise.
3792         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
3793         * sysdeps/tile/start.S (_start): Likewise.
3794         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
3795         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
3796         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
3797         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
3798         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
3799         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
3800         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
3801
3802         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
3803         comment.
3804         * sysdeps/tile/preconfigure: Remove tilegx folder.
3805         * sysdeps/tile/tilegx/Implies: Move definitions to ...
3806         * sysdeps/tile/Implies: ... here.
3807         * sysdeps/tile/tilegx/Makefile: Move rules to ...
3808         * sysdeps/tile/Makefile: ... here.
3809         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
3810         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
3811         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
3812         * sysdeps/tile/bits/wordsize.h: ... here.
3813         * sysdeps/tile/tilegx/*: Move to ...
3814         * sysdeps/tile/*: ... here.
3815         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
3816         * sysdeps/tile/tilegx32/Implies: ... here.
3817         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
3818         * sysdeps/tile/tilegx64/Implies: ... here.
3819         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
3820         to ...
3821         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
3822         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
3823         * sysdeps/unix/sysv/linux/tile/*: ... here.
3824         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
3825         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
3826         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
3827         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
3828
3829         * README: Remove tilepro-*-linux-gnu from supported architecture.
3830         * scripts/build-many-glibcs.py: Likewise.
3831         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
3832         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
3833         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
3834         elf_machine_matches_host, elf_machine_dynamic,
3835         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
3836         howto, elf_machine_rela): Likewise.
3837         * sysdeps/tile/dl-start.S (_start): Likewise.
3838         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
3839         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
3840         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
3841         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
3842         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
3843         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
3844         Likewise.
3845         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
3846         * sysdeps/tile/preconfigure: Likewise.
3847         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
3848         POINTER_CHK_GUARD): Likewise.
3849         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
3850         * sysdeps/tile/start.S (_start): Likewise.
3851         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
3852         Likewise.
3853         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
3854         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
3855         CMOVNEZ): Remove.
3856         * sysdeps/unix/sysv/linux/tile/bits/environments.h
3857         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
3858         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
3859         Likewise.
3860         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
3861         * sysdeps/tile/tilepro/Implies: Remove file.
3862         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
3863         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
3864         * sysdeps/tile/tilepro/memchr.c: Likewise.
3865         * sysdeps/tile/tilepro/memcpy.S: Likewise.
3866         * sysdeps/tile/tilepro/memset.c: Likewise.
3867         * sysdeps/tile/tilepro/memusage.h: Likewise.
3868         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
3869         * sysdeps/tile/tilepro/strchr.c: Likewise.
3870         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
3871         * sysdeps/tile/tilepro/strlen.c: Likewise.
3872         * sysdeps/tile/tilepro/strrchr.c: Likewise.
3873         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
3874         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
3875         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
3876         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
3877         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
3878         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
3879         Likewise.
3880         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
3881         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3882         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
3883         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
3884         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3885         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
3886         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
3887         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
3888         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
3889         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
3890         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
3891         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
3892         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
3893         tilepro mention in comment.
3894
3895         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
3896         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
3897         * nptl/pthread_join_common.c: New file: common function used on
3898         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
3899         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
3900         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
3901         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
3902         (cleanup): Move definition to pthread_join_common.c.
3903         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
3904         Remove superflous checks.
3905         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
3906         Likewise.
3907
3908 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3909
3910         * sysdeps/aarch64/libm-test-ulps: Update.
3911
3912 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3913
3914         * sysdeps/aarch64/memset.S (MEMSET): Define.
3915
3916 2017-12-20  Florian Weimer  <fweimer@redhat.com>
3917
3918         [BZ #22635]
3919         nptl: Provide full implementation of pthread_self in libc.so.
3920         * nptl/Makefile (routines): Add pthread_self.
3921         (libpthread-routines): Replace pthread_self with
3922         compat-pthread_self.
3923         * nptl/forward.c (pthread_self): Remove.
3924         * nptl/nptl-init.c (pthread_functions): Do not initialize
3925         ptr_pthread_self.
3926         * nptl/pthread_self.c (pthread_self): Remove weak alias.
3927         * nptl/compat-pthread_self.c: New file.
3928         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
3929         Remove ptr_pthread_self.
3930
3931 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
3932
3933         * posix/regcomp.c: Fix spelling in comments.
3934         * posix/regex.h: Likewise.
3935         * posix/regex_internal.c: Likewise.
3936         * posix/regexec.c: Likewise.
3937
3938 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3939
3940         [BZ #22377]
3941         * math/Makefile [C++] (tests): Add test for iseqsig.
3942         * math/math.h [C++] (iseqsig): New implementation, which does
3943         not rely on __MATH_TG/__builtin_types_compatible_p.
3944         * math/test-math-iseqsig.cc: New file.
3945         * sysdeps/powerpc/powerpc64le/Makefile
3946         (CFLAGS-test-math-iseqsig.cc): New variable.
3947
3948 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
3949
3950         * elf/dl-load.c (is_trusted_path): Remove.
3951         (fillin_rpath): Remove check_trusted argument and its use,
3952         all callers changed.
3953
3954 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3955
3956         [BZ #22630]
3957         * Makeconfig (link-pie-before-libc): Replace -pie with
3958         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
3959         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
3960         (tst-dlopen-aout-no-pie): New.
3961         (LDFLAGS-tst-prelink): Removed.
3962         (tst-prelink-no-pie): New.
3963         (LDFLAGS-tst-main1): Removed.
3964         (tst-main1-no-pie): New.
3965         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
3966         (tst-gmon-no-pie): New.
3967
3968 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3969
3970         * manual/install.texi: Document that --enable-static-pie
3971         implies PIE.
3972         * INSTALL: Regenerated.
3973
3974 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3975
3976         [BZ #21309]
3977         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
3978         unsigned.
3979
3980 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
3981
3982         Revert:
3983
3984         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
3985
3986         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3987
3988         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
3989
3990         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
3991         <errno.h>.  Include "eexp.tbl".
3992         (half): New constant.
3993         (one): Likewise.
3994         (__ieee754_exp): Rewrite.
3995         (__slowexp): Remove prototype.
3996         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
3997         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
3998         * sysdeps/i386/fpu/slowexp.c: Likewise.
3999         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4000         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4001         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4002         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4003         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4004         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4005         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4006         comment.
4007         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4008         (CPPFLAGS-slowexp.c): Remove variable.
4009         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4010         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4011         (CFLAGS-slowexp-fma.c): Remove variable.
4012         (CFLAGS-slowexp-fma4.c): Likewise.
4013         (CFLAGS-slowexp-avx.c): Likewise.
4014         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4015         define as macro.
4016         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4017         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4018         * math/Makefile (type-double-routines): Remove slowexp.
4019         * manual/probes.texi (slowexp_p6): Remove.
4020         (slowexp_p32): Likewise.
4021
4022 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4023
4024         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4025         arithmetic.
4026
4027         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4028
4029 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4030
4031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4032
4033 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4034
4035         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
4036         <errno.h>.  Include "eexp.tbl".
4037         (half): New constant.
4038         (one): Likewise.
4039         (__ieee754_exp): Rewrite.
4040         (__slowexp): Remove prototype.
4041         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
4042         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
4043         * sysdeps/i386/fpu/slowexp.c: Likewise.
4044         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4045         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4046         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4047         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4048         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4049         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4050         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4051         comment.
4052         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4053         (CPPFLAGS-slowexp.c): Remove variable.
4054         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4055         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4056         (CFLAGS-slowexp-fma.c): Remove variable.
4057         (CFLAGS-slowexp-fma4.c): Likewise.
4058         (CFLAGS-slowexp-avx.c): Likewise.
4059         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4060         define as macro.
4061         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4062         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4063         * math/Makefile (type-double-routines): Remove slowexp.
4064         * manual/probes.texi (slowexp_p6): Remove.
4065         (slowexp_p32): Likewise.
4066
4067 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4068             James Clarke <jrtc27@jrtc27.com>
4069
4070         [BZ #22603]
4071         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
4072         addition.
4073
4074 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4075
4076         [BZ #22605]
4077         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
4078         code.
4079
4080 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4081
4082         [BZ #22563]
4083         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4084         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
4085         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4086         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
4087         to feature_1.
4088
4089 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4090
4091         [BZ #22563]
4092         * bits/types/__cancel_jmp_buf_tag.h: New file.
4093         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
4094         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
4095         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
4096         * nptl/Makefile (headers): Add
4097         bits/types/__cancel_jmp_buf_tag.h.
4098         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
4099         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
4100         * sysdeps/nptl/pthread.h: Include
4101         <bits/types/__cancel_jmp_buf_tag.h>.
4102         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
4103         __cancel_jmp_buf.
4104         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
4105
4106 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4107
4108         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4109         --enable-static-pie variants to x86_64, x32 and i686.
4110
4111 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4112
4113         [BZ #22631]
4114         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
4115         argument for attrubutes.  All callers changed.
4116         (__inline_mathop1): Likewise.  All callers changed.
4117         (__inline_mathop): Likewise.  All callers changed.
4118         [__USE_MISC] (scalbn): Use __inline_forward instead of
4119         __inline_forward_c.
4120         [__USE_ISOC99] (scalbln): Likewise.
4121         [__USE_ISOC99] (nearbyint): Likewise.
4122         [__USE_ISOC99] (lrint): Likewise.
4123         [__USE_MISC] (scalbnf): Likewise.
4124         [__USE_ISOC99] (scalblnf): Likewise.
4125         [__USE_ISOC99] (nearbyintf): Likewise.
4126         [__USE_ISOC99] (lrintf): Likewise.
4127         [__USE_MISC] (scalbnl): Likewise.
4128         [__USE_ISOC99] (scalblnl): Likewise.
4129         [__USE_ISOC99] (nearbyintl): Likewise.
4130         [__USE_ISOC99] (lrintl): Likewise.
4131         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
4132         __inline_mathop and __m81_defun changed.
4133
4134         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
4135         CPU or FPU for ARM hard-float configurations.
4136
4137 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
4138
4139         * nptl/tst-attr3.c: Include <libc-diag.h>.
4140         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
4141
4142         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
4143
4144         * string/tester.c (test_strncat): Also disable -Warray-bounds
4145         warnings for two tests.
4146
4147 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4148
4149         [BZ #22614]
4150         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
4151         $(cc-pie-default) == yes.
4152         * config.make.in (cc-pie-default): New.
4153         * configure.ac (libc_cv_pie_default): Renamed to ...
4154         (libc_cv_cc_pie_default): This.
4155         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
4156         * configure: Regenerated.
4157
4158 2017-12-18  Florian Weimer  <fweimer@redhat.com>
4159
4160         [BZ #20204]
4161         ld.so: Harden dl-libc/libdl hooks.
4162         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
4163         (rtld_active): New function.
4164         * dlfcn/dladdr.c (__dladdr): Call it.
4165         * dlfcn/dladdr1.c (__dladdr1): Likewise.
4166         * dlfcn/dlclose.c (__dlcose): Likewise.
4167         * dlfcn/dlerror.c (__dlerror): Likewise.
4168         * dlfcn/dlinfo.c (__dlinfo): Likewise.
4169         * dlfcn/dlmopen.c (__dlmopen): Likewise.
4170         * dlfcn/dlopen.c (__dlopen): Likewise.
4171         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
4172         * dlfcn/dlsym.c (__dlsym): Likewise.
4173         * dlfcn/dlvsym.c (__dlvsym): Likewise.
4174         * libio/vtables.c (_IO_vtable_check): Likewise.
4175         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
4176         (__libc_dlclose): Likewise.
4177         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
4178         assignment.
4179
4180 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
4181
4182         [BZ #22446]
4183         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
4184         buffers for readlink input and output.
4185
4186 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
4187
4188         [BZ #22624]
4189         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
4190         inhibit_stack_protector.
4191
4192         [BZ #22624]
4193         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
4194         inhibit_stack_protector.
4195
4196 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
4197
4198         [BZ #22627]
4199         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
4200         code and invocation.
4201
4202 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4203
4204         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
4205
4206 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
4207
4208         [BZ #22505]
4209         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
4210
4211 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4212
4213         * sysdeps/s390/fpu/libm-test-ulps: Update.
4214
4215 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4216
4217         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4218
4219 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4220
4221         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
4222         constants to s_sincosf.h file.
4223         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4224         * sysdeps/ieee754/flt-32/s_sincosf.c: New
4225         implementation.
4226         * sysdeps/ieee754/flt-32/s_sincosf.h:
4227         New file.
4228
4229 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
4230
4231         [BZ #14681]
4232         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
4233         before mtrace.
4234
4235 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         [BZ #19574]
4238         * INSTALL: Regenerated.
4239         * Makeconfig (real-static-start-installed-name): New.
4240         (pic-default): Updated for --enable-static-pie.
4241         (pie-default): New for --enable-static-pie.
4242         (default-pie-ldflag): Likewise.
4243         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
4244         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
4245         Replace $(static-start-installed-name) with
4246         $(real-static-start-installed-name).
4247         (+prectorT): Updated for --enable-static-pie.
4248         (+postctorT): Likewise.
4249         (CFLAGS-.o): Add $(pie-default).
4250         (CFLAGS-.op): Likewise.
4251         * NEWS: Mention --enable-static-pie.
4252         * config.h.in (ENABLE_STATIC_PIE): New.
4253         * configure.ac (--enable-static-pie): New configure option.
4254         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
4255         (have-static-pie): Likewise.
4256         Enable static PIE if linker supports --no-dynamic-linker.
4257         (ENABLE_STATIC_PIE): New AC_DEFINE.
4258         (enable-static-pie): New LIBC_CONFIG_VAR.
4259         * configure: Regenerated.
4260         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
4261         gr$(start-installed-name) for --enable-static-pie.
4262         (extra-objs): Likewise.
4263         (install-lib): Likewise.
4264         (extra-objs): Add static-reloc.o and static-reloc.os
4265         ($(objpfx)$(start-installed-name)): Also depend on
4266         $(objpfx)static-reloc.o.
4267         ($(objpfx)r$(start-installed-name)): New.
4268         ($(objpfx)g$(start-installed-name)): Also depend on
4269         $(objpfx)static-reloc.os.
4270         ($(objpfx)gr$(start-installed-name)): New.
4271         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
4272         in libc.a.
4273         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
4274         initimage.
4275         * csu/static-reloc.c: New file.
4276         * elf/Makefile (routines): Add dl-reloc-static-pie.
4277         (elide-routines.os): Likewise.
4278         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
4279         (tst-tls1-static-non-pie-no-pie): New.
4280         * elf/dl-reloc-static-pie.c: New file.
4281         * elf/dl-support.c (_dl_get_dl_main_map): New function.
4282         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
4283         STATIC_PIE_BOOTSTRAP.
4284         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
4285         * gmon/Makefile (tests): Add tst-gmon-static-pie.
4286         (tests-static): Likewise.
4287         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
4288         (tst-gmon-static-no-pie): New.
4289         (CFLAGS-tst-gmon-static-pie.c): Likewise.
4290         (CRT-tst-gmon-static-pie): Likewise.
4291         (tst-gmon-static-pie-ENV): Likewise.
4292         (tests-special): Likewise.
4293         ($(objpfx)tst-gmon-static-pie.out): Likewise.
4294         (clean-tst-gmon-static-pie-data): Likewise.
4295         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
4296         * gmon/tst-gmon-static-pie.c: New file.
4297         * manual/install.texi: Document --enable-static-pie.
4298         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
4299         (_dl_get_dl_main_map): Likewise.
4300         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
4301         * sysdeps/x86_64/configure.ac: Likewise.
4302         * sysdeps/i386/configure: Regenerated.
4303         * sysdeps/x86_64/configure: Likewise.
4304         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
4305         (ASFLAGS-.op): Likewise.
4306
4307 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
4308
4309         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
4310         * posix/tst-mmap-offset.c (fname): Use /tmp.
4311         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
4312
4313 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
4314
4315         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
4316
4317 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
4318
4319         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
4320         errno.
4321
4322 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
4323
4324         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
4325         --with-float=hard for arm-linux-gnueabihf configurations.
4326
4327         [BZ #14121]
4328         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
4329         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
4330         ($(mo-installed)): Use $(objpfx)%.mo.
4331         (realclean): Remove rule.
4332
4333         * po/Makefile (linguas): Remove rule and dependencies.
4334         (linguas.mo): Likewise.
4335         (.PHONY): Do not depend on linguas and linguas.mo.
4336         (podir): Remove variable.
4337         (pofiles): Likewise.
4338         [$(pofiles)] (%.po): Remove rule.
4339
4340         * sysdeps/sparc/sparc32/Makefile
4341         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
4342         start-of-line whitespace in argument of echo.
4343         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
4344         with whitespace.  Generate __wrap_.udiv alias.
4345         * sysdeps/sparc/sparc32/rem.S: Regenerated.
4346         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
4347         * sysdeps/sparc/sparc32/udiv.S: Likewise.
4348         * sysdeps/sparc/sparc32/urem.S: Likewise.
4349
4350 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4351
4352         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
4353         for aligned inputs.
4354
4355 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4356
4357         * benchtests/bench-strcmp.c: Print output in JSON format.
4358
4359         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
4360
4361 2017-12-14  Florian Weimer  <fweimer@redhat.com>
4362
4363         [BZ #22607]
4364         CVE-2017-1000409
4365         * elf/dl-load.c (_dl_init_paths): Compute number of components in
4366         the expanded path string.
4367
4368 2017-12-14  Florian Weimer  <fweimer@redhat.com>
4369
4370         [BZ #22606]
4371         CVE-2017-1000408
4372         * elf/dl-load.c (system_dirs): Update comment.
4373         (nsystem_dirs_len): Use array_length.
4374         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
4375
4376 2017-12-14  Florian Weimer  <fweimer@redhat.com>
4377
4378         Simplify compiling most of support/ outside of glibc.
4379         * support/check_addrinfo.c: Include <string.h>.
4380         * support/check_dns_packet.c: Likewise.
4381         * support/check_hostent.c: Likewise.
4382         * support/support_can_chroot.c: Include <support/xunistd.h>.
4383         * support/support_format_addrinfo.c: Include <stdlib.h>
4384         * support/support_format_dns_packet.c: Include <stdbool.h>.
4385         * support/support_format_hostent.c: Include <stdlib.h>.
4386         * support/support_format_netent.c: Likewise.
4387         * support/support_write_string.c: Include <support/xunistd.h>.
4388         * support/xdlfcn.c: Include <stddef.h>.
4389
4390 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
4391
4392         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
4393
4394 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4395             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4396
4397         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
4398         (sysdeps_routines): Add memset-niagara7.
4399         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
4400         Likewise.
4401         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
4402         file.
4403         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
4404         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
4405         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
4406         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
4407         Add niagara7 option.
4408         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
4409         memset.
4410
4411         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
4412         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
4413         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
4414         Likewise.
4415         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
4416         New file.
4417         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
4418         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
4419         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
4420         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
4421         and __memmove_niagara7.
4422         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
4423         Add niagara7 option.
4424         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
4425         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
4426         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
4427         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
4428         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
4429
4430 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
4431
4432         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
4433         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
4434         * sysdeps/sparc/sparc64/memmove.S: Likewise.
4435         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
4436
4437         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
4438         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
4439         _dl_sparc_cap_flags array.
4440         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
4441
4442 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4443
4444         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
4445         time whenever possible.
4446
4447 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
4448
4449         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
4450         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
4451
4452 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
4453
4454         * soft-fp/fmadf4.c: Move to ....
4455         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
4456         * soft-fp/fmasf4.c: Move to ....
4457         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
4458         * soft-fp/fmatf4.c: Move to ....
4459         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
4460         * sysdeps/ieee754/soft-fp/Makefile: New file.
4461         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
4462         * sysdeps/arm/preconfigure: Regenerated.
4463         * sysdeps/arm/nofpu/Implies: New file.
4464         * sysdeps/arm/s_fma.c: Remove file.
4465         * sysdeps/arm/s_fmaf.c: Likewise.
4466         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
4467         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
4468         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
4469         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
4470         * sysdeps/microblaze/s_fma.c: Remove file.
4471         * sysdeps/microblaze/s_fmaf.c: Likewise.
4472         * sysdeps/mips/mips32/nofpu/Implies: New file.
4473         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
4474         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
4475         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
4476         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
4477         * sysdeps/mips/ieee754/s_fma.c: Remove file.
4478         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
4479         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
4480         implementation.
4481         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
4482         * sysdeps/nios2/s_fma.c: Remove file.
4483         * sysdeps/nios2/s_fmaf.c: Likewise.
4484         * sysdeps/sh/nofpu/Implies: New file.
4485         * sysdeps/sh/s_fma.c: Remove file.
4486         * sysdeps/sh/s_fmaf.c: Likewise.
4487         * sysdeps/tile/Implies: Add ieee754/soft-fp.
4488         * sysdeps/tile/s_fma.c: Remove file.
4489         * sysdeps/tile/s_fmaf.c: Likewise.
4490
4491 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
4492
4493         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4494         Add s_cosf-sse2 and s_cosf-fma.
4495         (CFLAGS-s_cosf-fma.c): New.
4496         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
4497         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
4498         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
4499
4500 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
4501
4502         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
4503
4504 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4505
4506         * libio/Makefile (tests): Add tst-bz22415.
4507         (tst-bz22415-ENV): New rule.
4508         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
4509         (tests-special): Add tst-bz22415-mem.out.
4510         ($(objpfx)tst-bz22415-mem.out): New rule.
4511         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
4512         in case of a successful seek operation.
4513         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
4514         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
4515         buffer is required.
4516         * libio/tst-bz22415.c: New test.
4517
4518         * sysdeps/ia64/fpu/libm-test-ulps: Update.
4519
4520 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
4521
4522         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
4523         __IPC_64 to 0 to avoid IPC_64 being set.
4524
4525 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4526
4527         [BZ #22593]
4528         * math/bits/mathcalls.h (nextafter): Remove const.
4529         (nexttoward): Likewise.
4530
4531 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
4532
4533         * configure.ac (--with-fp): Remove configure option.
4534         (with_fp_cond): New variable.
4535         (libc_cv_with_fp): New configure test.  Use this variable instead
4536         of with_fp.
4537         * configure: Regenerated.
4538         * config.make.in (with-fp): Use @libc_cv_with_fp@.
4539         * manual/install.texi (Configuring and compiling): Remove
4540         --without-fp.
4541         * INSTALL: Regenerated.
4542         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
4543         * sysdeps/mips/preconfigure (with_fp_cond): Define.
4544         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
4545         * sysdeps/sh/preconfigure (with_fp_cond): Define.
4546         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
4547         use --without-fp to configure glibc.
4548
4549 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
4550
4551         * manual/locale.texi (nl_langinfo): Fix a typo.
4552
4553 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
4554
4555         [BZ #22588]
4556         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
4557
4558 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
4559
4560         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
4561         (CFLAGS-argp-parse.c): Likewise.
4562         (CFLAGS-argp-fmtstream.c): Likewise.
4563         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
4564         (CPPFLAGS-sha512-crypt.c): Likewise.
4565         (CPPFLAGS-md5-crypt.c): Likewise.
4566         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
4567         (CFLAGS-stack_chk_fail_local.c): Likewise.
4568         (CFLAGS-backtrace.c): Likewise.
4569         (CFLAGS-sprintf_chk.c): Likewise.
4570         (CFLAGS-snprintf_chk.c): Likewise.
4571         (CFLAGS-vsprintf_chk.c): Likewise.
4572         (CFLAGS-vsnprintf_chk.c): Likewise.
4573         (CFLAGS-asprintf_chk.c): Likewise.
4574         (CFLAGS-vasprintf_chk.c): Likewise.
4575         (CFLAGS-obprintf_chk.c): Likewise.
4576         (CFLAGS-dprintf_chk.c): Likewise.
4577         (CFLAGS-vdprintf_chk.c): Likewise.
4578         (CFLAGS-printf_chk.c): Likewise.
4579         (CFLAGS-fprintf_chk.c): Likewise.
4580         (CFLAGS-vprintf_chk.c): Likewise.
4581         (CFLAGS-vfprintf_chk.c): Likewise.
4582         (CFLAGS-gets_chk.c): Likewise.
4583         (CFLAGS-fgets_chk.c): Likewise.
4584         (CFLAGS-fgets_u_chk.c): Likewise.
4585         (CFLAGS-fread_chk.c): Likewise.
4586         (CFLAGS-fread_u_chk.c): Likewise.
4587         (CFLAGS-swprintf_chk.c): Likewise.
4588         (CFLAGS-vswprintf_chk.c): Likewise.
4589         (CFLAGS-wprintf_chk.c): Likewise.
4590         (CFLAGS-fwprintf_chk.c): Likewise.
4591         (CFLAGS-vwprintf_chk.c): Likewise.
4592         (CFLAGS-vfwprintf_chk.c): Likewise.
4593         (CFLAGS-fgetws_chk.c): Likewise.
4594         (CFLAGS-fgetws_u_chk.c): Likewise.
4595         (CFLAGS-read_chk.c): Likewise.
4596         (CFLAGS-pread_chk.c): Likewise.
4597         (CFLAGS-pread64_chk.c): Likewise.
4598         (CFLAGS-recv_chk.c): Likewise.
4599         (CFLAGS-recvfrom_chk.c): Likewise.
4600         (CFLAGS-tst-longjmp_chk.c): Likewise.
4601         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
4602         (CFLAGS-tst-longjmp_chk2.c): Likewise.
4603         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
4604         (CFLAGS-tst-longjmp_chk3.c): Likewise.
4605         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
4606         (CFLAGS-tst-chk1.c): Likewise.
4607         (CFLAGS-tst-chk2.c): Likewise.
4608         (CFLAGS-tst-chk3.c): Likewise.
4609         (CFLAGS-tst-chk4.cc): Likewise.
4610         (CFLAGS-tst-chk5.cc): Likewise.
4611         (CFLAGS-tst-chk6.cc): Likewise.
4612         (CFLAGS-tst-lfschk1.c): Likewise.
4613         (CFLAGS-tst-lfschk2.c): Likewise.
4614         (CFLAGS-tst-lfschk3.c): Likewise.
4615         (CFLAGS-tst-lfschk4.cc): Likewise.
4616         (CFLAGS-tst-lfschk5.cc): Likewise.
4617         (CFLAGS-tst-lfschk6.cc): Likewise.
4618         (CFLAGS-tst-ssp-1.c): Likewise.
4619         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
4620         (CFLAGS-scandir64.c): Likewise.
4621         (CFLAGS-scandir-tail.c): Likewise.
4622         (CFLAGS-scandir64-tail.c): Likewise.
4623         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
4624         (CFLAGS-dl-tunables.c): Likewise.
4625         (CFLAGS-dl-runtime.c): Likewise.
4626         (CFLAGS-dl-lookup.c): Likewise.
4627         (CFLAGS-dl-iterate-phdr.c): Likewise.
4628         (CFLAGS-vismain.c): Likewise.
4629         (CFLAGS-tst-linkall-static.c): Likewise.
4630         (CFLAGS-tst-linkall-static.c): Likewise.
4631         (CPPFLAGS-dl-load.c): Likewise.
4632         (CFLAGS-ldconfig.c): Likewise.
4633         (CFLAGS-dl-cache.c): Likewise.
4634         (CFLAGS-cache.c): Likewise.
4635         (CFLAGS-rtld.c): Likewise.
4636         (CFLAGS-multiload.c): Likewise.
4637         (CFLAGS-filtmod1.c): Likewise.
4638         (CFLAGS-tst-align.c): Likewise.
4639         (CFLAGS-tst-align2.c): Likewise.
4640         (CFLAGS-tst-alignmod.c): Likewise.
4641         (CFLAGS-tst-alignmod2.c): Likewise.
4642         (CPPFLAGS-tst-execstack.c): Likewise.
4643         (CFLAGS-tst-ptrguard1-static.c): Likewise.
4644         (CFLAGS-tst-latepthreadmod.c): Likewise.
4645         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
4646         (CFLAGS-getgrnam_r.c): Likewise.
4647         (CFLAGS-getgrent_r.c): Likewise.
4648         (CFLAGS-getgrent.c): Likewise.
4649         (CFLAGS-fgetgrent.c): Likewise.
4650         (CFLAGS-fgetgrent_r.c): Likewise.
4651         (CFLAGS-putgrent.c): Likewise.
4652         (CFLAGS-initgroups.c): Likewise.
4653         (CFLAGS-getgrgid.c): Likewise.
4654         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
4655         (CFLAGS-getsgent.c): Likewise.
4656         (CFLAGS-fgetsgent.c): Likewise.
4657         (CFLAGS-fgetsgent_r.c): Likewise.
4658         (CFLAGS-putsgent.c): Likewise.
4659         (CFLAGS-getsgnam.c): Likewise.
4660         (CFLAGS-getsgnam_r.c): Likewise.
4661         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
4662         (CFLAGS-iconv_charmap.c): Likewise.
4663         (CFLAGS-dummy-repertoire.c): Likewise.
4664         (CFLAGS-charmap.c): Likewise.
4665         (CFLAGS-linereader.c): Likewise.
4666         (CFLAGS-simple-hash.c): Likewise.
4667         (CFLAGS-gconv_conf.c): Likewise.
4668         (CFLAGS-iconvconfig.c): Likewise.
4669         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
4670         (CFLAGS-gethstbyad.c): Likewise.
4671         (CFLAGS-gethstbynm_r.c): Likewise.
4672         (CFLAGS-gethstbynm.c): Likewise.
4673         (CFLAGS-gethstbynm2_r.c): Likewise.
4674         (CFLAGS-gethstbynm2.c): Likewise.
4675         (CFLAGS-gethstent_r.c): Likewise.
4676         (CFLAGS-gethstent.c): Likewise.
4677         (CFLAGS-rcmd.c): Likewise.
4678         (CFLAGS-getnetbynm_r.c): Likewise.
4679         (CFLAGS-getnetbynm.c): Likewise.
4680         (CFLAGS-getnetbyad_r.c): Likewise.
4681         (CFLAGS-getnetbyad.c): Likewise.
4682         (CFLAGS-getnetent_r.c): Likewise.
4683         (CFLAGS-getnetent.c): Likewise.
4684         (CFLAGS-getaliasent_r.c): Likewise.
4685         (CFLAGS-getaliasent.c): Likewise.
4686         (CFLAGS-getrpcent_r.c): Likewise.
4687         (CFLAGS-getrpcent.c): Likewise.
4688         (CFLAGS-getservent_r.c): Likewise.
4689         (CFLAGS-getservent.c): Likewise.
4690         (CFLAGS-getprtent_r.c): Likewise.
4691         (CFLAGS-getprtent.c): Likewise.
4692         (CFLAGS-either_ntoh.c): Likewise.
4693         (CFLAGS-either_hton.c): Likewise.
4694         (CFLAGS-getnetgrent.c): Likewise.
4695         (CFLAGS-getnetgrent_r.c): Likewise.
4696         (CFLAGS-tst-checks-posix.c): Likewise.
4697         (CFLAGS-tst-sockaddr.c): Likewise.
4698         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
4699         (CFLAGS-tst-translit.c): Likewise.
4700         (CFLAGS-tst-gettext2.c): Likewise.
4701         (CFLAGS-tst-codeset.c): Likewise.
4702         (CFLAGS-tst-gettext3.c): Likewise.
4703         (CFLAGS-tst-gettext4.c): Likewise.
4704         (CFLAGS-tst-gettext5.c): Likewise.
4705         (CFLAGS-tst-gettext6.c): Likewise.
4706         * io/Makefile (CFLAGS-open.c): Likewise.
4707         (CFLAGS-open64.c): Likewise.
4708         (CFLAGS-creat.c): Likewise.
4709         (CFLAGS-creat64.c): Likewise.
4710         (CFLAGS-fcntl.c): Likewise.
4711         (CFLAGS-poll.c): Likewise.
4712         (CFLAGS-ppoll.c): Likewise.
4713         (CFLAGS-lockf.c): Likewise.
4714         (CFLAGS-statfs.c): Likewise.
4715         (CFLAGS-fstatfs.c): Likewise.
4716         (CFLAGS-statvfs.c): Likewise.
4717         (CFLAGS-fstatvfs.c): Likewise.
4718         (CFLAGS-fts.c): Likewise.
4719         (CFLAGS-fts64.c): Likewise.
4720         (CFLAGS-ftw.c): Likewise.
4721         (CFLAGS-ftw64.c): Likewise.
4722         (CFLAGS-lockf.c): Likewise.
4723         (CFLAGS-posix_fallocate.c): Likewise.
4724         (CFLAGS-posix_fallocate64.c): Likewise.
4725         (CFLAGS-fallocate.c): Likewise.
4726         (CFLAGS-fallocate64.c): Likewise.
4727         (CFLAGS-read.c): Likewise.
4728         (CFLAGS-write.c): Likewise.
4729         (CFLAGS-test-stat.c): Likewise.
4730         (CFLAGS-test-lfs.c): Likewise.
4731         * libio/Makefile (CFLAGS-fileops.c): Likewise.
4732         (CFLAGS-fputc.c): Likewise.
4733         (CFLAGS-fputwc.c): Likewise.
4734         (CFLAGS-freopen64.c): Likewise.
4735         (CFLAGS-freopen.c): Likewise.
4736         (CFLAGS-fseek.c): Likewise.
4737         (CFLAGS-fseeko64.c): Likewise.
4738         (CFLAGS-fseeko.c): Likewise.
4739         (CFLAGS-ftello64.c): Likewise.
4740         (CFLAGS-ftello.c): Likewise.
4741         (CFLAGS-fwide.c): Likewise.
4742         (CFLAGS-genops.c): Likewise.
4743         (CFLAGS-getc.c): Likewise.
4744         (CFLAGS-getchar.c): Likewise.
4745         (CFLAGS-getwc.c): Likewise.
4746         (CFLAGS-getwchar.c): Likewise.
4747         (CFLAGS-iofclose.c): Likewise.
4748         (CFLAGS-iofflush.c): Likewise.
4749         (CFLAGS-iofgetpos64.c): Likewise.
4750         (CFLAGS-iofgetpos.c): Likewise.
4751         (CFLAGS-iofgets.c): Likewise.
4752         (CFLAGS-iofgetws.c): Likewise.
4753         (CFLAGS-iofputs.c): Likewise.
4754         (CFLAGS-iofputws.c): Likewise.
4755         (CFLAGS-iofread.c): Likewise.
4756         (CFLAGS-iofsetpos64.c): Likewise.
4757         (CFLAGS-iofsetpos.c): Likewise.
4758         (CFLAGS-ioftell.c): Likewise.
4759         (CFLAGS-iofwrite.c): Likewise.
4760         (CFLAGS-iogetdelim.c): Likewise.
4761         (CFLAGS-iogetline.c): Likewise.
4762         (CFLAGS-iogets.c): Likewise.
4763         (CFLAGS-iogetwline.c): Likewise.
4764         (CFLAGS-ioputs.c): Likewise.
4765         (CFLAGS-ioseekoff.c): Likewise.
4766         (CFLAGS-ioseekpos.c): Likewise.
4767         (CFLAGS-iosetbuffer.c): Likewise.
4768         (CFLAGS-iosetvbuf.c): Likewise.
4769         (CFLAGS-ioungetc.c): Likewise.
4770         (CFLAGS-ioungetwc.c): Likewise.
4771         (CFLAGS-oldfileops.c): Likewise.
4772         (CFLAGS-oldiofclose.c): Likewise.
4773         (CFLAGS-oldiofgetpos64.c): Likewise.
4774         (CFLAGS-oldiofgetpos.c): Likewise.
4775         (CFLAGS-oldiofsetpos64.c): Likewise.
4776         (CFLAGS-oldiofsetpos.c): Likewise.
4777         (CFLAGS-peekc.c): Likewise.
4778         (CFLAGS-putc.c): Likewise.
4779         (CFLAGS-putchar.c): Likewise.
4780         (CFLAGS-putwc.c): Likewise.
4781         (CFLAGS-putwchar.c): Likewise.
4782         (CFLAGS-rewind.c): Likewise.
4783         (CFLAGS-wfileops.c): Likewise.
4784         (CFLAGS-wgenops.c): Likewise.
4785         (CFLAGS-oldiofopen.c): Likewise.
4786         (CFLAGS-iofopen.c): Likewise.
4787         (CFLAGS-iofopen64.c): Likewise.
4788         (CFLAGS-oldtmpfile.c): Likewise.
4789         (CFLAGS-tst_putwc.c): Likewise.
4790         * locale/Makefile (CFLAGS-md5.c): Likewise.
4791         (CFLAGS-charmap.c): Likewise.
4792         (CFLAGS-locfile.c): Likewise.
4793         (CFLAGS-charmap-dir.c): Likewise.
4794         * login/Makefile (CFLAGS-grantpt.c): Likewise.
4795         (CFLAGS-getpt.c): Likewise.
4796         (CFLAGS-pt_chown.c): Likewise.
4797         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
4798         (CFLAGS-obstack.c): Likewise.
4799         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
4800         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
4801         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
4802         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
4803         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
4804         (CFLAGS-test-tgmath.c): Likewise.
4805         (CFLAGS-test-tgmath2.c): Likewise.
4806         (CFLAGS-test-tgmath-ret.c): Likewise.
4807         (CFLAGS-test-powl.c): Likewise.
4808         (CFLAGS-test-snan.c): Likewise.
4809         (CFLAGS-test-signgam-finite.c): Likewise.
4810         (CFLAGS-test-signgam-finite-c99.c): Likewise.
4811         (CFLAGS-test-signgam-finite-c11.c): Likewise.
4812         (CFLAGS-test-signgam-uchar.c): Likewise.
4813         (CFLAGS-test-signgam-uchar-init.c): Likewise.
4814         (CFLAGS-test-signgam-uchar-static.c): Likewise.
4815         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
4816         (CFLAGS-test-signgam-uint.c): Likewise.
4817         (CFLAGS-test-signgam-uint-init.c): Likewise.
4818         (CFLAGS-test-signgam-uint-static.c): Likewise.
4819         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
4820         (CFLAGS-test-signgam-ullong.c): Likewise.
4821         (CFLAGS-test-signgam-ullong-init.c): Likewise.
4822         (CFLAGS-test-signgam-ullong-static.c): Likewise.
4823         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
4824         (CFLAGS-test-math-cxx11.cc): Likewise.
4825         (CFLAGS-test-math-isinff.cc): Likewise.
4826         (CFLAGS-test-math-iszero.cc): Likewise.
4827         (CFLAGS-test-math-issignaling.cc): Likewise.
4828         (CFLAGS-test-math-iscanonical.cc): Likewise.
4829         (CFLAGS-test-iszero-excess-precision.c): Likewise.
4830         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
4831         (CFLAGS-test-flt-eval-method.c): Likewise.
4832         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
4833         (CFLAGS-test-finite-macros.c): Likewise.
4834         * misc/Makefile (CFLAGS-select.c): Likewise.
4835         (CFLAGS-tsearch.c): Likewise.
4836         (CFLAGS-lsearch.c): Likewise.
4837         (CFLAGS-pselect.c): Likewise.
4838         (CFLAGS-readv.c): Likewise.
4839         (CFLAGS-writev.c): Likewise.
4840         (CFLAGS-preadv.c): Likewise.
4841         (CFLAGS-preadv64.c): Likewise.
4842         (CFLAGS-pwritev.c): Likewise.
4843         (CFLAGS-pwritev64.c): Likewise.
4844         (CFLAGS-preadv2.c): Likewise.
4845         (CFLAGS-preadv64v2.c): Likewise.
4846         (CFLAGS-pwritev2.c): Likewise.
4847         (CFLAGS-pwritev64v2.c): Likewise.
4848         (CFLAGS-usleep.c): Likewise.
4849         (CFLAGS-syslog.c): Likewise.
4850         (CFLAGS-error.c): Likewise.
4851         (CFLAGS-getpass.c): Likewise.
4852         (CFLAGS-mkstemp.c): Likewise.
4853         (CFLAGS-mkstemp64.c): Likewise.
4854         (CFLAGS-getsysstats.c): Likewise.
4855         (CFLAGS-getusershell.c): Likewise.
4856         (CFLAGS-err.c): Likewise.
4857         (CFLAGS-tst-tsearch.c): Likewise.
4858         (CFLAGS-msync.c): Likewise.
4859         (CFLAGS-fdatasync.c): Likewise.
4860         (CFLAGS-fsync.c): Likewise.
4861         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
4862         (CFLAGS-unwind.c): Likewise.
4863         (CFLAGS-unwind-forcedunwind.c): Likewise.
4864         (CFLAGS-pthread_cancel.c): Likewise.
4865         (CFLAGS-pthread_setcancelstate.c): Likewise.
4866         (CFLAGS-pthread_setcanceltype.c): Likewise.
4867         (CFLAGS-cancellation.c): Likewise.
4868         (CFLAGS-libc-cancellation.c): Likewise.
4869         (CFLAGS-pthread_exit.c): Likewise.
4870         (CFLAGS-forward.c): Likewise.
4871         (CFLAGS-pthread_testcancel.c): Likewise.
4872         (CFLAGS-pthread_join.c): Likewise.
4873         (CFLAGS-pthread_timedjoin.c): Likewise.
4874         (CFLAGS-pthread_once.c): Likewise.
4875         (CFLAGS-pthread_cond_wait.c): Likewise.
4876         (CFLAGS-sem_wait.c): Likewise.
4877         (CFLAGS-sem_timedwait.c): Likewise.
4878         (CFLAGS-fcntl.c): Likewise.
4879         (CFLAGS-lockf.c): Likewise.
4880         (CFLAGS-pread.c): Likewise.
4881         (CFLAGS-pread64.c): Likewise.
4882         (CFLAGS-pwrite.c): Likewise.
4883         (CFLAGS-pwrite64.c): Likewise.
4884         (CFLAGS-wait.c): Likewise.
4885         (CFLAGS-waitpid.c): Likewise.
4886         (CFLAGS-sigwait.c): Likewise.
4887         (CFLAGS-msgrcv.c): Likewise.
4888         (CFLAGS-msgsnd.c): Likewise.
4889         (CFLAGS-tcdrain.c): Likewise.
4890         (CFLAGS-open.c): Likewise.
4891         (CFLAGS-open64.c): Likewise.
4892         (CFLAGS-pause.c): Likewise.
4893         (CFLAGS-recv.c): Likewise.
4894         (CFLAGS-send.c): Likewise.
4895         (CFLAGS-accept.c): Likewise.
4896         (CFLAGS-sendto.c): Likewise.
4897         (CFLAGS-connect.c): Likewise.
4898         (CFLAGS-recvfrom.c): Likewise.
4899         (CFLAGS-recvmsg.c): Likewise.
4900         (CFLAGS-sendmsg.c): Likewise.
4901         (CFLAGS-close.c): Likewise.
4902         (CFLAGS-read.c): Likewise.
4903         (CFLAGS-write.c): Likewise.
4904         (CFLAGS-nanosleep.c): Likewise.
4905         (CFLAGS-sigsuspend.c): Likewise.
4906         (CFLAGS-msync.c): Likewise.
4907         (CFLAGS-fdatasync.c): Likewise.
4908         (CFLAGS-fsync.c): Likewise.
4909         (CFLAGS-pt-system.c): Likewise.
4910         (CFLAGS-tst-cleanup2.c): Likewise.
4911         (CFLAGS-tst-cleanupx2.c): Likewise.
4912         (CFLAGS-flockfile.c): Likewise.
4913         (CFLAGS-ftrylockfile.c): Likewise.
4914         (CFLAGS-funlockfile.c): Likewise.
4915         (CFLAGS-tst-initializers1.c): Likewise.
4916         (CFLAGS-tst-initializers1-c89.c): Likewise.
4917         (CFLAGS-tst-initializers1-c99.c): Likewise.
4918         (CFLAGS-tst-initializers1-c11.c): Likewise.
4919         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
4920         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
4921         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
4922         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
4923         (CFLAGS-nscd_getgr_r.c): Likewise.
4924         (CFLAGS-nscd_gethst_r.c): Likewise.
4925         (CFLAGS-nscd_getai.c): Likewise.
4926         (CFLAGS-nscd_initgroups.c): Likewise.
4927         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
4928         (CFLAGS-pause.c): Likewise.
4929         (CFLAGS-pread.c): Likewise.
4930         (CFLAGS-pread64.c): Likewise.
4931         (CFLAGS-pwrite.c): Likewise.
4932         (CFLAGS-pwrite64.c): Likewise.
4933         (CFLAGS-sleep.c): Likewise.
4934         (CFLAGS-wait.c): Likewise.
4935         (CFLAGS-waitid.c): Likewise.
4936         (CFLAGS-waitpid.c): Likewise.
4937         (CFLAGS-getopt.c): Likewise.
4938         (CFLAGS-wordexp.c): Likewise.
4939         (CFLAGS-sysconf.c): Likewise.
4940         (CFLAGS-pathconf.c): Likewise.
4941         (CFLAGS-fpathconf.c): Likewise.
4942         (CFLAGS-spawn.c): Likewise.
4943         (CFLAGS-spawnp.c): Likewise.
4944         (CFLAGS-spawni.c): Likewise.
4945         (CFLAGS-glob.c): Likewise.
4946         (CFLAGS-glob64.c): Likewise.
4947         (CFLAGS-getconf.c): Likewise.
4948         (CFLAGS-nanosleep.c): Likewise.
4949         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
4950         (CFLAGS-getpwent.c): Likewise.
4951         (CFLAGS-getpw.c): Likewise.
4952         (CFLAGS-fgetpwent_r.c): Likewise.
4953         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
4954         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
4955         (CFLAGS-mq_timedreceive.c): Likewise.
4956         (CFLAGS-mq_timedsend.c): Likewise.
4957         (CFLAGS-clock_nanosleep.c): Likewise.
4958         (CFLAGS-librt-cancellation.c): Likewise.
4959         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
4960         (CFLAGS-getspent.c): Likewise.
4961         (CFLAGS-fgetspent.c): Likewise.
4962         (CFLAGS-fgetspent_r.c): Likewise.
4963         (CFLAGS-putspent.c): Likewise.
4964         (CFLAGS-getspnam.c): Likewise.
4965         (CFLAGS-getspnam_r.c): Likewise.
4966         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
4967         (CFLAGS-sigsuspend.c): Likewise.
4968         (CFLAGS-sigtimedwait.c): Likewise.
4969         (CFLAGS-sigwait.c): Likewise.
4970         (CFLAGS-sigwaitinfo.c): Likewise.
4971         (CFLAGS-sigreturn.c): Likewise.
4972         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
4973         (CFLAGS-vfwprintf.c): Likewise.
4974         (CFLAGS-tmpfile.c): Likewise.
4975         (CFLAGS-tmpfile64.c): Likewise.
4976         (CFLAGS-tempname.c): Likewise.
4977         (CFLAGS-psignal.c): Likewise.
4978         (CFLAGS-vprintf.c): Likewise.
4979         (CFLAGS-cuserid.c): Likewise.
4980         (CFLAGS-errlist.c): Likewise.
4981         (CFLAGS-siglist.c): Likewise.
4982         (CFLAGS-scanf15.c): Likewise.
4983         (CFLAGS-scanf17.c): Likewise.
4984         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
4985         (CFLAGS-msort.c): Likewise.
4986         (CFLAGS-qsort.c): Likewise.
4987         (CFLAGS-system.c): Likewise.
4988         (CFLAGS-fmtmsg.c): Likewise.
4989         (CFLAGS-strfmon.c): Likewise.
4990         (CFLAGS-strfmon_l.c): Likewise.
4991         (CFLAGS-strfromd.c): Likewise.
4992         (CFLAGS-strfromf.c): Likewise.
4993         (CFLAGS-strfroml.c): Likewise.
4994         (CFLAGS-tst-bsearch.c): Likewise.
4995         (CFLAGS-tst-qsort.c): Likewise.
4996         (CFLAGS-tst-makecontext2.c): Likewise.
4997         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
4998         (CFLAGS-xnlm_prot.c): Likewise.
4999         (CFLAGS-xrstat.c): Likewise.
5000         (CFLAGS-xyppasswd.c): Likewise.
5001         (CFLAGS-xklm_prot.c): Likewise.
5002         (CFLAGS-xrex.c): Likewise.
5003         (CFLAGS-xsm_inter.c): Likewise.
5004         (CFLAGS-xmount.c): Likewise.
5005         (CFLAGS-xrusers.c): Likewise.
5006         (CFLAGS-xspray.c): Likewise.
5007         (CFLAGS-xnfs_prot.c): Likewise.
5008         (CFLAGS-xrquota.c): Likewise.
5009         (CFLAGS-xkey_prot.c): Likewise.
5010         (CFLAGS-auth_unix.c): Likewise.
5011         (CFLAGS-key_call.c): Likewise.
5012         (CFLAGS-pmap_rmt.c): Likewise.
5013         (CFLAGS-clnt_perr.c): Likewise.
5014         (CFLAGS-openchild.c): Likewise.
5015         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
5016         (CFLAGS-msgsnd.c): Likewise.
5017         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
5018         * time/Makefile (CFLAGS-tzfile.c): Likewise.
5019         (CFLAGS-tzset.c): Likewise.
5020         (CFLAGS-getdate.c): Likewise.
5021         (CFLAGS-test_time.c): Likewise.
5022         (CPPFLAGS-tst-tzname.c): Likewise.
5023         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
5024         (CFLAGS-zic.c): Likewise.
5025         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
5026         (CFLAGS-wcswidth.c): Likewise.
5027         (CFLAGS-wcstol.c): Likewise.
5028         (CFLAGS-wcstoul.c): Likewise.
5029         (CFLAGS-wcstoll.c): Likewise.
5030         (CFLAGS-wcstoull.c): Likewise.
5031         (CFLAGS-wcstod.c): Likewise.
5032         (CFLAGS-wcstold.c): Likewise.
5033         (CFLAGS-wcstof128.c): Likewise.
5034         (CFLAGS-wcstof.c): Likewise.
5035         (CFLAGS-wcstol_l.c): Likewise.
5036         (CFLAGS-wcstoul_l.c): Likewise.
5037         (CFLAGS-wcstoll_l.c): Likewise.
5038         (CFLAGS-wcstoull_l.c): Likewise.
5039         (CFLAGS-wcstod_l.c): Likewise.
5040         (CFLAGS-wcstold_l.c): Likewise.
5041         (CFLAGS-wcstof128_l.c): Likewise.
5042         (CFLAGS-wcstof_l.c): Likewise.
5043         (CPPFLAGS-tst-wchar-h.c): Likewise.
5044         (CPPFLAGS-wcstold_l.c): Likewise.
5045 ---
5046 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
5047
5048         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
5049
5050 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5051             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5052
5053         * manual/tunables.texi (Hardware Capability Tunables): Document
5054         glibc.tune.cached_memopt.
5055         * sysdeps/powerpc/cpu-features.c: New file.
5056         * sysdeps/powerpc/cpu-features.h: New file.
5057         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
5058         _dl_powerpc_cpu_features.
5059         * sysdeps/powerpc/dl-tunables.list: New file.
5060         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
5061         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
5062         (INIT_ARCH): Initialize use_aligned_memopt.
5063         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
5064         IS_IN(rtld))]: Restrict dl_platform_init availability and
5065         initialize CPU features used by tunables.
5066         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
5067         Add memcpy-power8-cached.
5068         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
5069         __memcpy_power8_cached.
5070         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
5071         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
5072         New file.
5073
5074 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
5075
5076         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
5077         (CFLAGS-noinl-tester.c): Likewise.
5078         (CFLAGS-tst-strlen.c): Likewise.
5079         (CFLAGS-stratcliff.c): Likewise.
5080         (CFLAGS-test-ffs.c): Likewise.
5081         (CFLAGS-tst-inlcall.c): Likewise.
5082         (CFLAGS-tst-xbzero-opt.c): Likewise.
5083         (CFLAGS-memcpy.c): Likewise.
5084         (CFLAGS-wordcopy.c): Likewise.
5085
5086 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5087
5088         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
5089         Store r15 on stack and add cfi rule.
5090         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
5091         Likewise.
5092
5093 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5094
5095         [BZ #22577]
5096         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
5097         call.
5098
5099 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5100
5101         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5102         Add s_sinf-sse2 and s_sinf-fma.
5103         (CFLAGS-s_sinf-fma.c): New.
5104         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
5105         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
5106         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
5107
5108 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5109
5110         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
5111
5112 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5113
5114         [BZ #22568]
5115         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
5116         part of result to imaginary part of argument if it is zero and the
5117         real part of the argument is not finite.
5118         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
5119         of result to real part of argument if it is zero and the imaginary
5120         part of the argument is not finite.
5121
5122 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
5123
5124         [BZ #22524]
5125         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
5126         and to the list of locales to be built for testing.
5127         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
5128         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
5129         and build the collation rules upon that.
5130
5131 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5132
5133         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
5134         * manual/math.texi (Mathematics): Document support for _Float32.
5135         * math/Makefile (test-types): Add float32.
5136         * math/Versions (GLIBC_2.27): Add _Float32 functions.
5137         * stdlib/Versions (GLIBC_2.27): Likewise.
5138         * wcsmbs/Versions (GLIBC_2.27): Likewise.
5139         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5140         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5141         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5142         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5143         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5144         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5145         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5146         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5147         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5148         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5149         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5150         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5151         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5152         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5153         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5154         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5155         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5156         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5157         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5158         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5159         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5160         Likewise.
5161         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5162         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5163         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5164         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5165         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5167         Likewise.
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5169         Likewise.
5170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5171         Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5173         Likewise.
5174
5175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5176         Likewise.
5177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5178         Likewise.
5179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5180         Likewise.
5181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5182         Likewise.
5183         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5184         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5185         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5186         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5187         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5188         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5189         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5190         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5191         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5192         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5194         Likewise.
5195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5196         Likewise.
5197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5198         Likewise.
5199         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5200         Likewise.
5201         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5202         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5203         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5204         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5205         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5206         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5207         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5208         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5209
5210 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
5211
5212         * stdlib/strtof.c: Include <bits/floatn.h>
5213         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
5214         and later undefine as macro.  Define as weak alias if
5215         [!USE_WIDE_CHAR].
5216         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
5217         and later undefine as macro.  Define as weak alias if
5218         [USE_WIDE_CHAR].
5219         * stdlib/strtof_l.c: Include <bits/floatn.h>
5220         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
5221         and later undefine as macro.  Define as weak alias if
5222         [!USE_WIDE_CHAR].
5223         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
5224         and later undefine as macro.  Define as weak alias if
5225         [USE_WIDE_CHAR].
5226
5227         * stdlib/strfromf.c: Include <bits/floatn.h>.
5228         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
5229         and later undefine as macro and define as weak alias.
5230
5231         * math/test-float32.h: New file.
5232
5233         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
5234         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
5235         (libm_alias_float_other_r): Create f32 alias.
5236         (libm_alias_float_r): Use semicolon before call to
5237         libm_alias_float_other_r.
5238
5239         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
5240         second argument to libm_alias_float_other.
5241         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
5242         second argument to libm_alias_float_other.
5243         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
5244         argument to libm_alias_float_other.
5245
5246         [BZ #22561]
5247         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
5248         real part of result for argument 0 + i * NaN.
5249         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
5250         results for tests of 0 + i * NaN.
5251
5252 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5253
5254         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5255
5256 2017-12-06  David S. Miller  <davem@davemloft.net>
5257
5258         * sysdeps/sparc/fpu/libm-test-ulps: Update
5259         exp_{downward,towardzero,upward} ulps.
5260
5261 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
5262
5263         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
5264         variables static.
5265
5266         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
5267         (Y0_2D): Likewise.
5268         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
5269         (Y0_2D): Likewise.
5270         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
5271         (Y0_2D): Likewise.
5272         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
5273         (Y0_2D): Likewise.
5274
5275 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
5276
5277         [BZ #22515]
5278         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
5279         and to the list of locales to be built for testing.
5280         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
5281         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
5282         and build the collation rules upon that.
5283
5284 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5285
5286         * NEWS: Add sinf to list of optimized functions.
5287
5288 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
5289
5290         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
5291         (__HAVE_FLOAT32X): Likewise.
5292         * manual/math.texi (Mathematics): Document support for _Float64
5293         and _Float32x.
5294         * math/Makefile (test-types): Add float64 and float32x.
5295         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
5296         functions.
5297         * stdlib/Versions (GLIBC_2.27): Likewise.
5298         * wcsmbs/Versions (GLIBC_2.27): Likewise.
5299         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5300         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5301         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5302         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5303         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5304         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5305         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5306         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5307         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5308         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5309         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5310         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5311         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5312         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5313         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5314         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5315         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5316         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5317         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5318         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5319         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5320         Likewise.
5321         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5322         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5323         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5324         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5325         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5327         Likewise.
5328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5329         Likewise.
5330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5331         Likewise.
5332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5333         Likewise.
5334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5335         Likewise.
5336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5337         Likewise.
5338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5339         Likewise.
5340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5341         Likewise.
5342         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5343         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5344         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5345         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5346         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5347         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5348         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5349         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5350         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5351         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5352         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5353         Likewise.
5354         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5355         Likewise.
5356         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5357         Likewise.
5358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5359         Likewise.
5360         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5361         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5362         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5363         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5364         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5365         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5366         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5367         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5368
5369 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
5370
5371         * bits/floatn-common.h: Include <bits/long-double.h>.
5372         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
5373         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
5374         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
5375         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
5376         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
5377         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
5378         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
5379         (__builtin_huge_valf64): Use __builtin_huge_vall.
5380         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
5381         (__builtin_inff64): Use __builtin_infl.
5382         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
5383         (__builtin_nanf64): Use __builtin_nanl.
5384         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
5385         (__builtin_nansf64): Use __builtin_nansl.
5386
5387 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
5388             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5389             Carlos O'Donnell <carlos@redhat.com>
5390
5391         * elf/dl-tunables.list: Add elision parameters.
5392         * manual/tunables.texi: Add entries about elision tunable.
5393         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
5394         Add callback functions to dynamically enable/disable elision.
5395         Add multiple callbacks functions to set elision parameters.
5396         Deleted __libc_enable_secure check.
5397         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
5398         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
5399         * configure: Regenerated.
5400         * configure.ac: Option enable_lock_elision was deleted.
5401         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
5402         * config.make.in: Remove references to enable_lock_elision.
5403         * manual/install.texi: Elision configure option was removed.
5404         * INSTALL: Regenerated to remove enable_lock_elision.
5405         * nptl/Makefile:
5406         Disable elision so it can verify error case for destroying a mutex.
5407         * sysdeps/powerpc/nptl/elide.h:
5408         Cleanup ENABLE_LOCK_ELISION check.
5409         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
5410         * sysdeps/s390/configure: Regenerated.
5411         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
5412         * nptl/tst-mutex8.c:
5413         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
5414         * sysdeps/powerpc/powerpc32/sysdep.h:
5415         Deleted all ENABLE_LOCK_ELISION checks.
5416         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
5417         * sysdeps/powerpc/sysdep.h: Likewise.
5418         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
5419         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
5420         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
5421         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
5422         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
5423         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
5424         enable-lock-elision.
5425
5426 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
5427
5428         * stdlib/strtod.c: Include <bits/floatn.h>.
5429         (BUILD_DOUBLE): New macro.
5430         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
5431         (strtof64): Define and later undefine as macro.  Define as weak
5432         alias if [!USE_WIDE_CHAR].
5433         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
5434         (wcstof64): Define and later undefine as macro.  Define as weak
5435         alias if [USE_WIDE_CHAR].
5436         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
5437         (strtof32x): Define and later undefine as macro.  Define as weak
5438         alias if [!USE_WIDE_CHAR].
5439         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
5440         (wcstof32x): Define and later undefine as macro.  Define as weak
5441         alias if [USE_WIDE_CHAR].
5442         * stdlib/strtod_l.c: Include <bits/floatn.h>.
5443         (BUILD_DOUBLE): New macro.
5444         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
5445         (strtof64_l): Define and later undefine as macro.  Define as weak
5446         alias if [!USE_WIDE_CHAR].
5447         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
5448         (wcstof64_l): Define and later undefine as macro.  Define as weak
5449         alias if [USE_WIDE_CHAR].
5450         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
5451         (strtof32x_l): Define and later undefine as macro.  Define as weak
5452         alias if [!USE_WIDE_CHAR].
5453         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
5454         (wcstof32x_l): Define and later undefine as macro.  Define as weak
5455         alias if [USE_WIDE_CHAR].
5456
5457 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5458
5459         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
5460         (reduced): Use ones as double instead of integer.
5461
5462 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5463
5464         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
5465
5466 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
5467
5468         * stdlib/strfromd.c: Include <bits/floatn.h>.
5469         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
5470         and later undefine as macro and define as weak alias.
5471         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
5472         Likewise.
5473
5474         * math/test-float32x.h: New file.
5475         * math/test-float64.h: Likewise.
5476
5477         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
5478         (libm_alias_double_other_r_f64): New macro.
5479         (libm_alias_double_other_r_f32x): Likewise.
5480         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
5481         libm_alias_double_other_r_f32x.
5482         (libm_alias_double_r): Use semicolon before call to
5483         libm_alias_double_other_r.
5484         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
5485         <bits/floatn.h>.
5486         (libm_alias_double_other_r_f64): New macro.
5487         (libm_alias_double_other_r_f32x): Likewise.
5488         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
5489         libm_alias_double_other_r_f32x.
5490
5491 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
5494         int.
5495         (SINF_FUNC): Likewise.  Replace floor with simple casts.
5496
5497 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
5498
5499         [BZ #22517]
5500         * localedata/Makefile: Add et_EE.UTF-8 to test-input
5501         and to the list of locales to be built for testing.
5502         * localedata/et_EE.UTF-8.in: New file for testing the collation.
5503         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
5504         and build the collation rules upon that.
5505
5506 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
5507
5508         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
5509         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
5510         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
5511         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
5512         instead of __insn__xxx.
5513         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
5514         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
5515         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
5516         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
5517         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
5518         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
5519
5520 2017-12-05  Florian Weimer  <fweimer@redhat.com>
5521
5522         Linux: Implement interfaces for memory protection keys
5523         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
5524         xsignal, xsysconf.
5525         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
5526         * support/xunistd.h (xsysconf): Declare.
5527         * support/xraise.c: New file.
5528         * support/xsigaction.c: Likewise.
5529         * support/xsignal.c: Likewise.
5530         * support/xsysconf.c: Likewise.
5531         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
5532         pkey_set, pkey_get, pkey_mprotect.
5533         [misc] (tests): Add tst-pkey.
5534         (tst-pkey): Link with -lpthread.
5535         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
5536         pkey_free, pkey_set, pkey_get, pkey_mprotect.
5537         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
5538         (PKEY_DISABLE_WRITE): Define.
5539         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
5540         Declare.
5541         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
5542         (SEGV_PKUERR): Add.
5543         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
5544         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
5545         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
5546         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
5547         Add.
5548         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
5549         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
5550         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
5551         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
5552         * sysdeps/unix/sysv/linux/**.abilist: Update.
5553
5554 2017-12-05  Florian Weimer  <fweimer@redhat.com>
5555
5556         * support/tst-test_compare.c (subprocess): Use long long instead
5557         of long argument for consistent type width across 32-bit and
5558         64-bit architectures.
5559         (do_test): Adjust expected output.
5560
5561 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
5562
5563         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
5564         (cosf): Define using libm_alias_float.
5565         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
5566         (fabsf): Define using libm_alias_float.
5567         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
5568         (fmaf): Define using libm_alias_float.
5569         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
5570         (rintf): Define using libm_alias_float.
5571         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
5572         (sinf): Define using libm_alias_float.
5573         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
5574         <libm-alias-float.h>.
5575         (modff): Define using libm_alias_float.
5576         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
5577         <libm-alias-float.h>.
5578         (logbf): Define using libm_alias_float.
5579         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
5580         <libm-alias-float.h>.
5581         (ceilf): Define using libm_alias_float.
5582         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
5583         <libm-alias-float.h>.
5584         (copysignf): Define using libm_alias_float.
5585         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
5586         <libm-alias-float.h>.
5587         (floorf): Define using libm_alias_float.
5588         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
5589         <libm-alias-float.h>.
5590         (llrintf): Define using libm_alias_float.
5591         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
5592         <libm-alias-float.h>.
5593         (llroundf): Define using libm_alias_float.
5594         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
5595         <libm-alias-float.h>.
5596         (lrintf): Define using libm_alias_float.
5597         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
5598         <libm-alias-float.h>.
5599         (lroundf): Define using libm_alias_float.
5600         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
5601         <libm-alias-float.h>.
5602         (nearbyintf): Define using libm_alias_float.
5603         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
5604         <libm-alias-float.h>.
5605         (rintf): Define using libm_alias_float.
5606         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
5607         <libm-alias-float.h>.
5608         (roundf): Define using libm_alias_float.
5609         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
5610         <libm-alias-float.h>.
5611         (truncf): Define using libm_alias_float.
5612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
5613         Include <libm-alias-float.h>.
5614         (ceilf): Define using libm_alias_float.
5615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5616         Include <libm-alias-float.h>.
5617         (copysignf): Define using libm_alias_float.
5618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
5619         Include <libm-alias-float.h>.
5620         (floorf): Define using libm_alias_float.
5621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
5622         Include <libm-alias-float.h>.
5623         (llrintf): Define using libm_alias_float.
5624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
5625         Include <libm-alias-float.h>.
5626         (llroundf): Define using libm_alias_float.
5627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
5628         Include <libm-alias-float.h>.
5629         (logbf): Define using libm_alias_float.
5630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
5631         Include <libm-alias-float.h>.
5632         (lrintf): Define using libm_alias_float.
5633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
5634         Include <libm-alias-float.h>.
5635         (lroundf): Define using libm_alias_float.
5636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
5637         Include <libm-alias-float.h>.
5638         (modff): Define using libm_alias_float.
5639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
5640         Include <libm-alias-float.h>.
5641         (roundf): Define using libm_alias_float.
5642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
5643         Include <libm-alias-float.h>.
5644         (truncf): Define using libm_alias_float.
5645         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
5646         <libm-alias-float.h>.
5647         (llrintf): Define using libm_alias_float.
5648         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
5649         <libm-alias-float.h>.
5650         (llroundf): Define using libm_alias_float.
5651         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
5652         <libm-alias-float.h>.
5653         (ceilf): Define using libm_alias_float.
5654         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
5655         <libm-alias-float.h>.
5656         (floorf): Define using libm_alias_float.
5657         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
5658         <libm-alias-float.h>.
5659         (llroundf): Define using libm_alias_float.
5660         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
5661         <libm-alias-float.h>.
5662         (lroundf): Define using libm_alias_float.
5663         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
5664         <libm-alias-float.h>.
5665         (roundf): Define using libm_alias_float.
5666         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
5667         <libm-alias-float.h>.
5668         (truncf): Define using libm_alias_float.
5669         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
5670         <libm-alias-float.h>.
5671         (copysignf): Define using libm_alias_float.
5672         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
5673         <libm-alias-float.h>.
5674         (llrintf): Define using libm_alias_float.
5675         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
5676         <libm-alias-float.h>.
5677         (llroundf): Define using libm_alias_float.
5678         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
5679         <libm-alias-float.h>.
5680         (lrintf): Define using libm_alias_float.
5681         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
5682         <libm-alias-float.h>.
5683         (lroundf): Define using libm_alias_float.
5684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
5685         <libm-alias-float.h>.
5686         (ceilf): Define using libm_alias_float.
5687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
5688         <libm-alias-float.h>.
5689         (copysignf): Define using libm_alias_float.
5690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
5691         <libm-alias-float.h>.
5692         (cosf): Define using libm_alias_float.
5693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
5694         <libm-alias-float.h>.
5695         (floorf): Define using libm_alias_float.
5696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
5697         <libm-alias-float.h>.
5698         (llrintf): Define using libm_alias_float.
5699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
5700         <libm-alias-float.h>.
5701         (llroundf): Define using libm_alias_float.
5702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
5703         <libm-alias-float.h>.
5704         (logbf): Define using libm_alias_float.
5705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
5706         <libm-alias-float.h>.
5707         (modff): Define using libm_alias_float.
5708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
5709         <libm-alias-float.h>.
5710         (roundf): Define using libm_alias_float.
5711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
5712         <libm-alias-float.h>.
5713         (sinf): Define using libm_alias_float.
5714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
5715         <libm-alias-float.h>.
5716         (truncf): Define using libm_alias_float.
5717         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
5718         <libm-alias-float.h>.
5719         (ceilf): Define using libm_alias_float.
5720         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
5721         <libm-alias-float.h>.
5722         (copysignf): Define using libm_alias_float.
5723         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
5724         <libm-alias-float.h>.
5725         (floorf): Define using libm_alias_float.
5726         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
5727         <libm-alias-float.h>.
5728         (llrintf): Define using libm_alias_float.
5729         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
5730         <libm-alias-float.h>.
5731         (llroundf): Define using libm_alias_float.
5732         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
5733         <libm-alias-float.h>.
5734         (nearbyintf): Define using libm_alias_float.
5735         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
5736         <libm-alias-float.h>.
5737         (rintf): Define using libm_alias_float.
5738         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
5739         <libm-alias-float.h>.
5740         (roundf): Define using libm_alias_float.
5741         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
5742         <libm-alias-float.h>.
5743         (truncf): Define using libm_alias_float.
5744         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
5745         <libm-alias-float.h>.
5746         (ceilf): Define using libm_alias_float.
5747         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
5748         <libm-alias-float.h>.
5749         (floorf): Define using libm_alias_float.
5750         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
5751         <libm-alias-float.h>.
5752         (llroundf): Define using libm_alias_float.
5753         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
5754         <libm-alias-float.h>.
5755         (roundf): Define using libm_alias_float.
5756         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
5757         <libm-alias-float.h>.
5758         (truncf): Define using libm_alias_float.
5759         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
5760         <libm-alias-float.h>.
5761         (copysignf): Define using libm_alias_float.
5762         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
5763         <libm-alias-float.h>.
5764         (llrintf): Define using libm_alias_float.
5765         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
5766         <libm-alias-float.h>.
5767         (llroundf): Define using libm_alias_float.
5768         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
5769         <libm-alias-float.h>.
5770         (cosf): Define using libm_alias_float.
5771         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
5772         <libm-alias-float.h>.
5773         (llrintf): Define using libm_alias_float.
5774         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
5775         <libm-alias-float.h>.
5776         (llroundf): Define using libm_alias_float.
5777         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
5778         <libm-alias-float.h>.
5779         (sinf): Define using libm_alias_float.
5780
5781 2017-12-04  Florian Weimer  <fweimer@redhat.com>
5782
5783         * support/check.h (TEST_COMPARE): Define.
5784         (support_test_compare_failure): Declare.
5785         * support/Makefile (libsupport-routines): Add
5786         support_test_compare_failure.
5787         (tests): Add tst-test_compare.
5788         * support /support_test_compare_failure.c: New file.
5789         * support/tst-test_compare.c: Likewise.
5790
5791 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
5792
5793         [BZ #22527]
5794         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
5795         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
5796         available, this rewrite of the collation rules does reproduce
5797         the test file in the same order.
5798
5799 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
5800
5801         [BZ #10580]
5802         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
5803         digraphs in the month and day names. Using single code points for
5804         digraphs is deprecated.  While there are dedicated Unicode
5805         codepoints, for the digraphs, these are included for backwards
5806         compatibility and modern texts use a sequence of Basic Latin
5807         characters. See: https://www.unicode.org/faq/ligature_digraph.html
5808         This makes the month and day names agree exactly with CLDR now,
5809         CLDR does not use the single code points for the digraphs either.
5810
5811 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
5812
5813         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
5814
5815 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
5816
5817         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
5818         of floor.
5819
5820 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5821
5822         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
5823         Define only for libc.so.
5824
5825 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
5826
5827         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5828         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
5829          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
5830         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
5831         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
5832
5833 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5834
5835         [BZ #5997]
5836         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
5837
5838 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
5839
5840         [BZ libc/19170]
5841         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
5842         PREINIT_FUNCTION_WEAK is nonzero.
5843         (gmon_initializer): New function.  Put procedure label for it in
5844         .init_array section.
5845         (_init): Don't call PREINIT_FUNCTION.
5846         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
5847         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
5848         value when map argument is null.
5849
5850         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
5851         depi instruction from PIC pc-relative sequence.
5852         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
5853         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
5854         (elf_machine_load_address): Likewise.
5855         (elf_machine_runtime_setup): Likewise.
5856
5857 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
5858
5859         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
5860         <libm-alias-double.h>.
5861         (logb): Define using libm_alias_double.
5862         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
5863         <libm-alias-double.h>.
5864         (copysign): Define using libm_alias_double.
5865         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
5866         <libm-alias-double.h>.
5867         (llrint): Define using libm_alias_double.
5868         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
5869         <libm-alias-double.h>.
5870         (llround): Define using libm_alias_double.
5871         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
5872         <libm-alias-double.h>.
5873         (lrint): Define using libm_alias_double.
5874         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
5875         <libm-alias-double.h>.
5876         (lround): Define using libm_alias_double.
5877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5878         Include <libm-alias-double.h>.
5879         (copysign): Define using libm_alias_double.
5880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
5881         Include <libm-alias-double.h>.
5882         (llrint): Define using libm_alias_double.
5883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
5884         Include <libm-alias-double.h>.
5885         (llround): Define using libm_alias_double.
5886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
5887         <libm-alias-double.h>.
5888         (logb): Define using libm_alias_double.
5889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
5890         Include <libm-alias-double.h>.
5891         (lrint): Define using libm_alias_double.
5892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
5893         Include <libm-alias-double.h>.
5894         (lround): Define using libm_alias_double.
5895         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
5896         <libm-alias-double.h>.
5897         (llrint): Define using libm_alias_double.
5898         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
5899         <libm-alias-double.h>.
5900         (llround): Define using libm_alias_double.
5901         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
5902         <libm-alias-double.h>.
5903         (llround): Define using libm_alias_double.
5904         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
5905         <libm-alias-double.h>.
5906         (lround): Define using libm_alias_double.
5907         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
5908         <libm-alias-double.h>.
5909         (copysign): Define using libm_alias_double.
5910         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
5911         <libm-alias-double.h>.
5912         (llrint): Define using libm_alias_double.
5913         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
5914         <libm-alias-double.h>.
5915         (llround): Define using libm_alias_double.
5916         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
5917         <libm-alias-double.h>.
5918         (lrint): Define using libm_alias_double.
5919         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
5920         <libm-alias-double.h>.
5921         (lround): Define using libm_alias_double.
5922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
5923         <libm-alias-double.h>.
5924         (copysign): Define using libm_alias_double.
5925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
5926         <libm-alias-double.h>.
5927         (llrint): Define using libm_alias_double.
5928         (lrint): Likewise.
5929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
5930         <libm-alias-double.h>.
5931         (llround): Define using libm_alias_double.
5932         (lround): Likewise.
5933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
5934         <libm-alias-double.h>.
5935         (logb): Define using libm_alias_double.
5936         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
5937         <libm-alias-double.h>.
5938         (copysign): Define using libm_alias_double.
5939         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
5940         <libm-alias-double.h>.
5941         (llrint): Define using libm_alias_double.
5942         (lrint): Likewise.
5943         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
5944         <libm-alias-double.h>.
5945         (llround): Define using libm_alias_double.
5946         (lround): Likewise.
5947         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
5948         <libm-alias-double.h>.
5949         (llround): Define using libm_alias_double.
5950         (lround): Likewise.
5951         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
5952         <libm-alias-double.h>.
5953         (copysign): Define using libm_alias_double.
5954         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
5955         <libm-alias-double.h>.
5956         (llrint): Define using libm_alias_double.
5957         (lrint): Likewise.
5958         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
5959         <libm-alias-double.h>.
5960         (llround): Define using libm_alias_double.
5961         (lround): Likewise.
5962         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
5963         <libm-alias-double.h>.
5964         (llrint): Define using libm_alias_double.
5965         (lrint): Likewise.
5966         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
5967         <libm-alias-double.h>.
5968         (llround): Define using libm_alias_double.
5969         (lround): Likewise.
5970
5971 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
5972
5973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
5974         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
5975         compat symbol based on llround.
5976
5977         * sysdeps/powerpc/power7/fpu/s_logb.c
5978         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
5979         symbol based on __logb, not on logb.
5980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
5981         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
5982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
5983         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
5984
5985         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
5986         (rint): Define using libm_alias_double.
5987         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
5988         <libm-alias-double.h>.
5989         (modf): Define using libm_alias_double.
5990         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
5991         <libm-alias-double.h>.
5992         (ceil): Define using libm_alias_double.
5993         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
5994         <libm-alias-double.h>.
5995         (floor): Define using libm_alias_double.
5996         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
5997         <libm-alias-double.h>.
5998         (nearbyint): Define using libm_alias_double.
5999         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
6000         <libm-alias-double.h>.
6001         (rint): Define using libm_alias_double.
6002         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
6003         <libm-alias-double.h>.
6004         (round): Define using libm_alias_double.
6005         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
6006         <libm-alias-double.h>.
6007         (trunc): Define using libm_alias_double.
6008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
6009         <libm-alias-double.h>.
6010         (ceil): Define using libm_alias_double.
6011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
6012         Include <libm-alias-double.h>.
6013         (floor): Define using libm_alias_double.
6014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
6015         <libm-alias-double.h>.
6016         (modf): Define using libm_alias_double.
6017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
6018         Include <libm-alias-double.h>.
6019         (round): Define using libm_alias_double.
6020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
6021         Include <libm-alias-double.h>.
6022         (trunc): Define using libm_alias_double.
6023         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
6024         <libm-alias-double.h>.
6025         (ceil): Define using libm_alias_double.
6026         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
6027         <libm-alias-double.h>.
6028         (floor): Define using libm_alias_double.
6029         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
6030         <libm-alias-double.h>.
6031         (round): Define using libm_alias_double.
6032         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
6033         <libm-alias-double.h>.
6034         (trunc): Define using libm_alias_double.
6035         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
6036         <libm-alias-double.h>.
6037         (ceil): Define using libm_alias_double.
6038         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
6039         <libm-alias-double.h>.
6040         (floor): Define using libm_alias_double.
6041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
6042         <libm-alias-double.h>.
6043         (modf): Define using libm_alias_double.
6044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
6045         <libm-alias-double.h>.
6046         (round): Define using libm_alias_double.
6047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
6048         <libm-alias-double.h>.
6049         (trunc): Define using libm_alias_double.
6050         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
6051         <libm-alias-double.h>.
6052         (ceil): Define using libm_alias_double.
6053         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
6054         <libm-alias-double.h>.
6055         (floor): Define using libm_alias_double.
6056         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
6057         <libm-alias-double.h>.
6058         (nearbyint): Define using libm_alias_double.
6059         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
6060         <libm-alias-double.h>.
6061         (rint): Define using libm_alias_double.
6062         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
6063         <libm-alias-double.h>.
6064         (round): Define using libm_alias_double.
6065         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
6066         <libm-alias-double.h>.
6067         (trunc): Define using libm_alias_double.
6068         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
6069         <libm-alias-double.h>.
6070         (ceil): Define using libm_alias_double.
6071         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
6072         <libm-alias-double.h>.
6073         (floor): Define using libm_alias_double.
6074         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
6075         <libm-alias-double.h>.
6076         (round): Define using libm_alias_double.
6077         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
6078         <libm-alias-double.h>.
6079         (trunc): Define using libm_alias_double.
6080
6081         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
6082         (fabs): Define using libm_alias_double.
6083         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
6084         (fma): Define using libm_alias_double.
6085         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
6086         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
6087         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
6088         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
6089
6090 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6091
6092         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
6093
6094         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
6095         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
6096         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
6097
6098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
6099         due redirect macro.
6100
6101 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
6102
6103         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
6104
6105 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6106
6107         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
6108         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
6109         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
6110         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
6111
6112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6113         (libm-sysdep_routines): Add s_nearbyintf-generic and
6114         s_nearbyint-generic.
6115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
6116         New file.
6117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
6118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
6119         Likewise.
6120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
6121         Likewise.
6122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
6123         file.
6124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
6125         Likewise.
6126
6127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6128         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
6129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
6130         file.
6131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
6133         Likewise.
6134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
6136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6137
6138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6139         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
6140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
6141         file.
6142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
6143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
6144         Likewise.
6145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
6146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
6147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
6148
6149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6150         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
6151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
6152         file.
6153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
6154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
6155         Likewise.
6156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
6157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
6158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6159
6160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6161         (sysdep_calls): New rule.
6162         (sysdep_routines): Use sysdep_calls as base.
6163         (libm-sysdep_routines): Add generic rule for symbols shared with
6164         libc.  Add s_copysign-generic and s_copysign-generic objects.
6165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
6166         New file.
6167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
6168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
6169         Likewise.
6170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
6171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
6172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
6173
6174 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
6175
6176         [BZ #22519]
6177         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
6178         the list of locales to be built for testing.
6179         * localedata/is_IS.UTF-8.in: New file.
6180         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
6181         on iso14651_t1.
6182
6183 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
6184
6185         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
6186         <libm-alias-float.h>.
6187         (fabsf): Define using libm_alias_float.
6188
6189 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
6190
6191         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
6192
6193 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
6194
6195         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
6196         <libm-alias-float.h>.
6197         (fabsf): Define using libm_alias_float.
6198         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
6199         <libm-alias-float.h>.
6200         (lrintf): Define using libm_alias_float.
6201         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
6202         <libm-alias-float.h>.
6203         (rintf): Define using libm_alias_float.
6204
6205         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
6206         <libm-alias-double.h>.
6207         (fabs): Define using libm_alias_double.
6208         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
6209         <libm-alias-double.h>.
6210         (lrint): Define using libm_alias_double.
6211         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
6212         <libm-alias-double.h>.
6213         (rint): Define using libm_alias_double.
6214
6215         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
6216         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6217         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
6218         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
6219         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
6220         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6221         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
6222         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
6223         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
6224         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
6225         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
6226         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
6227         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
6228         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
6229         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
6230         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
6231         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6232         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
6233         s_atan_template.c.
6234         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
6235         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
6236         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
6237         s_ceil_template.c.
6238         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
6239         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
6240         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
6241         s_cos_template.c.
6242         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
6243         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
6244         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
6245         s_expm1_template.c.
6246         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
6247         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
6248         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
6249         s_fabs_template.c.
6250         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
6251         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
6252         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
6253         s_floor_template.c.
6254         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
6255         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
6256         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
6257         s_frexp_template.c.
6258         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
6259         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
6260         s_lrint_template.c.
6261         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
6262         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
6263         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
6264         s_modf_template.c.
6265         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
6266         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
6267         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
6268         s_nearbyint_template.c.
6269         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
6270         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
6271         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
6272         s_remquo_template.c.
6273         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
6274         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
6275         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
6276         s_rint_template.c.
6277         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6278         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6279         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
6280         s_sin_template.c.
6281         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
6282         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
6283         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
6284         s_sincos_template.c.
6285         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
6286         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
6287         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
6288         s_tan_template.c.
6289         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
6290         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
6291         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
6292         s_tanh_template.c.
6293         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
6294         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
6295         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
6296         s_trunc_template.c.
6297         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
6298         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
6299         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
6300         s_atan.c instead of including s_atan.c.
6301         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
6302         s_atanf.c instead of including s_atanf.c.
6303         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
6304         s_atanl.c instead of including s_atanl.c.
6305         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
6306         instead of s_atan.c.
6307         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
6308         instead of s_atanf.c.
6309         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
6310         instead of s_atanl.c.
6311
6312         * scripts/update-copyrights: Do not handle intl/plural.c
6313         specially.
6314
6315 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
6316
6317         [BZ #22432]
6318         * configure.ac (BISON): Require to be present.
6319         * configure: Regenerated.
6320         * intl/Makefile (generated): Add plural.c.
6321         [$(BISON) != no]: Make code unconditional.
6322         (plural.c): Change rule to $(objpfx)plural.c.
6323         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
6324         * intl/plural.c: Remove.
6325         * manual/install.texi (Tools for Compilation): Document bison as
6326         required.
6327         * INSTALL: Regenerated.
6328
6329 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
6330
6331         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
6332         <libm-alias-double.h>.
6333         (llrint): Define using libm_alias_double.
6334         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
6335         <libm-alias-float.h>.
6336         (llrintf): Define using libm_alias_float.
6337         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
6338         <libm-alias-ldouble.h>.
6339         (llrintl): Define using libm_alias_ldouble.
6340
6341         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
6342         declare_mgen_alias instead of weak_alias.
6343         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
6344         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
6345         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
6346
6347 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6348
6349         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
6350         Add add_n-generic.
6351         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
6352         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
6353         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
6354
6355         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
6356         Add submul_1-generic.
6357         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
6358         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
6359         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
6360
6361         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
6362         Add addmul_1-generic.
6363         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
6364         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
6365         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
6366
6367         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
6368         Add sub_n-generic.
6369         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
6370         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
6371         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
6372
6373         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
6374         Add mul_1-generic.
6375         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
6376         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
6377         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
6378
6379 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
6380
6381         According to CLDR, collation rules for Serbian and Bosnian
6382         should be the same as for Croatian.
6383
6384         [BZ #22534]
6385         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
6386         and to the list of locales to be built for testing.
6387         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
6388         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
6389         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
6390         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
6391
6392 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
6393
6394         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
6395         to make test case pass.
6396         * localedata/hr_HR.UTF-8.in: Add more test strings.
6397
6398 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
6399
6400         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
6401
6402 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
6403
6404         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
6405         the list of locales to built for testing.
6406         * localedata/hr_HR.UTF-8.in: New file.
6407
6408 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
6409
6410         [BZ #10580]
6411         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
6412         iso14651_t1.
6413         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
6414         CLDR (except use ligatures for the digraphs, CLDR does not use
6415         the ligatures), add first_workday, some fixes in the date and time
6416         formats.
6417         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
6418         for Đ and đ.
6419         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
6420         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
6421         Add int_p_cs_precedes and int_n_cs_precedes.
6422         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
6423         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
6424         LC_MONETARY now).
6425         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
6426         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
6427         name_miss.
6428         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
6429         and lang_lib. Change postal_fmt.
6430
6431 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
6432
6433         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
6434         <setjmp.h>.
6435         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
6436         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
6437         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
6438         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
6439         * sysdeps/generic/setjmpP.h: New file.
6440         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
6441         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
6442         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
6443         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
6444         Add jmp_buf-ssp.sym.
6445         (tests): Add tst-saved_mask-1.
6446
6447 2017-11-30  Arjun Shankar  <arjun@redhat.com>
6448
6449         [BZ #22375]
6450         CVE-2017-17426
6451         * malloc/malloc.c (__libc_malloc): Use checked_request2size
6452         instead of request2size.
6453
6454 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
6455
6456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
6457         (__lllrint): Remove alias.
6458         (lllrint): Likewise.
6459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
6460         (__lllrintf): Likewise.
6461         (lllrintf): Likewise.
6462
6463         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
6464         <libm-alias-float.h>.
6465         (copysignf): Define using libm_alias_float.
6466         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
6467         <libm-alias-float.h>.
6468         (fabsf): Define using libm_alias_float.
6469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6470         Include <libm-alias-float.h>.
6471         (copysignf): Define using libm_alias_float.
6472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
6473         <libm-alias-float.h>.
6474         (fabsf): Define using libm_alias_float.
6475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
6476         <libm-alias-float.h>.
6477         (fdimf): Define using libm_alias_float.
6478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
6479         <libm-alias-float.h>.
6480         (fmaf): Define using libm_alias_float.
6481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
6482         <libm-alias-float.h>.
6483         (llrintf): Define using libm_alias_float.
6484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
6485         Include <libm-alias-float.h>.
6486         (nearbyintf): Define using libm_alias_float.
6487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
6488         <libm-alias-float.h>.
6489         (rintf): Define using libm_alias_float.
6490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
6491         <libm-alias-float.h>.
6492         (llrintf): Define using libm_alias_float.
6493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
6494         <libm-alias-float.h>.
6495         (lrintf): Define using libm_alias_float.
6496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
6497         <libm-alias-float.h>.
6498         (nearbyintf): Define using libm_alias_float.
6499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
6500         <libm-alias-float.h>.
6501         (rintf): Define using libm_alias_float.
6502         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
6503         <libm-alias-float.h>.
6504         (ceilf): Define using libm_alias_float.
6505         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
6506         <libm-alias-float.h>.
6507         (floorf): Define using libm_alias_float.
6508         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
6509         <libm-alias-float.h>.
6510         (fmaf): Define using libm_alias_float.
6511         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
6512         <libm-alias-float.h>.
6513         (lrintf): Define using libm_alias_float.
6514         (llrintf): Likewise.
6515         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
6516         <libm-alias-float.h>.
6517         (nearbyintf): Define using libm_alias_float.
6518         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
6519         <libm-alias-float.h>.
6520         (rintf): Define using libm_alias_float.
6521         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
6522         <libm-alias-float.h>.
6523         (truncf): Define using libm_alias_float.
6524         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
6525         <libm-alias-float.h>.
6526         (copysignf): Define using libm_alias_float.
6527         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
6528         <libm-alias-float.h>.
6529         (fabsf): Define using libm_alias_float.
6530         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
6531         <libm-alias-float.h>.
6532         (lrintf): Define using libm_alias_float.
6533         (llrintf): Likewise.
6534         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
6535         <libm-alias-float.h>.
6536         (nearbyintf): Define using libm_alias_float.
6537         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
6538         <libm-alias-float.h>.
6539         (rintf): Define using libm_alias_float.
6540
6541 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
6542
6543         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
6544         <libm-alias-double.h>.
6545         (copysign): Define using libm_alias_double.
6546         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
6547         <libm-alias-double.h>.
6548         (fabs): Define using libm_alias_double.
6549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6550         Include <libm-alias-double.h>.
6551         (copysign): Define using libm_alias_double.
6552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
6553         <libm-alias-double.h>.
6554         (fabs): Define using libm_alias_double.
6555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
6556         <libm-alias-double.h>.
6557         (fdim): Define using libm_alias_double.
6558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
6559         <libm-alias-double.h>.
6560         (fma): Define using libm_alias_double.
6561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
6562         <libm-alias-double.h>.
6563         (llrint): Define using libm_alias_double.
6564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
6565         Include <libm-alias-double.h>.
6566         (nearbyint): Define using libm_alias_double.
6567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
6568         <libm-alias-double.h>.
6569         (rint): Define using libm_alias_double.
6570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
6571         <libm-alias-double.h>.
6572         (fabs): Define using libm_alias_double.
6573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
6574         <libm-alias-double.h>.
6575         (llrint): Define using libm_alias_double.
6576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
6577         <libm-alias-double.h>.
6578         (nearbyint): Define using libm_alias_double.
6579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
6580         <libm-alias-double.h>.
6581         (rint): Define using libm_alias_double.
6582         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
6583         <libm-alias-double.h>.
6584         (ceil): Define using libm_alias_double.
6585         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
6586         <libm-alias-double.h>.
6587         (floor): Define using libm_alias_double.
6588         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
6589         <libm-alias-double.h>.
6590         (fma): Define using libm_alias_double.
6591         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
6592         <libm-alias-double.h>.
6593         (lrint): Define using libm_alias_double.
6594         (llrint): Likewise.
6595         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
6596         <libm-alias-double.h>.
6597         (nearbyint): Define using libm_alias_double.
6598         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
6599         <libm-alias-double.h>.
6600         (rint): Define using libm_alias_double.
6601         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
6602         <libm-alias-double.h>.
6603         (trunc): Define using libm_alias_double.
6604         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
6605         <libm-alias-double.h>.
6606         (copysign): Define using libm_alias_double.
6607         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
6608         <libm-alias-double.h>.
6609         (fabs): Define using libm_alias_double.
6610         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
6611         <libm-alias-double.h>.
6612         (lrint): Define using libm_alias_double.
6613         (llrint): Likewise.
6614         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
6615         <libm-alias-double.h>.
6616         (nearbyint): Define using libm_alias_double.
6617         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
6618         <libm-alias-double.h>.
6619         (rint): Define using libm_alias_double.
6620
6621         [BZ #22229]
6622         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
6623         <math_ldbl_opt.h>.
6624         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
6625
6626         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6627         SPARC --disable-multi-arch glibc variants.
6628
6629         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
6630         <libm-alias-float.h>.
6631         (exp2f): Define using libm_alias_float, or libm_alias_float_other
6632         if [SHARED].
6633         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
6634         <libm-alias-float.h>.
6635         (exp2f): Define using libm_alias_float, or libm_alias_float_other
6636         if [SHARED].
6637         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
6638         <libm-alias-float.h>.
6639         (exp2f): Define using libm_alias_float, or libm_alias_float_other
6640         if [SHARED].
6641         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
6642         <libm-alias-float.h>.
6643         (exp2f): Define using libm_alias_float, or libm_alias_float_other
6644         if [SHARED].
6645         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
6646         <libm-alias-float.h>.
6647         (exp2f): Define using libm_alias_float, or libm_alias_float_other
6648         if [SHARED].
6649         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
6650         <libm-alias-float.h>.
6651         (ceilf): Define using libm_alias_float.
6652         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
6653         <libm-alias-float.h>.
6654         (floorf): Define using libm_alias_float.
6655         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
6656         <libm-alias-float.h>.
6657         (fmaf): Define using libm_alias_float.
6658         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
6659         <libm-alias-float.h>.
6660         (nearbyintf): Define using libm_alias_float.
6661         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
6662         <libm-alias-float.h>.
6663         (rintf): Define using libm_alias_float.
6664         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
6665         <libm-alias-float.h>.
6666         (truncf): Define using libm_alias_float.
6667         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
6668         (copysignf): Define using libm_alias_float.
6669         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
6670         (cosf): Define using libm_alias_float.
6671         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
6672         (fabsf): Define using libm_alias_float.
6673         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
6674         (fmaxf): Define using libm_alias_float.
6675         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
6676         (fminf): Define using libm_alias_float.
6677         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
6678         (llrintf): Define using libm_alias_float.
6679         [!__ILP32__] (lrintf): Likewise.
6680         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
6681         (sincosf): Define using libm_alias_float.
6682         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
6683         (sinf): Define using libm_alias_float.
6684         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
6685         (lrintf): Define using libm_alias_float.
6686
6687         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
6688         <libm-alias-double.h>.
6689         (atan): Define using libm_alias_double.
6690         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
6691         <libm-alias-double.h>.
6692         (ceil): Define using libm_alias_double.
6693         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
6694         <libm-alias-double.h>.
6695         (floor): Define using libm_alias_double.
6696         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
6697         <libm-alias-double.h>.
6698         (fma): Define using libm_alias_double.
6699         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
6700         <libm-alias-double.h>.
6701         (nearbyint): Define using libm_alias_double.
6702         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
6703         <libm-alias-double.h>.
6704         (rint): Define using libm_alias_double.
6705         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
6706         <libm-alias-double.h>.
6707         (sin): Define using libm_alias_double.
6708         (cos): Likewise.
6709         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
6710         <libm-alias-double.h>.
6711         (tan): Define using libm_alias_double.
6712         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
6713         <libm-alias-double.h>.
6714         (trunc): Define using libm_alias_double.
6715         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
6716         (copysign): Define using libm_alias_double.
6717         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
6718         (fabs): Define using libm_alias_double.
6719         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
6720         (fmax): Define using libm_alias_double.
6721         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
6722         (fmin): Define using libm_alias_double.
6723         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
6724         (llrint): Define using libm_alias_double.
6725         [!__ILP32__] (lrint): Likewise.
6726         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
6727         (lrint): Define using libm_alias_double.
6728
6729 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6730
6731         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
6732         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
6733         objects.
6734         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
6735         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6736         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
6737         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6738         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
6739         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6740
6741         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
6742         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
6743         objects.
6744         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
6745         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
6746         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
6747         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
6748         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
6749         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6750
6751         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
6752         (libm-sysdep_routines): Add s_nearbyint-generic and
6753         s_nearbyintf-generic objects.
6754         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
6755         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
6756         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
6757         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
6758         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
6759         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
6760
6761         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
6762         Add s_finitef-generic and s_finite-generic objects.
6763         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
6764         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
6765         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
6766         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
6767         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
6768         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
6769
6770         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
6771         Add s_isinff-generic and s_isinf-generic objects.
6772         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
6773         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
6774         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
6775         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
6776         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
6777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6778
6779         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
6780         Add s_isnanf-generic and s_isnan-generic objects.
6781         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
6782         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
6783         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
6784         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
6785         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
6786         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6787
6788         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
6789         macro.
6790         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
6791         rule.
6792         (sysdep_routines): Use sysdep_calls as base.
6793         (libm-sysdep_routines): Add generic rule for symbols shared with
6794         libc.  Add s_signbit-generic and s_signbitf-generic objects.
6795         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
6796         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
6797         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
6798         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
6799         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
6800         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6801
6802 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
6803
6804         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
6805         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
6806         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
6807         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
6808         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
6809         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
6810         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
6811         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
6812         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
6813         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
6814         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
6815         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
6816         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
6817         libm_alias_float_r.
6818         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
6819         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
6820         (logf): Likewise.
6821         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
6822         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
6823         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
6824         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
6825         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
6826         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
6827         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
6828         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
6829         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
6830         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
6831         libm_alias_float.
6832         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
6833         (cosf): Likewise.
6834         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
6835         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
6836         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
6837         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
6838         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
6839         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
6840         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
6841         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
6842         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
6843         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
6844         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
6845         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
6846         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
6847         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
6848         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
6849         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
6850         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
6851         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
6852         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
6853         libm_alias_float.
6854         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
6855         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
6856         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
6857         * sysdeps/ia64/fpu/w_lgammaf_main.c
6858         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
6859         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
6860
6861 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
6862             Alexandre Oliva  <aoliva@redhat.com>
6863
6864         [BZ #17750]
6865         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
6866         * localedata/fr_CA.UTF-8.in: New file with test data for backward
6867         accents sorting.
6868         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
6869         sorting.
6870         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
6871         * localedata/locales/de_DE (LC_COLLATE): Likewise.
6872         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
6873         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
6874         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
6875         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
6876         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
6877         instead of “ifdef DIACRIT_BACKWARD”.
6878
6879 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6880
6881         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
6882         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
6883         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
6884         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
6885         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
6886         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
6887         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6888         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6889         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6890         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6891         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
6892         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
6893         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6894         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6895         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
6896         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
6897         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
6898         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
6899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6900         ($(have-as-vis3) == yes): Remove conditional.
6901         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
6902         Likewise.
6903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
6904         file.
6905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
6906         file.
6907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
6908         file.
6909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
6910         file.
6911         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
6912         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
6913         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
6914         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
6915         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
6916         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
6917         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
6918         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
6919
6920 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
6921
6922         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
6923         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
6924         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
6925         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
6926         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
6927         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
6928         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
6929         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
6930         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
6931         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
6932         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
6933         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
6934         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
6935         libm_alias_double_r.
6936         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
6937         (log): Likewise.
6938         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
6939         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
6940         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
6941         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
6942         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
6943         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
6944         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
6945         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
6946         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
6947         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
6948         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
6949         libm_alias_double.
6950         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
6951         (cos): Likewise.
6952         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
6953         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
6954         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
6955         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
6956         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
6957         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
6958         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
6959         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
6960         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
6961         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
6962         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
6963         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
6964         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
6965         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
6966         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
6967         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
6968         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
6969         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
6970         libm_alias_double.
6971         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
6972         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
6973         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
6974         * sysdeps/ia64/fpu/w_lgamma_main.c
6975         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
6976         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
6977
6978 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
6979
6980         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
6981         address of $global$ into %dp register earlier.  Use pc-relative
6982         instruction sequence for PIC case.
6983
6984 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
6985
6986         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
6987         (asinhf): Define using libm_alias_float.
6988         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
6989         (atanf): Define using libm_alias_float.
6990         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
6991         (cbrtf): Define using libm_alias_float.
6992         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
6993         (ceilf): Define using libm_alias_float.
6994         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
6995         (copysignf): Define using libm_alias_float.
6996         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
6997         (expm1f): Define using libm_alias_float.
6998         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
6999         (fabsf): Define using libm_alias_float.
7000         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
7001         (floorf): Define using libm_alias_float.
7002         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7003         (fmaxf): Define using libm_alias_float.
7004         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
7005         (fminf): Define using libm_alias_float.
7006         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
7007         (frexpf): Define using libm_alias_float.
7008         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
7009         (llrintf): Define using libm_alias_float.
7010         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
7011         (logbf): Define using libm_alias_float.
7012         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
7013         (lrintf): Define using libm_alias_float.
7014         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
7015         (nearbyintf): Define using libm_alias_float.
7016         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
7017         (remquof): Define using libm_alias_float.
7018         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
7019         (rintf): Define using libm_alias_float.
7020         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
7021         (truncf): Define using libm_alias_float.
7022         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
7023         <libm-alias-float.h>.
7024         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7025         if [SHARED].
7026         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
7027         <libm-alias-float.h>.
7028         (expf): Define using libm_alias_float, or libm_alias_float_other
7029         if [SHARED].
7030         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
7031         <libm-alias-float.h>.
7032         (log2f): Define using libm_alias_float, or libm_alias_float_other
7033         if [SHARED].
7034         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
7035         <libm-alias-float.h>.
7036         (logf): Define using libm_alias_float, or libm_alias_float_other
7037         if [SHARED].
7038         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
7039         <libm-alias-float.h>.
7040         (powf): Define using libm_alias_float, or libm_alias_float_other
7041         if [SHARED].
7042         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
7043         <libm-alias-float.h>.
7044         (cosf): Define using libm_alias_float.
7045         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
7046         <libm-alias-float.h>.
7047         (sincosf): Define using libm_alias_float.
7048         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
7049         <libm-alias-float.h>.
7050         (sinf): Define using libm_alias_float.
7051         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7052         (fmaxf): Define using libm_alias_float.
7053         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
7054         (fminf): Define using libm_alias_float.
7055         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
7056         <libm-alias-float.h>.
7057         (fmaf): Define using libm_alias_float.
7058
7059         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
7060         (asinh): Define using libm_alias_double.
7061         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
7062         (atan): Define using libm_alias_double.
7063         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
7064         (cbrt): Define using libm_alias_double.
7065         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
7066         (ceil): Define using libm_alias_double.
7067         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
7068         (copysign): Define using libm_alias_double.
7069         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
7070         (expm1): Define using libm_alias_double.
7071         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
7072         (fabs): Define using libm_alias_double.
7073         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
7074         (fdim): Define using libm_alias_double.
7075         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
7076         (floor): Define using libm_alias_double.
7077         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
7078         (fmax): Define using libm_alias_double.
7079         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
7080         (fmin): Define using libm_alias_double.
7081         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
7082         (frexp): Define using libm_alias_double.
7083         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
7084         (llrint): Define using libm_alias_double.
7085         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
7086         (logb): Define using libm_alias_double.
7087         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
7088         (lrint): Define using libm_alias_double.
7089         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
7090         (nearbyint): Define using libm_alias_double.
7091         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
7092         (remquo): Define using libm_alias_double.
7093         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
7094         (rint): Define using libm_alias_double.
7095         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
7096         (trunc): Define using libm_alias_double.
7097         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
7098         (fmax): Define using libm_alias_double.
7099         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
7100         (fmin): Define using libm_alias_double.
7101         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
7102         (fma): Define using libm_alias_double.
7103
7104 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         [BZ #22370]
7107         * elf/dl-hwcaps.c (ROUND): Removed.
7108         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
7109         and ELF_NOTE_NEXT_OFFSET.
7110         * elf/dl-load.c (ROUND): Removed.
7111         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7112         * elf/readelflib.c (ROUND): Removed.
7113         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7114         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
7115         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
7116         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
7117
7118 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7119
7120         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
7121         [!__fmaf] (fmaf): Define using libm_alias_float.
7122
7123         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
7124         [!__fma] (fma): Define using libm_alias_double.
7125         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
7126
7127 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
7128
7129         [BZ #22336]
7130         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
7131         and implement the collation rules for cs from CLDR on top of that.
7132         * Makefile: Add cs_CZ.UTF-8 to test-input.
7133         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
7134
7135 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7136
7137         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
7138
7139 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7140             Icarus Sparry  <icarus.w.sparry@intel.com>
7141
7142         * benchtests/Makefile:Add BENCHSET to allow subsets of
7143         benchmarks to be run.
7144         * benchtests/README: Add documentation for: Running subsets of
7145         benchmarks.
7146
7147 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7148
7149         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
7150         range of tests names.
7151
7152         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
7153         result from property and remove "max", min" and "mean" from
7154         required properties based on benchtests/bench-skeleton.c.
7155
7156 2017-11-28  Florian Weimer  <fweimer@redhat.com>
7157
7158         [BZ #20826]
7159         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
7160         due to Internet requirement.
7161         * posix/Makefile (tests): Remove tst-getaddrinfo4,
7162         tst-getaddrinfo5.
7163         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
7164
7165 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7166
7167         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7168         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
7169         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
7170         (sysdep_routines): Add memset-ultra1.
7171         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
7172         file.
7173         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
7174         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
7175         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
7176         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
7177         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
7178         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
7179         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
7180         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7181
7182         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
7183         file.
7184         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
7185         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
7186         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
7187         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
7188         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
7189         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
7190         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
7191         macro.
7192         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7193         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
7194         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
7195         (sysdep_routines): Add memcpy-ultra1.
7196         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
7197         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
7198
7199 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7200
7201         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
7202         (cfloat_versions): Take function argument without trailing 'f'.
7203         Call libm_alias_float_other.
7204         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
7205         * sysdeps/alpha/fpu/cargf.c: Likewise.
7206         * sysdeps/alpha/fpu/cimagf.c: Likewise.
7207         * sysdeps/alpha/fpu/conjf.c: Likewise.
7208         * sysdeps/alpha/fpu/crealf.c: Likewise.
7209         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
7210         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
7211         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
7212         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
7213         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
7214         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
7215         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
7216         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
7217         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
7218         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
7219         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
7220         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
7221         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
7222         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
7223         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
7224         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
7225         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
7226         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
7227         (clog10f): Use libm_alias_float_other.
7228         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
7229         (ceilf): Define using libm_alias_float.
7230         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
7231         (copysignf): Define using libm_alias_float.
7232         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
7233         (fabsf): Define using libm_alias_float.
7234         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
7235         (floorf): Define using libm_alias_float.
7236         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
7237         (fmaxf): Define using libm_alias_float.
7238         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
7239         (fminf): Define using libm_alias_float.
7240         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
7241         (lrintf): Define using libm_alias_float.
7242         (llrintf): Likewise.
7243         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
7244         (lroundf): Define using libm_alias_float.
7245         (llroundf): Likewise.
7246         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
7247         (rintf): Define using libm_alias_float.
7248         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
7249         (truncf): Define using libm_alias_float.
7250
7251         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
7252         (ceilf): Define using libm_alias_float.
7253         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
7254         (floorf): Define using libm_alias_float.
7255         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
7256         (fmaf): Define using libm_alias_float.
7257         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
7258         (fmaxf): Define using libm_alias_float.
7259         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
7260         (fminf): Define using libm_alias_float.
7261         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
7262         (llrintf): Define using libm_alias_float.
7263         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
7264         (llroundf): Define using libm_alias_float.
7265         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
7266         (lrintf): Define using libm_alias_float.
7267         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
7268         (lroundf): Define using libm_alias_float.
7269         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
7270         <libm-alias-float.h>.
7271         (nearbyintf): Define using libm_alias_float.
7272         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
7273         (rintf): Define using libm_alias_float.
7274         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
7275         (roundf): Define using libm_alias_float.
7276         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
7277         (truncf): Define using libm_alias_float.
7278
7279         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
7280         (ceil): Define using libm_alias_double.
7281         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
7282         (copysign): Define using libm_alias_double.
7283         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
7284         (fabs): Define using libm_alias_double.
7285         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
7286         (floor): Define using libm_alias_double.
7287         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
7288         (fmax): Define using libm_alias_double.
7289         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
7290         (fmin): Define using libm_alias_double.
7291         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
7292         (lrint): Define using libm_alias_double.
7293         (llrint): Likewise.
7294         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
7295         (lround): Define using libm_alias_double.
7296         (llround): Likewise.
7297         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
7298         (rint): Define using libm_alias_double.
7299         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
7300         (trunc): Define using libm_alias_double.
7301
7302         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
7303         (libm_alias_double_r): Add semicolon after weak_alias call.
7304
7305 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
7306
7307         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
7308         (ceil): Define using libm_alias_double.
7309         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
7310         (floor): Define using libm_alias_double.
7311         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
7312         (fma): Define using libm_alias_double.
7313         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
7314         (fmax): Define using libm_alias_double.
7315         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
7316         (fmin): Define using libm_alias_double.
7317         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
7318         (llrint): Define using libm_alias_double.
7319         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
7320         (llround): Define using libm_alias_double.
7321         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
7322         (lrint): Define using libm_alias_double.
7323         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
7324         (lround): Define using libm_alias_double.
7325         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
7326         (nearbyint): Define using libm_alias_double.
7327         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
7328         (rint): Define using libm_alias_double.
7329         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
7330         (round): Define using libm_alias_double.
7331         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
7332         (trunc): Define using libm_alias_double.
7333
7334 2017-11-27  Florian Weimer  <fweimer@redhat.com>
7335
7336         * sysdeps/unix/sysv/linux/mlock2.c: New file.
7337         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
7338         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
7339         (tests): Add tst-mlock2.
7340         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
7341         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
7342         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
7343         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
7344         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
7345         for mlock.  Document mlock2.
7346
7347 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
7348
7349         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
7350         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
7351         Likewise.
7352         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
7353         Likewise.
7354         * sysdeps/x86/Makeconfig: New file.
7355         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
7356         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7357         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
7358         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7359         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
7360         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7361         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
7362         Likewise.
7363         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7364         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
7365         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7366         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
7367         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7368         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
7369         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
7370         * manual/math.texi (Mathematics): Document support for _Float64x.
7371         * math/Versions (GLIBC_2.27): Add _Float64x functions.
7372         * stdlib/Versions (GLIBC_2.27): Likewise.
7373         * wcsmbs/Versions (GLIBC_2.27): Likewise.
7374         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
7375         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7376         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7377         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7378         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7379         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7380         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7381         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7382         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7383         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7384         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
7386         Likewise.
7387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7388         Likewise.
7389         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7390         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7391         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7392         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7393         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7394         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7395         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7396         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7397         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7398         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7399         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7400         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7401         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7402         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7403
7404 2017-11-27  Andreas Schwab  <schwab@suse.de>
7405
7406         * elf/Makefile (dl-routines): Add dl-sort-maps.
7407         * elf/dl-sort-maps.c: New file.
7408         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
7409         (_dl_sort_maps): Declare.
7410         * elf/dl-fini.c (_dl_sort_fini): Remove.
7411         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
7412         * elf/dl-close.c (_dl_close_worker): Likewise.
7413         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
7414         open-coding it.
7415         * elf/dl-open.c (dl_open_worker): Likewise.
7416
7417 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
7418
7419         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
7420         using libm_alias_float128.
7421         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
7422         Likewise.
7423         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
7424         Likewise.
7425         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
7426         (setpayloadsigf128): Likewise.
7427         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
7428         Likewise.
7429         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
7430         Likewise.
7431
7432         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
7433         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
7434         -mfloat128 to CFLAGS.
7435         ($(foreach
7436         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
7437         Likewise.
7438         (CFLAGS-libm-test-support-float64x.c): New variable.
7439         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
7440         $(f128-loader-link) to gnulib-tests.
7441
7442         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
7443         (libm_alias_float128_other_r): If
7444         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
7445         alias.
7446         (libm_alias_float128_r): Add semicolon after weak_alias call.
7447         * sysdeps/generic/libm-alias-ldouble.h
7448         (libm_alias_ldouble_other_r_f128): New macro.
7449         (libm_alias_ldouble_other_r_f64x): Likewise.
7450         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
7451         and libm_alias_ldouble_other_r_f64x.
7452         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
7453         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
7454         (libm_alias_ldouble_other_r_f128): New macro.
7455         (libm_alias_ldouble_other_r_f64x): Likewise.
7456         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
7457         and libm_alias_ldouble_other_r_f64x.
7458
7459         * stdlib/strfroml.c: Always include <stdlib.h>.
7460         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
7461         undefine as macro and define as weak alias.
7462         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
7463         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
7464         <stdlib.h>.
7465         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
7466         Define and later undefine as macro and define as weak alias.
7467
7468         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
7469         Define and later undefine as macro.  Define as weak alias if
7470         [!USE_WIDE_CHAR].
7471         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
7472         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
7473         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
7474         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
7475         Define and later undefine as macro.  Define as weak alias if
7476         [!USE_WIDE_CHAR].
7477         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
7478         Define and later undefine as macro.  Define as weak alias if
7479         [USE_WIDE_CHAR].
7480         * sysdeps/ieee754/float128/strtof128_l.c
7481         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
7482         Define and later undefine as macro.  Define as weak alias if
7483         [!USE_WIDE_CHAR].
7484         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
7485         Define and later undefine as macro.  Define as weak alias if
7486         [USE_WIDE_CHAR].
7487         * sysdeps/ieee754/ldbl-128/strtold_l.c
7488         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
7489         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
7490         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
7491         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
7492         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
7493         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
7494         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
7495         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
7496         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
7497         * sysdeps/ieee754/ldbl-96/strtold_l.c
7498         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
7499         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
7500         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
7501         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
7502
7503         * math/test-float64x.h: New file.
7504         * math/Makefile (type-float64x-yes): New variable.
7505         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
7506
7507         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
7508         function-like macro.
7509         (min_of_type_): Likewise.
7510         (min_of_type_l): Likewise.
7511         (min_of_type_f128): Likewise.
7512         (min_of_type): Pass () as last argument of __MATH_TG.
7513
7514         * stdlib/tst-strtod-round-skeleton.c
7515         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
7516         headers.
7517
7518         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
7519         for combinations of long double with _Float64 and _Float64x.
7520
7521         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
7522         (__DECL_SIMD_cosf32): Likewise.
7523         (__DECL_SIMD_cosf64): Likewise.
7524         (__DECL_SIMD_cosf32x): Likewise.
7525         (__DECL_SIMD_cosf64x): Likewise.
7526         (__DECL_SIMD_cosf128x): Likewise.
7527         (__DECL_SIMD_sinf16): Likewise.
7528         (__DECL_SIMD_sinf32): Likewise.
7529         (__DECL_SIMD_sinf64): Likewise.
7530         (__DECL_SIMD_sinf32x): Likewise.
7531         (__DECL_SIMD_sinf64x): Likewise.
7532         (__DECL_SIMD_sinf128x): Likewise.
7533         (__DECL_SIMD_sincosf16): Likewise.
7534         (__DECL_SIMD_sincosf32): Likewise.
7535         (__DECL_SIMD_sincosf64): Likewise.
7536         (__DECL_SIMD_sincosf32x): Likewise.
7537         (__DECL_SIMD_sincosf64x): Likewise.
7538         (__DECL_SIMD_sincosf128x): Likewise.
7539         (__DECL_SIMD_logf16): Likewise.
7540         (__DECL_SIMD_logf32): Likewise.
7541         (__DECL_SIMD_logf64): Likewise.
7542         (__DECL_SIMD_logf32x): Likewise.
7543         (__DECL_SIMD_logf64x): Likewise.
7544         (__DECL_SIMD_logf128x): Likewise.
7545         (__DECL_SIMD_expf16): Likewise.
7546         (__DECL_SIMD_expf32): Likewise.
7547         (__DECL_SIMD_expf64): Likewise.
7548         (__DECL_SIMD_expf32x): Likewise.
7549         (__DECL_SIMD_expf64x): Likewise.
7550         (__DECL_SIMD_expf128x): Likewise.
7551         (__DECL_SIMD_powf16): Likewise.
7552         (__DECL_SIMD_powf32): Likewise.
7553         (__DECL_SIMD_powf64): Likewise.
7554         (__DECL_SIMD_powf32x): Likewise.
7555         (__DECL_SIMD_powf64x): Likewise.
7556         (__DECL_SIMD_powf128x): Likewise.
7557
7558         * stdlib/Versions (libc): Move entries for wcstof128 and
7559         wcstof128_l to ....
7560         * wcsmbs/Versions (libc): ... here.
7561         Include <float128-abi.h>.
7562
7563 2017-11-24  Florian Weimer  <fweimer@redhat.com>
7564
7565         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7566         bits/mman-shared.h.
7567         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
7568         <bits/mman-shared.h>.
7569         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
7570         to ...
7571         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
7572         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
7573         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
7574         <bits/mman-shared.h>.
7575
7576 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7577
7578         [BZ #22457]
7579         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
7580         posix_memalign/free.
7581         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
7582
7583 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
7584
7585         [BZ #22469]
7586         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
7587         and implement the collation rules for pl from CLDR on top of that.
7588         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
7589         of locales to be built for testing.
7590         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
7591
7592 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
7593
7594         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
7595         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
7596         libm_alias_ldouble_other.
7597         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
7598         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
7599         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
7600         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
7601         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
7602         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
7603         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
7604         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
7605         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
7606         libm_alias_ldouble_r.
7607         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
7608         libm_alias_ldouble_other.
7609         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
7610         (log10l): Likewise.
7611         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
7612         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
7613         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
7614         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
7615         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
7616         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
7617         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
7618         (atan2l): Likewise.
7619         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
7620         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
7621         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
7622         libm_alias_ldouble.
7623         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
7624         (cosl): Likewise.
7625         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
7626         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
7627         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
7628         (expl): Likewise.
7629         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
7630         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
7631         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
7632         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
7633         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
7634         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
7635         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
7636         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
7637         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
7638         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
7639         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
7640         libm_alias_ldouble.
7641         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
7642         libm_alias_ldouble_other.
7643         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
7644         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
7645         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
7646         libm_alias_ldouble.
7647         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
7648         libm_alias_ldouble_other.
7649         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
7650         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
7651         * sysdeps/ia64/fpu/w_lgammal_main.c
7652         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
7653         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
7654
7655 2017-11-23  Florian Weimer  <fweimer@redhat.com>
7656
7657         * malloc/malloc.c (tcache_thread_shutdown): Rename from
7658         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
7659         alike.  Remove freeres marker.
7660         * malloc/arena.c (arena_thread_freeres): Call
7661         tcache_thread_shutdown.
7662
7663 2017-11-23  Florian Weimer  <fweimer@redhat.com>
7664
7665         [BZ #22459]
7666         Export nscd hash function as __nss_hash.
7667         * include/nss.h (__nss_hash): Declare.
7668         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
7669         symbol.
7670         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
7671         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
7672         of __nscd_hash.
7673         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
7674         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
7675         * nss/Makefiles (routines): Add nss_hash.
7676         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
7677         * nss/nss_hash.c: Rename from nis/nis_hash.c.
7678         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
7679         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
7680
7681 2017-11-23  Florian Weimer  <fweimer@redhat.com>
7682
7683         [BZ #22478]
7684         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
7685         Return error code, not -1.
7686         * signal/tst-sigwait-eintr.c: New file.
7687         * signal/Makefile (tests): Add tst-sigwait-eintr.
7688
7689 2017-11-23  Florian Weimer  <fweimer@redhat.com>
7690
7691         Linux: Add memfd_create system call wrapper
7692         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
7693         tst-memfd_create.
7694         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
7695         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
7696         [__USE_GNU] (memfd_create): Declare.
7697         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
7698         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
7699         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
7700         * sysdeps/unix/sysv/linux/**.abilist: Update.
7701         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
7702
7703 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
7704
7705         * localedata/gen-locale.sh: Fix typo in variable name.
7706
7707         * resolv/res_debug.c (p_secstodate): Condition definition on
7708         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
7709         directly as __p_secstodate, and as a compat symbol.  Do not use
7710         libresolv_hidden_def.
7711         * resolv/resolv.h (p_secstodate): Remove macro and function
7712         declaration.
7713         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
7714         using p_secstodate.
7715         * include/resolv.h (__p_secstodate): Do not use
7716         libresolv_hidden_proto.
7717         * resolv/Makefile (tests): Move tst-p_secstodate to ....
7718         (tests-internal): ... here.
7719         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
7720         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
7721         and declare and use __p_secstodate and use compat_symbol_reference
7722         in that case.
7723         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
7724         implementation returning 77.
7725
7726         [BZ #22463]
7727         * resolv/res_debug.c: Include <libc-diag.h>.
7728         (p_secstodate): Assert time_t at least as wide as u_long.  On
7729         overflow, use integer seconds since the epoch as output, or use
7730         "<overflow>" as output and set errno to EOVERFLOW if integer
7731         seconds since the epoch would be 14 or more characters.
7732         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
7733         for sprintf call.
7734         * resolv/tst-p_secstodate.c: New file.
7735         * resolv/Makefile (tests): Add tst-p_secstodate.
7736         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
7737
7738         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
7739         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
7740         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
7741
7742 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7743
7744         * posix/regcomp.c (init_word_char): Add comments.
7745
7746 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
7747
7748         [BZ #22447]
7749         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
7750         strlen to compute length of ut_user and set trailing NUL byte of
7751         result explicitly.
7752
7753 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
7754
7755         [BZ #15537]
7756         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
7757         using “copy "iso14651_t1"” and then implementing the
7758         collation rules for lv from CLDR on top of that.
7759         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
7760         of locales to be built for testing.
7761         * lv_LV.UTF-8.in: New file with test data to test the Latvian
7762         sorting.
7763
7764 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
7767         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
7768         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
7769         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
7770         [__USE_MISC] (MADV_HWPOISON): New macro.
7771         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
7772
7773 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7774
7775         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
7776         -Wmissing-braces on GCC 4.9.
7777
7778 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
7779
7780         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
7781         * sysdeps/s390/s390-32/start.S (_start): Likewise
7782         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
7783         (thread_start): Likewise.
7784         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
7785         (thread_start): Likewise.
7786         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
7787         (__makecontext_ret): Likewise.
7788         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
7789         (__makecontext_ret): Likewise.
7790
7791 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
7792
7793         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
7794         __wcschrnul): Remove attribute_hidden.
7795
7796 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7797
7798         regex: don't assume uint64_t or uint32_t
7799         This avoids -Werror=overflow errors for 32-bit systems in
7800         the 64-bit case.  Problem reported by Joseph Myers in:
7801         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
7802         Also, when this code is used in Gnulib it ports to platforms
7803         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
7804         them, and on some 32-bit compilers there is no uint64_t.
7805         Problem reported by Gianluigi Tiesi in:
7806         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
7807         * posix/regcomp.c (init_word_char): Don't assume that the types
7808         uint64_t and uint32_t exist.  Adapted from Gnulib patch
7809         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
7810         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
7811
7812 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7813
7814         * sysdeps/aarch64/memset-reg.h: New file.
7815         * sysdeps/aarch64/memset.S: Use it.
7816         (__memset): Rename to MEMSET macro.
7817         [ZVA_MACRO]: Use zva_macro.
7818         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7819         Add memset_generic and memset_falkor.
7820         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7821         (__libc_ifunc_impl_list): Add memset ifuncs.
7822         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
7823         local variable zva_size.
7824         * sysdeps/aarch64/multiarch/memset.c: New file.
7825         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
7826         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
7827         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
7828         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7829         (DCZID_DZP_MASK): New macro.
7830         (DCZID_BS_MASK): Likewise.
7831         (init_cpu_features): Read and set zva_size.
7832         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
7833         (struct cpu_features): New member zva_size.
7834
7835         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
7836         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
7837         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
7838
7839         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
7840         backwards.  Fix timing computation.
7841         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
7842         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
7843         on memset by N at a time.  Fix timing computation.
7844
7845 2017-11-20  Florian Weimer  <fweimer@redhat.com>
7846
7847         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
7848         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
7849
7850 2017-11-19  Florian Weimer  <fweimer@redhat.com>
7851
7852         manual: Document mprotect
7853         * manual/memory.texi (Memory Protection): New section.
7854         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
7855         documentation of PROT_* flags and reference the Memory Protection
7856         section instead.
7857
7858 2017-11-19  Florian Weimer  <fweimer@redhat.com>
7859
7860         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
7861         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
7862         (Scatter-Gather): ... to here.  Remove misleading comment.
7863
7864 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
7865
7866         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
7867         style.
7868
7869         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
7870         when /proc/<pid>/setgroups does not exist.
7871
7872 2017-11-18  Florian Weimer  <fweimer@redhat.com>
7873
7874         * sysdeps/unix/sysv/linux/tst-ttyname.c
7875         (become_root_in_mount_ns): Remove.
7876         (do_in_chroot_1): Call support_enter_mount_namespace.
7877         (do_in_chroot_2): Likewise.
7878         (do_test): Call support_become_root early.
7879
7880 2017-11-18  Florian Weimer  <fweimer@redhat.com>
7881
7882         * support/namespace.h (support_enter_mount_namespace): Declare.
7883         * support/support_enter_mount_namespace.c: New file.
7884         * support/Makefile (libsupport-routines): Add
7885         support_enter_mount_namespace.
7886
7887 2017-11-18  Florian Weimer  <fweimer@redhat.com>
7888
7889         * support/temp_file.c (support_create_temp_directory): Use
7890         test_dir and do not rely on the presence of the XXXXXX suffix.
7891         * support/temp_file.h (support_create_temp_directory): Update
7892         comment.
7893         * support/tst-xreadlink.c (do_test): Adjust.
7894         * support/support_chroot.c (support_chroot_create): Likewise.
7895
7896 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7897
7898         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
7899         macro.
7900         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
7901         htm-no-suspend.
7902
7903 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
7904
7905         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
7906         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
7907         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
7908         (ceill): Define using libm_alias_ldouble.
7909         * sysdeps/x86_64/fpu/s_copysignl.S: Include
7910         <libm-alias-ldouble.h>.
7911         (copysignl): Define using libm_alias_ldouble.
7912         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
7913         (fabsl): Define using libm_alias_ldouble.
7914         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
7915         (floorl): Define using libm_alias_ldouble.
7916         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
7917         (fmaxl): Define using libm_alias_ldouble.
7918         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
7919         (fminl): Define using libm_alias_ldouble.
7920         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
7921         (llrintl): Define using libm_alias_ldouble.
7922         (lrintl): Likewise.
7923         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
7924         <libm-alias-ldouble.h>.
7925         (nearbyintl): Define using libm_alias_ldouble.
7926         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
7927         (truncl): Define using libm_alias_ldouble.
7928         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
7929         <libm-alias-ldouble.h>.
7930         (lrintl): Define using libm_alias_ldouble.
7931
7932         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
7933         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
7934         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
7935         (asinhl): Define using libm_alias_ldouble.
7936         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
7937         (atanl): Define using libm_alias_ldouble.
7938         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
7939         (cbrtl): Define using libm_alias_ldouble.
7940         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
7941         (ceill): Define using libm_alias_ldouble.
7942         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
7943         (copysignl): Define using libm_alias_ldouble.
7944         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
7945         (fabsl): Define using libm_alias_ldouble.
7946         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
7947         (floorl): Define using libm_alias_ldouble.
7948         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
7949         (fmaxl): Define using libm_alias_ldouble.
7950         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
7951         (fminl): Define using libm_alias_ldouble.
7952         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
7953         (frexpl): Define using libm_alias_ldouble.
7954         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
7955         (llrintl): Define using libm_alias_ldouble.
7956         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
7957         (logbl): Define using libm_alias_ldouble.
7958         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
7959         (lrintl): Define using libm_alias_ldouble.
7960         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
7961         (nearbyintl): Define using libm_alias_ldouble.
7962         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
7963         (nextafterl): Define using libm_alias_ldouble.
7964         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
7965         (remquol): Define using libm_alias_ldouble.
7966         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
7967         (rintl): Define using libm_alias_ldouble.
7968         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
7969         (truncl): Define using libm_alias_ldouble.
7970         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
7971         (fmaxl): Define using libm_alias_ldouble.
7972         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
7973         (fminl): Define using libm_alias_ldouble.
7974
7975         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
7976         to C syntax instead of availability and properties of types.
7977         * bits/floatn.h [!__ASSEMBLER]: Likewise.
7978         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
7979         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
7980         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
7981         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
7982         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
7983
7984 2017-11-17  Florian Weimer  <fweimer@redhat.com>
7985
7986         support_become_root: Enable file creation in namespaces.
7987         * support/support_become_root.c (setup_mapping): New function.
7988         (support_become_root): Call it.
7989
7990 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
7993         macro.
7994
7995 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7996
7997         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
7998         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
7999
8000 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
8001
8002         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
8003
8004         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8005         version to 4.14.
8006
8007 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8008
8009         * INSTALL: Fix botched up regeneration.
8010
8011         * NEWS: Update sourceare link to https.
8012         * configure.ac: Likewise.
8013         * crypt/md5test-giant.c: Likewise.
8014         * dlfcn/bug-atexit1.c: Likewise.
8015         * dlfcn/bug-atexit2.c: Likewise.
8016         * localedata/README: Likewise.
8017         * malloc/tst-mallocfork.c: Likewise.
8018         * manual/install.texi: Likewise.
8019         * nptl/tst-pthread-getattr.c: Likewise.
8020         * stdio-common/tst-fgets.c: Likewise.
8021         * stdio-common/tst-fwrite.c: Likewise.
8022         * sunrpc/Makefile: Likewise.
8023         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
8024         * wcsmbs/tst-mbrtowc2.c: Likewise.
8025         * configure: Regenerate.
8026         * INSTALL: Regenerate.
8027
8028 2017-11-15  Martin Sebor  <msebor@redhat.com>
8029
8030         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
8031         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
8032         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
8033
8034 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8035
8036         [BZ #22145]
8037         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
8038         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
8039
8040         [BZ #22145]
8041         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
8042         Defer is_pty check until end of the function.
8043         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8044
8045         [BZ #22145]
8046         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
8047         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
8048         (ttyname): Likewise.
8049         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
8050         (__ttyname_r): Likewise.
8051
8052         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
8053         int to bool.
8054
8055         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
8056
8057         * manual/terminal.texi (Is It a Terminal):
8058         Mention ENODEV for ttyname and ttyname_r.
8059
8060 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8061
8062         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
8063         constant and macro.
8064
8065         * sysdeps/unix/sysv/linux/bits/mman-linux.h
8066         [__USE_MISC] (MADV_WIPEONFORK): New macro.
8067         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8068         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
8069         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8070         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8071
8072 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8073
8074         * signal/sigrelse.c (sigrelse): Optimize implementation.
8075
8076         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
8077         (__sigpause): Rely on __sigsuspend to implement single thread
8078         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
8079
8080 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8081
8082         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8083         kernel version to 4.14.
8084
8085 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
8086
8087         [BZ #22442]
8088         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
8089         Check if ifname is too long.
8090
8091 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8092
8093         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
8094
8095 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8096
8097         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
8098         was accidentally lost.
8099
8100 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8101
8102         * localedata/locales/az_IR: Add standard copyright header.
8103
8104 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8105
8106         [BZ #22439]
8107         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
8108         not just the top one.  Output a new "subheaps" statistic.
8109
8110 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8111
8112         [BZ #22408]
8113         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
8114         under the per-arena lock.
8115         * malloc/Makefile (tests): Add tst-malloc_info.
8116         (tst-malloc_info): Link with libpthread.
8117         * malloc/tst-malloc_info.c: New file.
8118
8119 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8120
8121         [BZ #21660]
8122         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
8123         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
8124         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
8125         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
8126         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
8127         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
8128         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
8129         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
8130         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
8131         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
8132         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
8133         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
8134         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
8135         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
8136         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
8137         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
8138         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
8139         (__floating_type): Likewise.
8140         (__real_integer_type): Likewise.
8141         (__complex_integer_type): Likewise.
8142         (__expr_is_real): Likewise.
8143         (__tgmath_real_type_sub): Likewise.
8144         (__tgmath_real_type): Likewise.
8145         (__tgmath_complex_type_sub): Likewise.
8146         (__tgmath_complex_type): Likewise.
8147         (__TGMATH_F128): Likewise.
8148         (__TGMATH_CF128): Likewise.
8149         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
8150         new macros.
8151         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8152         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
8153         Likewise.
8154         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
8155         Likewise.
8156         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
8157         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8158         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8159         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
8160         Likewise.
8161         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8162         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
8163         Likewise.
8164         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
8165         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
8166         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
8167         Likewise.
8168         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
8169         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
8170         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
8171         (cimag): Likewise.
8172         (creal): Likewise.
8173
8174 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
8175
8176         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
8177         for stpncpy calls for GCC 8.
8178         (test_strncat): Disable -Wstringop-truncation warning for strncat
8179         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
8180         strncat call for GCC 7.
8181         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
8182         calls for GCC 8.
8183         (test_memcmp): Use memcpy instead of strncpy for calls not copying
8184         trailing NUL.
8185
8186         * string/bug-strncat1.c: Include <libc-diag.h>.
8187         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
8188
8189 2017-11-13  Claude Paroz  <claude@2xlibre.net>
8190
8191         [BZ #22387]
8192         * localedata/locales/aa_DJ: Improved readibility by replacing
8193         <Uxxxx> sequences in the ASCII printable range by their ASCII
8194         character equivalents.
8195         * localedata/locales/aa_ER: Likewise.
8196         * localedata/locales/aa_ER@saaho: Likewise.
8197         * localedata/locales/aa_ET: Likewise.
8198         * localedata/locales/af_ZA: Likewise.
8199         * localedata/locales/agr_PE: Likewise.
8200         * localedata/locales/ak_GH: Likewise.
8201         * localedata/locales/am_ET: Likewise.
8202         * localedata/locales/anp_IN: Likewise.
8203         * localedata/locales/ar_AE: Likewise.
8204         * localedata/locales/ar_BH: Likewise.
8205         * localedata/locales/ar_DZ: Likewise.
8206         * localedata/locales/ar_EG: Likewise.
8207         * localedata/locales/ar_IN: Likewise.
8208         * localedata/locales/ar_IQ: Likewise.
8209         * localedata/locales/ar_JO: Likewise.
8210         * localedata/locales/ar_KW: Likewise.
8211         * localedata/locales/ar_LB: Likewise.
8212         * localedata/locales/ar_LY: Likewise.
8213         * localedata/locales/ar_MA: Likewise.
8214         * localedata/locales/ar_OM: Likewise.
8215         * localedata/locales/ar_QA: Likewise.
8216         * localedata/locales/ar_SA: Likewise.
8217         * localedata/locales/ar_SD: Likewise.
8218         * localedata/locales/ar_SS: Likewise.
8219         * localedata/locales/ar_SY: Likewise.
8220         * localedata/locales/ar_TN: Likewise.
8221         * localedata/locales/ar_YE: Likewise.
8222         * localedata/locales/as_IN: Likewise.
8223         * localedata/locales/ast_ES: Likewise.
8224         * localedata/locales/ayc_PE: Likewise.
8225         * localedata/locales/az_AZ: Likewise.
8226         * localedata/locales/az_IR: Likewise.
8227         * localedata/locales/be_BY: Likewise.
8228         * localedata/locales/be_BY@latin: Likewise.
8229         * localedata/locales/bem_ZM: Likewise.
8230         * localedata/locales/ber_DZ: Likewise.
8231         * localedata/locales/ber_MA: Likewise.
8232         * localedata/locales/bg_BG: Likewise.
8233         * localedata/locales/bhb_IN: Likewise.
8234         * localedata/locales/bho_IN: Likewise.
8235         * localedata/locales/bi_VU: Likewise.
8236         * localedata/locales/bn_BD: Likewise.
8237         * localedata/locales/bn_IN: Likewise.
8238         * localedata/locales/bo_CN: Likewise.
8239         * localedata/locales/bo_IN: Likewise.
8240         * localedata/locales/br_FR: Likewise.
8241         * localedata/locales/brx_IN: Likewise.
8242         * localedata/locales/bs_BA: Likewise.
8243         * localedata/locales/byn_ER: Likewise.
8244         * localedata/locales/ca_AD: Likewise.
8245         * localedata/locales/ca_ES: Likewise.
8246         * localedata/locales/ca_FR: Likewise.
8247         * localedata/locales/ca_IT: Likewise.
8248         * localedata/locales/ce_RU: Likewise.
8249         * localedata/locales/chr_US: Likewise.
8250         * localedata/locales/cmn_TW: Likewise.
8251         * localedata/locales/crh_UA: Likewise.
8252         * localedata/locales/cs_CZ: Likewise.
8253         * localedata/locales/csb_PL: Likewise.
8254         * localedata/locales/cv_RU: Likewise.
8255         * localedata/locales/cy_GB: Likewise.
8256         * localedata/locales/da_DK: Likewise.
8257         * localedata/locales/de_AT: Likewise.
8258         * localedata/locales/de_BE: Likewise.
8259         * localedata/locales/de_CH: Likewise.
8260         * localedata/locales/de_DE: Likewise.
8261         * localedata/locales/de_IT: Likewise.
8262         * localedata/locales/de_LI: Likewise.
8263         * localedata/locales/de_LU: Likewise.
8264         * localedata/locales/doi_IN: Likewise.
8265         * localedata/locales/dv_MV: Likewise.
8266         * localedata/locales/dz_BT: Likewise.
8267         * localedata/locales/el_CY: Likewise.
8268         * localedata/locales/el_GR: Likewise.
8269         * localedata/locales/en_AG: Likewise.
8270         * localedata/locales/en_AU: Likewise.
8271         * localedata/locales/en_BW: Likewise.
8272         * localedata/locales/en_CA: Likewise.
8273         * localedata/locales/en_DK: Likewise.
8274         * localedata/locales/en_GB: Likewise.
8275         * localedata/locales/en_HK: Likewise.
8276         * localedata/locales/en_IE: Likewise.
8277         * localedata/locales/en_IL: Likewise.
8278         * localedata/locales/en_IN: Likewise.
8279         * localedata/locales/en_NG: Likewise.
8280         * localedata/locales/en_NZ: Likewise.
8281         * localedata/locales/en_PH: Likewise.
8282         * localedata/locales/en_SG: Likewise.
8283         * localedata/locales/en_US: Likewise.
8284         * localedata/locales/en_ZA: Likewise.
8285         * localedata/locales/en_ZM: Likewise.
8286         * localedata/locales/en_ZW: Likewise.
8287         * localedata/locales/eo: Likewise.
8288         * localedata/locales/es_AR: Likewise.
8289         * localedata/locales/es_BO: Likewise.
8290         * localedata/locales/es_CL: Likewise.
8291         * localedata/locales/es_CO: Likewise.
8292         * localedata/locales/es_CR: Likewise.
8293         * localedata/locales/es_CU: Likewise.
8294         * localedata/locales/es_DO: Likewise.
8295         * localedata/locales/es_EC: Likewise.
8296         * localedata/locales/es_ES: Likewise.
8297         * localedata/locales/es_GT: Likewise.
8298         * localedata/locales/es_HN: Likewise.
8299         * localedata/locales/es_MX: Likewise.
8300         * localedata/locales/es_NI: Likewise.
8301         * localedata/locales/es_PA: Likewise.
8302         * localedata/locales/es_PE: Likewise.
8303         * localedata/locales/es_PR: Likewise.
8304         * localedata/locales/es_PY: Likewise.
8305         * localedata/locales/es_SV: Likewise.
8306         * localedata/locales/es_US: Likewise.
8307         * localedata/locales/es_UY: Likewise.
8308         * localedata/locales/es_VE: Likewise.
8309         * localedata/locales/et_EE: Likewise.
8310         * localedata/locales/eu_ES: Likewise.
8311         * localedata/locales/eu_ES@euro: Likewise.
8312         * localedata/locales/fa_IR: Likewise.
8313         * localedata/locales/ff_SN: Likewise.
8314         * localedata/locales/fi_FI: Likewise.
8315         * localedata/locales/fil_PH: Likewise.
8316         * localedata/locales/fo_FO: Likewise.
8317         * localedata/locales/fr_BE: Likewise.
8318         * localedata/locales/fr_CA: Likewise.
8319         * localedata/locales/fr_CH: Likewise.
8320         * localedata/locales/fr_FR: Likewise.
8321         * localedata/locales/fr_LU: Likewise.
8322         * localedata/locales/fur_IT: Likewise.
8323         * localedata/locales/fy_DE: Likewise.
8324         * localedata/locales/fy_NL: Likewise.
8325         * localedata/locales/ga_IE: Likewise.
8326         * localedata/locales/gd_GB: Likewise.
8327         * localedata/locales/gez_ER: Likewise.
8328         * localedata/locales/gez_ET: Likewise.
8329         * localedata/locales/gl_ES: Likewise.
8330         * localedata/locales/gu_IN: Likewise.
8331         * localedata/locales/gv_GB: Likewise.
8332         * localedata/locales/ha_NG: Likewise.
8333         * localedata/locales/hak_TW: Likewise.
8334         * localedata/locales/he_IL: Likewise.
8335         * localedata/locales/hi_IN: Likewise.
8336         * localedata/locales/hif_FJ: Likewise.
8337         * localedata/locales/hne_IN: Likewise.
8338         * localedata/locales/hr_HR: Likewise.
8339         * localedata/locales/hsb_DE: Likewise.
8340         * localedata/locales/ht_HT: Likewise.
8341         * localedata/locales/hu_HU: Likewise.
8342         * localedata/locales/hy_AM: Likewise.
8343         * localedata/locales/i18n: Likewise.
8344         * localedata/locales/ia_FR: Likewise.
8345         * localedata/locales/id_ID: Likewise.
8346         * localedata/locales/ig_NG: Likewise.
8347         * localedata/locales/ik_CA: Likewise.
8348         * localedata/locales/is_IS: Likewise.
8349         * localedata/locales/it_CH: Likewise.
8350         * localedata/locales/it_IT: Likewise.
8351         * localedata/locales/iu_CA: Likewise.
8352         * localedata/locales/ja_JP: Likewise.
8353         * localedata/locales/ka_GE: Likewise.
8354         * localedata/locales/kk_KZ: Likewise.
8355         * localedata/locales/kl_GL: Likewise.
8356         * localedata/locales/kn_IN: Likewise.
8357         * localedata/locales/ko_KR: Likewise.
8358         * localedata/locales/kok_IN: Likewise.
8359         * localedata/locales/ks_IN: Likewise.
8360         * localedata/locales/ks_IN@devanagari: Likewise.
8361         * localedata/locales/ku_TR: Likewise.
8362         * localedata/locales/kw_GB: Likewise.
8363         * localedata/locales/ky_KG: Likewise.
8364         * localedata/locales/lb_LU: Likewise.
8365         * localedata/locales/lg_UG: Likewise.
8366         * localedata/locales/li_BE: Likewise.
8367         * localedata/locales/li_NL: Likewise.
8368         * localedata/locales/lij_IT: Likewise.
8369         * localedata/locales/ln_CD: Likewise.
8370         * localedata/locales/lo_LA: Likewise.
8371         * localedata/locales/lt_LT: Likewise.
8372         * localedata/locales/lv_LV: Likewise.
8373         * localedata/locales/lzh_TW: Likewise.
8374         * localedata/locales/mag_IN: Likewise.
8375         * localedata/locales/mai_IN: Likewise.
8376         * localedata/locales/mg_MG: Likewise.
8377         * localedata/locales/mhr_RU: Likewise.
8378         * localedata/locales/mi_NZ: Likewise.
8379         * localedata/locales/mk_MK: Likewise.
8380         * localedata/locales/ml_IN: Likewise.
8381         * localedata/locales/mn_MN: Likewise.
8382         * localedata/locales/mni_IN: Likewise.
8383         * localedata/locales/mr_IN: Likewise.
8384         * localedata/locales/ms_MY: Likewise.
8385         * localedata/locales/mt_MT: Likewise.
8386         * localedata/locales/my_MM: Likewise.
8387         * localedata/locales/nan_TW: Likewise.
8388         * localedata/locales/nan_TW@latin: Likewise.
8389         * localedata/locales/nb_NO: Likewise.
8390         * localedata/locales/nds_DE: Likewise.
8391         * localedata/locales/nds_NL: Likewise.
8392         * localedata/locales/ne_NP: Likewise.
8393         * localedata/locales/nhn_MX: Likewise.
8394         * localedata/locales/niu_NU: Likewise.
8395         * localedata/locales/niu_NZ: Likewise.
8396         * localedata/locales/nl_AW: Likewise.
8397         * localedata/locales/nl_BE: Likewise.
8398         * localedata/locales/nl_NL: Likewise.
8399         * localedata/locales/nn_NO: Likewise.
8400         * localedata/locales/nr_ZA: Likewise.
8401         * localedata/locales/nso_ZA: Likewise.
8402         * localedata/locales/oc_FR: Likewise.
8403         * localedata/locales/om_ET: Likewise.
8404         * localedata/locales/om_KE: Likewise.
8405         * localedata/locales/or_IN: Likewise.
8406         * localedata/locales/os_RU: Likewise.
8407         * localedata/locales/pa_IN: Likewise.
8408         * localedata/locales/pa_PK: Likewise.
8409         * localedata/locales/pap_AW: Likewise.
8410         * localedata/locales/pap_CW: Likewise.
8411         * localedata/locales/pl_PL: Likewise.
8412         * localedata/locales/ps_AF: Likewise.
8413         * localedata/locales/pt_BR: Likewise.
8414         * localedata/locales/pt_PT: Likewise.
8415         * localedata/locales/quz_PE: Likewise.
8416         * localedata/locales/raj_IN: Likewise.
8417         * localedata/locales/ro_RO: Likewise.
8418         * localedata/locales/ru_RU: Likewise.
8419         * localedata/locales/ru_UA: Likewise.
8420         * localedata/locales/rw_RW: Likewise.
8421         * localedata/locales/sa_IN: Likewise.
8422         * localedata/locales/sat_IN: Likewise.
8423         * localedata/locales/sc_IT: Likewise.
8424         * localedata/locales/sd_IN: Likewise.
8425         * localedata/locales/sd_IN@devanagari: Likewise.
8426         * localedata/locales/se_NO: Likewise.
8427         * localedata/locales/sgs_LT: Likewise.
8428         * localedata/locales/shs_CA: Likewise.
8429         * localedata/locales/si_LK: Likewise.
8430         * localedata/locales/sid_ET: Likewise.
8431         * localedata/locales/sk_SK: Likewise.
8432         * localedata/locales/sl_SI: Likewise.
8433         * localedata/locales/sm_WS: Likewise.
8434         * localedata/locales/so_DJ: Likewise.
8435         * localedata/locales/so_ET: Likewise.
8436         * localedata/locales/so_KE: Likewise.
8437         * localedata/locales/so_SO: Likewise.
8438         * localedata/locales/sq_AL: Likewise.
8439         * localedata/locales/sq_MK: Likewise.
8440         * localedata/locales/sr_ME: Likewise.
8441         * localedata/locales/sr_RS: Likewise.
8442         * localedata/locales/sr_RS@latin: Likewise.
8443         * localedata/locales/ss_ZA: Likewise.
8444         * localedata/locales/st_ZA: Likewise.
8445         * localedata/locales/sv_FI: Likewise.
8446         * localedata/locales/sv_SE: Likewise.
8447         * localedata/locales/sw_KE: Likewise.
8448         * localedata/locales/sw_TZ: Likewise.
8449         * localedata/locales/szl_PL: Likewise.
8450         * localedata/locales/ta_IN: Likewise.
8451         * localedata/locales/ta_LK: Likewise.
8452         * localedata/locales/tcy_IN: Likewise.
8453         * localedata/locales/te_IN: Likewise.
8454         * localedata/locales/tg_TJ: Likewise.
8455         * localedata/locales/th_TH: Likewise.
8456         * localedata/locales/the_NP: Likewise.
8457         * localedata/locales/ti_ER: Likewise.
8458         * localedata/locales/ti_ET: Likewise.
8459         * localedata/locales/tig_ER: Likewise.
8460         * localedata/locales/tk_TM: Likewise.
8461         * localedata/locales/tl_PH: Likewise.
8462         * localedata/locales/tn_ZA: Likewise.
8463         * localedata/locales/to_TO: Likewise.
8464         * localedata/locales/tpi_PG: Likewise.
8465         * localedata/locales/tr_CY: Likewise.
8466         * localedata/locales/tr_TR: Likewise.
8467         * localedata/locales/ts_ZA: Likewise.
8468         * localedata/locales/tt_RU: Likewise.
8469         * localedata/locales/tt_RU@iqtelif: Likewise.
8470         * localedata/locales/ug_CN: Likewise.
8471         * localedata/locales/uk_UA: Likewise.
8472         * localedata/locales/unm_US: Likewise.
8473         * localedata/locales/ur_IN: Likewise.
8474         * localedata/locales/ur_PK: Likewise.
8475         * localedata/locales/uz_UZ: Likewise.
8476         * localedata/locales/uz_UZ@cyrillic: Likewise.
8477         * localedata/locales/ve_ZA: Likewise.
8478         * localedata/locales/vi_VN: Likewise.
8479         * localedata/locales/wa_BE: Likewise.
8480         * localedata/locales/wae_CH: Likewise.
8481         * localedata/locales/wal_ET: Likewise.
8482         * localedata/locales/wo_SN: Likewise.
8483         * localedata/locales/xh_ZA: Likewise.
8484         * localedata/locales/yi_US: Likewise.
8485         * localedata/locales/yo_NG: Likewise.
8486         * localedata/locales/yue_HK: Likewise.
8487         * localedata/locales/yuw_PG: Likewise.
8488         * localedata/locales/zh_CN: Likewise.
8489         * localedata/locales/zh_HK: Likewise.
8490         * localedata/locales/zh_SG: Likewise.
8491         * localedata/locales/zh_TW: Likewise.
8492         * localedata/locales/zu_ZA: Likewise.
8493
8494 2017-11-13  Florian Weimer  <fweimer@redhat.com>
8495
8496         * support/next_to_fault.h, support/next_to_fault.c: New files.
8497         * support/Makefile (libsupport-routines): Add next_to_fault.
8498         * resolv/tst-inet_pton.c (struct next_to_fault)
8499         (next_to_fault_allocate, next_to_fault_free): Remove.
8500         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
8501
8502 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
8503
8504         * elf/dl-support.c: Include <dl-procruntime.c>.
8505         * include/link.h: Include <link_map.h>.
8506         * sysdeps/generic/dl-procruntime.c: New file.
8507         * sysdeps/generic/link_map.h: Likewise.
8508         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
8509         the writable ld.so namespace.
8510
8511 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         timezone: pacify GCC -Wstringop-truncation
8514         Problem reported by Martin Sebor in:
8515         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
8516         * timezone/zic.c (writezone): Use memcpy, not strncpy.
8517
8518 2017-11-12  Florian Weimer  <fweimer@redhat.com>
8519
8520         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
8521         tst-xreadlink.
8522         (tests): Add tst-xreadlink.
8523         * support/support.h (xstrndup): Declare.
8524         * support/xunistd.h (xunlink, xreadlink): Declare.
8525         * support/temp_file.h (support_create_temp_directory): Declare.
8526         * support/temp_file.c (support_create_temp_directory): New function.
8527         * support/support_chroot.c (support_chroot_create): Use it.
8528         * support/xreadlink.c: New file.
8529         * support/xstrndup.c: Likewise.
8530         * support/xunlink.c: Likewise.
8531         * support/tst-xreadlink.c: Likewise.
8532
8533 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
8534
8535         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
8536
8537 2017-11-11  Florian Weimer  <fweimer@redhat.com>
8538
8539         [BZ #22409]
8540         [BZ #22412]
8541         * resolv/res_comp.c (printable_string, binary_hnok)
8542         (binary_leading_dash): New functions.
8543         (res_hnok): Reimplement using these functions and ns_name_pton.
8544         (res_ownok): Likewise.
8545         (res_mailok): Reimplement using printable_string, ns_name_pton and
8546         binary_hnok.
8547         (res_dnok): Reimplement using printable_string and ns_name_pton.
8548         * resolv/tst-res_hnok.c (tests): Add additional tests.
8549         (LETTERDIGITS, PRINTABLE): Define.
8550         (do_test): Adjust one_char results.
8551
8552 2017-11-11  Florian Weimer  <fweimer@redhat.com>
8553
8554         [BZ #22413]
8555         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
8556         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
8557
8558 2017-11-11  Florian Weimer  <fweimer@redhat.com>
8559
8560         * resolv/tst-ns_name_pton.c: New file.
8561         * resolv/Makefile (tests): Add tst-ns_name_pton.
8562         (tst-ns_name_pton): Link against libresolv.
8563
8564 2017-11-11  Florian Weimer  <fweimer@redhat.com>
8565
8566         * resolv/tst-res_hnok.c: New file.
8567         * resolv/Makefile (tests): Add tst-res_hnok.
8568         (tst-res_hnok): Link against libresolv.
8569
8570 2017-11-11  Florian Weimer  <fweimer@redhat.com>
8571
8572         * resolv/tst-resolv-network.c: Use test framework instead explicit
8573         main function.
8574
8575 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
8576
8577         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
8578         <jmp_buf-macros.h>.
8579         [!_ISOMAC] (STR_HELPER): New.
8580         [!_ISOMAC] (STR): Likewise.
8581         [!_ISOMAC] (TEST_SIZE): Likewise.
8582         [!_ISOMAC] (TEST_ALIGN): Likewise.
8583         [!_ISOMAC] (TEST_OFFSET): Likewise.
8584         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
8585         field offsets of jmp_buf as well as sigjmp_buf.
8586         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
8587         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
8588         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
8589         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
8590         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
8591         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
8592         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
8593         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
8594         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
8595         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
8596         Likewise.
8597         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
8598         Likewise.
8599         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
8600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
8601         Likewise.
8602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
8603         Likewise.
8604         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
8605         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
8606         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
8607         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
8608         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
8609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
8610         Likewise.
8611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
8612         Likewise.
8613         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
8614         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
8615         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
8616
8617 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * include/float.h
8620         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8621         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
8622         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8623         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
8624         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8625         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
8626         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8627         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
8628         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8629         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
8630         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8631         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
8632         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8633         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
8634         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8635         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
8636         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8637         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
8638         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8639         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
8640         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8641         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
8642         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8643         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
8644         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8645         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
8646         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8647         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
8648         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8649         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
8650         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8651         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
8652         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8653         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
8654         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8655         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
8656         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8657         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
8658         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8659         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
8660         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8661         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
8662         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8663         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
8664         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8665         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
8666         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8667         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
8668         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8669         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
8670         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8671         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
8672         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8673         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
8674         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8675         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
8676         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8677         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
8678         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8679         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
8680         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8681         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
8682         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8683         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
8684         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8685         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
8686         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8687         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
8688         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8689         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
8690         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8691         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
8692         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8693         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
8694         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8695         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
8696         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8697         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
8698         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8699         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
8700         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8701         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
8702         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8703         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
8704         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8705         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
8706         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
8707         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
8708
8709         * stdlib/tst-strtod.h (F16): New macro.
8710         (F32): Likewise.
8711         (F64): Likewise.
8712         (F32X): Likewise.
8713         (F64X): Likewise.
8714         (F128X): Likewise.
8715         (IF_FLOAT16): Likewise.
8716         (IF_FLOAT32): Likewise.
8717         (IF_FLOAT64): Likewise.
8718         (IF_FLOAT32X): Likewise.
8719         (IF_FLOAT64X): Likewise.
8720         (IF_FLOAT128X): Likewise.
8721         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
8722         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
8723         (STRTOD_TEST_FOREACH): Likewise.
8724         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
8725         (CHOOSE_f64): Likewise.
8726         (CHOOSE_f32x): Likewise.
8727         (CHOOSE_f64x): Likewise.
8728
8729 2017-11-07  Andreas Schwab  <schwab@suse.de>
8730
8731         * nptl/Makefile (tests-internal): Remove tst-typesizes.
8732
8733 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
8734
8735         [BZ #22403]
8736         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
8737         to be escaped.
8738         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
8739         to be escaped.
8740
8741 2017-11-07  Claude Paroz  <claude@2xlibre.net>
8742
8743         [BZ #22403]
8744         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
8745         to be escaped.
8746         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
8747         to be escaped.
8748         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
8749         to be escaped.
8750
8751 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8752
8753         [BZ #22298]
8754         * nptl/allocatestack.c (allocate_stack): Check if
8755         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
8756         __PTHREAD_MUTEX_HAVE_PREV is defined.
8757         * nptl/descr.h (pthread): Likewise.
8758         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
8759         Likewise.
8760         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
8761         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
8762         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
8763         * sysdeps/nptl/bits/thread-shared-types.h
8764         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
8765         defines.
8766         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
8767         of __WORDSIZE for internal layout.
8768         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
8769         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
8770         instead of __WORDSIZE whether to use an union for __spins and __list
8771         fields.
8772         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
8773         case.
8774         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
8775         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
8776         defines.
8777         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
8778         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8779         Likewise.
8780         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
8781         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8782         Likewise.
8783         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
8784         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8785         Likewise.
8786         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
8787         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8788         Likewise.
8789         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
8790         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8791         Likewise.
8792         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
8793         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8794         Likewise.
8795         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
8796         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8797         Likewise.
8798         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
8799         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8800         Likewise.
8801         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
8802         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8803         Likewise.
8804         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
8805         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8806         Likewise.
8807         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
8808         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8809         Likewise.
8810         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
8811         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8812         Likewise.
8813         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
8814         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8815         Likewise.
8816         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
8817         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
8818         Likewise.
8819
8820         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
8821         New macros.
8822         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
8823         checks for expected input type size.
8824         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8825         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8826         Likewise.
8827         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
8828         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
8829         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
8830         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
8831         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8832         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
8833         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
8834         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
8835         superflous runtime assert check.
8836         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
8837         Likewise.
8838         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
8839         Likewise.
8840         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8841         Likewise.
8842         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
8843         Likewise.
8844         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
8845         Likewise.
8846         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
8847         Likewise.
8848         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
8849         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
8850         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8851         Likewise.
8852         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8853         Likewise.
8854         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
8855         Likewise.
8856         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
8857         Likewise.
8858         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8859         Likewise.
8860         * nptl/pthread_attr_setinheritsched.c
8861         (__pthread_attr_setinheritsched): Likewise.
8862         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
8863         Likewise.
8864         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
8865         Likewise.
8866         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
8867         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
8868         __old_pthread_attr_setstack): Likewise.
8869         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8870         Likewise.
8871         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8872         Likewise.
8873         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
8874         Likewise.
8875         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8876         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
8877         Likewise.
8878         * nptl/tst-typesizes.c: Remove file.
8879
8880         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
8881         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
8882         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
8883         checks for internal pthread_mutex_t offsets.
8884         * sysdeps/aarch64/nptl/pthread-offsets.h
8885         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
8886         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
8887         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
8888         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
8889         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
8890         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
8891         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
8892         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
8893         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
8894         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
8895         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
8896         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
8897         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
8898         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
8899         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
8900         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
8901         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
8902         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
8903
8904 2017-11-07  Florian Weimer  <fweimer@redhat.com>
8905
8906         * bits/mman-linux.h: Move ...
8907         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
8908         comment.
8909         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
8910         outdated comment.
8911
8912 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8913
8914         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
8915         Redefine STRNLEN as __strnlen_power8.
8916
8917 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8918
8919         * signal/sighold.c (sighold): Optimize implementation.
8920
8921         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
8922         __NR_rt_sigqueueinfo.
8923
8924         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8925         __sigtimedwait.
8926         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
8927         assume __NR_rt_sigtimedwait.
8928         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
8929         and add LIBC_CANCEL_HANDLED for cancellation marking.
8930         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
8931
8932         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
8933         (sysdeps_routines): Add memchr_noneon.
8934         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
8935         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
8936         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
8937         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
8938         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
8939         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
8940         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
8941
8942         * sysdeps/arm/arm-ifunc.h: New file.
8943         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
8944         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
8945         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
8946         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
8947         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
8948         (__memcpy_neon): Avoid create hidden alias.
8949         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
8950         (__memcpy_vfp): Likewise.
8951         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
8952         (sysdep_routines): Add memcpy_arm.
8953         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
8954
8955 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
8956
8957         [BZ #22362]
8958         * Makerules (make-link-multidir): New.
8959         * config.make.in (multidir): New.
8960         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
8961         * configure: Regenerated.
8962         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
8963         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
8964         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
8965         New target.
8966
8967 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
8968
8969         [BZ #22402]
8970         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
8971         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
8972
8973 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
8974
8975         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
8976         to be escaped.
8977
8978 2017-11-04  Florian Weimer  <fweimer@redhat.com>
8979
8980         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
8981
8982 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
8983
8984         * math/math.h [__HAVE_DISTINCT_FLOAT16
8985         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
8986         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
8987         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
8988         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
8989         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
8990         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
8991         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
8992         (__MATH_TG_F32): New macro.
8993         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
8994         (__MATH_TG_F64X): Likewise.
8995         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
8996         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
8997
8998 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
8999
9000         * po/de.po: Update translations.
9001         * po/ru.po: Likewise.
9002
9003 2017-11-03  Florian Weimer  <fweimer@redhat.com>
9004
9005         * manual/filesys.texi (Hard Links): Document linkat.
9006
9007 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
9008
9009         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
9010         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
9011         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
9012         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
9013         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9014         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9015         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
9016         the same as _Float128.
9017         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9018         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9019         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
9020
9021         * stdlib/stdlib.h
9022         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
9023         Declare.
9024         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
9025         Likewise.
9026         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
9027         Likewise.
9028         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9029         (strtof32x): Likewise.
9030         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9031         (strtof64x): Likewise.
9032         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9033         (strtof128x): Likewise.
9034         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9035         (strfromf16): Likewise.
9036         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9037         (strfromf32): Likewise.
9038         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9039         (strfromf64): Likewise.
9040         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9041         (strfromf32x): Likewise.
9042         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9043         (strfromf64x): Likewise.
9044         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9045         (strfromf128x): Likewise.
9046         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
9047         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
9048         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
9049         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
9050         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
9051         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
9052
9053 2017-11-03  Richard Henderson  <rth@twiddle.net>
9054
9055         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
9056
9057 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9058
9059         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
9060
9061 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9062
9063         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
9064         DT_TLSDESC_GOT initialization.
9065         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
9066         (_dl_tlsdesc_resolve_hold): Likewise.
9067         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
9068         (_dl_tlsdesc_resolve_hold): Likewise.
9069         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
9070         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9071
9072 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9073
9074         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
9075
9076 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9077
9078         [BZ #18572]
9079         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
9080         non-lazily for R_ARM_TLS_DESC.
9081
9082 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9083
9084         [BZ #17078]
9085         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
9086         R_ARM_TLS_DESC case.
9087         (elf_machine_lazy_rel): Remove the prelink check.
9088
9089 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9090
9091         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
9092         DT_TLSDESC_GOT initialization.
9093         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
9094         (_dl_tlsdesc_resolve_rela): Likewise.
9095         (_dl_tlsdesc_resolve_hold): Likewise.
9096         (_dl_tlsdesc_undefweak): Remove ldar.
9097         (_dl_tlsdesc_dynamic): Likewise.
9098         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
9099         (_dl_tlsdesc_resolve_rela): Likewise.
9100         (_dl_tlsdesc_resolve_hold): Likewise.
9101         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
9102         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9103         (_dl_tlsdesc_resolve_rela): Likewise.
9104         (_dl_tlsdesc_resolve_hold): Likewise.
9105
9106 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9107
9108         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
9109         binding and initialization non-lazily for R_AARCH64_TLSDESC.
9110
9111 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9112
9113         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
9114         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9115
9116 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
9117
9118         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
9119         Declare.
9120         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
9121         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
9122         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
9123         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
9124         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
9125         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
9126         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
9127         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
9128         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
9129         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
9130         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
9131
9132 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
9133
9134         [BZ #22382]
9135         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
9136         * localedata/locales/tpi_PG: Add standard header.
9137
9138 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9139
9140         test-errno-linux: quotactl can fail with EPERM in containers.
9141         * sysdeps/unix/sysv/linux/test-errno-linux.c
9142         (LIST, LIST_FORWARD): New macros.
9143         (check_error_in_list): New function.
9144         (test_wrp_rv): Accept list of permitted error codes.
9145         (test_wrp_rv2): Remove.
9146         (test_wrp): Call test_wrp_rv with list of error codes.
9147         (test_wrp2): Accept list of error codes.
9148         (do_test): Adjust.  Allow EPERM for quotactl.
9149
9150 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9151
9152         * stdio-common/bug16.c (do_test): Use array_length.
9153         * stdio-common/errlist.c (_sys_nerr): Likewise.
9154         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
9155         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
9156         * stdio-common/psiginfo.c (psiginfo): Use array_length.
9157         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
9158         (do_test): Use array_length.
9159         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
9160         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
9161         * stdio-common/tst-printf-round.c (do_test): Likewise.
9162         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
9163         (CHECK): Use array_length.
9164         * stdio-common/tstdiomisc.c (t3, F): Likewise.
9165         * stdio-common/tstscanf.c (main): Likewise.
9166         * stdio-common/vfprintf.c (process_string_arg): Likewise.
9167
9168 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9169
9170         Add array_length and array_end macros.
9171         * include/array_length.h: New file.
9172
9173 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9174
9175         [BZ #22332]
9176         * posix/tst-glob-tilde.c (do_noescape): New variable.
9177         (one_test): Process it.
9178         (do_test): Set do_noescape.  Add unescaping test case.
9179
9180 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
9181
9182         * math/complex.h
9183         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
9184         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
9185         with appropriate macros defined and undefined.
9186         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
9187         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9188         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
9189         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9190         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
9191         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9192         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
9193         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9194         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
9195         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
9196
9197         * math/complex.h
9198         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
9199         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
9200         that for long double.  Do not condition define and undefine of
9201         _Mdouble_complex_ on [__CFLOAT128].
9202
9203 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
9204
9205         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
9206         of <sysdeps/generic/sysdep.h>.
9207         (ALIGNARG): Removed.
9208         (ASM_SIZE_DIRECTIVE): Likewise.
9209         (ENTRY): Likewise.
9210         (END): Likewise.
9211         (ENTRY_CHK): Likewise.
9212         (END_CHK): Likewise.
9213         (syscall_error): Likewise.
9214         (mcount): Likewise.
9215         (PSEUDO_END): Likewise.
9216         (L): Likewise.
9217         (atom_text_section): Likewise.
9218         * sysdeps/x86/sysdep.h: New file.
9219         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
9220         of <sysdeps/generic/sysdep.h>.
9221         (ALIGNARG): Removed.
9222         (ASM_SIZE_DIRECTIVE): Likewise.
9223         (ENTRY): Likewise.
9224         (END): Likewise.
9225         (ENTRY_CHK): Likewise.
9226         (END_CHK): Likewise.
9227         (syscall_error): Likewise.
9228         (mcount): Likewise.
9229         (PSEUDO_END): Likewise.
9230         (L): Likewise.
9231         (atom_text_section): Likewise.
9232
9233 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
9234
9235         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
9236         category of LC_CTYPE set to "i18n:2012".
9237         * localedata/locales/i18n_ctype: Regenerate.
9238
9239 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
9240
9241         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
9242         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
9243         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
9244         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
9245
9246         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
9247         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
9248         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
9249         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
9250
9251 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
9252
9253         * math/complex.h
9254         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
9255         New macro.
9256         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
9257         Likewise.
9258         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
9259         Likewise.
9260         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9261         (CMPLXF32X): Likewise.
9262         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9263         (CMPLXF64X): Likewise.
9264         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9265         (CMPLXF128X): Likewise.
9266
9267         * math/math.h
9268         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
9269         (__MATH_EVAL_FMT2): Define to add 0.0f.
9270
9271 2017-10-31  Alan Modra  <amodra@gmail.com>
9272
9273         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
9274         include sysdep.h.
9275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
9276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
9277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
9280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
9281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
9282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
9283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
9284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
9285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
9288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
9289         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
9290         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
9291         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
9292         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
9293         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
9294         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
9295         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
9296         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
9297         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
9298         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
9299         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
9300         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
9301         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
9302         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
9303         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
9304         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
9305         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
9306         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
9307         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
9308         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
9309         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
9310         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
9311         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
9312         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
9313         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
9314         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9315         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
9316         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
9317         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
9318         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
9319         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
9320         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
9321         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
9322         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
9323         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
9324         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
9325         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
9326         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
9327         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
9328         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
9329         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
9330         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
9331         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
9332         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
9333         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
9334         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
9335         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
9336         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
9337         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
9338         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9339         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
9340         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
9341         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
9342         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
9343         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
9344
9345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
9346         include sysdep.h and math_ldbl_opt.h.
9347
9348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
9349         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
9350         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
9351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
9352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
9353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
9354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
9355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
9356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
9357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
9358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
9359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
9360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
9361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
9362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
9363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
9364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
9365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
9366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
9367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
9368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
9369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
9370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
9371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
9372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
9373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
9374
9375 2017-10-31  Alan Modra  <amodra@gmail.com>
9376
9377         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
9378         string/strncase_l.c, not string/strncase.c.
9379         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
9380         (libc_hidden_def): Redefine.
9381
9382 2017-10-31  Alan Modra  <amodra@gmail.com>
9383
9384         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
9385         (__STRCMP, STRCMP, __strcasecmp_l): Define.
9386         (__strcasecmp): Don't define.
9387
9388 2017-10-31  Alan Modra  <amodra@gmail.com>
9389
9390         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
9391         IS_IN (libc).
9392         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
9393         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
9394         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
9395
9396 2017-10-31  Alan Modra  <amodra@gmail.com>
9397
9398         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
9399         USE_AS_STPNCPY.
9400
9401 2017-10-31  Alan Modra  <amodra@gmail.com>
9402
9403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
9404         Redefine only when SHARED.
9405
9406 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
9407
9408         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
9409         Include <bits/math-finite.h> with appropriate macros defined and
9410         undefined.
9411         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
9412         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
9413         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
9414         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
9415         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
9416
9417         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
9418         [!_Mlong_double_] (_Mlong_double_): Likewise.
9419         [!_Mfloat16_] (_Mfloat16_): Likewise.
9420         [!_Mfloat32_] (_Mfloat32_): Likewise.
9421         [!_Mfloat64_] (_Mfloat64_): Likewise.
9422         [!_Mfloat128_] (_Mfloat128_): Likewise.
9423         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
9424         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
9425         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
9426         (_Mdouble_): Define without indirection through those macros.
9427         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
9428         [!_Mfloat128_] (_Mfloat128_): Likewise.
9429         [_Mlong_double_] (_Mlong_double_): Likewise.
9430         (_Mdouble_): Define without indirection through those macros.
9431         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
9432         not add -D_Mlong_double_=double.
9433         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
9434         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
9435
9436 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
9437
9438         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
9439
9440 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
9441
9442         * sysdeps/x86/libc-start.c: Reformat.
9443
9444 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         [BZ #22353]
9447         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
9448         (1): Renamed to ...
9449         (L(Src0)): This.
9450         (L(Src1)): New.
9451         (L(Src2)): Likewise.
9452         (L(1)): Renamed to ...
9453         (L(Src3)): This.
9454
9455 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
9456
9457         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
9458         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
9459         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
9460         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
9461         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
9462         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
9463         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
9464         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
9465         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
9466         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
9467         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
9468         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
9469         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
9470         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
9471         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
9472         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
9473         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
9474         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
9475         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
9476         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
9477         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
9478         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
9479         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
9480         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
9481         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
9482         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
9483         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
9484         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
9485         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
9486         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
9487         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
9488         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
9489         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
9490         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
9491         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
9492         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
9493         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
9494         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
9495         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
9496         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
9497         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
9498         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
9499         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
9500         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
9501         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
9502         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
9503         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
9504         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
9505         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
9506         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
9507         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
9508         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
9509         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
9510         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
9511         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
9512         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
9513         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
9514         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
9515         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
9516         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
9517         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
9518         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
9519         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
9520         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
9521         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
9522         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
9523
9524 2017-10-30  Florian Weimer  <fweimer@redhat.com>
9525
9526         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
9527         always defined.
9528         * io/tst-mkdirat.c (do_test): Likewise.
9529         * io/tst-mkfifoat.c (do_test): Likewise.
9530         * io/tst-mknodat.c (do_test): Likewise.
9531         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
9532         * locale/programs/locale.c (select_dirs): Likewise.
9533         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
9534         * posix/bug-glob2.c (my_readdir): Likewise.
9535         * posix/tst-dir.c (main): Likewise.
9536         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
9537         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
9538
9539 2017-10-30  Florian Weimer  <fweimer@redhat.com>
9540
9541         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
9542         just __USE_GNU.
9543
9544 2017-10-30  Florian Weimer  <fweimer@redhat.com>
9545
9546         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
9547         Convert to support/test-driver.c.
9548         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
9549         New macro parameters.
9550         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
9551         * posix/tst-gnuglob.c: New file.
9552         * posix/tst-gnuglob64.c: Likewise.
9553         * posix/Makefile (tests): Add tst-gnuglob64.
9554
9555 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
9556
9557         [BZ #19485]
9558         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
9559         and use a better translation for March in “mon”.
9560         * localedata/locales/csb_PL: Use more ASCII to improve the
9561         readability of the source.
9562
9563 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
9564
9565         [BZ #13953]
9566         * localedata/locales/km_KH: Use ASCII as much
9567         as possible for better readability of the source and
9568         remove useless comments.
9569         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
9570         was commented out and apparently wrong anyway because it was
9571         using Lao characters. If Buddhist era should be used
9572         for km_KH, a native speaker should write the correct formaat
9573         for Khmer.
9574         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
9575         (According to CLDR, the first weekday for Cambodia is Sunday).
9576         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
9577         (These were using Lao characters which must be wrong. If we get
9578         the correct data from a native speaker, we could add it back, until
9579         then it is better not to have name_mr and name_mrs at all than
9580         having it wrong).
9581
9582 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
9583
9584         * locale/loadlocale.c: Correct size of
9585         _nl_value_type_LC_<category> arrays.
9586
9587 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
9588
9589         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
9590         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
9591         with appropriate macros defined and undefined.
9592         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
9593         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
9594         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
9595         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
9596         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
9597
9598 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
9599
9600         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
9601         "-O2 -march=i586".
9602
9603 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
9604
9605         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
9606         with lowercase letters to make it agree with CLDR.
9607
9608 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
9609
9610         [BZ #15260]
9611         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
9612         first letters of yesstr and nostr in yesexpr and noexpr,
9613         not for the full words.
9614         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
9615         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
9616         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
9617         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
9618         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
9619         first letters of yesstr and nostr in yesexpr and noexpr,
9620         until now only English was matched in yesexpr and noexpr.
9621         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
9622         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
9623         fil but not for tl. As tl and fil are very similar, using fil
9624         is probably better than using English.
9625
9626 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
9627
9628         [BZ #21706]
9629         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
9630         in yesstr and nostr.
9631
9632 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
9635         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
9636         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
9637         Likewise.
9638         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
9639         Likewise.
9640         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
9641         Likewise.
9642         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
9643         Likewise.
9644         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9645         (SNANF128X): Likewise.
9646
9647         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
9648         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
9649         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9650         (HUGE_VAL_F32): Likewise.
9651         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9652         (HUGE_VAL_F64): Likewise.
9653         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9654         (HUGE_VAL_F32X): Likewise.
9655         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9656         (HUGE_VAL_F64X): Likewise.
9657         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9658         (HUGE_VAL_F128X): Likewise.
9659
9660 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
9661
9662         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
9663         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
9664         for the br_FR locale.
9665
9666 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
9667
9668         [BZ #21706]
9669         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
9670
9671 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
9672
9673         * locale/programs/record-status.h: Define globals, and function
9674         prototypes. Move function bodies...
9675         * locale/programs/record-status.c: ... to here. New file.
9676         * iconv/Makefile (iconv_prog-modules): Add record-status.
9677         * locale/Makefile (lib-modules): Likewise.
9678         * iconv/iconv_prog.c: Remove verbose.
9679         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
9680         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
9681         record a warning about ASCII compatibility.
9682         * locale/programs/ld-monetary.c (monetary_finish): If
9683         warn_int_curr_symbol is true then record a warning about the symbol
9684         not being in our ISO 4217 list.
9685         * locale/programs/locale.c: Include record-status.h. Remove verbose.
9686         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
9687         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
9688         (OPT_NO_WARN): Define.
9689         (OPT_WARN): Define.
9690         (options): Add entry for --no-warnings, and --warnings.
9691         (set_warnings): New function to enable/disable warnings.
9692         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
9693         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
9694         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
9695         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
9696         Pass flags to generate_locale.
9697         (generate_locale): Accept new flag argument and pass it to localedef
9698         invocation.
9699         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
9700         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
9701
9702         * localedata/Makefile (test-input-data): Use full file name.
9703         * localedata/da_DK.in: Rename to...
9704         * localedata/da_DK.ISO-8859-1.in: ...this.
9705         * localedata/de_DE.in: Rename to...
9706         * localedata/de_DE.ISO-8859-1.in: ...this.
9707         * localedata/en_US.in: Rename to...
9708         * localedata/en_US.ISO-8859-1.in: ...this.
9709         * localedata/fr_FR.in: Rename to...
9710         * localedata/fr_FR.UTF-8.in: ... this.
9711         * localedata/hr_HR.in: Rename to...
9712         * localedata/hr_HR.ISO-8859-2.in: ...this.
9713         * localedata/hu_HU.in: Rename to...
9714         * localedata/hu_HU.UTF-8.in: ...this.
9715         * localedata/si_LK.in: Rename to...
9716         * localedata/si_LK.UTF-8.in: ...this.
9717         * localedata/sv_SE.in: Rename to...
9718         * localedata/sv_SE.ISO-8859-1.in: ...this.
9719         * localedata/tr_TR.in: Rename to...
9720         * localedata/tr_TR.UTF-8.in: ...this.
9721         * localedata/uk_UA.in: Rename to...
9722         * localedata/uk_UA.UTF-8.in: ...this.
9723         * localedata/sort-test.sh: Test file is locale name with the
9724         suffix.
9725
9726         * localedata/unicode-gen/Makefile (check_i18n): Rename to
9727         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
9728         file.
9729         * localedata/locales/i18n_ctype: Regenerate.
9730         * localedata/locales/tr_TR: Likewise.
9731         * localedata/locales/translit_circle: Likewise.
9732         * localedata/locales/translit_cjk_compat: Likewise.
9733         * localedata/locales/translit_combining: Likewise.
9734         * localedata/locales/translit_compat: Likewise.
9735         * localedata/locales/translit_font: Likewise.
9736         * localedata/locales/translit_fraction: Likewise.
9737
9738 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9739
9740         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
9741         lxvd2x/stxvd2x with lvx/stvx.
9742         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
9743
9744 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
9745
9746         * include/alloc_buffer.h: Replace "if if " with "if " in
9747         comments.
9748         * sysdeps/mips/memcpy.S: Likkewise.
9749         * sysdeps/mips/memset.S: Likewise.
9750         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
9751         Likewise.
9752         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
9753         Likewise.
9754         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
9755         Likewise.
9756
9757 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9758
9759         [BZ #15261]
9760         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
9761         yesexpr and noexpr.
9762         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
9763         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
9764         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
9765         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
9766         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
9767         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
9768         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
9769
9770 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9771
9772         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
9773         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
9774         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
9775         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
9776         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
9777         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
9778         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
9779         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
9780         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
9781         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
9782         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
9783         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
9784
9785 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9786
9787         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
9788         as possible for better readability of the source.
9789         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
9790         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
9791         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
9792         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
9793         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
9794         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
9795         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
9796         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
9797         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
9798         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
9799         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
9800         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
9801         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
9802         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
9803         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
9804         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
9805         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
9806         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
9807         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
9808         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
9809         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
9810         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
9811         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
9812         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
9813         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
9814         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
9815         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
9816         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
9817         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
9818         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
9819         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
9820         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
9821         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
9822         * localedata/locales/en_US (LC_MESSAGES): Likewise.
9823         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
9824         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
9825         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
9826         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
9827         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
9828         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
9829         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
9830         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
9831         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
9832         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
9833         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
9834         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
9835         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
9836         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
9837         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
9838         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
9839         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
9840         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
9841         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
9842         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
9843         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
9844         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
9845         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
9846         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
9847         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
9848         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
9849         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
9850         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
9851         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
9852         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
9853         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
9854         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
9855         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
9856         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
9857         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
9858         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
9859         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
9860         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
9861         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
9862         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
9863         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
9864         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
9865         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
9866         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
9867         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
9868         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
9869         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
9870         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
9871         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
9872         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
9873         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
9874         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
9875         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
9876         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
9877         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
9878         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
9879         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
9880         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
9881         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
9882         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
9883         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
9884         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
9885         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
9886         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
9887         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
9888         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
9889         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
9890         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
9891         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
9892         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
9893         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
9894         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
9895         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
9896         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
9897         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
9898         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
9899         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
9900         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
9901         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
9902         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
9903         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
9904         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
9905         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
9906         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
9907         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
9908         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
9909         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
9910         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
9911         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
9912         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
9913         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
9914         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
9915         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
9916         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
9917         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
9918         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
9919         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
9920         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
9921         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
9922         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
9923         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
9924         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
9925         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
9926         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
9927         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
9928         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
9929         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
9930         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
9931         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
9932         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
9933         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
9934         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
9935         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
9936         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
9937         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
9938         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
9939         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
9940         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
9941         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
9942         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
9943         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
9944         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
9945         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
9946         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
9947         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
9948         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
9949         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
9950         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
9951         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
9952         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
9953         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
9954         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
9955         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
9956         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
9957         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
9958         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
9959         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
9960         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
9961         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
9962         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
9963
9964 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9965
9966         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
9967         (Use first letters of yesstr and nostr correctly instead of using
9968         full words).
9969
9970 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9971
9972         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
9973         (Use first letters of yesstr and nostr correctly).
9974
9975 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9976
9977         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
9978         also check for the first characters of yesstr and nostr.
9979         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
9980         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
9981
9982 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9983
9984         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
9985         also check for Chinese characters.
9986
9987 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9988
9989         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
9990         match also for the contents of yesstr and nostr. As the first letter
9991         of yesstr and nostr is equal, checking only for the first letter
9992         is not enough.
9993
9994 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
9995
9996         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
9997         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
9998
9999 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10000
10001         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
10002         of main contributor.
10003
10004 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10005
10006         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
10007         instead of using English.
10008
10009 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10010
10011         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
10012         by including the first letters of nostr and yesexpr in the regexp.
10013         Also make it more readable by using ASCII where possible.
10014
10015 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10016
10017         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
10018         the first letter of nostr in the regexp. It agrees with CLDR now.
10019         Also make it more readable by using ASCII where possible.
10020
10021 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10022
10023         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
10024         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
10025         these strings contain a U+17D6 (which somewhat looks like a colon)
10026         instead of a real colon to separate the full words for “yes”
10027         and “no” from the single letter responses.
10028
10029 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10030
10031         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
10032         it agree with CLDR (include the first letter of yesstr).
10033         Also make it more readable by using ASCII where possible.
10034
10035 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10036
10037         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
10038         and improve yesexpr and noexpr. The yesstr and nostr apparently
10039         came from CLDR. And CLDR has a bug there: these strings contain
10040         a U+0903 (which looks like a colon) instead of a real colon
10041         to separate the full words for “yes” and “no” from the single
10042         letter responses.
10043
10044 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10045
10046         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
10047         letters of the full yesstr and nostr in yesexpr and noexpr.
10048
10049 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10050
10051         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
10052         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
10053         * localedata/locales/an_ES: Make source more readable by using ASCII
10054         where possible.
10055
10056 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10057
10058         [BZ #20952]
10059         * localedata/locales/yuw_PG: New file.
10060         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
10061         * locale/iso-639.def: Add Yau (Uruwa).
10062
10063 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10064
10065         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
10066
10067 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10068
10069         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
10070         (__libc_realloc): Likewise.
10071         (_mid_memalign): Likewise.
10072         (__libc_calloc): Likewise.
10073
10074 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
10075
10076         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
10077         by adding the generic +1 and -0 as in all other locales.
10078         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
10079         day names and make it more readable by using ASCII where possible.
10080
10081 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
10082
10083         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
10084         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
10085
10086 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10087
10088         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
10089         WNOHANG in waitpid call.
10090
10091 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10092
10093         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
10094         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
10095
10096         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
10097         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
10098         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
10099         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
10100         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
10101         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
10102         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
10103         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
10104         variables.
10105
10106 2017-10-23  Michael Collison  <michael.collison@arm.com>
10107
10108         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
10109         with __builtin_sqrt.
10110         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
10111         with __builtin_sqrtf.
10112         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
10113         with __builtin_ceil.
10114         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
10115         with __builtin_ceilf.
10116         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
10117         with __builtin_floor.
10118         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
10119         with __builtin_floorf.
10120         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
10121         with __builtin_fma.
10122         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
10123         with __builtin_fmaf.
10124         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
10125         with __builtin_fmax.
10126         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
10127         with __builtin_fmaxf.
10128         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
10129         with __builtin_fmin.
10130         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
10131         with __builtin_fminf.
10132         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
10133         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
10134         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
10135         with builtin_rint and conversion to int.
10136         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
10137         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
10138         with builtin_llround.
10139         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
10140         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
10141         with builtin_rint and conversion to long int.
10142         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
10143         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
10144         with builtin_lround.
10145         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
10146         with builtin_lroundf.
10147         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
10148         statements with __builtin_nearbyint.
10149         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
10150         statements with __builtin_nearbyintf.
10151         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
10152         with __builtin_rint.
10153         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
10154         with __builtin_rintf.
10155         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
10156         with __builtin_round.
10157         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
10158         with __builtin_roundf.
10159         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
10160         with __builtin_trunc.
10161         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
10162         with __builtin_truncf.
10163         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
10164         and s_l[l]round[f].c too.
10165
10166 2017-10-23  Alan Modra  <amodra@gmail.com>
10167
10168         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
10169         Adjust stack after restoring regs.  Add missing LR cfi_restore.
10170
10171 2017-10-23  Alan Modra  <amodra@gmail.com>
10172
10173         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
10174         Move LR save and frame setup/teardown and LR restore to
10175         immediately around memset call.  Provide cfi.
10176
10177 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10178
10179         * sysdeps/i386/fpu/e_powf.S: Removed.
10180         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
10181         * sysdeps/i386/fpu/w_powf.c: Likewise.
10182         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
10183         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10184         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10185         Add e_powf-sse2.
10186         (CFLAGS-e_powf-sse2.c): New.
10187         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
10188         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
10189
10190 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10191
10192         * sysdeps/i386/fpu/e_log2f.S: Removed.
10193         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
10194         * sysdeps/i386/fpu/w_log2f.c: Likewise.
10195         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
10196         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10197         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10198         Add e_log2f-sse2.
10199         (CFLAGS-e_log2f-sse2.c): New.
10200         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
10201         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
10202
10203 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10206         Add e_powf-fma.
10207         (CFLAGS-e_powf-fma.c): New.
10208         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
10209         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
10210
10211 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10212
10213         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10214         Add e_log2f-fma.
10215         (CFLAGS-e_log2f-fma.c): New.
10216         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
10217         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
10218
10219 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10220
10221         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10222         Add e_logf-fma.
10223         (CFLAGS-e_logf-fma.c): New.
10224         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
10225         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
10226
10227 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10228
10229         * sysdeps/i386/fpu/e_logf.S: Removed.
10230         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
10231         * sysdeps/i386/fpu/w_logf.c: Likewise.
10232         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
10233         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
10234         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10235         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10236         Add e_logf-sse2.
10237         (CFLAGS-e_logf-sse2.c): New.
10238         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
10239         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
10240
10241 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10242
10243         * sysdeps/i386/fpu/e_exp2f.S: Removed.
10244         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
10245         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
10246         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10247         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10248         Add e_exp2f-sse2.
10249         (CFLAGS-e_exp2f-sse2.c): New.
10250         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
10251         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
10252
10253 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10254
10255         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10256         Add e_exp2f-fma.
10257         (CFLAGS-e_exp2f-fma.c): New.
10258         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
10259         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
10260
10261 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10262
10263         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
10264         * sysdeps/i386/fpu/e_expf.S: Likewise.
10265         * sysdeps/i386/fpu/math_errf.c: Likewise.
10266         * sysdeps/i386/fpu/w_expf.c: Likewise.
10267         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
10268         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
10269         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
10270         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
10271         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10272         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
10273         Remove e_expf-ia32.
10274         (CFLAGS-e_expf-sse2.c): New.
10275         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
10276         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
10277
10278 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
10279
10280         * sysdeps/x86_64/fpu/e_expf.S: Removed.
10281         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
10282         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
10283         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
10284         e_expf.c.
10285         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
10286         New.
10287         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
10288         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
10289         Renamed to ...
10290         (__redirect_expf): This.
10291         (SYMBOL_NAME): Changed to expf.
10292         (__ieee754_expf): Renamed to ...
10293         (__expf): This.
10294         (__GI___expf): This.
10295         (__ieee754_expf): Add strong_alias.
10296         (__expf_finite): Likewise.
10297         (__expf): New.
10298         Include <sysdeps/ieee754/flt-32/e_expf.c>.
10299
10300 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10301
10302         [BZ #22332]
10303         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
10304         unescaping.
10305
10306 2017-10-21  Florian Weimer  <fweimer@redhat.com>
10307
10308         * posix/Makefile (tests): Add tst-glob-tilde.
10309         (tests-special): Add tst-glob-tilde-mem.out
10310         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
10311         (tst-glob-tilde-mem.out): Add mtrace check.
10312         * posix/tst-glob-tilde.c: New file.
10313
10314 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
10315
10316         * bits/floatn-common.h: New file.
10317         * math/Makefile (headers): Add bits/floatn-common.h.
10318         * bits/floatn.h: Include <bits/floatn-common.h>.
10319         * sysdeps/ia64/bits/floatn.h: Likewise.
10320         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
10321         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
10322         * sysdeps/powerpc/bits/floatn.h: Likewise.
10323         * sysdeps/x86/bits/floatn.h: Likewise.
10324
10325 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10326
10327         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
10328         indicates whether compiler emits an warning for alias for
10329         functions with incompatible types.
10330
10331         [BZ #22273]
10332         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
10333         the auxiliary process is terminated by a signal before calling _exit
10334         or execve.
10335
10336 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10337
10338         [BZ #21265]
10339         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
10340         New.
10341         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
10342         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
10343         and bit_arch_XSAVEC_Usable if needed.
10344         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
10345         and bit_arch_Use_dl_runtime_resolve_opt.
10346         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
10347         Removed.
10348         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
10349         (bit_arch_Prefer_No_AVX512): Updated.
10350         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
10351         (bit_arch_XSAVEC_Usable): New.
10352         (STATE_SAVE_OFFSET): Likewise.
10353         (STATE_SAVE_MASK): Likewise.
10354         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
10355         (cpu_features): Add xsave_state_size and xsave_state_full_size.
10356         (index_arch_Use_dl_runtime_resolve_opt): Removed.
10357         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
10358         (index_arch_XSAVEC_Usable): New.
10359         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10360         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
10361         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
10362         is enabled.
10363         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
10364         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
10365         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
10366         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
10367         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
10368         _dl_runtime_resolve_xsavec.
10369         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
10370         Removed.
10371         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
10372         instead of VEC_SIZE.
10373         (REGISTER_SAVE_BND0): Removed.
10374         (REGISTER_SAVE_BND1): Likewise.
10375         (REGISTER_SAVE_BND3): Likewise.
10376         (REGISTER_SAVE_RAX): Always defined to 0.
10377         (VMOV): Removed.
10378         (_dl_runtime_resolve_avx): Likewise.
10379         (_dl_runtime_resolve_avx_slow): Likewise.
10380         (_dl_runtime_resolve_avx_opt): Likewise.
10381         (_dl_runtime_resolve_avx512): Likewise.
10382         (_dl_runtime_resolve_avx512_opt): Likewise.
10383         (_dl_runtime_resolve_sse): Likewise.
10384         (_dl_runtime_resolve_sse_vex): Likewise.
10385         (USE_FXSAVE): New.
10386         (_dl_runtime_resolve_fxsave): Likewise.
10387         (USE_XSAVE): Likewise.
10388         (_dl_runtime_resolve_xsave): Likewise.
10389         (USE_XSAVEC): Likewise.
10390         (_dl_runtime_resolve_xsavec): Likewise.
10391         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
10392         Removed.
10393         (_dl_runtime_resolve_avx512_opt): Likewise.
10394         (_dl_runtime_resolve_avx): Likewise.
10395         (_dl_runtime_resolve_avx_opt): Likewise.
10396         (_dl_runtime_resolve_sse): Likewise.
10397         (_dl_runtime_resolve_sse_vex): Likewise.
10398         (_dl_runtime_resolve_fxsave): New.
10399         (_dl_runtime_resolve_xsave): Likewise.
10400         (_dl_runtime_resolve_xsavec): Likewise.
10401
10402 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         [BZ #22320]
10405         CVE-2017-15670
10406         * posix/glob.c (__glob): Fix one-byte overflow.
10407
10408 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
10409
10410         * malloc/malloc.c (sysdep-cancel.h): Add include.
10411
10412 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
10413
10414         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
10415
10416 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
10417
10418         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
10419         (tests): Remove $(objpfx)ga_test depdendency.
10420         * resolv/ga_test.c: Remove file.
10421
10422 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
10423
10424         [BZ #18812]
10425         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
10426         * localedata/locales/kab_DZ: New file.
10427
10428 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10429
10430         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
10431         _dl_relocate_static_pie instead of _dl_start to compute load
10432         address in static PIE.
10433
10434 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10435
10436         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
10437
10438 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
10439
10440         [BZ #13605]
10441         * localedata/SUPPORTED: Add shn_MM/UTF-8.
10442         * localedata/locales/shn_MM: New file.
10443
10444 2017-10-20  Florian Weimer  <fweimer@redhat.com>
10445
10446         [BZ #22321]
10447         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
10448         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
10449         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
10450         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
10451         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
10452         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
10453
10454 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10455
10456         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
10457
10458 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
10459
10460         * sysdeps/mips/ieee754/bits/floatn.h: New file.
10461
10462         [BZ #22322]
10463         * sysdeps/mips/bits/long-double.h: Move to ....
10464         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
10465
10466 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
10467
10468         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
10469
10470 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
10471             H.J. Lu  <hongjiu.lu@intel.com>
10472
10473         [BZ #22299]
10474         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10475         GLRO(dl_platform) to NULL.
10476         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
10477         (modules-names): Add tst-platformmod-1 and
10478         x86_64/tst-platformmod-2.
10479         (CFLAGS-tst-platform-1.c): New.
10480         (CFLAGS-tst-platformmod-1.c): Likewise.
10481         (CFLAGS-tst-platformmod-2.c): Likewise.
10482         (LDFLAGS-tst-platformmod-2.so): Likewise.
10483         ($(objpfx)tst-platform-1): Likewise.
10484         ($(objpfx)tst-platform-1.out): Likewise.
10485         (tst-platform-1-ENV): Likewise.
10486         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
10487         * sysdeps/x86_64/tst-platform-1.c: New file.
10488         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
10489         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
10490
10491 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
10492
10493         [BZ #13994]
10494         * locale/iso-639.def: Add Karbi.
10495         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
10496         * localedata/locales/mjw_IN: New file.
10497
10498 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
10499
10500         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
10501         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
10502         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
10503         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
10504         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
10505         (libm_alias_ldouble_other_r): Also create _Float128 alias.
10506         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
10507         <bits/floatn.h>.
10508         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
10509         (libm_alias_ldouble_other_r): Also create _Float128 alias.
10510         * manual/math.texi (Mathematics): Document additional architecture
10511         support for _Float128.
10512         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
10513         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10514         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10515         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10516         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10517         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10518         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10519         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10520         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10521         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10522         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10523         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10524         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10525         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10526         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10527
10528 2017-10-18  Renlin Li  <renlin.li@arm.com>
10529
10530         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
10531         _DYNAMIC symbol to calculate load address.
10532
10533 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
10534
10535         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
10536         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
10537         summary bits.
10538         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
10539         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
10540
10541 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
10542
10543         [BZ #16777]
10544         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
10545         and improve readability by using more ASCII.
10546         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
10547         and improve readability by using more ASCII.
10548
10549 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
10550
10551         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
10552         not all targets support atomics on bool.
10553
10554 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
10555
10556         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
10557         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
10558         __f128.
10559         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
10560         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
10561         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
10562         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
10563         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
10564         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
10565
10566 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10567
10568         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
10569         defines.
10570
10571 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
10572
10573         [BZ #22159]
10574         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
10575         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
10576         (do_check_remalloced_chunk): Fix build bug.
10577         (do_check_malloc_state): Add assert that checks arena->top.
10578         (malloc_consolidate): Remove initialization.
10579         (int_mallinfo): Remove call to malloc_consolidate.
10580          (__libc_mallopt): Clarify why malloc_consolidate is needed.
10581
10582 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
10583
10584         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
10585         (have_fastchunks): Remove.
10586         (clear_fastchunks): Remove.
10587         (set_fastchunks): Remove.
10588         (malloc_state): Add have_fastchunks.
10589         (malloc_init_state): Use have_fastchunks.
10590         (do_check_malloc_state): Remove incorrect invariant checks.
10591         (_int_malloc): Use have_fastchunks.
10592         (_int_free): Likewise.
10593         (malloc_consolidate): Likewise.
10594
10595 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
10596
10597         * malloc/malloc.c (tcache_put): Inline.
10598         (tcache_get): Inline.
10599
10600 2017-10-17  Jordi Mallach  <jordi@gnu.org>
10601
10602         Aurelien Jarno  <aurelien@aurel32.net>
10603         [BZ #2522]
10604         * localedata/locales/ca_ES@valencia: New file.
10605         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
10606
10607 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
10608
10609         [BZ #22296]
10610         * math/math.h: Let signbit use the builtin in C++ mode with gcc
10611         < 6.x
10612
10613 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10614
10615         * scripts/build-many-glibcs.py (Context.add_all_configs):
10616         Add arm-linux-gnueabihf multiarch extra_glibcs.
10617
10618         * sysdeps/generic/ifunc-init.h: New file.
10619         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
10620
10621 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
10622
10623         [BZ #22019]
10624         * localedata/locales/el_GR: Set n_cs_precedes to 0.
10625         * localedata/locales/el_CY: copy "el_GR" because it is identical.
10626         * stdlib/tst-strfmon_l.c: adapt test case.
10627
10628 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
10629
10630         * sysdeps/generic/float128-abi.h: New file.
10631         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
10632         non-__prefixed symbols to ....
10633         * math/Versions: ... here.  Include <float128-abi.h>.
10634         * stdlib/Versions ... and here.  Include <float128-abi.h>
10635
10636 2017-10-16  Florian Weimer  <fweimer@redhat.com>
10637
10638         * version.h (VERSION): Switch to ".9000" as the development
10639         version suffix.
10640
10641 2017-10-16  Florian Weimer  <fweimer@redhat.com>
10642
10643         [BZ #22050]
10644         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
10645         compat_symbol_reference to access non-default version.
10646
10647 2017-10-16  Florian Weimer  <fweimer@redhat.com>
10648
10649         * malloc/Makefile (others-extras): Set to mcheck-init.o.
10650
10651 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
10652
10653         * include/shlib-compat.h (compat_symbol_reference): Update
10654         comment.
10655
10656 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
10657
10658         * math/Makefile (test-types): Add
10659         $(type-float128-$(float128-alias-fcts)).
10660         * math/test-float128.h (TYPE_STR): Define conditional on
10661         [FLT128_MANT_DIG == LDBL_MANT_DIG].
10662         (ULP_IDX): Likewise.
10663         (ULP_I_IDX): Likewise.
10664
10665         * stdlib/strtold.c: Include <bits/floatn.h>
10666         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
10667         and later undefine as macro.  Define as weak alias if
10668         [!USE_WIDE_CHAR].
10669         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
10670         and later undefine as macro.  Define as weak alias if
10671         [USE_WIDE_CHAR].
10672         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
10673         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
10674         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
10675         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
10676         Define and later undefine as macro.  Define as weak alias if
10677         [USE_WIDE_CHAR].
10678         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
10679         <bits/floatn.h>.
10680         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
10681         Define and later undefine as macro.  Define as weak alias if
10682         [!USE_WIDE_CHAR].
10683         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
10684         Define and later undefine as macro.  Define as weak alias if
10685         [USE_WIDE_CHAR].
10686
10687 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
10688
10689         * localedata/collate-test.c (allocate_arrays): Don't use \n in
10690         record_verbose messages.
10691
10692 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10693
10694         [BZ #22052]
10695         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
10696         to silence -O3 -Wall warning with GCC 7.
10697
10698 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10699
10700         * Makeconfig (+link-static-before-libc): Use the first of
10701         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
10702         * gmon/Makefile (tests): Add tst-gmon-static.
10703         (tests-static): Likewise.
10704         (CFLAGS-tst-gmon-static.c): New.
10705         (CRT-tst-gmon-static): Likewise.
10706         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
10707         (tst-gmon-static-ENV): Likewise.
10708         (tests-special): Likewise.
10709         ($(objpfx)tst-gmon-static.out): Likewise.
10710         (clean-tst-gmon-static-data): Likewise.
10711         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
10712         * gmon/tst-gmon-static-gprof.sh: New file.
10713         * gmon/tst-gmon-static.c: Likewise.
10714
10715 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
10716
10717         [BZ #22295]
10718         * locale/programs/linereader.c (get_string): Don't warn on
10719         non-symbolic character.
10720
10721         [BZ #22294]
10722         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
10723         int_curr_symbol.
10724
10725         [BZ #22292]
10726         * locale/programs/record-status.h: New file
10727         * locale/programs/locale.c: Add comment.
10728         * locale/programs/charmap-dir.c: Don't include error.h.
10729         (charmap_opendir): Use record_error.
10730         * locale/programs/charmap.c: Don't include error.h.
10731         (charmap_read): Use record_error, and record_warning.
10732         (parse_charmap): Likewise.
10733         * locale/programs/ld-address.c: Don't include error.h.
10734         (address_finish): Use record_error, and record_warning.
10735         * locale/programs/ld-collate.c: Don't include error.h.
10736         (collate_finish): Use record_error, and record_error_at_line.
10737         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
10738         (ctype_class_new): Likewise.
10739         (ctype_map_new): Likewise.
10740         (set_one_default): Likewise.
10741         (set_class_defaults): Likewise.
10742         (translit_flatten): Likewise.
10743         (allocate_arrays): Use record_error, and record_verbose.
10744         * locale/programs/ld-identification.c: Don't include error.h.
10745         (indentation_finish): Use record_error and record_warning.
10746         * locale/programs/ld-measurement.c: Don't include error.h.
10747         (measurement_finish): Use record_error.
10748         * locale/programs/ld-messages.c
10749         (message_finish): Likewise.
10750         * locale/programs/ld-monetary.c
10751         (monetary_finish): Likewise.
10752         * locale/programs/ld-name.c (name_finish): Use record_error
10753         and record_warning.
10754         * locale/programs/ld-numeric.c
10755         (numeric_finish): Use record_error.
10756         * locale/programs/ld-paper.c: Don't include error.h.
10757         (paper_finish): Use record_error.
10758         * locale/programs/ld-telephone.c: Don't include error.h.
10759         (telephone_finish): Use record_error.
10760         * locale/programs/ld-time.c (time_finish): Likewise.
10761         * locale/programs/linereader.h (lr_error): Make inline func.
10762         * locale/programs/localedef.c: Define recorded_warning_count,
10763         and recorded_error_count.
10764         (main): Use record_error. Use recorded_error_count and
10765         recorded_warning_count to issue correct error returns.
10766         (add_to_readlist): Use record_error.
10767         (find_locale): Likewise.
10768         (load_locale): Likewise.
10769         * locale/programs/localedef.h: Remove be_quiet
10770         and WITH_CUR_LOCALE.
10771         * locale/programs/locarchive.c (compare_from_file): Use
10772         record_error.
10773         * locale/programs/locfile.c (write_locale_data): Use
10774         record_error.
10775         * locale/programs/repertoire.c: Dont include error.h.
10776         (repertoire_complain): Use record_error.
10777         * localedata/tst-fmon.sh: Expect failures from localedef.
10778         * localedata/tst-locale.sh: Likewise.
10779         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
10780
10781         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
10782         (REPORTS): Likewise.
10783         (check): Likewise.
10784         (i18n): Rename to...
10785         (i18n_ctype): ...this.
10786         (i18n-report): Rename to...
10787         (i18n_ctype-report): ...this.
10788         * localedata/locales/i18n_ctype: Regenerate.
10789         * localedata/locales/i18n: copy i18n_ctype.
10790
10791 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
10792
10793         * stdlib/strfroml.c: Include <bits/floatn.h>.
10794         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
10795         Define before include of <stdlib.h> and undefine afterwards, then
10796         define as weak alias.
10797
10798         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
10799         Undefine and restore default definition.  Use
10800         libm_alias_ldouble_other.
10801
10802 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
10803
10804         [BZ #22153]
10805         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
10806         in coredumps.
10807
10808 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
10809
10810         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10811         Assign sym_map to be map for local symbols, as TLS relocations
10812         use sym_map to determine whether the symbol is defined and to
10813         extract the TLS information.
10814         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10815         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10816
10817 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10818
10819         [BZ #22189]
10820         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
10821         (math_force_eval): Add powerpc version.
10822
10823         [BZ #22142]
10824         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
10825         -DBL_MAX.
10826         (do_test): Likewise.
10827         * stdio-common/tst-printf.sh: Likewise.
10828         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
10829         ifdef clause in order to set the carry bit right.  Replace r0 by
10830         0 without changing the behavior.
10831
10832 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
10833
10834         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
10835         <libm-alias-ldouble.h>.
10836         (fabsl): Define using libm_alias_ldouble.
10837         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
10838         <libm-alias-ldouble.h>.
10839         (fabsl): Define using libm_alias_ldouble.
10840
10841         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
10842         Remove conditional code.
10843
10844         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
10845         Rename to __clog10_internal_l.
10846         (__clog10_internal_l): Define aliases using
10847         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
10848         with __clog10.
10849
10850 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10851
10852         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
10853         * benchtests/sincosf-inputs: New file.
10854         * benchtests/cosf-inputs: New file.
10855         * benchtests/sinf-inputs: New file.
10856
10857 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10858
10859         * posix/tst-spawn.c (do_test): Wait for both children.
10860
10861 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10862
10863         [BZ #22284]
10864         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
10865         tests-pie): Add tst-gmon-pie.
10866         (CFLAGS-tst-gmon-pie.c): New.
10867         (CRT-tst-gmon-pie): Likewise.
10868         (tst-gmon-pie-ENV): Likewise.
10869         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
10870         ($(objpfx)tst-gmon-pie.out): Likewise.
10871         (clean-tst-gmon-pie-data): Likewise.
10872         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
10873         * gmon/gmon.c [PIC]: Include <link.h>.
10874         [PIC] (callback): New function.
10875         (write_hist): Add an argument for load address.  Subtract load
10876         address from PCs.
10877         (write_call_graph): Likewise.
10878         (write_gmon): Call __dl_iterate_phdr to get load address, pass
10879         it to write_hist and write_call_graph.
10880         * gmon/tst-gmon-pie.c: New file.
10881
10882 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * math/Makefile (test-types-basic): New variable.
10885         (test-types): Likewise.
10886         (libm-test-support): Use $(test-types) instead of $(types).
10887         (libm-tests-base-normal): Likewise.
10888         (libm-tests-base-finite): Likewise.
10889         (libm-tests-base-inline): Likewise.
10890         (generated): Likewise.
10891         ($(objpfx)libm-test-support-$(t).c): Likewise.
10892         (libm-tests-for-type iterator): Likewise.
10893         (libm-test-support iterator): Likewise.
10894         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
10895         (ulp_idx): Use ULP_IDX.
10896         * math/test-ldouble.h: Include <float.h>.
10897         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
10898         (ULP_IDX): New macro.
10899         (ULP_I_IDX): Likewise.
10900         * math/test-double.h (ULP_IDX): Likewise.
10901         (ULP_I_IDX): Likewise.
10902         * math/test-float.h (ULP_IDX): Likewise.
10903         (ULP_I_IDX): Likewise.
10904         * math/test-float128.h (ULP_IDX): Likewise.
10905         (ULP_I_IDX): Likewise.
10906
10907 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10908
10909         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
10910         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
10911         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
10912         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
10913         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
10914         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
10915         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
10916         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
10917         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
10918         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
10919         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
10920         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
10921         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
10922         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
10923         (SINGLE_THREAD_BY_GLOBAL): Define.
10924         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
10925         Likewise.
10926         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
10927         Likewise.
10928         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
10929         Likewise.
10930         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
10931         Likewise.
10932         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
10933         (SINGLE_THREAD_BY_GLOBAL): Likewise.
10934         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
10935         Likewise.
10936
10937 2017-10-11  Andreas Schwab  <schwab@suse.de>
10938
10939         * nis/Makefile (aux): Remove.
10940         * nscd/Makefile (aux): Add nscd_hash.
10941         (nscd-modules): Likewise.
10942         ($(objpfx)nscd): Don't depend on libnsl.
10943         * nscd/nscd_hash.c: New file.
10944         * nscd/nscd_hash.h: Likewise.
10945         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
10946         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
10947         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
10948         instead of <nis/rpcsvc/nis.h>.
10949         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
10950
10951 2017-10-11  Florian Weimer  <fweimer@redhat.com>
10952
10953         [BZ #22078]
10954         Avoid large NSS buffers with many addresses, aliases.
10955         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
10956         using dynarrays and struct alloc_buffer.
10957         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
10958         (tst-nss-files-hosts-multi): Link with -ldl.
10959         * nss/tst-nss-files-hosts-multi.c: New file.
10960
10961 2017-10-11  Florian Weimer  <fweimer@redhat.com>
10962
10963         [BZ #18023]
10964         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
10965         scratch_buffer.  Eliminate gotos.
10966
10967 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
10968
10969         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
10970         libm_alias_ldouble_other.
10971         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
10972         undefine and redefine.
10973         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
10974         (exp10l): Do not define here.
10975         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
10976         (weak_alias): Undefine and redefine.
10977         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
10978         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
10979         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
10980         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
10981
10982         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
10983         [!__fma] (fma): Define using libm_alias_double.
10984         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
10985         [!__fmaf] (fmaf): Define using libm_alias_float.
10986         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
10987         (fmal): Define using libm_alias_ldouble.
10988
10989 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
10992         New macro.
10993         (libm_alias_double_other): Likewise.
10994         (libm_alias_double_r): Use libm_alias_double_other_r.
10995         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
10996         New macro.
10997         (libm_alias_float_other): Likewise.
10998         (libm_alias_float_r): Use libm_alias_float_other_r.
10999         * sysdeps/generic/libm-alias-float128.h
11000         (libm_alias_float128_other_r): New macro.
11001         (libm_alias_float128_other): Likewise.
11002         (libm_alias_float128_r): Use libm_alias_float128_other_r.
11003         * sysdeps/generic/libm-alias-ldouble.h
11004         (libm_alias_ldouble_other_r): New macro.
11005         (libm_alias_ldouble_other): Likewise.
11006         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11007         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
11008         (libm_alias_double_other_r): New macro.
11009         (libm_alias_double_other): Likewise.
11010         (libm_alias_double_r): Use libm_alias_double_other_r.
11011         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
11012         (libm_alias_ldouble_other_r): New macro.
11013         (libm_alias_ldouble_other): Likewise.
11014         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11015         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
11016         [!USE_AS_COMPAT]: Use libm_alias_double_other.
11017         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
11018         [!USE_AS_COMPAT]: Use libm_alias_float_other.
11019         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
11020         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
11021         * math/w_exp2f.c: Use libm_alias_float_other.
11022         * math/w_expf.c: Likewise.
11023         * math/w_log2f.c: Likewise.
11024         * math/w_logf.c: Likewise.
11025         * math/w_powf.c: Likewise.
11026         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
11027         [!__exp2f]: Use libm_alias_float_other.
11028         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
11029         [!__expf]: Use libm_alias_float_other.
11030         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
11031         [!__log2f]: Use libm_alias_float_other.
11032         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
11033         [!__logf]: Use libm_alias_float_other.
11034         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
11035         [!__powf]: Use libm_alias_float_other.
11036
11037 2017-10-10  Florian Weimer  <fweimer@redhat.com>
11038
11039         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
11040         function.
11041         (_nss_files_gethostbyname3_r): Call it.
11042
11043 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11044
11045         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
11046         error.  Remove default definition of declare_mgen_alias.
11047         [!declare_mgen_alias_r]: Likewise.
11048         * sysdeps/generic/math-type-macros-double.h
11049         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
11050         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
11051         (declare_mgen_alias_r): Likewise.
11052         * sysdeps/generic/math-type-macros-float128.h
11053         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11054         * sysdeps/generic/math-type-macros-ldouble.h
11055         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11056         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
11057         macro.
11058         (declare_mgen_alias_r_s): Likewise.
11059         (declare_mgen_alias_r): Likewise.
11060         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
11061         (lgamma_r): Define using libm_alias_double_r.
11062         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
11063         (lgammaf_r): Define using libm_alias_float_r.
11064         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
11065         (lgammal_r): Define using libm_alias_ldouble_r.
11066         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
11067         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
11068
11069 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11070
11071         * lib/glob.c (__glob_pattern_type): Remove now-spurious
11072         extern declaration.
11073
11074 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11075
11076         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
11077
11078 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
11079
11080         [BZ #21326]
11081         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
11082         [__cplusplus >= 201103] (__USE_ISOC99): Define.
11083         * math/Makefile (test-math-cxx11): New test.
11084         * math/test-math-cxx11.cc: New file.
11085
11086 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
11087
11088         * login/openpty.c (openpty): Close slave pty file descriptor on error.
11089
11090         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
11091         call to allocate the slave pty file descriptor.
11092
11093 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
11094
11095         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
11096         [!__fma] (fma): Define using libm_alias_double.
11097         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
11098         [!__fma] (fma): Define using libm_alias_double.
11099
11100         * sysdeps/ieee754/float128/float128_private.h: Include
11101         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
11102         (libm_alias_ldouble_r): Undefine and redefine.
11103         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
11104         <libm-alias-ldouble.h>.
11105         (asinhl): Define using libm_alias_ldouble.
11106         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
11107         <libm-alias-ldouble.h>.
11108         (atanl): Define using libm_alias_ldouble.
11109         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
11110         <libm-alias-ldouble.h>.
11111         (cbrtl): Define using libm_alias_ldouble.
11112         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
11113         <libm-alias-ldouble.h>.
11114         (ceill): Define using libm_alias_ldouble.
11115         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
11116         <libm-alias-ldouble.h>.
11117         (copysignl): Define using libm_alias_ldouble.
11118         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
11119         <libm-alias-ldouble.h>.
11120         (cosl): Define using libm_alias_ldouble.
11121         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
11122         <libm-alias-ldouble.h>.
11123         (erfl): Define using libm_alias_ldouble.
11124         (erfcl): Likewise.
11125         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
11126         <libm-alias-ldouble.h>.
11127         (expm1l): Define using libm_alias_ldouble.
11128         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
11129         <libm-alias-ldouble.h>.
11130         (fabsl): Define using libm_alias_ldouble.
11131         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
11132         <libm-alias-ldouble.h>.
11133         (floorl): Define using libm_alias_ldouble.
11134         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
11135         <libm-alias-ldouble.h>.
11136         (fmal): Define using libm_alias_ldouble.
11137         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
11138         <libm-alias-ldouble.h>.
11139         (frexpl): Define using libm_alias_ldouble.
11140         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
11141         libm_alias_ldouble.
11142         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
11143         <libm-alias-ldouble.h>.
11144         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
11145         libm_alias_ldouble.
11146         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
11147         <libm-alias-ldouble.h>.
11148         (getpayloadl): Define using libm_alias_ldouble.
11149         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
11150         <libm-alias-ldouble.h>.
11151         (llrintl): Define using libm_alias_ldouble.
11152         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
11153         <libm-alias-ldouble.h>.
11154         (llroundl): Define using libm_alias_ldouble.
11155         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
11156         <libm-alias-ldouble.h>.
11157         (logbl): Define using libm_alias_ldouble.
11158         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
11159         <libm-alias-ldouble.h>.
11160         (lrintl): Define using libm_alias_ldouble.
11161         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
11162         <libm-alias-ldouble.h>.
11163         (lroundl): Define using libm_alias_ldouble.
11164         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
11165         <libm-alias-ldouble.h>.
11166         (modfl): Define using libm_alias_ldouble.
11167         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
11168         <libm-alias-ldouble.h>.
11169         (nearbyintl): Define using libm_alias_ldouble.
11170         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
11171         <libm-alias-ldouble.h>.
11172         (nextafterl): Define using libm_alias_ldouble.
11173         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
11174         <libm-alias-ldouble.h>.
11175         (nextupl): Define using libm_alias_ldouble.
11176         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
11177         <libm-alias-ldouble.h>.
11178         (remquol): Define using libm_alias_ldouble.
11179         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
11180         <libm-alias-ldouble.h>.
11181         (rintl): Define using libm_alias_ldouble.
11182         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
11183         <libm-alias-ldouble.h>.
11184         (roundevenl): Define using libm_alias_ldouble.
11185         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
11186         <libm-alias-ldouble.h>.
11187         (roundl): Define using libm_alias_ldouble.
11188         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
11189         using libm_alias_ldouble.
11190         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
11191         <libm-alias-ldouble.h>.
11192         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
11193         Define using libm_alias_ldouble.
11194         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
11195         <libm-alias-ldouble.h>.
11196         (sincosl): Define using libm_alias_ldouble.
11197         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
11198         <libm-alias-ldouble.h>.
11199         (sinl): Define using libm_alias_ldouble.
11200         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
11201         <libm-alias-ldouble.h>.
11202         (tanhl): Define using libm_alias_ldouble.
11203         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
11204         <libm-alias-ldouble.h>.
11205         (tanl): Define using libm_alias_ldouble.
11206         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
11207         <libm-alias-ldouble.h>.
11208         (totalorderl): Define using libm_alias_ldouble.
11209         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
11210         <libm-alias-ldouble.h>.
11211         (totalordermagl): Define using libm_alias_ldouble.
11212         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
11213         <libm-alias-ldouble.h>.
11214         (truncl): Define using libm_alias_ldouble.
11215         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
11216         libm_alias_ldouble.
11217         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
11218         libm_alias_ldouble.
11219         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
11220         <libm-alias-ldouble.h>.
11221         (weak_alias): Do not undefine and redefine.
11222         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11223         (copysignl): Define with long_double_symbol only if [IS_IN
11224         (libc)].
11225         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
11226         <libm-alias-ldouble.h>.
11227         (weak_alias): Do not undefine and redefine.
11228         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11229         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
11230         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
11231         <libm-alias-ldouble.h>.
11232         (weak_alias): Do not undefine and redefine.
11233         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
11234         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
11235         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
11236         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
11237         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
11238         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
11239         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
11240         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
11241         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
11242         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
11243         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
11244         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
11245         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
11246         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
11247         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
11248         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
11249         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
11250         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
11251         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
11252         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
11253         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
11254         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
11255         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
11256         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
11257         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
11258         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
11259
11260 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
11261
11262         [BZ #22111]
11263         * malloc/malloc.c (tcache_shutting_down): Use bool type.
11264         (tcache_thread_freeres): Set tcache_shutting_down before
11265         freeing the tcache.
11266         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
11267         * malloc/tst-malloc-tcache-leak.c: New file.
11268
11269 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11270
11271         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
11272         back to powerpc32 file.
11273         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
11274         (memrchr): Add __memrchr_power8 to ifunc list.
11275         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
11276         extra bytes for unaligned inputs.
11277
11278 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
11279
11280         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
11281         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
11282         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
11283         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
11284         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
11285
11286 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
11287
11288         * sysdeps/arm/libm-test-ulps: Update.
11289
11290         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
11291         <libm-alias-ldouble.h>.
11292         (asinhl): Define using libm_alias_ldouble.
11293         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
11294         <libm-alias-ldouble.h>.
11295         (cbrtl): Define using libm_alias_ldouble.
11296         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
11297         <libm-alias-ldouble.h>.
11298         (copysignl): Define using libm_alias_ldouble.
11299         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
11300         <libm-alias-ldouble.h>.
11301         (cosl): Define using libm_alias_ldouble.
11302         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
11303         <libm-alias-ldouble.h>.
11304         (erfl): Define using libm_alias_ldouble.
11305         (erfcl): Likewise.
11306         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
11307         <libm-alias-ldouble.h>.
11308         (fmal): Define using libm_alias_ldouble.
11309         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
11310         <libm-alias-ldouble.h>.
11311         (frexpl): Define using libm_alias_ldouble.
11312         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
11313         libm_alias_ldouble.
11314         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
11315         <libm-alias-ldouble.h>.
11316         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
11317         libm_alias_ldouble.
11318         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
11319         <libm-alias-ldouble.h>.
11320         (getpayloadl): Define using libm_alias_ldouble.
11321         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
11322         <libm-alias-ldouble.h>.
11323         (llrintl): Define using libm_alias_ldouble.
11324         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
11325         <libm-alias-ldouble.h>.
11326         (llroundl): Define using libm_alias_ldouble.
11327         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
11328         <libm-alias-ldouble.h>.
11329         (lrintl): Define using libm_alias_ldouble.
11330         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
11331         <libm-alias-ldouble.h>.
11332         (lroundl): Define using libm_alias_ldouble.
11333         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
11334         <libm-alias-ldouble.h>.
11335         (modfl): Define using libm_alias_ldouble.
11336         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
11337         <libm-alias-ldouble.h>.
11338         (nextupl): Define using libm_alias_ldouble.
11339         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
11340         <libm-alias-ldouble.h>.
11341         (remquol): Define using libm_alias_ldouble.
11342         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
11343         <libm-alias-ldouble.h>.
11344         (roundevenl): Define using libm_alias_ldouble.
11345         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
11346         <libm-alias-ldouble.h>.
11347         (roundl): Define using libm_alias_ldouble.
11348         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
11349         using libm_alias_ldouble.
11350         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
11351         <libm-alias-ldouble.h>.
11352         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
11353         <libm-alias-ldouble.h>.
11354         (setpayloadsigl): Define using libm_alias_ldouble.
11355         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
11356         <libm-alias-ldouble.h>.
11357         (sincosl): Define using libm_alias_ldouble.
11358         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
11359         <libm-alias-ldouble.h>.
11360         (sinl): Define using libm_alias_ldouble.
11361         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
11362         <libm-alias-ldouble.h>.
11363         (tanhl): Define using libm_alias_ldouble.
11364         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
11365         <libm-alias-ldouble.h>.
11366         (tanl): Define using libm_alias_ldouble.
11367         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
11368         <libm-alias-ldouble.h>.
11369         (totalorderl): Define using libm_alias_ldouble.
11370         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
11371         <libm-alias-ldouble.h>.
11372         (totalordermagl): Define using libm_alias_ldouble.
11373         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
11374         libm_alias_ldouble.
11375         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
11376         libm_alias_ldouble.
11377
11378 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11379
11380         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11381         memmove_falkor.
11382         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11383         (__libc_ifunc_impl_list): Likewise.
11384         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
11385         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
11386
11387         * benchtests/bench-memmove-walk.c: New file.
11388         * benchtests/Makefile (string-benchset): Add it.
11389
11390         * benchtests/bench-memset-walk.c: New file.
11391         * benchtests/Makefile (string-benchset): Add it.
11392
11393         * benchtests/bench-memcpy-walk.c: New file.
11394         * benchtests/Makefile (string-benchset): Add it.
11395
11396 2017-10-05  Florian Weimer  <fweimer@redhat.com>
11397
11398         nscd: Eliminate compilation time dependency in the build output.
11399         * nscd/nscd_stat.c (STATDATA_VERSION)
11400         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
11401         (STATDATA_VERSION_FULL): New macro definitions.
11402         (compilation): Remove.
11403         (struct statdata): Adjust version member.
11404         (send_stats): Set version from STATDATA_VERSION_FULL.
11405         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
11406
11407 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
11408
11409         * configure.ac (--enable-add-ons): Remove option.
11410         (machine): Do not mention add-ons in comment.
11411         (LIBC_PRECONFIGURE): Likewise.
11412         (add_ons): Remove variable and sanity checks and logic to locate
11413         add-ons.
11414         (add_ons_automatic): Remove variable.
11415         (configured_add_ons): Likewise.
11416         (add_ons_sfx): Likewise.
11417         (add_ons_pfx): Likewise.
11418         (add_on_subdirs): Likewise.
11419         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
11420         consideration of add-ons in Implies handling.
11421         (sysdeps_add_ons): Likewise.
11422         * configure: Regenerated.
11423         * libidn/configure.ac: Remove.
11424         * libidn/configure: Likewise.
11425         * sysdeps/unix/inet/configure.ac: New file.
11426         * sysdeps/unix/inet/configure: New generated file.
11427         * sysdeps/unix/inet/Subdirs: Add libidn.
11428         * Makeconfig (sysdeps-srcdirs): Remove variable.
11429         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
11430         ($(common-objpfx)config.status): Do not depend on add-on files.
11431         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
11432         comment.
11433         (all-subdirs): Do not include $(add-on-subdirs).
11434         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
11435         * config.make.in (add-ons): Remove variable.
11436         (add-on-subdirs): Likewise.
11437         (sysdeps-add-ons): Likewise.
11438         * manual/Makefile (add-chapters): Remove.
11439         ($(objpfx)texis): Do not depend on $(add-chapters).
11440         (nonexamples): Do not handle $(add-chapters).
11441         (examples): Do not handle $(add-ons).
11442         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
11443         libc-texinfo.sh.
11444         * manual/install.texi (Installation): Do not mention add-ons.
11445         (--enable-add-ons): Do not document configure option.
11446         * INSTALL: Regenerated.
11447         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
11448         * manual/maint.texi (Hierarchy Conventions): Do not mention
11449         add-ons.
11450         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
11451         --enable-add-ons.
11452         * scripts/gen-sorted.awk: Do not handle Subdirs files from
11453         add-ons.
11454         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
11455         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
11456
11457 2017-10-05  Andreas Schwab  <schwab@suse.de>
11458
11459         [BZ #15142]
11460         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
11461         (_IO_flush_all_lockp): Always lock list_all_lock.
11462         (_IO_flush_all_linebuffered): Likewise.
11463         (_IO_unbuffer_all): Likewise.
11464
11465 2017-10-05  Florian Weimer  <fweimer@redhat.com>
11466
11467         [BZ #15436]
11468         Do not flush stdio streams on abort.
11469         * stdlib/abort.c (fflush): Remove macro definition.
11470         (abort): Remove stages related to stdio flushing.
11471
11472 2017-10-05  Florian Weimer  <fweimer@redhat.com>
11473
11474         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
11475
11476 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
11477
11478         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11479
11480 2017-10-05  Florian Weimer  <fweimer@redhat.com>
11481
11482         * support/support_format_hostent.c (support_format_hostent): Add
11483         more error information for NETDB_INTERNAL.
11484
11485 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
11486
11487         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
11488         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
11489         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
11490         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
11491         AC_DEFINE if multi-arch is enabled.
11492         * sysdeps/i386/configure: Regenerated.
11493
11494 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
11495
11496         * Makeconfig (+link-static-before-libc): Use
11497         $(DEFAULT-LDFLAGS-$(@F)).
11498         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
11499         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
11500         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
11501
11502 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
11503
11504         * elf/Makefile (tests): Add tst-main1.
11505         (modules-names): Add tst-main1mod.
11506         ($(objpfx)tst-main1): New.
11507         (CRT-tst-main1): Likewise.
11508         (LDFLAGS-tst-main1): Likewise.
11509         (LDLIBS-tst-main1): Likewise.
11510         (tst-main1mod.so-no-z-defs): Likewise.
11511         * elf/tst-main1.c: New file.
11512         * elf/tst-main1mod.c: Likewise.
11513
11514 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
11515
11516         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
11517
11518 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
11519
11520         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
11521         (fma): Define using libm_alias_double.
11522         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
11523         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
11524         <math_ldbl_opt.h>.
11525         (fmal): Do not define as compat symbol here.
11526         * sysdeps/alpha/fpu/s_fma.c: New file.
11527
11528 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11529
11530         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
11531
11532 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
11533
11534         [BZ #22229]
11535         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
11536         <math_ldbl_opt.h>
11537         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
11538         and libc.
11539         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
11540         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
11541         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
11542         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
11543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11544         Include <math_ldbl_opt.h>
11545         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
11546         and libc.
11547         (compat_symbol): Undefine and redefine.
11548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
11549         <math_ldbl_opt.h>
11550         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
11551         (compat_symbol): Undefine and redefine.
11552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
11553         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
11554         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
11555         GLIBC_2_1 for libm.
11556         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
11557         GLIBC_2.0 copysignl symbol.
11558         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11559         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
11560
11561         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
11562
11563 2017-10-04  Florian Weimer  <fweimer@redhat.com>
11564
11565         * scripts/check-local-headers.sh: Ignore nspr4 header file
11566         directory in addition to nspr.
11567
11568 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
11569
11570         [BZ #17956]
11571         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
11572         * configure: Regenerate.
11573         * crypt/Makefile (nss-cpp-flags): New variable.
11574         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
11575         (CPPFLAGS-md5-crypt.c): Use it.
11576         * scripts/check-local-headers.sh: Ignore nspr header file
11577         directory.
11578
11579 2017-10-04  Andreas Schwab  <schwab@suse.de>
11580
11581         * nis/Makefile (services): Remove compat.
11582         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
11583         ($(objpfx)libnss_compat.so): Remove rule.
11584         * nis/Versions (libnss_compat): Remove.
11585         * nss/Makefile (services): Add compat.
11586         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
11587         * nss/Versions (libnss_compat): Define.
11588         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
11589         Don't include <rpc/types.h>.  Replace bool_t by bool.
11590         * nss/nss_compat/compat-initgroups.c: Likewise.
11591         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
11592         instead of <rpcsrv/ypclnt.h>.
11593         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
11594         yp_get_default_domain.
11595         * nss/nss_compat/compat-pwd.c: Likewise.
11596         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
11597         yp_get_default_domain.
11598         * nss/nss_compat/nisdomain.c: New file.
11599         * nss/nss_compat/nisdomain.h: Likewise.
11600
11601 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11602
11603         [BZ #22244]
11604         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
11605         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11606
11607 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11608
11609         [BZ #22243]
11610         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
11611         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
11612
11613 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11614
11615         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
11616         "movl main@GOTOFF(%ebx), %eax".
11617
11618 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11619
11620         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
11621         allow undefined _DYNAMIC in PIE libc.a.
11622         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
11623         Likewse.
11624
11625 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11626
11627         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
11628         check _DYNAMIC.
11629
11630 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11631
11632         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
11633         check _DYNAMIC.
11634
11635 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11636
11637         * math/test-math-iscanonical.cc (error): Replace bool with int.
11638
11639 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
11642         (modf): Define using libm_alias_double, only if [!__modf].
11643         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
11644         <libm-alias-double.h>.
11645         (modf): Define using libm_alias_double, only if [!__modf].
11646         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
11647         compat symbol here.
11648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
11649         (weak_alias): Do not undefine and redefine.
11650         (strong_alias): Likewise.
11651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
11652         (weak_alias): Likewise.
11653         (strong_alias): Likewise.
11654
11655         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
11656         (logb): Define using libm_alias_double, only if [!__logb].
11657         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
11658         <libm-alias-double.h>.
11659         (logb): Define using libm_alias_double, only if [!__logb].
11660         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
11661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
11662         (weak_alias): Do not undefine and redefine.
11663         (strong_alias): Likewise.
11664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
11665         (weak_alias): Likewise.
11666         (strong_alias): Likewise.
11667
11668 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11669
11670         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
11671         Check SHARED instead PIC.
11672
11673 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
11674
11675         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
11676         [!__fmaf] (fmaf): Define using libm_alias_float.
11677
11678         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
11679         (frexp): Define using libm_alias_double.
11680         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
11681         <libm-alias-double.h>.
11682         (frexp): Define using libm_alias_double.
11683         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
11684         compat symbol here.
11685
11686 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11687
11688         [BZ #22235]
11689         * math/math.h: Trivial fix for unbalanced parentheses in comment.
11690         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
11691         (CFLAGS-test-math-iscanonical.cc): New variable.
11692         * math/test-math-iscanonical.cc: New file.
11693         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
11694         Provide a C++ implementation based on function overloading,
11695         rather than using __MATH_TG, which uses C-only builtins.
11696         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
11697         Likewise.
11698         * sysdeps/powerpc/powerpc64le/Makefile
11699         (CFLAGS-test-math-iscanonical.cc): New variable.
11700
11701 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
11702
11703         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
11704         (ceil): Define using libm_alias_double.
11705         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
11706         (floor): Define using libm_alias_double.
11707         * sysdeps/ieee754/dbl-64/s_llround.c: Include
11708         <libm-alias-double.h>.
11709         (llround): Define using libm_alias_double.
11710         * sysdeps/ieee754/dbl-64/s_lround.c: Include
11711         <libm-alias-double.h>.
11712         (lround): Define using libm_alias_double.
11713         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
11714         <libm-alias-double.h>.
11715         (nearbyint): Define using libm_alias_double.
11716         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
11717         <libm-alias-double.h>.
11718         (remquo): Define using libm_alias_double.
11719         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
11720         (rint): Define using libm_alias_double.
11721         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
11722         (round): Define using libm_alias_double.
11723         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
11724         (trunc): Define using libm_alias_double.
11725         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
11726         <libm-alias-double.h>.
11727         (ceil): Define using libm_alias_double.
11728         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
11729         <libm-alias-double.h>.
11730         (floor): Define using libm_alias_double.
11731         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
11732         <libm-alias-double.h>.
11733         (llround): Define using libm_alias_double.
11734         [_LP64] (lround): Likewise.
11735         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
11736         <libm-alias-double.h>.
11737         [!_LP64] (lround): Define using libm_alias_double.
11738         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
11739         <libm-alias-double.h>.
11740         (nearbyint): Define using libm_alias_double.
11741         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
11742         <libm-alias-double.h>.
11743         (remquo): Define using libm_alias_double.
11744         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
11745         <libm-alias-double.h>.
11746         (rint): Define using libm_alias_double.
11747         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
11748         <libm-alias-double.h>.
11749         (round): Define using libm_alias_double.
11750         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
11751         <libm-alias-double.h>.
11752         (trunc): Define using libm_alias_double.
11753         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
11754         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
11755         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
11756         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
11757         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
11758         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
11759         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
11760         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
11761         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
11762
11763 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11764
11765         * math/w_remainder.c: New file.
11766         * math/w_remainderf.c: New file.
11767         * math/w_remainderl.c: New file.
11768
11769 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11770
11771         * elf/rtld.c (BOOTSTRAP_MAP): New.
11772         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
11773         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
11774         Likewise.
11775         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
11776         Likewise.
11777         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
11778         Likewise.
11779
11780 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11781
11782         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
11783         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
11784         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
11785         rtld_hidden_data_ver): Define to empty.
11786         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
11787         __assert_perror_fail): Likewise.
11788         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
11789         (__rewinddir): Likewise.
11790         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
11791         (__profile_frequency): Likewise.
11792         * include/setjmp.h (__sigsetjmp): Likewise.
11793         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
11794         __libc_sigaction): Likewise.
11795         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
11796         not set hidden attribute.
11797         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
11798         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
11799         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
11800         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
11801         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
11802         __fxstatat64): Likewise.
11803         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
11804         (__uname): Likewise.
11805         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
11806         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
11807         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
11808         (NO_RTLD_HIDDEN): Set.
11809         * sysdeps/mach/hurd/configure: Refresh.
11810         * config.h.in: Refresh.
11811
11812 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
11813
11814         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
11815         (atan): Define using libm_alias_double.
11816         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
11817         (tan): Define using libm_alias_double.
11818         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
11819         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
11820
11821         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
11822         define as weak alias of __atan.  Do not define any aliases if
11823         [__atan].
11824         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
11825         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
11826         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
11827         as weak alias of __tan.  Do not define any aliases if [__tan].
11828         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
11829         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
11830         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
11831         __atan.
11832         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
11833         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
11834         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
11835         and define as weak alias of __atan.
11836         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
11837         __atan.
11838         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
11839         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
11840         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
11841         define as weak alias of __tan.
11842
11843 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11844
11845         * math/w_lgamma.c: New file.
11846         * math/w_lgammaf.c: New file.
11847         * math/w_lgammal.c: New file.
11848
11849 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11850
11851         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
11852         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
11853         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
11854         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
11855         * sysdeps/ieee754/flt-32/w_logf.c: New file.
11856         * sysdeps/ieee754/flt-32/w_powf.c: New file.
11857         * sysdeps/i386/fpu/w_log2f.c: New file.
11858         * sysdeps/i386/fpu/w_logf.c: New file.
11859         * sysdeps/i386/fpu/w_powf.c: New file.
11860         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
11861         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
11862         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
11863
11864 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11865             H.J. Lu  <hongjiu.lu@intel.com>
11866
11867         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
11868         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
11869         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
11870         * sysdeps/ieee754/flt-32/w_expf.c: New file.
11871         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
11872         the new expf code.
11873         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
11874         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
11875         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
11876         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
11877         * sysdeps/i386/fpu/w_exp2f.c: New file.
11878         * sysdeps/i386/fpu/w_expf.c: New file.
11879         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
11880         * sysdeps/x86_64/fpu/w_expf.c: New file.
11881
11882 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11883
11884         * math/Versions (logf): New libm symbol at GLIBC_2.27.
11885         (log2f): Likewise.
11886         (powf): Likewise.
11887         * math/w_log2f.c: New file.
11888         * math/w_logf.c: New file.
11889         * math/w_powf.c: New file.
11890         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
11891         * math/w_logf_compat.c (__logf_compat): Likewise.
11892         * math/w_powf_compat.c (__powf_compat): Likewise.
11893         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
11894         * sysdeps/ia64/fpu/e_logf.S: Likewise.
11895         * sysdeps/ia64/fpu/e_powf.S: Likewise.
11896         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11897         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11898         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11899         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11900         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11901         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11902         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11903         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11904         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11905         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11906         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11907         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11909         Likewise.
11910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11911         Likewise.
11912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11913         Likewise.
11914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11915         Likewise.
11916         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11917         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11918         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11919         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11920         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11922         Likewise.
11923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11924         Likewise.
11925         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11926         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11927         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11928
11929 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11930
11931         * sysdeps/powerpc/powerpc64/multiarch/Makefile
11932         (sysdep_routines): Add memrchr_power8.
11933         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11934         (memrchr): Add __memrchr_power8 to list of memrchr functions.
11935         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
11936         New file.
11937         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
11938         (memrchr): Add __memrchr_power8 to ifunc list.
11939         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
11940
11941 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         [BZ #18822]
11944         * sysdeps/unix/sysv/linux/posix_fadvise64.c
11945         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
11946         libc_hidden_def.
11947         * sysdeps/unix/sysv/linux/posix_fallocate64.c
11948         (__posix_fallocate64_l64): Likewise.
11949
11950 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11951
11952         [BZ #18822]
11953         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11954         (__sched_setaffinity_new): Add libc_hidden_proto and
11955         libc_hidden_def.
11956
11957 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11958
11959         [BZ #18822]
11960         * include/glob.h (__glob64): Add libc_hidden_proto.
11961         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
11962         libc_hidden_def.
11963
11964 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11965
11966         [BZ #18822]
11967         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
11968         attribute_hidden.
11969
11970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11971
11972         [BZ #18822]
11973         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
11974
11975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11976
11977         [BZ #18822]
11978         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
11979         libc_hidden_def.
11980
11981 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         [BZ #18822]
11984         * csu/version.c (__libc_print_version): Add attribute_hidden.
11985
11986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11987
11988         [BZ #18822]
11989         * include/libc-internal.h (__init_misc): Add attribute_hidden.
11990
11991 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11992
11993         [BZ #18822]
11994         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
11995
11996 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         [BZ #18822]
11999         * nscd/nscd_helper.c (__nis_hash): New prototype.
12000
12001 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12002
12003         [BZ #18822]
12004         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
12005         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
12006         libc_hidden_def.
12007         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
12008         * termios/tcgetattr.c (__tcgetattr): Likewise.
12009
12010 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12011
12012         [BZ #18822]
12013         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
12014         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
12015         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
12016         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
12017         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
12018
12019 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12020
12021         [BZ #18822]
12022         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
12023
12024 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12025
12026         [BZ #18822]
12027         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
12028         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
12029
12030 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12031
12032         [BZ #18822]
12033         * intl/hash-string.h (__hash_string): Add attribute_hidden.
12034
12035 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12036
12037         [BZ #18822]
12038         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
12039         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
12040
12041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12042
12043         [BZ #18822]
12044         * include/ifreq.h: New file.
12045         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
12046         (__ifreq): Likewise.
12047         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
12048         (__ifreq): Likewise.
12049
12050 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12051
12052         [BZ #18822]
12053         * include/idna.h: New file.
12054         * inet/getnameinfo.c: Include <idna.h> instead of
12055         <libidn/idna.h>.
12056         (__idna_to_unicode_lzlz): Removed.
12057         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
12058         <libidn/idna.h>.
12059         (__idna_to_ascii_lz): Removed.
12060         (__idna_to_unicode_lzlz): Likewise.
12061
12062 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12063
12064         [BZ #18822]
12065         * include/plural-exp.h: New file.
12066         * intl/plural-exp.c: Include <plural-exp.h> instead of
12067         "plural-exp.h".
12068
12069 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12070
12071         [BZ #18822]
12072         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
12073         "getsourcefilter.h".
12074         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
12075         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
12076         "getsourcefilter.h".
12077         (__get_sol): Removed.
12078
12079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12080
12081         [BZ #18822]
12082         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
12083         to ...
12084         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
12085
12086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12087
12088         [BZ #18822]
12089         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
12090         attribute_hidden.
12091
12092 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12093
12094         [BZ #18822]
12095         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
12096
12097 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12098
12099         [BZ #18822]
12100         * include/search.h (__tdestroy): Add libc_hidden_proto.
12101         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
12102
12103 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12104
12105         [BZ #18822]
12106         * include/assert.h (__assert_fail_base): Add attribute_hidden.
12107
12108 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12109
12110         [BZ #18822]
12111         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
12112         attribute_hidden.
12113
12114 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12115
12116         [BZ #18822]
12117         * include/signal.h (__kill): Add libc_hidden_proto.
12118         (__sigblock): Likewise.
12119         (__sigprocmask): Likewise.
12120         (__sigaltstack): Likewise.
12121         * signal/kill.c (__kill): Add libc_hidden_def.
12122         * signal/sigblock.c (__sigblock): Likewise.
12123         * signal/sigprocmask.c (__sigprocmask): Likewise.
12124         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
12125         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
12126         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
12127         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
12128         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
12129         Likewise.
12130         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
12131         Likewise.
12132         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
12133         (__sigprocmask): Likewise.
12134         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
12135         Likewise.
12136         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
12137         (__sigprocmask): Likewise.
12138         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
12139         Likewise.
12140
12141 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12142
12143         [BZ #18822]
12144         * include/string.h (__strsep): Add libc_hidden_proto.
12145         * string/strsep.c (__strsep): Add libc_hidden_def.
12146
12147 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12148
12149         [BZ #18822]
12150         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
12151         attribute_hidden.
12152         (__spawni): Likewise.
12153
12154 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12155
12156         [BZ #18822]
12157         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
12158         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
12159         libc_hidden_def.
12160
12161 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12162
12163         [BZ #18822]
12164         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
12165
12166 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12167
12168         [BZ #18822]
12169         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
12170         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
12171         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
12172         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
12173         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
12174         Likewise.
12175         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
12176         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
12177
12178 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12179
12180         [BZ #18822]
12181         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
12182         (__dcigettext): Likewise.
12183
12184 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12185
12186         [BZ #18822]
12187         * include/sys/sysinfo.h (__get_nprocs_conf): Add
12188         libc_hidden_proto.
12189         (__get_nprocs): Likewise.
12190         (__get_phys_pages): Likewise.
12191         (__get_avphys_pages): Likewise.
12192         (__get_child_max): Add attribute_hidden.
12193         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
12194         (__get_nprocs): Likewise.
12195         (__get_phys_pages): Likewise.
12196         (__get_avphys_pages): Likewise.
12197         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
12198         libc_hidden_def.
12199         (__get_nprocs): Likewise.
12200         (__get_phys_pages): Likewise.
12201         (__get_avphys_pages): Likewise.
12202         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
12203         libc_hidden_def.
12204         (__get_nprocs_conf): Likewise.
12205         (__get_phys_pages): Likewise.
12206         (__get_avphys_pages): Likewise.
12207
12208 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12209
12210         [BZ #18822]
12211         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
12212         attribute_hidden.
12213         (__netlink_close): Likewise.
12214         (__netlink_free_handle): Likewise.
12215         (__netlink_request): Likewise.
12216
12217 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12218
12219         [BZ #18822]
12220         * include/rpc/rpc.h (__rpc_thread_variables): Add
12221         attribute_hidden.
12222         (__rpc_thread_svc_cleanup): Likewise.
12223         (__rpc_thread_clnt_cleanup): Likewise.
12224         (__rpc_thread_key_cleanup): Likewise.
12225
12226 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12227
12228         [BZ #18822]
12229         * include/sys/uio.h (__readv): Add libc_hidden_proto.
12230         (__writev): Likewise.
12231         * misc/readv.c (__readv): Add libc_hidden_def.
12232         * misc/writev.c (__writev): Likewise.
12233         * sysdeps/posix/readv.c (__readv): Likewise.
12234         * sysdeps/posix/writev.c (__writev): Likewise.
12235         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
12236         (__readv): Likewise.
12237         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
12238         (__writev): Likewise.
12239
12240 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12241
12242         [BZ #18822]
12243         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
12244         (__regcomp): Add libc_hidden_proto.
12245         (__regexec): Likewise.
12246         (__regfree): Likewise.
12247         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
12248         (__regfree): Likewise.
12249         * posix/regexec.c (__regexec): Likewise.
12250
12251 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12252
12253         [BZ #18822]
12254         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
12255         (__getutent): Likewise.
12256         (__getutid): Likewise.
12257         (__getutline): Likewise.
12258         (__pututline): Likewise.
12259         (__getutent_r): Likewise.
12260         (__getutid_r): Likewise.
12261         (__getutline_r): Likewise.
12262         (__utmpname): Add attribute_hidden.
12263         (__setutent): Likewise.
12264         (__endutent): Likewise.
12265         * login/getutent.c (__getutent): Add libc_hidden_def.
12266         * login/getutent_r.c (__getutent_r): Likewise.
12267         (__pututline): Likewise.
12268         * login/getutid.c (__getutid): Likewise.
12269         * login/getutid_r.c (__getutid_r): Likewise.
12270         * login/getutline.c (__getutline): Likewise.
12271         * login/getutline_r.c (__getutline_r): Likewise.
12272         * login/updwtmp.c (__updwtmp): Likewise.
12273
12274 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12275
12276         [BZ #18822]
12277         * include/dirent.h (__opendir): Always add attribute_hidden.
12278         (__fdopendir): Likewise.
12279         (__closedir): Likewise.
12280         (__readdir): Likewise.
12281         (__readdir64): Add libc_hidden_proto.
12282         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
12283         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
12284         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
12285         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
12286         New alias.
12287
12288 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12289
12290         [BZ #18822]
12291         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
12292         * include/netdb.h (__gethostbyaddr_r): Likewise.
12293         (__gethostbyname_r): Likewise.
12294         (__gethostbyname2_r): Likewise.
12295         (__getnetbyaddr_r): Likewise.
12296         (__getnetbyname_r): Likewise.
12297         (__getservbyname_r): Likewise.
12298         (__getservbyport_r): Likewise.
12299         (__getprotobyname_r): Likewise.
12300         (__getprotobynumber_r): Likewise.
12301         (__getnetgrent_r): Likewise.
12302         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
12303         (__getrpcbynumber_r): Likewise.
12304         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
12305
12306 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12307
12308         [BZ #18822]
12309         * include/stdio.h (__fcloseall): Add attribute_hidden.
12310         (__getline): Likewise.
12311         (__path_search): Likewise.
12312         (__gen_tempname): Likewise.
12313         (__libc_message): Likewise.
12314         (__flockfile): Likewise.
12315         (__funlockfile): Likewise.
12316         (__fxprintf): Likewise.
12317         (__fxprintf_nocancel): Likewise.
12318
12319 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12320
12321         [BZ #18822]
12322         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
12323         (__sgetsgent_r): Likewise.
12324
12325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12326
12327         [BZ #18822]
12328         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
12329         (__statfs64): Likewise.
12330         (__fstatfs64): Likewise.
12331         * include/sys/statvfs.h (__statvfs64): Likewise.
12332         (__fstatvfs64): Likewise.
12333         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
12334         (__statfs_filesize_max): Likewise.
12335         (__statfs_symlinks): Likewise.
12336         (__statfs_chown_restricted): Likewise.
12337
12338 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12339
12340         [BZ #18822]
12341         * include/time.h (__tzstring): Add attribute_hidden.
12342         (__tzfile_read): Likewise.
12343         (__tzfile_compute): Likewise.
12344         (__tzfile_default): Likewise.
12345         (__tzset_parse_tz): Likewise.
12346         (__offtime): Likewise.
12347         (__asctime_r): Likewise.
12348         (__tzset): Likewise.
12349         (__tz_convert): Likewise.
12350         (__getdate_r): Likewise.
12351         (__getclktck): Likewise.
12352
12353 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12354
12355         [BZ #18822]
12356         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
12357         (__nscd_unmap): Likewise.
12358         (__nscd_cache_search): Likewise.
12359         (__nscd_get_nl_timestamp): Likewise.
12360         (__nscd_getpwnam_r): Likewise.
12361         (__nscd_getpwuid_r): Likewise.
12362         (__nscd_getgrnam_r): Likewise.
12363         (__nscd_getgrgid_r): Likewise.
12364         (__nscd_gethostbyname_r): Likewise.
12365         (__nscd_gethostbyname2_r): Likewise.
12366         (__nscd_gethostbyaddr_r): Likewise.
12367         (__nscd_getai): Likewise.
12368         (__nscd_getgrouplist): Likewise.
12369         (__nscd_getservbyname_r): Likewise.
12370         (__nscd_getservbyport_r): Likewise.
12371         (__nscd_innetgr): Likewise.
12372         (__nscd_setnetgrent): Likewise.
12373
12374 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12375
12376         [BZ #18822]
12377         * include/gmp.h: Declare internal functions only if _ISOMAC is
12378         undefined.
12379         (__mpn_extract_double): Add attribute_hidden.
12380         (__mpn_extract_long_double): Likewise.
12381         (__mpn_extract_float128): Likewise.
12382         (__mpn_construct_float): Likewise.
12383         (__mpn_construct_double): Likewise.
12384         (__mpn_construct_long_double): Likewise.
12385         (__mpn_construct_float128): Likewise.
12386         (mpn_add_1): Likewise.
12387         (mpn_addmul_1): Likewise.
12388         (mpn_add_n): Likewise.
12389         (mpn_cmp): Likewise.
12390         (mpn_divrem): Likewise.
12391         (mpn_lshift): Likewise.
12392         (mpn_mul): Likewise.
12393         (mpn_mul_1): Likewise.
12394         (mpn_rshift): Likewise.
12395         (mpn_sub_1): Likewise.
12396         (mpn_submul_1): Likewise.
12397         (mpn_sub_n): Likewise.
12398
12399 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12400
12401         [BZ #18822]
12402         * include/wchar.h (__wcsnlen): Add attribute_hidden.
12403         (__wcscat): Likewise.
12404         (__btowc): Likewise.
12405         (__wcrtomb): Likewise.
12406         (__mbsrtowcs): Likewise.
12407         (__wcsrtombs): Likewise.
12408         (__mbsnrtowcs): Likewise.
12409         (__wcsnrtombs): Likewise.
12410         (__wcsncpy): Likewise.
12411         (__wcpncpy): Likewise.
12412         (__wmemcpy): Likewise.
12413         (__wmempcpy): Likewise.
12414         (__wmemmove): Likewise.
12415         (__wcschrnul): Likewise.
12416         (__vfwscanf): Likewise.
12417         (__vswprintf): Likewise.
12418         (__fwprintf): Likewise.
12419         (__vfwprintf): Likewise.
12420
12421 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12422
12423         [BZ #18822]
12424         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
12425         (__getgrgid_r): Likewise.
12426         (__getgrnam_r): Likewise.
12427         * include/pwd.h (__getpwuid_r): Likewise.
12428         (__getpwnam_r): Likewise.
12429         (__fgetpwent_r): Likewise.
12430         * include/shadow.h (__getspnam_r): Likewise.
12431         (__sgetspent_r): Likewise.
12432         (__fgetspent_r): Likewise.
12433
12434 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12435
12436         [BZ #18822]
12437         * include/unistd.h (__access): Add attribute_hidden.
12438         (__lseek64): Likewise.
12439         (__libc_pread64): Likewise.
12440         (__pipe2): Likewise.
12441         (__sleep): Likewise.
12442         (__chdir): Likewise.
12443         (__fchdir): Likewise.
12444         (__getcwd): Likewise.
12445         (__rmdir): Likewise.
12446         (__execvpe): Likewise.
12447         (__execve): Likewise.
12448         (__setsid): Likewise.
12449         (__getuid): Likewise.
12450         (__geteuid): Likewise.
12451         (__getgid): Likewise.
12452         (__getegid): Likewise.
12453         (__getgroups): Likewise.
12454         (__group_member): Likewise.
12455         (__ttyname_r): Likewise.
12456         (__isatty): Likewise.
12457         (__readlink): Likewise.
12458         (__unlink): Likewise.
12459         (__gethostname): Likewise.
12460         (__profil): Likewise.
12461         (__getdtablesize): Likewise.
12462         (__brk): Likewise.
12463         (__ftruncate): Likewise.
12464         (__ftruncate64): Likewise.
12465
12466 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12467
12468         [BZ #18822]
12469         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
12470         * argp/argp-fs-xinl.c: Likewise.
12471         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
12472         * argp/argp-parse.c: Include <argp.h>.
12473         * argp/argp-xinl.c: Likewise.
12474         * include/argp-fmtstream.h: New file.
12475         * include/argp.h (__argp_error): Add attribute_hidden.
12476         (__argp_failure): Likewise.
12477         (__argp_input): Likewise.
12478         (__argp_state_help): Likewise.
12479
12480 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12481
12482         [BZ #18822]
12483         * include/wchar.h (____wcstof_l_internal): New prototype.
12484         (____wcstod_l_internal): Likewise.
12485         (____wcstold_l_internal): Likewise.
12486         (____wcstol_l_internal): Likewise.
12487         (____wcstoul_l_internal): Likewise.
12488         (____wcstoll_l_internal): Likewise.
12489         (____wcstoull_l_internal): Likewise.
12490         (____wcstof128_l_internal): Likewise.
12491         * sysdeps/ieee754/float128/wcstof128.c
12492         (____wcstof128_l_internal): Removed.
12493         * sysdeps/ieee754/float128/wcstof128_l.c
12494         (____wcstof128_l_internal): Likewise.
12495         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
12496         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
12497         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
12498         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
12499         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
12500         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
12501         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
12502         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
12503         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
12504         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
12505
12506 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12507
12508         [BZ #18822]
12509         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
12510         instead of <sys/statvfs.h>.
12511         (__internal_statvfs): Removed.
12512         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
12513         instead of <sys/statvfs.h>.
12514         (__internal_statvfs64): Removed.
12515         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
12516         "internal_statvfs.h" instead of <sys/statvfs.h>.
12517         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
12518         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
12519         instead of <sys/statvfs.h>.
12520         (__internal_statvfs): Removed.
12521         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
12522         instead of <sys/statvfs.h>.
12523         (__internal_statvfs64): Removed.
12524
12525 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12526
12527         [BZ #18822]
12528         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
12529         (__gconv_close): Likewise.
12530         (__gconv): Likewise.
12531         (__gconv_find_transform): Likewise.
12532         (__gconv_lookup_cache): Likewise.
12533         (__gconv_compare_alias_cache): Likewise.
12534         (__gconv_load_cache): Likewise.
12535         (__gconv_get_path): Likewise.
12536         (__gconv_close_transform): Likewise.
12537         (__gconv_release_cache): Likewise.
12538         (__gconv_find_shlib): Likewise.
12539         (__gconv_release_shlib): Likewise.
12540         (__gconv_get_builtin_trans): Likewise.
12541         (__gconv_compare_alias): Likewise.
12542         * include/dlfcn.h (_dlerror_run): Likewise.
12543         * include/stdio.h (__fortify_fail_abort): Likewise.
12544         * include/time.h (__tz_compute): Likewise.
12545         (__strptime_internal): Likewise.
12546         * intl/gettextP.h (_nl_find_domain): Likewise.
12547         (_nl_load_domain): Likewise.
12548         (_nl_find_msg): Likewise.
12549         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
12550         (EXTRACT_PLURAL_EXPRESSION): Likewise.
12551         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
12552         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
12553         (__gai_find_request): Likewise.
12554         (__gai_remove_request): Likewise.
12555         (__gai_notify): Likewise.
12556         (__gai_notify_only): Likewise.
12557         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
12558         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
12559         (_dl_non_dynamic_init): Likewise.
12560         (_dl_aux_init): Likewise.
12561         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
12562         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
12563         Likewise.
12564         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
12565         (__wcsmbs_clone_conv): Likewise.
12566         (__wcsmbs_named_conv): Likewise.
12567
12568 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12569
12570         [BZ #18822]
12571         * include/stdlib.h (__random): Add attribute_hidden.
12572         (__random_r): Likewise.
12573         (__srandom_r): Likewise.
12574         (__initstate_r): Likewise.
12575         (__setstate_r): Likewise.
12576         (__erand48_r): Likewise.
12577         (__nrand48_r): Likewise.
12578         (__jrand48_r): Likewise.
12579         (__srand48_r): Likewise.
12580         (__seed48_r): Likewise.
12581         (__lcong48_r): Likewise.
12582         (__drand48_iterate): Likewise.
12583         (__setenv): Likewise.
12584         (__unsetenv): Likewise.
12585         (__clearenv): Likewise.
12586         (__ptsname_r): Likewise.
12587         (__posix_openpt): Likewise.
12588         (__add_to_environ): Likewise.
12589         (__realpath): Add libc_hidden_proto.
12590         (__ecvt_r): Likewise.
12591         (__fcvt_r): Likewise.
12592         (__qecvt_r): Likewise.
12593         (__qfcvt_r): Likewise.
12594         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
12595         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
12596
12597 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12598
12599         [BZ #18822]
12600         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
12601         * include/time.h (__mktime_internal): Likewise.
12602         * libio/iolibio.h (__fopen_internal): Likewise.
12603
12604 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
12605
12606         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
12607         pointer in frame.
12608         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
12609         Correct offset used to restore PIC register.
12610
12611 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
12612
12613         [BZ libc/22165]
12614         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
12615         code to load address of __getcontext_ret when generating PIC code.
12616
12617 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
12618
12619         * elf/Makefile (tests-static-internal): Add
12620         tst-tls1-static-non-pie.
12621         (LDFLAGS-tst-tls1-static-non-pie): New.
12622         * elf/tst-tls1-static-non-pie.c: New file.
12623
12624 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
12625
12626         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
12627         (asinh): Define using libm_alias_double.
12628         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
12629         (cbrt): Define using libm_alias_double.
12630         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
12631         <libm-alias-double.h>.
12632         (copysign): Define using libm_alias_double.
12633         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
12634         (erf): Define using libm_alias_double.
12635         (erfc): Likewise.
12636         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
12637         (expm1): Define using libm_alias_double.
12638         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
12639         (fabs): Define using libm_alias_double.
12640         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
12641         libm_alias_double.
12642         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
12643         <libm-alias-double.h>.
12644         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
12645         libm_alias_double.
12646         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
12647         <libm-alias-double.h>.
12648         (getpayload): Define using libm_alias_double.
12649         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
12650         <libm-alias-double.h>.
12651         (llrint): Define using libm_alias_double.
12652         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
12653         (lrint): Define using libm_alias_double.
12654         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
12655         <libm-alias-double.h>.
12656         (nextup): Define using libm_alias_double.
12657         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
12658         <libm-alias-double.h>.
12659         (roundeven): Define using libm_alias_double.
12660         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
12661         libm_alias_double.
12662         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
12663         <libm-alias-double.h>.
12664         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
12665         using libm_alias_double.
12666         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
12667         (cos): Define using libm_alias_double.
12668         (sin): Likewise.
12669         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
12670         <libm-alias-double.h>.
12671         (sincos): Define using libm_alias_double.
12672         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
12673         (tanh): Define using libm_alias_double.
12674         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
12675         <libm-alias-double.h>.
12676         (totalorder): Define using libm_alias_double.
12677         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
12678         <libm-alias-double.h>.
12679         (totalordermag): Define using libm_alias_double.
12680         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
12681         libm_alias_double.
12682         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
12683         libm_alias_double.
12684         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
12685         <libm-alias-double.h>.
12686         (getpayload): Define using libm_alias_double.
12687         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
12688         <libm-alias-double.h>.
12689         (roundeven): Define using libm_alias_double.
12690         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
12691         <libm-alias-double.h>.
12692         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
12693         <libm-alias-double.h>.
12694         (totalorder): Define using libm_alias_double.
12695         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
12696         <libm-alias-double.h>.
12697         (totalordermag): Define using libm_alias_double.
12698         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
12699         libc compat symbol here.
12700         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
12701         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
12702         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
12703         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
12704         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
12705         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
12706         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
12707         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
12708         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
12709         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
12710
12711 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12712
12713         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
12714         _dl_relocate_static_pie instead of _dl_start to compute load
12715         address in static PIE.  Return 0 if _DYNAMIC is undefined for
12716         static executable.
12717
12718 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12719
12720         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
12721         _DYNAMIC is undefined for static executable.
12722
12723 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12724
12725         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
12726
12727 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
12728
12729         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12730
12731 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
12732
12733         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
12734         (__ieee754_lgamma_r): Use fabs rather than __fabs.
12735         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
12736         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
12737         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
12738         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
12739         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
12740         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
12741         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
12742         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
12743         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
12744         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
12745         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
12746         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
12747         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
12748         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
12749         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
12750
12751 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
12752
12753         * math/bits/cmathcalls.h (cimag): Remove inline.
12754         (creal): Remove inline.
12755         (conj): Remove inline.
12756
12757 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12758
12759         * math/Makefile (type-float-routines): Add e_powf_log2_data.
12760         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
12761         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
12762         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
12763         (issignalingf_inline): Likewise.
12764         (POWF_LOG2_TABLE_BITS): Likewise.
12765         (POWF_LOG2_POLY_ORDER): Likewise.
12766         (POWF_SCALE_BITS): Likewise.
12767         (POWF_SCALE): Likewise.
12768         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
12769         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
12770         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
12771
12772 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12773
12774         * math/Makefile (type-float-routines): Add e_log2f_data.
12775         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
12776         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
12777         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
12778         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
12779         * sysdeps/i386/fpu/e_log2f_data.c: New file.
12780         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
12781         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
12782
12783 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12784
12785         * math/Makefile (type-float-routines): Add e_logf_data.
12786         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
12787         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
12788         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
12789         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
12790         * sysdeps/i386/fpu/e_logf_data.c: New file.
12791         * sysdeps/ia64/fpu/e_logf_data.c: New file.
12792         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
12793
12794 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
12795
12796         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
12797         undefined _DYNAMIC in PIE libc.a.
12798         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
12799         Likewse.
12800
12801 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
12802
12803         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
12804         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
12805         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
12806         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
12807         (__signbit): Remove.
12808         (__signbitl): Remove.
12809         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
12810         (__signbit): Remove.
12811         (__signbitl): Remove.
12812         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
12813         (__signbit): Remove.
12814         (__signbitl): Remove.
12815         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
12816         (__signbit): Remove.
12817         (__signbitl): Remove.
12818         * sysdeps/tile/bits/mathinline.h: Delete file.
12819         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
12820         (__signbit): Remove.
12821         (__signbitl): Remove.
12822
12823 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
12824
12825         * math/math.h: Improve handling of C99 isgreater macros.
12826         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
12827         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
12828         * sysdeps/powerpc/bits/mathinline.h: Likewise.
12829         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12830         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
12831
12832 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12833
12834         * sysdeps/aarch64/libm-test-ulps: Update.
12835
12836 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
12837
12838         [BZ #22225]
12839         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
12840         math_opt_barrier on argument when doing arithmetic on it.
12841         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12842         Likewise.  Use math_force_eval not math_opt_barrier after
12843         arithmetic.
12844         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
12845         math_opt_barrier on argument when doing arithmetic on it.
12846         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
12847         Likewise.
12848
12849 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
12850
12851         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
12852         libc_hidden_def.
12853         (__freeifaddrs): Likewise.
12854
12855 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12856
12857         * include/dirent.h (__dirfd): New declaration.
12858         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
12859         alias.
12860         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
12861         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
12862         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
12863         * include/unistd.h (__revoke): New declaration.
12864         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
12865         alias.
12866         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
12867         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
12868         revoke.
12869         * include/dirent.h (__seekdir): New declaration.
12870         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
12871         redefine as weak alias.
12872         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
12873         of seekdir.
12874         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
12875         and use libc_hidden_def on them.
12876         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
12877         them.
12878         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
12879         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
12880         instead of getifaddrs and freeifaddrs.
12881
12882 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
12883
12884         [BZ #18822]
12885         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
12886         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
12887         (__dso_handle): Remove declaration.
12888         * dlfcn/tstatexit.c (__dso_handle): Removed.
12889         (main): Don't check __dso_handle.
12890         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
12891         (main): Don't check __dso_handle.
12892         * include/dso_handle.h: New file.
12893         * malloc/mtrace.c: Include <dso_handle.h>.
12894         (mtrace): Pass __dso_handle directly.
12895         * nptl/pthread_atfork.c: Include <dso_handle.h>.
12896         (__dso_handle): Remove declaration.
12897         (__pthread_atfork): Pass __dso_handle directly.
12898         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
12899         (__dso_handle): Removed.
12900         * posix/wordexp-test.c: Include <dso_handle.h>.
12901         (__dso_handle): Remove declaration.
12902         (__app_register_atfork): Pass __dso_handle directly.
12903         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
12904         (__dso_handle): Remove declaration.
12905         (at_quick_exit): Pass __dso_handle directly.
12906         * stdlib/atexit.c: Include <dso_handle.h>.
12907         (__dso_handle): Remove declaration.
12908         (atexit): Pass __dso_handle directly.
12909         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
12910         (__dso_handle): Removed.
12911
12912 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
12913
12914         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
12915         using VDSO.
12916
12917 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
12918
12919         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
12920         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
12921         values to correct default value for given type.
12922
12923 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
12924
12925         [BZ #22101]
12926         * elf/Makefile (tests): Add tst-debug1.
12927         ($(objpfx)tst-debug1): New.
12928         ($(objpfx)tst-debug1.out): Likewise.
12929         ($(objpfx)tst-debug1mod1.so): Likewise.
12930         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
12931         with p_filesz == 0.
12932         * elf/tst-debug1.c: New file.
12933
12934 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
12935
12936         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
12937         Define using __ifunc.
12938
12939 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12940
12941         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
12942         exp2f() values.
12943
12944 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #22156]
12947         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
12948
12949 2017-09-26  Florian Weimer  <fweimer@redhat.com>
12950
12951         * resolv/Makefile (tests-internal): Fix typo in comment.
12952
12953 2017-09-26  Florian Weimer  <fweimer@redhat.com>
12954
12955         * resolv/nss_dns/dns-host.c: Fix typo in comment.
12956
12957 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12958
12959         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
12960         Use an union instead of a max_align_t array for __space,
12961         so that __space is the same size on all platforms.
12962         * malloc/scratch_buffer_grow_preserve.c
12963         (__libc_scratch_buffer_grow_preserve): Likewise.
12964
12965         [BZ #22183]
12966         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
12967         version to 2.
12968         * posix/Makefile (routines): Add glob-lstat-compat and
12969         glob64-lstat-compat.
12970         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
12971         * posix/glob-lstat-compat.c: New file.
12972         * posix/glob64-lstat-compat.c: Likewise.
12973         * posix/tst-glob_lstat_compat.c: Likewise.
12974         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
12975         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
12976         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
12977         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
12978         Likewise.
12979         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
12980         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
12981         * posix/glob.c (glob_lstat): New function.
12982         (glob): Rename to __glob and add versioned symbol to 2.27.
12983         (glob_in_dir): Use glob_lstat.
12984         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
12985         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12986         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
12987         2.27.
12988         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
12989         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
12990         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
12991         gl_lstat on glob call.
12992         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
12993         and glob64 symbols.
12994         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12995         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12996         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12997         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12998         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12999         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13000         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13001         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13002         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13003         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13004         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13005         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13007         Likewise.
13008         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
13009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13010         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13011         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13012         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13013         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13014         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13016         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13017         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13018         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13019         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13020
13021 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13022
13023         * configure.ac (AS): Require binutils 2.25 or later.
13024         * configure: Regenerated.
13025
13026 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
13027
13028         [BZ #22207]
13029         * stdlib/test-atexit-race-common.c (do_test): Minimize required
13030         VM size.
13031
13032 2017-09-25  DJ Delorie  <dj@redhat.com>
13033
13034         [BZ #22161]
13035         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
13036         resetting timeout.
13037
13038 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
13039
13040         * sysdeps/ieee754/dbl-64/sincos32.h
13041         [SINCCOS32_H]: Remove define.
13042         [SINCOS32_H]: Define.
13043
13044 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13045
13046         * math/Versions (expf): New libm symbol at GLIBC_2.27.
13047         (exp2f): Likewise.
13048         * math/w_exp2f.c: New file.
13049         * math/w_expf.c: New file.
13050         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
13051         * math/w_expf_compat.c (__expf_compat): Likewise.
13052         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
13053         * sysdeps/ia64/fpu/e_expf.S: Likewise.
13054         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
13055         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13056         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13057         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13058         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13059         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13060         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13061         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13062         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13063         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13064         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13065         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13067         Likewise.
13068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13069         Likewise.
13070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13071         Likewise.
13072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13073         Likewise.
13074         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13075         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13076         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13077         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13078         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13079         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13080         Likewise.
13081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13082         Likewise.
13083         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13084         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13085         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13086
13087 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13088
13089         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
13090         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
13091         (roundtoint, converttoint): Likewise.
13092         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
13093         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
13094         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
13095         * sysdeps/ieee754/flt-32/math_config.h: New file.
13096         * sysdeps/ieee754/flt-32/math_errf.c: New file.
13097         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
13098         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
13099         * sysdeps/i386/fpu/math_errf.c: New file.
13100         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
13101         * sysdeps/ia64/fpu/math_errf.c: New file.
13102         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
13103         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
13104
13105 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13106
13107         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
13108         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
13109         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
13110         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
13111         to make sure that these symbols are defined.
13112         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
13113         of <limits.h>
13114         (__need_NULL): Do not define.
13115         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
13116         alignment.
13117         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
13118         CMGROUP_MAX, cmsgcred): Do not define.
13119         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
13120         NULL.
13121         * bits/socket.h: Likewise.
13122         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
13123         __gettimeofday instead of gettimeofday.
13124         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
13125         instead of settimeofday.
13126
13127 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
13128
13129         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
13130         (asinhf): Define using libm_alias_float.
13131         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
13132         (atanf): Define using libm_alias_float.
13133         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
13134         (cbrtf): Define using libm_alias_float.
13135         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
13136         (ceilf): Define using libm_alias_float.
13137         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
13138         <libm-alias-float.h>.
13139         (copysignf): Define using libm_alias_float.
13140         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
13141         (cosf): Define using libm_alias_float.
13142         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
13143         (erff): Define using libm_alias_float.
13144         (erfcf): Likewise.
13145         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
13146         (expm1f): Define using libm_alias_float.
13147         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
13148         (fabsf): Define using libm_alias_float.
13149         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
13150         (floorf): Define using libm_alias_float.
13151         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
13152         (frexpf): Define using libm_alias_float.
13153         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
13154         libm_alias_float.
13155         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
13156         <libm-alias-float.h>.
13157         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
13158         libm_alias_float.
13159         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
13160         <libm-alias-float.h>.
13161         (getpayloadf): Define using libm_alias_float.
13162         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
13163         <libm-alias-float.h>.
13164         (llrintf): Define using libm_alias_float.
13165         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
13166         <libm-alias-float.h>.
13167         (llroundf): Define using libm_alias_float.
13168         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
13169         (logbf): Define using libm_alias_float.
13170         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
13171         (lrintf): Define using libm_alias_float.
13172         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
13173         (lroundf): Define using libm_alias_float.
13174         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
13175         (modff): Define using libm_alias_float.
13176         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
13177         <libm-alias-float.h>.
13178         (nearbyintf): Define using libm_alias_float.
13179         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
13180         <libm-alias-float.h>.
13181         (nextafterf): Define using libm_alias_float.
13182         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
13183         <libm-alias-float.h>.
13184         (nextupf): Define using libm_alias_float.
13185         * sysdeps/ieee754/flt-32/s_remquof.c: Include
13186         <libm-alias-float.h>.
13187         (remquof): Define using libm_alias_float.
13188         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
13189         (rintf): Define using libm_alias_float.
13190         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
13191         <libm-alias-float.h>.
13192         (roundevenf): Define using libm_alias_float.
13193         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
13194         (roundf): Define using libm_alias_float.
13195         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
13196         using libm_alias_float.
13197         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
13198         <libm-alias-float.h>.
13199         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
13200         Define using libm_alias_float.
13201         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
13202         <libm-alias-float.h>.
13203         (sincosf): Define using libm_alias_float.
13204         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
13205         (sinf): Define using libm_alias_float.
13206         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
13207         (tanf): Define using libm_alias_float.
13208         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
13209         (tanhf): Define using libm_alias_float.
13210         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
13211         <libm-alias-float.h>.
13212         (totalorderf): Define using libm_alias_float.
13213         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
13214         <libm-alias-float.h>.
13215         (totalordermagf): Define using libm_alias_float.
13216         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
13217         (truncf): Define using libm_alias_float.
13218         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
13219         libm_alias_float.
13220         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
13221         libm_alias_float.
13222
13223 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13224
13225         [BZ #22146]
13226         math/math.h: Let fpclassify use the builtin in C++ mode, even
13227         when optimazing for size.
13228
13229 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * csu/Makefile (generated): Do not add version-info.h.
13232         (before-compile): Likewise.
13233         (all-Banner-files): Remove variable.
13234         ($(objpfx)version-info.h): Remove rule.
13235         * csu/version.c (banner): Do not include "version-info.h".
13236         * libidn/Banner: Remove.
13237         * manual/contrib.texi (Simon Josefsson): New entry.
13238
13239 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13240
13241         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
13242         Remove conditionals on LDBL_MANT_DIG.
13243         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
13244         (__ieee754_lgammal_r): Likewise.
13245
13246 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13247
13248         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
13249         _Float128 and L().
13250         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
13251         _Float128 and L(). Replace _Float128 with long double and L(x)
13252         with xL, throughout the file.
13253         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13254         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
13255         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
13256         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
13257
13258 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13259
13260         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
13261         sysdeps/ieee754/ldbl-128ibm.
13262         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
13263         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
13264         of including it.  Keep _Float128 and L() intact.  These will be
13265         reviewed by a separate patch.
13266         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13267         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
13268         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
13269         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
13270
13271 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13272
13273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
13274         (__finitef128): Define to __redirect___finitef128.
13275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
13276         (__isinff128): Define to __redirect___isinff128.
13277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
13278         (__isnanf128): Define to __redirect___isnanf128.
13279
13280 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13281
13282         * sysdeps/powerpc/powerpc64le/Makefile
13283         (CFLAGS-tst-strtod-nan-locale.c): New variable.
13284         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
13285
13286 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
13287             Carlos O'Donell  <carlos@redhat.com>
13288
13289         [BZ #22180]
13290         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
13291         * stdlib/test-dlclose-exit-race.c: New file.
13292         * stdlib/test-dlclose-exit-race-helper.c: New file.
13293         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
13294
13295 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * crypt/Banner: Remove file.
13298         * nptl/Banner: Likewise.
13299         * resolv/Banner: Likewise.
13300         * soft-fp/Banner: Likewise.
13301         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
13302         ($(objpfx)version.d): Remove dependency on banner.h.
13303         ($(objpfx)version.os): Likewise.
13304         * nptl/version.c (banner): Do not include banner.h.
13305         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
13306         Jelinek and BIND code.
13307
13308 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
13309             Carlos O'Donell  <carlos@redhat.com>
13310
13311         * support/xdlfcn.h: New file.
13312         * support/xdlfcn.c: New file.
13313         * support/Makefile (libsupport-routines): Add xdlfcn.
13314         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
13315
13316 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
13317
13318         [BZ #20142]
13319         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13320         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
13321         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
13322         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
13323         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
13324         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
13325         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
13326         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
13327
13328 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
13329             Ricky Zhou  <rickyz@google.com>
13330             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
13331
13332         [BZ #14333]
13333         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
13334         Remove atomics.
13335         (__new_exitfn): Fail registration when we finished at_exit processing.
13336         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
13337         * stdlib/on_exit.c (__on_exit): Likewise.
13338         * stdlib/exit.c (__exit_funcs_done): New variable.
13339         (__run_exit_handlers): Use __exit_funcs_lock.
13340         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
13341         declarations.
13342         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
13343         (test-cxa_atexit-race, test-on_exit-race): New tests.
13344         * stdlib/test-atexit-race-common.c: New file.
13345         * stdlib/test-atexit-race.c: New file.
13346         * stdlib/test-at_quick_exit-race.c: New file.
13347         * stdlib/test-cxa_atexit-race.c: New file.
13348         * stdlib/test-on_exit-race.c: New file.
13349
13350 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13351
13352         * benchtests/Makefile: Add exp2f and log2f benchmarks.
13353         * benchtests/exp2f-inputs: Copy of expf-inputs.
13354         * benchtests/log2f-inputs: Copy of logf-inputs.
13355
13356 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
13357
13358         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
13359         Explicitly take address of first element of array arguments in
13360         call to INLINE_SYSCALL.
13361
13362 2017-09-19  Andreas Schwab  <schwab@suse.de>
13363
13364         [BZ #22134]
13365         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
13366         execveat first.
13367         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
13368         unimplemented.
13369         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
13370         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
13371         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
13372         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
13373         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13374         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
13375         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13376         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
13377         * posix/Makefile (tests): Add tst-fexecve.
13378         * posix/tst-fexecve.c: New file.
13379
13380 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13381
13382         * benchtests/Makefile: Add logf benchmark.
13383         * benchtests/logf-inputs: Add reduced trace from wrf_r.
13384
13385 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13386
13387         * benchtests/Makefile: Add expf benchmark.
13388         * benchtests/expf-inputs: Add reduced trace from wrf_r.
13389
13390 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
13391
13392         * csu/Makefile: Add -funwind-tables to libc-start.c.
13393         * debug/Makefile: Add -funwind-tables to backtrace.c.
13394         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
13395         * sysdeps/arm/Makefile: Likewise.
13396         * sysdeps/i386/Makefile: Likewise.
13397         * sysdeps/m68k/Makefile: Likewise.
13398         * sysdeps/mips/Makefile: Likewise.
13399         * sysdeps/nios2/Makefile: Likewise.
13400         * sysdeps/sh/Makefile: Likewise.
13401         * sysdeps/sparc/Makefile: Likewise.
13402
13403 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * benchtests/Makefile (bench-math): Add trunc and truncf.
13406         (CFLAGS-bench-trunc.c): New variable.
13407         (CFLAGS-bench-truncf.c): Likewise.
13408         * benchtests/trunc-inputs: New file.
13409         * benchtests/truncf-inputs: Likewise.
13410
13411 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13412
13413         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
13414
13415 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
13416
13417         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
13418         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
13419         redefine.
13420         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
13421         (exp10l): Define as weak alias.
13422         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
13423         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
13424         and redefine.
13425         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
13426         (remainderl): Define as weak alias.
13427
13428         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
13429         (fmal): Define using libm_alias_ldouble.
13430         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
13431         (acoshl): Define using libm_alias_ldouble.
13432         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
13433         (acosl): Define using libm_alias_ldouble.
13434         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
13435         (asinl): Define using libm_alias_ldouble.
13436         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
13437         (atan2l): Define using libm_alias_ldouble.
13438         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
13439         (atanhl): Define using libm_alias_ldouble.
13440         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
13441         (coshl): Define using libm_alias_ldouble.
13442         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
13443         (exp10l): Define using libm_alias_ldouble.
13444         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
13445         (exp2l): Define using libm_alias_ldouble.
13446         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
13447         (expl): Define using libm_alias_ldouble.
13448         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
13449         (fmodl): Define using libm_alias_ldouble.
13450         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
13451         (hypotl): Define using libm_alias_ldouble.
13452         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
13453         (j0l): Define using libm_alias_ldouble.
13454         (y0l): Likewise.
13455         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
13456         (j1l): Define using libm_alias_ldouble.
13457         (y1l): Likewise.
13458         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
13459         (jnl): Define using libm_alias_ldouble.
13460         (ynl): Likewise.
13461         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
13462         (log10l): Define using libm_alias_ldouble.
13463         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
13464         (log2l): Define using libm_alias_ldouble.
13465         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
13466         (logl): Define using libm_alias_ldouble.
13467         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
13468         (powl): Define using libm_alias_ldouble.
13469         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
13470         (remainderl): Define using libm_alias_ldouble.
13471         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
13472         (sinhl): Define using libm_alias_ldouble.
13473         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
13474         (sqrtl): Define using libm_alias_ldouble.
13475         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
13476         (tgammal): Define using libm_alias_ldouble.
13477         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
13478         (exp10l): Do not use long_double_symbol here.
13479         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
13480         [LIBM_SVID_COMPAT] (remainderl): Likewise.
13481         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
13482         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
13483         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
13484         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
13485         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
13486         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
13487         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
13488         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
13489         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
13490         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
13491         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
13492         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
13493         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
13494         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
13495         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
13496         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
13497         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
13498         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
13499         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
13500         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
13501
13502 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
13503
13504         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
13505         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
13506
13507 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13508
13509         * io/read.c (read): Add libc_hidden_weak.
13510         * sysdeps/mach/hurd/read.c (read): Likewise.
13511         * io/write.c (write): Likewise.
13512         * sysdeps/mach/hurd/write.c (write): Likewise.
13513         * io/pread64.c (__pread64): Likewise.
13514         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
13515         * posix/pread64.c (__pread64): Add libc_hidden_def.
13516
13517 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13518
13519         * benchtests/scripts/compare_strings.py: New option -g.
13520         (draw_graph): Print a message that a graph is being generated.
13521         (process_results): Generate graph only if -g is passed.
13522         (main): Process option -g.
13523
13524         * benchtests/scripts/compare_strings.py (process_results):
13525         Better spacing for output.
13526
13527         * benchtests/scripts/compare_strings.py: Use argparse.
13528         * benchtests/README: Document existence of compare_strings.py.
13529
13530 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * math/s_fma.c: Include <libm-alias-double.h>.
13533         (fma): Define using libm_alias_double.
13534         * math/s_nextafter.c: Include <libm-alias-double.h>.
13535         (nextafter): Define using libm_alias_double.
13536         * math/w_acos_compat.c: Include <libm-alias-double.h>.
13537         (acos): Define using libm_alias_double.
13538         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
13539         (aocsh): Define using libm_alias_double.
13540         * math/w_asin_compat.c: Include <libm-alias-double.h>.
13541         (asin): Define using libm_alias_double.
13542         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
13543         (atan2): Define using libm_alias_double.
13544         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
13545         (atanh): Define using libm_alias_double.
13546         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
13547         (cosh): Define using libm_alias_double.
13548         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
13549         (exp10): Define using libm_alias_double.
13550         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
13551         (exp2): Define using libm_alias_double.
13552         * math/w_exp_compat.c: Include <libm-alias-double.h>.
13553         (exp): Define using libm_alias_double.
13554         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
13555         (fmod): Define using libm_alias_double.
13556         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
13557         (hypot): Define using libm_alias_double.
13558         * math/w_j0_compat.c: Include <libm-alias-double.h>.
13559         (j0): Define using libm_alias_double.
13560         (y0): Likewise.
13561         * math/w_j1_compat.c: Include <libm-alias-double.h>.
13562         (j1): Define using libm_alias_double.
13563         (y1): Likewise.
13564         * math/w_jn_compat.c: Include <libm-alias-double.h>.
13565         (jn): Define using libm_alias_double.
13566         (yn): Likewise.
13567         * math/w_log10_compat.c: Include <libm-alias-double.h>.
13568         (log10): Define using libm_alias_double.
13569         * math/w_log2_compat.c: Include <libm-alias-double.h>.
13570         (log2): Define using libm_alias_double.
13571         * math/w_log_compat.c: Include <libm-alias-double.h>.
13572         (log): Define using libm_alias_double.
13573         * math/w_pow_compat.c: Include <libm-alias-double.h>.
13574         (pow): Define using libm_alias_double.
13575         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
13576         (remainder): Define using libm_alias_double.
13577         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
13578         (sinh): Define using libm_alias_double.
13579         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
13580         (sqrt): Define using libm_alias_double.
13581         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
13582         (tgamma): Define using libm_alias_double.
13583         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
13584         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
13585         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
13586         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
13587         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
13588         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
13589         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
13590         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
13591         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
13592         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
13593         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
13594         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
13595         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
13596         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
13597         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
13598         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
13599         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
13600         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
13601         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
13602         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
13603         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
13604         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
13605         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
13606         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
13607         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
13608
13609         * math/e_acoshl.c: Remove.
13610         * math/e_acosl.c: Likewise.
13611         * math/e_asinl.c: Likewise.
13612         * math/e_atan2l.c: Likewise.
13613         * math/e_atanhl.c: Likewise.
13614         * math/e_coshl.c: Likewise.
13615         * math/e_expl.c: Likewise.
13616         * math/e_fmodl.c: Likewise.
13617         * math/e_gammal_r.c: Likewise.
13618         * math/e_hypotl.c: Likewise.
13619         * math/e_j0l.c: Likewise.
13620         * math/e_j1l.c: Likewise.
13621         * math/e_jnl.c: Likewise.
13622         * math/e_lgammal_r.c: Likewise.
13623         * math/e_log10l.c: Likewise.
13624         * math/e_log2l.c: Likewise.
13625         * math/e_logl.c: Likewise.
13626         * math/e_powl.c: Likewise.
13627         * math/e_rem_pio2l.c: Likewise.
13628         * math/e_sinhl.c: Likewise.
13629         * math/e_sqrtf128.c: Likewise.
13630         * math/e_sqrtl.c: Likewise.
13631         * math/k_cosl.c: Likewise.
13632         * math/k_sinl.c: Likewise.
13633         * math/k_tanl.c: Likewise.
13634         * math/s_asinhl.c: Likewise.
13635         * math/s_atanl.c: Likewise.
13636         * math/s_cbrtl.c: Likewise.
13637         * math/s_erfl.c: Likewise.
13638         * math/s_expm1l.c: Likewise.
13639         * math/s_log1pl.c: Likewise.
13640         * math/s_tanhl.c: Likewise.
13641
13642 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13643
13644         [BZ #21745]
13645         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
13646         [$(subdir) = math] (sysdep_calls): New variable.  Has the
13647         previous contents of sysdep_routines, but re-sorted..
13648         [$(subdir) = math] (sysdep_routines): Re-use the contents from
13649         sysdep_calls.
13650         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
13651         defined in sysdep_calls and replace by the respective m_* names.
13652         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
13653         (compat_symbol): Undefine to avoid duplicated compat symbols in
13654         libc.
13655
13656 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
13657
13658         * math/s_fmaf.c: Include <libm-alias-float.h>.
13659         (fmaf): Define using libm_alias_float.
13660         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
13661         (acosf): Define using libm_alias_float.
13662         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
13663         (acoshf): Define using libm_alias_float.
13664         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
13665         (asinf): Define using libm_alias_float.
13666         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
13667         (atan2f): Define using libm_alias_float.
13668         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
13669         (atanhf): Define using libm_alias_float.
13670         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
13671         (coshf): Define using libm_alias_float.
13672         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
13673         (exp10f): Define using libm_alias_float.
13674         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
13675         (fmodf): Define using libm_alias_float.
13676         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
13677         (hypotf): Define using libm_alias_float.
13678         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
13679         (j0f): Define using libm_alias_float.
13680         (y0f): Likewise.
13681         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
13682         (j1f): Define using libm_alias_float.
13683         (y1f): Likewise.
13684         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
13685         (jnf): Define using libm_alias_float.
13686         (ynf): Likewise.
13687         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
13688         (log10f): Define using libm_alias_float.
13689         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
13690         (log2f): Define using libm_alias_float.
13691         * math/w_logf_compat.c: Include <libm-alias-float.h>.
13692         (logf): Define using libm_alias_float.
13693         * math/w_powf_compat.c: Include <libm-alias-float.h>.
13694         (powf): Define using libm_alias_float.
13695         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
13696         (remainderf): Define using libm_alias_float.
13697         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
13698         (sinhf): Define using libm_alias_float.
13699         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
13700         (sqrtf): Define using libm_alias_float.
13701         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
13702         (tgammaf): Define using libm_alias_float.
13703
13704 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
13705
13706         * include/math.h (roundeven): Change hidden_proto call to
13707         __roundeven.
13708         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
13709         alias.
13710         [NO_LONG_DOUBLE] (__j0l): New strong alias.
13711         (y0): Rename to __y0 and define as weak alias.
13712         [NO_LONG_DOUBLE] (__y0l): New strong alias.
13713         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
13714         alias.
13715         (y0f): Rename to __y0f and define as weak alias.
13716         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
13717         alias.
13718         [NO_LONG_DOUBLE] (__j1l): New strong alias.
13719         (y1): Rename to __y1 and define as weak alias.
13720         [NO_LONG_DOUBLE] (__y1l): New strong alias.
13721         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
13722         alias.
13723         (y1f): Rename to __y1f and define as weak alias.
13724         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
13725         alias.
13726         [NO_LONG_DOUBLE] (__jnl): New strong alias.
13727         (yn): Rename to __yn and define as weak alias.
13728         [NO_LONG_DOUBLE] (__ynl): New strong alias.
13729         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
13730         alias.
13731         (ynf): Rename to __ynf and define as weak alias.
13732         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
13733         (fromfp): Define as weak alias.
13734         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
13735         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
13736         (fromfpx): Define as weak alias.
13737         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
13738         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
13739         __getpayload and define as weak alias.
13740         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
13741         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
13742         __roundeven and define as weak alias.
13743         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
13744         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
13745         __setpayload.
13746         (setpayload): Define as weak alias.
13747         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
13748         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
13749         __setpayloadsig.
13750         (setpayloadsig): Define as weak alias.
13751         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
13752         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
13753         __totalorder and define as weak alias.
13754         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
13755         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
13756         to __totalordermag and define as weak alias.
13757         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
13758         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
13759         (ufromfp): Define as weak alias.
13760         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
13761         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
13762         __ufromfpx.
13763         (ufromfpx): Define as weak alias.
13764         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
13765         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
13766         Rename to __getpayload and define as weak alias.
13767         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
13768         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
13769         Rename to __roundeven and define as weak alias.
13770         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
13771         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
13772         Rename to __totalorder and define as weak alias.
13773         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
13774         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
13775         (totalordermag): Rename to __totalordermag and define as weak
13776         alias.
13777         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
13778         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
13779         macro.
13780         (__roundevenl): Likewise.
13781         (__totalorderl): Likewise.
13782         (__totalordermagl): Likewise
13783         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
13784         __fromfpf128.
13785         (fromfpf128): Define as weak alias.
13786         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
13787         __fromfpxf128.
13788         (fromfpxf128): Define as weak alias.
13789         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
13790         __setpayloadf128.
13791         (setpayloadf128): Define as weak alias.
13792         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
13793         __setpayloadsigf128.
13794         (setpayloadsigf128): Define as weak alias.
13795         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
13796         __ufromfpf128.
13797         (ufromfpf128): Define as weak alias.
13798         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
13799         __ufromfpxf128.
13800         (ufromfpxf128): Define as weak alias.
13801         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
13802         (fromfpf): Define as weak alias.
13803         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
13804         __fromfpxf.
13805         (fromfpxf): Define as weak alias.
13806         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
13807         __getpayloadf and define as weak alias.
13808         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
13809         __roundevenf and define as weak alias.
13810         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
13811         __setpayloadf.
13812         (setpayloadf): Define as weak alias.
13813         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
13814         __setpayloadsigf.
13815         (setpayloadsigf): Define as weak alias.
13816         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
13817         __totalorderf and define as weak alias.
13818         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
13819         Rename to __totalordermagf and define as weak alias.
13820         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
13821         __ufromfpf.
13822         (ufromfpf): Define as weak alias.
13823         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
13824         __ufromfpxf.
13825         (ufromfpxf): Define as weak alias.
13826         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
13827         __fromfpl.
13828         (fromfpl): Define as weak alias.
13829         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
13830         __fromfpxl.
13831         (fromfpxl): Define as weak alias.
13832         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
13833         to __getpayloadl and define as weak alias.
13834         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
13835         __roundevenl and define as weak alias.
13836         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
13837         __setpayloadl.
13838         (setpayloadl): Define as weak alias.
13839         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
13840         __setpayloadsigl.
13841         (setpayloadsigl): Define as weak alias.
13842         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
13843         to __totalorderl and define as weak alias.
13844         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
13845         Rename to __totalordermagl and define as weak alias.
13846         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
13847         __ufromfpl.
13848         (ufromfpl): Define as weak alias.
13849         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
13850         __ufromfpxl.
13851         (ufromfpxl): Define as weak alias.
13852         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
13853         __fromfpl.
13854         (fromfpl): Define as weak alias.
13855         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
13856         __fromfpxl.
13857         (fromfpxl): Define as weak alias.
13858         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
13859         Rename to __getpayloadl and define as weak alias.
13860         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
13861         to __roundevenl and define as weak alias.  Call __roundeven
13862         instead of roundeven.
13863         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
13864         __setpayloadl.
13865         (setpayloadl): Define as weak alias.
13866         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
13867         __setpayloadsigl.
13868         (setpayloadsigl): Define as weak alias.
13869         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
13870         Rename to __totalorderl and define as weak alias.
13871         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
13872         Rename to __totalordermagl and define as weak alias.
13873         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
13874         __ufromfpl.
13875         (ufromfpl): Define as weak alias.
13876         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
13877         __ufromfpxl.
13878         (ufromfpxl): Define as weak alias.
13879         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
13880         __fromfpl.
13881         (fromfpl): Define as weak alias.
13882         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
13883         __fromfpxl.
13884         (fromfpxl): Define as weak alias.
13885         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
13886         __getpayloadl and define as weak alias.
13887         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
13888         __roundevenl and define as weak alias.
13889         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
13890         __setpayloadl.
13891         (setpayloadl): Define as weak alias.
13892         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
13893         __setpayloadsigl.
13894         (setpayloadsigl): Define as weak alias.
13895         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
13896         __totalorderl and define as weak alias.
13897         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
13898         Rename to __totalordermagl and define as weak alias.
13899         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
13900         __ufromfpl.
13901         (ufromfpl): Define as weak alias.
13902         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
13903         __ufromfpxl.
13904         (ufromfpxl): Define as weak alias.
13905
13906 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13907
13908         * benchtests/bench-string.h (realloc_bufs): New function.
13909         (test_init): Call it.
13910         * benchtests/bench-memset-large.c (do_test): Likewise.
13911         * benchtests/bench-memset.c (do_test): Likewise.
13912
13913         * benchtests/bench-memset-large.c: Print output in JSON
13914         format.
13915         * benchtests/bench-memset.c: Likewise.
13916
13917 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
13918
13919         [BZ #21084]
13920         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
13921         * iconvdata/Makefile: Add IBM858.
13922         * iconvdata/gconv-modules: Likewise.
13923         * iconvdata/tst-tables.sh: Likewise.
13924         * iconvdata/ibm858.c: New file.
13925         * localedata/charmaps/IBM858: Likewise.
13926
13927 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
13928
13929         [BZ #22023]
13930         * locales/niu_NZ (LC_TIME): copy "niu_NU".
13931         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
13932
13933 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
13934
13935         [BZ #22112]
13936         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
13937         and add tel_int_fmt.
13938
13939 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
13940
13941         * sysdeps/generic/libm-alias-float128.h: New file.
13942         * sysdeps/generic/math-type-macros-float128.h: Include
13943         <libm-alias-float128.h>.
13944         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
13945
13946 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
13947
13948         * sysdeps/generic/libm-alias-ldouble.h: New file.
13949         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
13950         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
13951         * sysdeps/generic/math-type-macros-ldouble.h: Include
13952         <libm-alias-ldouble.h>.
13953         [!declare_mgen_alias] (declare_mgen_alias): Define to use
13954         libm_alias_ldouble.
13955
13956 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13957
13958         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
13959         * math/w_exp_compat.c: ... here.
13960         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
13961         * math/w_expf_compat.c: ... here.
13962         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
13963         * math/w_expl_compat.c: ... here.
13964         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
13965         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
13966         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
13967         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
13968
13969 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
13970
13971         * math/w_scalbln_template.c (strong_alias): Do not undefine and
13972         redefine.
13973         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
13974         macro.
13975         (ldexpl): Only define as compat symbol for libc, not libm.
13976         (scalbnl): Define as compat symbol for libc here.
13977         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
13978         define for [IS_IN (libc)].
13979         (__ldexpl_2): Remove alias.
13980         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
13981         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
13982         name in long_double_symbol call.
13983         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
13984         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
13985         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
13986         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
13987         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
13988         Remove macro.
13989         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
13990         Define as compat symbol.
13991
13992 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13993
13994         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
13995         * sysdeps/unix/sysv/linux/alpha/Makefile
13996         [$(subdir) = csu] (sysdep_routines): Remove rule.
13997
13998 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
13999
14000         * sysdeps/generic/libm-alias-double.h: New file.
14001         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
14002         * sysdeps/generic/math-type-macros-double.h: Include
14003         <libm-alias-double.h>.
14004         [declare_mgen_alias] (declare_mgen_alias): Define to use
14005         libm_alias_double.
14006         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
14007         (M_LIBM_NEED_COMPAT): Remove macro.
14008         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
14009         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
14010         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
14011         code.
14012         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14013         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14014         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14015         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14016         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14017         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14018         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14019         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14020         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14021         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14022         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14023         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14024         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14025         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14026         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14027         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14028         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14029         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14030         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14031         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14032         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14033         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14034         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14035         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14036         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14037         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14038         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14039         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
14040         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
14041         macro.
14042         (declare_mgen_alias): New macro.
14043         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
14044         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
14045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
14046         (M_LIBM_NEED_COMPAT): Remove macro.
14047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
14048         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
14049         <first-versions.h>.
14050         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
14051         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
14052
14053 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
14054
14055         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
14056         (declare_mgen_alias_2): Remove.
14057         * sysdeps/generic/math-type-macros-double.h
14058         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
14059         Likewise.
14060         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
14061         alias.
14062         (ldexp): Define with declare_mgen_alias.
14063         (scalbn): Likewise.
14064
14065 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
14066
14067         * grp/initgroups.c: Include config.h.
14068         (DEFAULT_CONFIG): New macro.
14069         (internal_getgrouplist): Use DEFAULT_CONFIG.
14070         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14071         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
14072         (DEFAULT_DEFCONFIG): New macro.
14073         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
14074         * nss/grp-lookup.c: Include config.h
14075         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
14076         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
14077         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
14078         * manual/nss.texi: Update default values section.
14079
14080 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
14081
14082         [BZ #21967]
14083         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
14084         New.
14085         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
14086         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14087         Handle MathVec_Prefer_No_AVX512.
14088         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
14089         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
14090         is set.
14091
14092 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14093
14094         * posix/sched_primax.c (__sched_get_priority_max): Add
14095         libc_hidden_def.
14096         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
14097         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
14098         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
14099         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
14100         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
14101         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
14102         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
14103         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
14104         Add aliases.
14105
14106 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
14107
14108         * sysdeps/generic/libm-alias-float.h: New file.
14109         * sysdeps/generic/math-type-macros-float.h: Include
14110         <libm-alias-float.h>.
14111         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
14112
14113 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14114
14115         [BZ #22093]
14116         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
14117         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
14118         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
14119         (HWCAP_IMPORTANT): Likewise.
14120         (HWCAP_X86_64): New enum.
14121         (HWCAP_X86_AVX512_1): Updated.
14122         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
14123         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
14124         (modules-names): Add x86_64/tst-x86_64mod-1.
14125         (LDFLAGS-tst-x86_64mod-1.so): New.
14126         ($(objpfx)tst-x86_64-1): Likewise.
14127         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
14128         (tst-x86_64-1-clean): Likewise.
14129         * sysdeps/x86_64/tst-x86_64-1.c: New file.
14130         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
14131
14132 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14133
14134         * po/sv.po: Update translations.
14135         * po/fr.po: Likewise.
14136
14137 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14138
14139         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
14140         seconds.
14141         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
14142         seconds.
14143         * elf/rtld-Rules: Fix $(error) use.
14144
14145 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
14146
14147         [BZ #14925]
14148         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
14149         * locale/iso-639.def: Change “Bengali” to “Bangla”.
14150         * localedata/locales/bn_BD: “Bengali” was still used in some
14151         comments. Change it to “Bangla”.
14152
14153 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
14154
14155         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
14156
14157 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
14158
14159         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
14160         thunderx2t99p1 to list of cpu names.
14161         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
14162         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
14163
14164 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
14165
14166         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
14167         Use strcmp instead of tunable_is_name.
14168
14169 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
14170
14171         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
14172         (F_GET_RW_HINT): New macro.
14173         [__USE_GNU] (F_SET_RW_HINT): Likewise.
14174         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
14175         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
14176         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
14177         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
14178         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
14179         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
14180         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
14181         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
14182
14183         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
14184         (F_ADD_SEALS): New macro.
14185         [__USE_GNU] (F_GET_SEALS): Likewise.
14186         [__USE_GNU] (F_SEAL_SEAL): Likewise.
14187         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
14188         [__USE_GNU] (F_SEAL_GROW): Likewise.
14189         [__USE_GNU] (F_SEAL_WRITE): Likewise.
14190
14191 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14192
14193         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
14194         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
14195         * posix/glob_internal.h (__glob_pattern_type):
14196         * posix/glob.c (glob):
14197         * posix/glob_pattern_p.c (__glob_pattern_p):
14198         Use them.
14199
14200         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
14201         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14202         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
14203         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
14204         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
14205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
14206         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
14207         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
14208         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
14209         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
14210         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
14211         * sysdeps/wordsize-64/glob.c: Likewise.
14212         * sysdeps/wordsize-64/glob64.c: Likewise.
14213         * sysdeps/wordsize-64/globfree.c: Likewise.
14214         * sysdeps/wordsize-64/globfree64.c: Likewise.
14215         * sysdeps/unix/sysv/linux/glob.c: New file.
14216         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
14217         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
14218         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
14219         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
14220         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
14221         adds !GLOB_NO_OLD_VERSION as an extra condition.
14222         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
14223         using relative path instead of absolute one.
14224         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14225         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14226         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14227         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14228         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
14229         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
14230
14231         [BZ #1062]
14232         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
14233         (glob): Use the same scratch buffer for both getlogin_r and
14234         getpwnam_r.  Don’t require preallocation of the login name.  This
14235         simplifies storage allocation, and corrects the handling of
14236         long login names.
14237
14238         [BZ #1062]
14239         * posix/glob.c (glob): Port recent patches to platforms
14240         lacking getpwnam_r.
14241         (glob): Fix longstanding misuse of errno after getpwnam_r, which
14242         returns an error number rather than setting errno.
14243
14244         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
14245         instead of GCC extension.
14246         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
14247         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
14248         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
14249
14250         [BZ #866]
14251         [BZ #1062]
14252         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
14253         * posix/bug-glob1.c: Remove file.
14254         * posix/tst-glob_symlinks.c: New file.
14255         * posix/glob.c (__lstat64): New macro.
14256         (is_dir): New function.
14257         (glob, glob_in_dir): Match symlinks even if they are dangling.
14258         (link_stat, link_exists_p): Remove.  All uses removed.
14259
14260         [BZ #1062]
14261         [BZ #19971]
14262         * posix/glob.c (struct readdir_result): Remove skip_entry member.
14263         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
14264         All uses removed.
14265
14266         [BZ #1062]
14267         CVE-2017-15671
14268         * posix/Makefile (routines): Add globfree, globfree64, and
14269         glob_pattern_p.
14270         * posix/flexmember.h: New file.
14271         * posix/glob_internal.h: Likewise.
14272         * posix/glob_pattern_p.c: Likewise.
14273         * posix/globfree.c: Likewise.
14274         * posix/globfree64.c: Likewise.
14275         * sysdeps/gnu/globfree64.c: Likewise.
14276         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
14277         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
14278         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
14279         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
14280         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
14281         * sysdeps/wordsize-64/globfree.c: Likewise.
14282         * sysdeps/wordsize-64/globfree64.c: Likewise.
14283         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
14284         [NDEBUG): Remove comments.
14285         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
14286         (dirent_type): New type.  Use uint_fast8_t not
14287         uint8_t, as C99 does not require uint8_t.
14288         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
14289         (struct readdir_result): Use dirent_type.  Do not define skip_entry
14290         unless it is needed; this saves a byte on platforms lacking d_ino.
14291         (readdir_result_type, readdir_result_skip_entry):
14292         New functions, replacing ...
14293         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
14294          these functions, which were removed.  This makes the callers
14295         easier to read.  All callers changed.
14296         (D_INO_TO_RESULT): Now empty if there is no d_ino.
14297         (size_add_wrapv, glob_use_alloca): New static functions.
14298         (glob, glob_in_dir): Check for size_t overflow in several places,
14299         and fix some size_t checks that were not quite right.
14300         Remove old code using SHELL since Bash no longer
14301         uses this.
14302         (glob, prefix_array): Separate MS code better.
14303         (glob_in_dir): Remove old Amiga and VMS code.
14304         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
14305         separate files.
14306         (glob_in_dir): Do not rely on undefined behavior in accessing
14307         struct members beyond their bounds.  Use a flexible array member
14308         instead
14309         (link_stat): Rename from link_exists2_p and return -1/0 instead of
14310         0/1.  Caller changed.
14311         (glob): Fix memory leaks.
14312         * posix/glob64 (globfree64): Move to separate file.
14313         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
14314         (globfree64): Remove hidden alias.
14315         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
14316         oldglob.
14317         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
14318         separate file.
14319         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
14320         define.
14321         Move compat code to separate file.
14322         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
14323         separate file.
14324
14325 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14326
14327         * resolv/tst-resolv-qtypes.c (domain): Changed to
14328         "const char domain[] =".
14329
14330 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
14331
14332         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
14333         version to 3.1.6.
14334
14335         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
14336         (TCP_MD5SIG_EXT): Likewise.
14337         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
14338         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
14339         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
14340
14341         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
14342
14343 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
14344
14345         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
14346
14347 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
14348
14349         [BZ #22100]
14350         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
14351
14352 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14353
14354         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
14355         before assuming that the file is empty.  Avoid testing buffer content
14356         when nread == 0.
14357
14358 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14359
14360         [BZ #18858]
14361         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
14362         Remove define.
14363         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
14364         Likewise.
14365         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
14366         Likewise.
14367         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
14368         Likewise.
14369         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
14370         Likewise.
14371         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
14372         Likewise.
14373         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
14374         Likewise.
14375
14376 2017-09-06  Florian Weimer  <fweimer@redhat.com>
14377
14378         * malloc/dynarray_emplace_enlarge.c
14379         (__libc_dynarray_emplace_enlarge): Add missing else.
14380
14381 2017-09-06  Florian Weimer  <fweimer@redhat.com>
14382
14383         [BZ #22096]
14384         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
14385         case of failure to obtain the global conf object.
14386
14387 2017-09-06  Florian Weimer  <fweimer@redhat.com>
14388
14389         [BZ #22095]
14390         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
14391         dynarray allocation failure.
14392
14393 2017-09-06  Florian Weimer  <fweimer@redhat.com>
14394
14395         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
14396         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
14397         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
14398         New functions.
14399         (response): Call them.  Add 'p', '6' flag processing.
14400         (test_reverse): New function.
14401         (test_get2_any): Call it.
14402         (test_no_inet6): Add 'p' test.
14403         (test_inet6): Likewise.
14404
14405 2017-09-06  Florian Weimer  <fweimer@redhat.com>
14406
14407         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
14408         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
14409         the QNAME.
14410         (test_gai): Adjust query names.  Add additional tests.
14411         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
14412         test_get2.  Adjust query names.  Add additional tests.
14413         (test_no_inet6): New function, extracted from threadfunc.
14414         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
14415         Add additional tests.
14416
14417 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
14418
14419         [BZ #22070]
14420         * localedata/unicode-gen/utf8_gen.py: Set the width for
14421         characters with Prepended_Concatenation_Mark property to 1
14422         * localedata/charmaps/UTF-8: Updated using the improved script.
14423
14424 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
14425
14426         [BZ #21750]
14427         * localedata/unicode-gen/utf8_gen.py: Improve the script to
14428         use the range notation for all ranges of neighbouring characters
14429         with the same width.
14430
14431 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
14432
14433         * sysdeps/generic/math-type-macros-double.h: Include
14434         <math-svid-compat.h>.
14435         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
14436         * sysdeps/generic/math-type-macros-float.h: Include
14437         <math-svid-compat.h>.
14438         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
14439         * sysdeps/generic/math-type-macros-ldouble.h: Include
14440         <math-svid-compat.h>.
14441         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
14442         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
14443         condition.
14444         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
14445         * math/w_acosf_compat.c: Likewise.
14446         * math/w_acosh_compat.c: Likewise.
14447         * math/w_acoshf_compat.c: Likewise.
14448         * math/w_acoshl_compat.c: Likewise.
14449         * math/w_acosl_compat.c: Likewise.
14450         * math/w_asin_compat.c: Likewise.
14451         * math/w_asinf_compat.c: Likewise.
14452         * math/w_asinl_compat.c: Likewise.
14453         * math/w_atan2_compat.c: Likewise.
14454         * math/w_atan2f_compat.c: Likewise.
14455         * math/w_atan2l_compat.c: Likewise.
14456         * math/w_atanh_compat.c: Likewise.
14457         * math/w_atanhf_compat.c: Likewise.
14458         * math/w_atanhl_compat.c: Likewise.
14459         * math/w_cosh_compat.c: Likewise.
14460         * math/w_coshf_compat.c: Likewise.
14461         * math/w_coshl_compat.c: Likewise.
14462         * math/w_exp10_compat.c: Likewise.
14463         * math/w_exp10f_compat.c: Likewise.
14464         * math/w_exp10l_compat.c: Likewise.
14465         * math/w_exp2_compat.c: Likewise.
14466         * math/w_exp2f_compat.c: Likewise.
14467         * math/w_exp2l_compat.c: Likewise.
14468         * math/w_fmod_compat.c: Likewise.
14469         * math/w_fmodf_compat.c: Likewise.
14470         * math/w_fmodl_compat.c: Likewise.
14471         * math/w_hypot_compat.c: Likewise.
14472         * math/w_hypotf_compat.c: Likewise.
14473         * math/w_hypotl_compat.c: Likewise.
14474         * math/w_j0_compat.c: Likewise.
14475         * math/w_j0f_compat.c: Likewise.
14476         * math/w_j0l_compat.c: Likewise.
14477         * math/w_j1_compat.c: Likewise.
14478         * math/w_j1f_compat.c: Likewise.
14479         * math/w_j1l_compat.c: Likewise.
14480         * math/w_jn_compat.c: Likewise.
14481         * math/w_jnf_compat.c: Likewise.
14482         * math/w_jnl_compat.c: Likewise.
14483         * math/w_lgamma_r_compat.c: Likewise.
14484         * math/w_lgammaf_r_compat.c: Likewise.
14485         * math/w_lgammal_r_compat.c: Likewise.
14486         * math/w_log10_compat.c: Likewise.
14487         * math/w_log10f_compat.c: Likewise.
14488         * math/w_log10l_compat.c: Likewise.
14489         * math/w_log2_compat.c: Likewise.
14490         * math/w_log2f_compat.c: Likewise.
14491         * math/w_log2l_compat.c: Likewise.
14492         * math/w_log_compat.c: Likewise.
14493         * math/w_logf_compat.c: Likewise.
14494         * math/w_logl_compat.c: Likewise.
14495         * math/w_pow_compat.c: Likewise.
14496         * math/w_powf_compat.c: Likewise.
14497         * math/w_powl_compat.c: Likewise.
14498         * math/w_remainder_compat.c: Likewise.
14499         * math/w_remainderf_compat.c: Likewise.
14500         * math/w_remainderl_compat.c: Likewise.
14501         * math/w_sinh_compat.c: Likewise.
14502         * math/w_sinhf_compat.c: Likewise.
14503         * math/w_sinhl_compat.c: Likewise.
14504         * math/w_sqrt_compat.c: Likewise.
14505         * math/w_sqrtf_compat.c: Likewise.
14506         * math/w_sqrtl_compat.c: Likewise.
14507         * math/w_tgamma_compat.c: Likewise.
14508         * math/w_tgammaf_compat.c: Likewise.
14509         * math/w_tgammal_compat.c: Likewise.
14510         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
14511         [LIBM_SVID_COMPAT].
14512         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
14513         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
14514         [LIBM_SVID_COMPAT].
14515         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
14516         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
14517         [LIBM_SVID_COMPAT].
14518         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
14519         * sysdeps/i386/fpu/w_sqrt.c: New file.
14520         * sysdeps/ia64/fpu/w_acos.c: Likewise.
14521         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
14522         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
14523         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
14524         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
14525         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
14526         * sysdeps/ia64/fpu/w_asin.c: Likewise.
14527         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
14528         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
14529         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
14530         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
14531         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
14532         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
14533         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
14534         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
14535         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
14536         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
14537         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
14538         * sysdeps/ia64/fpu/w_exp.c: Likewise.
14539         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
14540         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
14541         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
14542         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
14543         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
14544         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
14545         * sysdeps/ia64/fpu/w_expf.c: Likewise.
14546         * sysdeps/ia64/fpu/w_expl.c: Likewise.
14547         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
14548         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
14549         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
14550         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
14551         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
14552         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
14553         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
14554         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
14555         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
14556         * sysdeps/ia64/fpu/w_log.c: Likewise.
14557         * sysdeps/ia64/fpu/w_log10.c: Likewise.
14558         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
14559         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
14560         * sysdeps/ia64/fpu/w_log2.c: Likewise.
14561         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
14562         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
14563         * sysdeps/ia64/fpu/w_logf.c: Likewise.
14564         * sysdeps/ia64/fpu/w_logl.c: Likewise.
14565         * sysdeps/ia64/fpu/w_pow.c: Likewise.
14566         * sysdeps/ia64/fpu/w_powf.c: Likewise.
14567         * sysdeps/ia64/fpu/w_powl.c: Likewise.
14568         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
14569         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
14570         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
14571         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
14572         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
14573         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
14574         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
14575         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
14576         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
14577         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
14578         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
14579         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
14580         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
14581         [LIBM_SVID_COMPAT].
14582         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
14583         * sysdeps/ieee754/k_standard.c: Likewise.
14584         * sysdeps/ieee754/k_standardf.c: Likewise.
14585         * sysdeps/ieee754/k_standardl.c: Likewise.
14586         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
14588         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
14589         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
14590         long_double_symbol call on [LIBM_SVID_COMPAT].
14591         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
14592         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
14593         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
14594         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
14595         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
14596         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
14597         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
14598         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
14599         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
14600         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
14601         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
14602         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
14603         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
14604         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
14605         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
14606         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
14607         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
14608         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
14609         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
14610         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
14611         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
14612         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
14613
14614 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
14615
14616         * include/shlib-compat.h (TEST_COMPAT): New Macro.
14617         * malloc/tst-mallocstate.c: Convert from test-skeleton
14618         to test-driver.  Ifdef code using TEST_COMPAT macro.
14619         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
14620         * math/test-matherr.c: Likewise.
14621
14622 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
14623
14624         [BZ #22086]
14625         * debug/pcprofiledump.c (main): Use byte-swapped mask when
14626         comparing word with byte-swapped constant.
14627
14628 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
14629
14630         [BZ #20498]
14631         * locale/iso-639.def: add Miskito.
14632         * localedata/SUPPORTED: Add miq_NI/UTF-8.
14633         * localedata/locales/miq_NI: New file.
14634
14635 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
14636
14637         [BZ #18822]
14638         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
14639         (__mkdir): Likewise.
14640         * io/chmod.c (__chmod): Add libc_hidden_def.
14641         * io/mkdir.c (__mkdir): Likewise.
14642         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14643         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
14644         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
14645         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
14646
14647 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
14648
14649         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14650         version to 4.13.
14651
14652         [BZ #22082]
14653         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
14654         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
14655
14656 2017-09-04  Florian Weimer  <fweimer@redhat.com>
14657
14658         * math/math.h: Issue warning if log is defined.
14659
14660 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
14661
14662         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14663         kernel version to 4.13.
14664
14665 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14666
14667         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
14668         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
14669         parameter.
14670         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
14671         just <bits/types.h>.
14672         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
14673         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
14674         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
14675         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
14676         * misc/preadv2.c: Include <errno.h>.
14677         * misc/preadv64v2.c: Include <errno.h>.
14678         * misc/pwritev2.c: Include <errno.h>.
14679         * misc/pwritev64v2.c: Include <errno.h>.
14680         * sysdeps/posix/preadv2.c: Include <errno.h>.
14681         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
14682         Fix <unistd.h> inclusion.
14683         * sysdeps/posix/pwritev2.c: Include <errno.h>.
14684         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
14685         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
14686         __strtoul_internal): New functions.
14687         * sysdeps/posix/pause.c: Include <sigsetops.h>.
14688         * sysdeps/posix/system.c: Include <sigsetops.h>.
14689         * sysdeps/mach/hurd/i386/Makefile
14690         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
14691         [$(subdir) = csu] (sysdep-only-routines): Likewise.
14692         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
14693         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
14694         __feraiseexcept_renamed to feraiseexcept instead of
14695         __GI_feraiseexcept.
14696         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
14697         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
14698         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
14699         RWF_NOWAIT): Define to 0 if undefined already.
14700         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
14701         boils down to 0.
14702         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
14703         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
14704
14705 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
14706
14707         * manual/math.texi (pow10): Do not document.
14708         (pow10f): Likewise.
14709         (pow10l): Likewise.
14710         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
14711         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
14712         * math/libm-test-exp10.inc (pow10_test): Remove.
14713         (do_test): Do not call pow10.
14714         * math/w_exp10_compat.c (pow10): Make into compat symbol.
14715         [NO_LONG_DOUBLE] (pow10l): Likewise.
14716         * math/w_exp10f_compat.c (pow10f): Likewise.
14717         * math/w_exp10l_compat.c (pow10l): Likewise.
14718         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
14719         (pow10): Make into compat symbol.
14720         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
14721         (pow10f): Make into compat symbol.
14722         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
14723         (pow10l): Make into compat symbol.
14724         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
14725         pow10.
14726         (CFLAGS-nldbl-pow10.c): Remove variable..
14727         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
14728         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
14729         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
14730         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
14731         Undefine and redefine.
14732         (pow10l): Make into compat symbol.
14733         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
14734         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
14735         * sysdeps/arm/libm-test-ulps: Likewise.
14736         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
14737         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14738         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14739         * sysdeps/microblaze/libm-test-ulps: Likewise.
14740         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
14741         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14742         * sysdeps/nios2/libm-test-ulps: Likewise.
14743         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14744         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
14745         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
14746         * sysdeps/sh/libm-test-ulps: Likewise.
14747         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
14748         * sysdeps/tile/libm-test-ulps: Likewise.
14749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14750
14751 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
14752
14753         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
14754
14755 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
14756
14757         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
14758         "../ChangeLog.old/ChangeLog.8".
14759         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
14760         "../ChangeLog.old/ChangeLog.14".
14761
14762 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
14763
14764         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
14765         Threads Library.
14766
14767 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
14768
14769         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
14770
14771 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
14772
14773         * csu/version.c (banner): Remove "by Roland McGrath et al.".
14774         * nptl/Banner: Remove "by Ulrich Drepper et al.".
14775
14776 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
14777
14778         * stdlib/tst-atexit-common.c (do_test): Test support for at least
14779         32 atexit handlers.
14780
14781 2017-09-01  Zack Weinberg  <zackw@panix.com>
14782
14783         * math/math.h (HUGE_VAL): Improve commentary.
14784
14785 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14786             Andreas Schwab  <schwab@suse.de>
14787
14788         [BZ #21530]
14789         * include/stdio.h (__gen_tempfd): New function.
14790         * stdio-common/Makefile (routines): Add gentempfd.
14791         * stdio-common/gentempfd.c: New file.
14792         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
14793         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
14794         unnamed file first.
14795
14796 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14797
14798         [BZ #21915]
14799         [BZ #21922]
14800         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
14801         result to determine success or failure, not the errno value.
14802         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
14803         (tst-nss-files-hosts-erange): Link with -ldl.
14804         * nss/tst-nss-files-hosts-erange.c: New file.
14805         * nss/tst-resolv-basic.c (response): Handle nodata.example.
14806         (do_test): Add NO_DATA tests.
14807         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
14808         (do_test): Call it.
14809
14810 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14811
14812         [BZ #21922]
14813         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
14814         coming from gethostbyname2_r.
14815
14816 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14817
14818         * support/namespace.h (struct support_chroot_configuration): Add
14819         hosts, host_conf.
14820         (struct support_chroot): Add path_hosts, path_host_conf.
14821         * support/support_chroot.c (write_file): New function.
14822         (support_chroot_create): Call it to process /etc/resolv.conf,
14823         /etc/hosts, /etc/host.conf.
14824         (support_chroot_free): Update.
14825
14826 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14827
14828         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
14829         status indicates it is set.
14830
14831 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14832
14833         [BZ #20532]
14834         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
14835         function lookup failures more reliable.
14836
14837 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14838
14839         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
14840         (getcanonname): Likewise.
14841         (gaih_inet): Likewise.
14842
14843 2017-09-01  Florian Weimer  <fweimer@redhat.com>
14844
14845         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
14846         (getcanonname): Likewise.
14847         (gaih_inet): Likewise.
14848
14849 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
14850             Richard Henderson <rth@twiddle.net>
14851
14852         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
14853         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
14854         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
14855         (IREG_SIZE, OREG_SIZE): New macros.
14856         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
14857         (IREG_SIZE, OREG_SIZE): New macros.
14858         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
14859         (IREG_SIZE): New macro.
14860         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
14861         (IREG_SIZE): New macro.
14862         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
14863         New includes.
14864         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
14865         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
14866         (__CONCATX): Handle exceptions correctly on large values that may
14867         set FE_INVALID.
14868         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
14869         Initialize if not already set.
14870         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
14871
14872 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14873
14874         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
14875         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
14876         Likewise.
14877         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
14878         Likewise.
14879         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
14880         Likewise.
14881         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
14882         Likewise.
14883         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
14884         Likewise.
14885         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
14886         Likewise.
14887         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
14888         Likewise.
14889         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
14890         (NO_CANCELLATION): Likewise.
14891         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
14892         Likewise.
14893         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
14894         Likewise.
14895         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
14896         Likewise.
14897         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
14898         (NO_CANCELLATION): Likewise.
14899         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
14900         (NO_CANCELLATION): Likewise.
14901         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
14902         Likewise
14903         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
14904         Likewise.
14905         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
14906         Likewise.
14907         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
14908         Likewise.
14909         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
14910         hidden prototype.
14911         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
14912         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
14913
14914 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
14915
14916         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
14917         in resolver call.
14918
14919 2017-08-31  Florian Weimer  <fweimer@redhat.com>
14920
14921         * include/libc-symbols.h (internal_function): Remove.
14922
14923 2017-08-31  Florian Weimer  <fweimer@redhat.com>
14924
14925         * stdlib/fmtmsg.c (internal_addseverity): Remove
14926         internal_function.
14927
14928 2017-08-31  Florian Weimer  <fweimer@redhat.com>
14929
14930         * stdio-common/printf_fp.c (group_number): Remove
14931         internal_function.
14932         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
14933
14934 2017-08-31  Florian Weimer  <fweimer@redhat.com>
14935
14936         * posix/fnmatch.c (internal_function): Remove definition.
14937         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
14938         * posix/regcomp.c (peek_token, init_word_char)
14939         (duplicate_node_closure, fetch_token, peek_token)
14940         (peek_token_bracket, build_range_exp, build_collating_symbol):
14941         Likewise.
14942         * posix/regex_internal.c (re_string_construct_common)
14943         (create_ci_newstate, create_cd_newstate, re_string_allocate)
14944         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
14945         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
14946         (re_string_translate_buffer, re_string_reconstruct)
14947         (re_string_peek_byte_case, re_string_fetch_byte_case)
14948         (re_string_destruct, re_string_context_at, re_node_set_alloc)
14949         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
14950         (re_node_set_add_intersect, re_node_set_init_union)
14951         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
14952         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
14953         (re_dfa_add_node, calc_state_hash, re_acquire_state)
14954         (re_acquire_state_context): Likewise.
14955         * posix/regex_internal.h (internal_function): Remove definition.
14956         (re_string_realloc_buffers, build_wcs_buffer)
14957         (build_wcs_upper_buffer, build_upper_buffer)
14958         (re_string_translate_buffer, re_string_context_at)
14959         (re_string_char_size_at, re_string_wchar_at)
14960         (re_string_elem_size_at): Likewise.
14961         * posix/regexec.c (match_ctx_init, match_ctx_clean)
14962         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
14963         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
14964         (re_search_internal, re_search_2_stub, re_search_stub)
14965         (re_copy_regs, prune_impossible_nodes, check_matching)
14966         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
14967         (free_fail_stack_return, sift_states_iter_mb)
14968         (sift_states_backward, build_sifted_states)
14969         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
14970         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
14971         (check_subexp_limits, sift_states_bkref, merge_state_array)
14972         (find_recover_state, transit_state, merge_state_with_log)
14973         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
14974         (transit_state_mb, transit_state_bkref, get_subexp)
14975         (get_subexp_sub, find_subexp_node, check_arrival)
14976         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
14977         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
14978         (check_node_accept_bytes, find_collation_sequence_value)
14979         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
14980         (acquire_init_state_context, check_halt_node_context)
14981         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
14982         (sub_epsilon_src_nodes): Likewise.
14983         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
14984         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
14985         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
14986         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
14987         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
14988         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
14989         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
14990         * sysdeps/posix/ttyname.c (getttyname): Likewise.
14991         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14992         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
14993         (PREADV): Likewise.
14994         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
14995         (PREADV): Likewise.
14996         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
14997         (PWRITEV): Likewise.
14998         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
14999         (PWRITEV): Likewise.
15000         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
15001         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15002
15003 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15004
15005         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
15006         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
15007         Remove internal_function.
15008         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15009         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
15010         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
15011         (__deallocate_stack, __libc_pthread_init)
15012         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
15013         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
15014         (__libc_disable_asynccancel, __librt_disable_asynccancel):
15015         Likewise.
15016         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
15017         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
15018         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
15019         Likewise.
15020         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
15021         (__pthread_mutex_unlock_usercnt): Likewise.
15022
15023 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15024
15025         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
15026         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
15027         (fts_safe_changedir): Remove internal_function.
15028         * io/ftw.c (internal_function): Remove definition.
15029         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
15030
15031 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15032
15033         * inet/deadline.c (__deadline_current_time)
15034         (__deadline_from_timeval, __deadline_to_ms): Remove
15035         internal_function.
15036         * inet/getnameinfo.c (nrl_domainname): Likewise.
15037         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
15038         * inet/inet6_option.c (add_pad): Likewise.
15039         * inet/net-internal.h (__deadline_current_time)
15040         (__deadline_from_timeval, __deadline_to_ms): Likewise.
15041         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
15042         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
15043         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
15044
15045 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
15046
15047         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
15048         include <bits/nan.h>.
15049         * math/Makefile (headers): Remove bits/nan.h.
15050         * bits/nan.h: Remove.
15051         * sysdeps/ieee754/bits/nan.h: Likewise.
15052         * sysdeps/mips/bits/nan.h: Likewise.
15053
15054         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
15055         not include <bits/inf.h>.
15056         * math/Makefile (headers): Remove bits/inf.h.
15057         * bits/inf.h: Remove.
15058         * sysdeps/ieee754/bits/inf.h: Likewise.
15059
15060         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
15061         bits/huge_vall.h or bits/huge_val_flt128.h.
15062         (HUGE_VAL): Define directly here.
15063         [__USE_ISOC99] (HUGE_VALF): Likewise.
15064         [__USE_ISOC99] (HUGE_VALL): Likewise.
15065         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
15066         (HUGE_VAL_F128): Likewise.
15067         * math/Makefile (headers): Remove bits/huge_val.h,
15068         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
15069         * bits/huge_val.h: Remove.
15070         * bits/huge_val_flt128.h: Likewise.
15071         * bits/huge_valf.h: Likewise.
15072         * bits/huge_vall.h: Likewise.
15073         * sysdeps/ia64/bits/huge_vall.h: Likewise.
15074         * sysdeps/ieee754/bits/huge_val.h: Likewise.
15075         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
15076         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
15077         * sysdeps/sh/bits/huge_val.h: Likewise.
15078         * sysdeps/sparc/bits/huge_vall.h: Likewise.
15079         * sysdeps/x86/bits/huge_vall.h: Likewise.
15080
15081 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15082
15083         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
15084         internal_function.
15085         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
15086         Likewise.
15087         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
15088         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
15089         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
15090         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
15091         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15092         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
15093         * elf/dl-libc.c (dlerror_run): Likewise.
15094         * elf/dl-load.c (add_name_to_object, decompose_rpath)
15095         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
15096         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
15097         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
15098         Likewise.
15099         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
15100         (_dl_higher_prime_number, _dl_strtoul): Likewise.
15101         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
15102         * elf/dl-profile.c (_dl_start_profile): Likewise.
15103         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
15104         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
15105         Likewise.
15106         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
15107         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
15108         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
15109         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
15110         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
15111         (_dl_allocate_tls_storage): Likewise.
15112         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
15113         (_dl_check_all_versions): Likewise.
15114         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
15115         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
15116         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
15117         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15118         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
15119         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
15120         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
15121         internal_function from __dl_start.
15122         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
15123         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
15124         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
15125         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
15126         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
15127         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
15128         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
15129         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
15130         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
15131         (_dl_next_ld_env_entry, _dl_important_hwcaps)
15132         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
15133         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
15134         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
15135         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
15136         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
15137         Likewise.
15138         (struct rtld_global_ro): Remove internal_function from the
15139         _dl_lookup_symbol_x member.
15140         (_dl_symbol_value): Remove.  No longer defined anywhere.
15141         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
15142         internal_function.
15143         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15144         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
15145         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
15146         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
15147         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
15148         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
15149         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
15150         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
15151         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
15152         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
15153         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15154         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
15155
15156 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15157
15158         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
15159         Remove internal_function.
15160         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15161         Likewise.
15162         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15163         Likewise.
15164
15165 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15166
15167         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
15168         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
15169         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
15170
15171 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15172
15173         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
15174         (__gai_enqueue_request): Remove internal_function.
15175         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
15176         (__gai_remove_request, __gai_notify, __gai_notify_only)
15177         (__gai_sigqueue): Likewise.
15178         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
15179         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15180         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
15181         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15182         Likewise.
15183
15184 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15185
15186         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
15187         * include/dirent.h (__opendirat, __getdents, __getdents64)
15188         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
15189         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
15190         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
15191         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
15192         Likewise.
15193         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
15194
15195 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15196
15197         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
15198         internal_function.
15199         (GETCWD_RETURN_TYPE): Likewise.
15200
15201 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15202
15203         * include/time.h (__tz_compute, __strptime_internal): Remove
15204         internal_function.
15205         * time/strptime_l.c (__strptime_internal): Likewise.
15206         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
15207
15208 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15209
15210         * iconv/gconv.c (__gconv): Remove internal_function.
15211         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
15212         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
15213         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
15214         (__gconv_release_cache): Likewise.
15215         * iconv/gconv_close.c (__gconv_close): Likewise.
15216         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
15217         (read_conf_file, __gconv_get_path): Likewise.
15218         * iconv/gconv_db.c (derivation_lookup, add_derivation)
15219         (__gconv_release_step, gen_steps, increment_counter)
15220         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
15221         (__gconv_close_transform, free_modules_db): Likewise.
15222         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
15223         Likewise.
15224         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
15225         (__gconv_find_transform, __gconv_lookup_cache)
15226         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
15227         (__gconv_close_transform, __gconv_release_cache)
15228         (__gconv_loaded_object, __gconv_release_shlib)
15229         (__gconv_compare_alias): Likewise.
15230         * iconv/gconv_open.c (__gconv_open): Likewise.
15231         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
15232         * iconv/iconvconfig.c (add_module): Likewise.
15233         * intl/dcigettext.c (plural_lookup, guess_category_value)
15234         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
15235         * intl/eval-plural.h (plural_eval): Likewise.
15236         * intl/finddomain.c (_nl_find_domain): Likewise.
15237         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
15238         (_nl_load_domain, _nl_find_msg): Likewise.
15239         (internal_function): Remove definition.
15240         * intl/loadinfo.h (internal_function): Likewise.
15241         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
15242         internal_function.
15243         * intl/localealias.c (internal_function): Remove definition.
15244         (read_alias_file): Remove internal_function.
15245         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
15246         * intl/plural-exp.h (internal_function): Remove definition.
15247         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
15248         internal_function.
15249         * intl/plural.c: Regenerate.
15250         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
15251         * locale/coll-lookup.c (__collidx_table_lookup)
15252         (__collseq_table_lookup): Likewise.
15253         * locale/coll-lookup.h (__collidx_table_lookup)
15254         (__collseq_table_lookup): Likewise.
15255         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
15256         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
15257         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
15258         (_nl_unload_locale): Likewise.
15259         * locale/localeinfo.h (struct __locale_data): Remove
15260         internal_function from cleanup member.
15261         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
15262         (_nl_remove_locale, _nl_load_locale_from_archive)
15263         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
15264         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
15265         (_nl_cleanup_time): Remove internal_function.
15266         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
15267         (_nl_parse_alt_digit): Likewise.
15268         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
15269         (_nl_select_era_entry): Likewise.
15270         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
15271         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
15272         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
15273         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
15274         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
15275
15276 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15277
15278         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
15279         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
15280         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
15281         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
15282         Likewise.
15283         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
15284         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
15285         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
15286         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
15287         Likewise.
15288         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
15289
15290 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15291
15292         * misc/getttyent.c (skip, value): Remove internal_function.
15293         * misc/syslog.c (openlog_internal): Likewise.
15294         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
15295
15296 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15297
15298         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
15299         (__nss_rewrite_field): Remove internal_function.
15300         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
15301         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
15302         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
15303         * nss/nsswitch.c (nss_parse_file, nss_getline)
15304         (nss_parse_service_list, nss_new_service): Likewise.
15305         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
15306         * nss/valid_field.c (__nss_valid_field): Likewise.
15307         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
15308
15309 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15310
15311         * malloc/arena.c (__malloc_fork_lock_parent)
15312         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
15313         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
15314         internal_function from defintions.
15315         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
15316         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
15317         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
15318         internal_function from declarations.
15319         * malloc/malloc.c (internal_function): Do not define.
15320         (mem2mem_check): Remove internal_function from declaration.
15321         (munmap_chunk, mremap_chunk): Remove internal_function.
15322         * malloc/mtrace.c (tr_where): Likewise.
15323
15324 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15325
15326         * include/rpc/pmap_clnt.h (__get_socket): Remove
15327         internal_function.
15328         * sunrpc/auth_des.c (synchronize): Likewise.
15329         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
15330         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
15331         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
15332         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
15333         (key_call): Likewise.
15334         * sunrpc/pm_getport.c (__get_socket): Likewise.
15335         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
15336         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
15337         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
15338         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
15339         (invalidate): Likewise.
15340         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
15341         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
15342         (set_input_fragment, get_input_bytes): Likewise.
15343
15344 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15345
15346         * malloc/malloc.c (_int_free): Remove locked variable and related
15347         asserts.
15348
15349 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
15350
15351         [BZ #22051]
15352         * Makerules (build-module-helper-objlist): Filter out
15353         $(elf-objpfx)sofini.os.
15354         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
15355         needed.
15356
15357 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15358
15359         * libio/fcloseall.c: Assume weak_alias is defined.
15360         * libio/feof.c: Likewise.
15361         * libio/fileno.c: Likewise.
15362         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
15363         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
15364         definitions.
15365         (_IO_file_open): Call __open directly.
15366         (_IO_new_file_sync): Assume ESPIPE is defined.
15367         (_IO_file_seekoff_maybe_mmap): Call __read directly.
15368         (_IO_new_file_write): Call __write directly.
15369         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
15370         * libio/ftello64.c (__ftello64): Assume EIO is defined.
15371         * libio/genops.c: Assume _LIBC is defined.
15372         (save_for_backup): Remove internal_function.
15373         * libio/getc.c: Assume weak_alias is defined.
15374         * libio/getwc.c: Likewise.
15375         * libio/iofclose.c: Assume _LIBC is defined.
15376         * libio/iofdopen.c: Likewise.
15377         (_IO_fcntl): Remove macro definition.
15378         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
15379         Call __fcntl directly.
15380         * libio/iofflush.c: Assume weak_alias is defined.
15381         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
15382         defined.
15383         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
15384         * libio/iofgets.c: Likewise.
15385         * libio/iofopen.c: Assume _LIBC is defined.
15386         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
15387         * libio/iofputs.c: Assume weak_alias is defined.
15388         * libio/iofread.c: Likewise.
15389         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
15390         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15391         * libio/ioftell.c: Assume weak_alias is defined.
15392         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
15393         * libio/iofwide.c: Assume _LIBC is defined.
15394         (_IO_fwide): Drop SHARED conditional because it is implied by
15395         SHLIB_COMPAT.
15396         * libio/iofwrite.c: Assume weak_alias is defined.
15397         * libio/iogetdelim.c: Likewise.
15398         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
15399         * libio/iogetwline.c (wmemcpy): Remove macro definition.
15400         (_IO_getwline): Call __wmemcpy directly.
15401         * libio/iopopen.c: Assume _LIBC is defined.
15402         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
15403         (_IO_close): Remove macro definitions.
15404         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
15405         _exit directly.
15406         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
15407         directly.
15408         * libio/ioputs.c: Assume weak_alias is defined.
15409         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
15410         * libio/iosetbuffer.c: Assume weak_alias is defined.
15411         * libio/iosetvbuf.c: Likewise.
15412         * libio/ioungetc.c: Likewise.
15413         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
15414         libc_hidden_def, libc_hidden_weak, NULL are defined.
15415         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
15416         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
15417         defined.
15418         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
15419         definitions.
15420         (_IO_old_file_init_internal): Drop SHARED conditional because it
15421         is implied by SHLIB_COMPAT.
15422         (_IO_old_file_fopen): Call __open directly.
15423         (_IO_old_file_sync): Assume ESPIPE is defined.
15424         (_IO_old_file_write): Call __write directly.
15425         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
15426         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
15427         Call __fcntl directly.
15428         * libio/oldiofgetpos.c: Assume weak_alias is defined.
15429         (_IO_old_fgetpos): Assume EIO is defined.
15430         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
15431         (_IO_old_fgetpos64): Assume EIO is defined.
15432         * libio/oldiofsetpos.c: Assume weak_alias is defined.
15433         (_IO_old_fsetpos): Assume EIO is defined.
15434         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
15435         (_IO_old_fsetpos64): Assume EIO is defined.
15436         * libio/oldiopopen.c:  Assume _LIBC is defined.
15437         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
15438         (_IO_close): Remove macro definitions.
15439         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
15440         directly.
15441         (_IO_old_proc_close): Call __close, __waitpid directly.
15442         * libio/put.c: Assume weak_alias is defined.
15443         * libio/stdfiles.c: Assume _LIBC is defined.
15444         * libio/stdio.c: Likewise.
15445         * libio/wfileops.c: Likewise.
15446         (_IO_wfile_sync): Assume ESPIPE is defined.
15447         * libio/wgenops.c: Assume _LIBC is defined.
15448         (save_for_wbackup): Remove internal_function.
15449
15450 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15451
15452         * malloc/malloc.c (top_check): Change return type to void.  Remove
15453         internal_function.
15454         * malloc/hooks.c (top_check): Likewise.
15455         (malloc_check, realloc_check, memalign_check): Adjust.
15456
15457 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
15458
15459         [BZ #21457]
15460         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
15461         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
15462         sigcontext and namespace requirements.
15463         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
15464         * sysdeps/m68k/sys/ucontext.h: Likewise.
15465         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
15466         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
15467         <bits/sigcontext.h>.
15468         (__ctx): Define earlier.
15469         (mcontext_t): Define structure contents rather than using struct
15470         sigcontext.
15471         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
15472         __glibc_reserved1 instead of __reserved.
15473         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
15474         <bits/sigcontext.h>.
15475         (__ctx): Define earlier.
15476         (mcontext_t): Define structure contents rather than using struct
15477         sigcontext.
15478         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
15479         mcontext_t instead of struct sigcontext.
15480         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
15481         <bits/sigcontext.h>.
15482         (__ctx): Define earlier.
15483         (mcontext_t): Define structure contents rather than using struct
15484         sigcontext.
15485         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
15486         <bits/sigcontext.h>.
15487         (__ctx): Define earlier.
15488         (mcontext_t): Define structure contents rather than using struct
15489         sigcontext.
15490         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
15491         mcontext_t instead of struct sigcontext.
15492         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
15493         mcontext_t instead of struct sigcontext.
15494         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
15495         <bits/sigcontext.h>.
15496         (__ctx): New macro.
15497         (struct __ia64_fpreg_mcontext): New type.
15498         (mcontext_t): Define structure contents rather than using struct
15499         sigcontext.
15500         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
15501         (uc_sigmask): Define using __ctx.
15502         (uc_stack): Likewise.
15503         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
15504         <bits/sigcontext.h>.
15505         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15506         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
15507         <bits/sigcontext.h>.
15508         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
15509         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
15510         <bits/sigcontext.h>.
15511         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
15512         <bits/sigcontext.h>.
15513         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
15514         <bits/sigcontext.h>.
15515         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
15516         <bits/sigcontext.h>.
15517         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
15518         <bits/sigcontext.h>.
15519         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
15520         <bits/sigcontext.h>.
15521         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
15522         <bits/sigcontext.h>.
15523         (__ctx): Define earlier.
15524         (mcontext_t): Define structure contents rather than using struct
15525         sigcontext.
15526         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
15527         <bits/sigcontext.h>.  Include <bits/types.h>.
15528         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
15529         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
15530         (test-xfail-XPG42/ucontext.h/conform): Likewise.
15531         (test-xfail-UNIX98/signal.h/conform): Likewise.
15532         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
15533         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
15534         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
15535         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
15536         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
15537         (test-xfail-POSIX2008/signal.h/conform): Likewise.
15538         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
15539         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
15540         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
15541
15542 2017-08-30  Florian Weimer  <fweimer@redhat.com>
15543
15544         * malloc/dynarray_emplace_enlarge.c
15545         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
15546         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
15547         * malloc/tst-dynarray.c (test_long_overflow): New function.
15548         (do_test): Call it.
15549
15550 2017-08-30  Florian Weimer  <fweimer@redhat.com>
15551
15552         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
15553         (set_arena_corrupt): Remove definitions.
15554         (mtrim): Do not check for corrupt arena.
15555         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
15556         Likewise.
15557
15558 2017-08-30  Florian Weimer  <fweimer@redhat.com>
15559
15560         [BZ #21754]
15561         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
15562         check_action.
15563         (ptmalloc_init): Do not set or use check_action.
15564         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
15565         call to malloc_printerr.  Remove return statement.
15566         (free_check): Likewise.  Remove arena unlock.
15567         (top_check): Update comment.  Adjust call to malloc_printerr.
15568         Remove heap repair code.
15569         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
15570         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
15571         (sysmalloc): Adjust call to malloc_printerr.
15572         (munmap_chunk, __libc_realloc): Likewise.  Remove return
15573         statement.
15574         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
15575         Remove errout label and corresponding gotos.
15576         (_int_free): Likewise.  Remove arena unlock.
15577         (do_set_mallopt_check): Do not set check_action.
15578         (malloc_printerr): Adjust parameter list.  Do not mark arena as
15579         corrupt.
15580         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
15581         comment.
15582         * manual/probes.texi (Memory Allocation Probes): Remove
15583         memory_mallopt_check_action.
15584
15585 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
15586
15587         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
15588         Use pointer to uint64_t instead of long int for sp.
15589
15590 2017-08-30  Florian Weimer  <fweimer@redhat.com>
15591
15592         [BZ #21754]
15593         * malloc/malloc.c (malloc_printerr): Always terminate the process,
15594         without printing a backtrace.  Do not leak any information in the
15595         error message.
15596         * manual/memory.texi (Heap Consistency Checking): Update.
15597         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
15598
15599 2017-08-30  Florian Weimer  <fweimer@redhat.com>
15600
15601         Do not scale NPTL tests with available number of CPUs.
15602         * nptl/tst-cond16.c (count): Set to constant value of 8.
15603         * nptl/tst-cond18.c (count): Likewise.
15604
15605 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
15606
15607         [BZ #22035]
15608         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
15609         Define to take a second argument that is a macro that
15610         concatentates a suffix, not the suffix itself.
15611         (__CONCAT_d): New macro.
15612         (__CONCAT_f): Likewise.
15613         (__CONCAT_l): Likewise.
15614
15615 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
15616
15617         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
15618         by child.
15619
15620 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15621             Aurelien Jarno  <aurelien@aurel32.net>
15622             Maciej W. Rozycki  <macro@imgtec.com>
15623
15624         [BZ #21956]
15625         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
15626         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
15627         `mips16-syscall6' and `mips16-syscall7'.
15628         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
15629         (CFLAGS-mips16-syscall7.c): Remove.
15630         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
15631         Remove `__mips16_syscall5', `__mips16_syscall6' and
15632         `__mips16_syscall7'.
15633         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
15634         (__mips16_syscall0): Rename `__mips16_syscall_return' to
15635         `__mips_syscall_return'.
15636         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
15637         (__mips16_syscall1): Likewise.
15638         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
15639         (__mips16_syscall2): Likewise.
15640         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
15641         (__mips16_syscall3): Likewise.
15642         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
15643         (__mips16_syscall4): Likewise.
15644         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
15645         Remove.
15646         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
15647         Remove.
15648         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
15649         Remove.
15650         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
15651         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
15652         `__mips16_syscall5'.  Remove prototype.
15653         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
15654         `__mips16_syscall6'.  Remove prototype.
15655         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
15656         `__mips16_syscall7'.  Remove prototype.
15657         (__nomips16, __mips16_syscall_return): Move to...
15658         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
15659         (__nomips16, __mips_syscall_return): ... here.
15660         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
15661         `__mips16_syscall_return' to `__mips_syscall_return'.
15662         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
15663         `internal_syscall##nr'.
15664         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
15665         `internal_syscall##nr'.
15666         (FORCE_FRAME_POINTER): Remove.
15667         (__mips_syscall5): New prototype.
15668         (internal_syscall5): Rewrite to call `__mips_syscall5'.
15669         (__mips_syscall6): New prototype.
15670         (internal_syscall6): Rewrite to call `__mips_syscall6'.
15671         (__mips_syscall7): New prototype.
15672         (internal_syscall7): Rewrite to call `__mips_syscall7'.
15673         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
15674         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
15675         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
15676         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
15677         (sysdep_routines): Add libc-do-syscall.
15678         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
15679         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
15680
15681 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15682
15683         [BZ #21672]
15684         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
15685         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
15686         (advise_stack_range): New function.
15687         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
15688         stack non required to advise_stack_range at allocatestack.c
15689
15690 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15691
15692         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
15693
15694 2017-08-29  Florian Weimer  <fweimer@redhat.com>
15695
15696         [BZ #22026]
15697         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
15698         __end_fct.  Mangle __end_fct after setting it to NULL.
15699         * iconv/Makefile (tests): Add tst-gconv-init-failure.
15700         (modules-names, modules-names-tests): Add
15701         tst-gconv-init-failure-mod.
15702         (gconv-modules): New target.
15703         (tst-gconv-init-failure-mod.so): Link against libsupport.
15704         (tst-gconv-init-failure): Depend on gconv-modules,
15705         tst-gconv-init-failure-mod.so.
15706         * iconv/tst-gconv-init-failure-mod.c: New file.
15707         * iconv/tst-gconv-init-failure.c: Likewise.
15708         * iconv/test-gconv-modules: Likewise.
15709
15710 2017-08-29  Florian Weimer  <fweimer@redhat.com>
15711
15712         [BZ #22025]
15713         * iconv/gconv_db.c (free_derivation): Remove redundant
15714         parentheses.
15715         (gen_steps): Unconditionally mangle __btowc_fct after
15716         initialization.
15717         (increment_counter): Likewise.  Do not call init_fct for internal
15718         modules.
15719
15720 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
15721
15722         [BZ #22028]
15723         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
15724         (_MSUF_): Remove macro.
15725         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
15726         Likewise.
15727         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
15728         (__REDIRFROM_X): New macro.
15729         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
15730         Likewise.
15731         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
15732         (__REDIRTO_X): Likewise.
15733         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
15734         arguments.
15735         (__MATH_REDIRCALL_2): Likewise.
15736         (__MATH_REDIRCALL_INTERNAL): Likewise.
15737         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
15738         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
15739         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
15740         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
15741         * math/test-finite-macros.c: New file.
15742         * math/Makefile (tests): Add test-finite-macros.
15743         (CFLAGS-test-finite-macros.c): New variable.
15744
15745 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
15746             Jeff Law  <law@redhat.com>
15747
15748         [BZ #22025]
15749         Mangle NULL pointers in iconv/gconv.
15750         * iconv/gconv_cache.c (find_module): Demangle init_fct before
15751         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
15752         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
15753         is non-NULL before demangling the end_fct.  Check for NULL
15754         end_fct after demangling.
15755         (__gconv_release_step): Demangle the end_fct before checking
15756         it for NULL.   Remove assert on __shlibc_handle != NULL.
15757         (gen_steps): Don't check btowc_fct for NULL before mangling.
15758         Demangle init_fct before checking for NULL.
15759         (increment_counter): Likewise.
15760         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
15761         end_fct for NULL before mangling.
15762         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
15763         for NULL.
15764
15765 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
15766
15767         [BZ #21971]
15768         * locale/iso-639.def: add Morisyen.
15769
15770 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
15771
15772         [BZ #21930]
15773         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
15774         (iszero): New C++ implementation that does not use
15775         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
15776         signaling nans are enabled, since __builtin_types_compatible_p
15777         is a C-only feature.
15778         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
15779         defined, include ieee754_float128.h for access to the union and
15780         member ieee854_float128.ieee.
15781         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
15782         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
15783         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
15784         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
15785         options of test-math-zero on powerpc64le.
15786
15787 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
15788
15789         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
15790         Change double to float.
15791
15792 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
15793
15794         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
15795         unconditional.
15796         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
15797         conditional code; define contents only for [LIBM_SVID_COMPAT].
15798
15799 2017-08-28  Florian Weimer  <fweimer@redhat.com>
15800
15801         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
15802         (abi-lp64_be-options): Remove.
15803         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
15804         (abi-hard-options): Likewise.
15805         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
15806         (abi-o32_hard-options, abi-o32_soft_2008-options)
15807         (abi-o32_hard_2008-options, abi-n32_soft-options)
15808         (abi-n32_hard-options, abi-n32_soft_2008-options)
15809         (abi-n32_hard_2008-options, abi-n64_soft-options)
15810         (abi-n64_hard-options, abi-n64_soft_2008-options)
15811         (abi-n64_hard_2008-options): Likewise.
15812         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
15813         (abi-64-v1-options, abi-64-v2-options): Likewise.
15814         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
15815         (abi-64-options): Likewise.
15816         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
15817         (abi-64-options): Likewise.
15818         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
15819         (abi-64-options): Likewise.
15820         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
15821         (abi-64-options, abi-x32-options): Likewise.
15822
15823 2017-08-28  Florian Weimer  <fweimer@redhat.com>
15824
15825         Store supported list of SYS_* system calls in the source tree.
15826         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
15827         (bits/syscall.h): Generate from list file.
15828         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
15829         [$(subdir) = misc] (tests): Add tst-syscall-list.
15830         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
15831         [$(subdir) = misc] (tst-syscall-list-macros.list)
15832         [$(subdir) = misc] (tst-syscall-list-nr.list)
15833         (tst-syscall-list-sys.list): Helper targets for new
15834         tst-syscall-list test.
15835         [$(subdir) = misc] (tst-syscall-list.out): Run test script
15836         tst-syscall-list.sh.
15837         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
15838         target. Do not include bits/syscall.d.
15839         [$(subdir) = misc] (generated): Do not update.
15840         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
15841         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
15842         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
15843         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
15844
15845 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
15846
15847         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
15848         (tst-cxa_atexit, tst-on_exit): Likewise.
15849         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
15850         tst-cxa_atexit, and tst-on_exit.
15851         * stdlib/tst-atexit-common.c: New file.
15852         * stdlib/tst-atexit.c: New file.
15853         * stdlib/tst-at_quick_exit.c: New file.
15854         * stdlib/tst-cxa_atexit.c: New file.
15855         * stdlib/tst-on_exit.c: New file.
15856
15857 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15858
15859         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
15860         * mach/stack_chk_fail_local.c: New file.
15861         * hurd/stack_chk_fail_local.c: New file.
15862         * mach/Machrules ($(interface-library)-routines): Add
15863         stack_chk_fail_local.
15864         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
15865         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
15866         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
15867         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
15868         * hurd/Makefile (CFLAGS-hurdstartup.o,
15869         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
15870
15871 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
15872
15873         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
15874         (index_cpu_*, index_arch_*): Removed.
15875
15876 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15877
15878         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
15879         Use uint64_t instead of unsigned long.
15880
15881 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
15882
15883         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
15884         [__HAVE_DISTINCT_FLOAT128].
15885
15886         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
15887         of <bits/math-finite.h>.
15888         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
15889         inclusion of <bits/math-finite.h>.
15890         * math/bits/math-finite.h (__REDIRTO_X): Do not define
15891         conditionally on [__MATH_DECLARING_LDOUBLE && defined
15892         __NO_LONG_DOUBLE_MATH].
15893         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
15894         (__MATH_REDIRCALL_2): Likewise.
15895         (__MATH_REDIRCALL_INTERNAL): Likewise.
15896         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
15897         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
15898         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
15899
15900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
15901         Remove file.
15902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
15903         Likewise.
15904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
15905         Likewise.
15906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
15907         Likewise.
15908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
15909         Likewise.
15910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
15911         Likewise.
15912         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
15913         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
15914         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
15915         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
15916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
15917         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
15918         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
15919         w_sqrtf_compat-ppc32.
15920
15921 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
15922
15923         * math/math.h [defined __cplusplus] (issignaling): In the long
15924         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
15925         is not defined.  Call __issignaling, otherwise.
15926
15927 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15928
15929         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
15930         syscall definitions and replace __builtin_expect with __glibc_likely.
15931         * sysdeps/unix/syscall-template.S: Update comment about cancellable
15932         syscall.
15933          (SYSCALL_CANCELLABLE): Removedefinition
15934         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
15935         definition.
15936         (PSEUDO_END): Likewise.
15937         [IS_IN (libpthread)] (CENABLE): Likewise.
15938         [IS_IN (libpthread)] (CDISABLE): Likewise.
15939         [IS_IN (libc)] (CENABLE): Likewise.
15940         [IS_IN (libc)] (CENABLE): Likewise.
15941         [IS_IN (librt)] (CDISABLE): Likewise.
15942         [IS_IN (librt)] (CDISABLE): Likewise.
15943         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15944         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
15945         definition.
15946         (PSEUDO_END): Likewise.
15947         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
15948         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
15949         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
15950         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
15951         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
15952         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
15953         (CENABLE): Likewise.
15954         (CDISABLE): Likewise.
15955         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15956         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
15957         defintion.
15958         (PSEUDO_END): Likewise.
15959         [IS_IN (libpthread)] (CENABLE): Likewise.
15960         [IS_IN (libpthread)] (CDISABLE): Likewise.
15961         [IS_IN (libc)] (CENABLE): Likewise.
15962         [IS_IN (libc)] (CENABLE): Likewise.
15963         [IS_IN (librt)] (CDISABLE): Likewise.
15964         [IS_IN (librt)] (CDISABLE): Likewise.
15965         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15966         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
15967         definition.
15968         (PSEUDO_END): Likewise.
15969         [IS_IN (libpthread)] (CENABLE): Likewise.
15970         [IS_IN (libpthread)] (CDISABLE): Likewise.
15971         [IS_IN (libc)] (CENABLE): Likewise.
15972         [IS_IN (libc)] (CENABLE): Likewise.
15973         [IS_IN (librt)] (CDISABLE): Likewise.
15974         [IS_IN (librt)] (CDISABLE): Likewise.
15975         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15976         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
15977         definition.
15978         (PSEUDO_END): Likewise.
15979         [IS_IN (libpthread)] (CENABLE): Likewise.
15980         [IS_IN (libpthread)] (CDISABLE): Likewise.
15981         [IS_IN (libc)] (CENABLE): Likewise.
15982         [IS_IN (libc)] (CENABLE): Likewise.
15983         [IS_IN (librt)] (CDISABLE): Likewise.
15984         [IS_IN (librt)] (CDISABLE): Likewise.
15985         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15986         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
15987         definition.
15988         (PSEUDO_END): Likewise.
15989         [IS_IN (libpthread)] (CENABLE): Likewise.
15990         [IS_IN (libpthread)] (CDISABLE): Likewise.
15991         [IS_IN (libc)] (CENABLE): Likewise.
15992         [IS_IN (libc)] (CENABLE): Likewise.
15993         [IS_IN (librt)] (CDISABLE): Likewise.
15994         [IS_IN (librt)] (CDISABLE): Likewise.
15995         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
15996         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
15997         definition.
15998         (PSEUDO_END): Likewise.
15999         [IS_IN (libpthread)] (CENABLE): Likewise.
16000         [IS_IN (libpthread)] (CDISABLE): Likewise.
16001         [IS_IN (libc)] (CENABLE): Likewise.
16002         [IS_IN (libc)] (CENABLE): Likewise.
16003         [IS_IN (librt)] (CDISABLE): Likewise.
16004         [IS_IN (librt)] (CDISABLE): Likewise.
16005         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16006         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
16007         definition.
16008         (PSEUDO_END): Likewise.
16009         [IS_IN (libpthread)] (CENABLE): Likewise.
16010         [IS_IN (libpthread)] (CDISABLE): Likewise.
16011         [IS_IN (libc)] (CENABLE): Likewise.
16012         [IS_IN (libc)] (CENABLE): Likewise.
16013         [IS_IN (librt)] (CDISABLE): Likewise.
16014         [IS_IN (librt)] (CDISABLE): Likewise.
16015         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16016         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
16017         Remove definition.
16018         (PSEUDO_END): Likewise.
16019         [IS_IN (libpthread)] (CENABLE): Likewise.
16020         [IS_IN (libpthread)] (CDISABLE): Likewise.
16021         [IS_IN (libc)] (CENABLE): Likewise.
16022         [IS_IN (libc)] (CENABLE): Likewise.
16023         [IS_IN (librt)] (CDISABLE): Likewise.
16024         [IS_IN (librt)] (CDISABLE): Likewise.
16025         (SINGLE_THREAD_P): Likewise.
16026         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
16027         definition.
16028         (PSEUDO_END): Likewise.
16029         [IS_IN (libpthread)] (CENABLE): Likewise.
16030         [IS_IN (libpthread)] (CDISABLE): Likewise.
16031         [IS_IN (libc)] (CENABLE): Likewise.
16032         [IS_IN (libc)] (CENABLE): Likewise.
16033         [IS_IN (librt)] (CDISABLE): Likewise.
16034         [IS_IN (librt)] (CDISABLE): Likewise.
16035         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16036         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
16037         definition.
16038         (PSEUDO_END): Likewise.
16039         [IS_IN (libpthread)] (CENABLE): Likewise.
16040         [IS_IN (libpthread)] (CDISABLE): Likewise.
16041         [IS_IN (libc)] (CENABLE): Likewise.
16042         [IS_IN (libc)] (CENABLE): Likewise.
16043         [IS_IN (librt)] (CDISABLE): Likewise.
16044         [IS_IN (librt)] (CDISABLE): Likewise.
16045         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16046         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
16047         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
16048         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
16049         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
16050         definition.
16051         (PSEUDO_END): Likewise.
16052         [IS_IN (libpthread)] (CENABLE): Likewise.
16053         [IS_IN (libpthread)] (CDISABLE): Likewise.
16054         [IS_IN (libc)] (CENABLE): Likewise.
16055         [IS_IN (libc)] (CENABLE): Likewise.
16056         [IS_IN (librt)] (CDISABLE): Likewise.
16057         [IS_IN (librt)] (CDISABLE): Likewise.
16058         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16059         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
16060         definition.
16061         (PSEUDO_END): Likewise.
16062         [IS_IN (libpthread)] (CENABLE): Likewise.
16063         [IS_IN (libpthread)] (CDISABLE): Likewise.
16064         [IS_IN (libc)] (CENABLE): Likewise.
16065         [IS_IN (libc)] (CENABLE): Likewise.
16066         [IS_IN (librt)] (CDISABLE): Likewise.
16067         [IS_IN (librt)] (CDISABLE): Likewise.
16068         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16069         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
16070         definition.
16071         (PSEUDO_END): Likewise.
16072         [IS_IN (libpthread)] (CENABLE): Likewise.
16073         [IS_IN (libpthread)] (CDISABLE): Likewise.
16074         [IS_IN (libc)] (CENABLE): Likewise.
16075         [IS_IN (libc)] (CENABLE): Likewise.
16076         [IS_IN (librt)] (CDISABLE): Likewise.
16077         [IS_IN (librt)] (CDISABLE): Likewise.
16078         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16079         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
16080         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
16081         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
16082         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
16083         definition.
16084         (PSEUDO_END): Likewise.
16085         [IS_IN (libpthread)] (CENABLE): Likewise.
16086         [IS_IN (libpthread)] (CDISABLE): Likewise.
16087         [IS_IN (libc)] (CENABLE): Likewise.
16088         [IS_IN (libc)] (CENABLE): Likewise.
16089         [IS_IN (librt)] (CDISABLE): Likewise.
16090         [IS_IN (librt)] (CDISABLE): Likewise.
16091         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16092         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
16093         definition.
16094         (PSEUDO_END): Likewise.
16095         [IS_IN (libpthread)] (CENABLE): Likewise.
16096         [IS_IN (libpthread)] (CDISABLE): Likewise.
16097         [IS_IN (libc)] (CENABLE): Likewise.
16098         [IS_IN (libc)] (CENABLE): Likewise.
16099         [IS_IN (librt)] (CDISABLE): Likewise.
16100         [IS_IN (librt)] (CDISABLE): Likewise.
16101         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16102
16103 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16104
16105         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
16106
16107 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16108
16109         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16110
16111 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16112
16113         [BZ #21982]
16114         * string/stratcliff.c (do_test): Declare size, nchars, inner,
16115         middle and outer with size_t instead of int.  Repleace %d and
16116         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
16117         "MAX (outer, nchars - 64)" to support unsigned outer and
16118         nchars.  Also exit loop when outer == 0.
16119
16120 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16121
16122         * include/fcntl.h (__fcntl_nocancel): Remove definition.
16123         * include/signal.h (__sigsuspend_nocancel): Likewise.
16124         * include/time.h (__nanosleep_nocancel): Likewise.
16125         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
16126         * login/utmp_file.c: Include non cancellable syscall header.
16127         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
16128         prototype.
16129
16130 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16131
16132         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
16133         .byte sequences with AVX512F instructions.
16134         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
16135         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
16136         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
16137         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
16138         Likewise.
16139         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16140         Likewise.
16141
16142 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16143             Steve Ellcey  <sellcey@cavium.com>
16144
16145         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
16146         Use PTR_REG macro in cmp instruction.
16147
16148 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16149
16150         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
16151         Change the return type of the ifunc resolver to match the return
16152         type of the target function.
16153
16154 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16155
16156         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
16157         (preadv64): Likewise.
16158         (pwrite64(: Likewise.
16159         (pwritev64): Likewise.
16160
16161         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16162         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
16163         (LOAD_ARGS_0): Likewise.
16164         (LOAD_ARGS_1): Likewise.
16165         (LOAD_ARGS_2): Likewise.
16166         (LOAD_ARGS_3): Likewise.
16167         (LOAD_ARGS_4): Likewise.
16168         (LOAD_ARGS_5): Likewise.
16169         (LOAD_ARGS_6): Likewise.
16170         (LOAD_REGS_0): Likewise.
16171         (LOAD_REGS_1): Likewise.
16172         (LOAD_REGS_2): Likewise.
16173         (LOAD_REGS_3): Likewise.
16174         (LOAD_REGS_4): Likewise.
16175         (LOAD_REGS_5): Likewise.
16176         (LOAD_REGS_6): Likewise.
16177         (ASM_ARGS_0): Likewise.
16178         (ASM_ARGS_1): Likewise.
16179         (ASM_ARGS_2): Likewise.
16180         (ASM_ARGS_3): Likewise.
16181         (ASM_ARGS_4): Likewise.
16182         (ASM_ARGS_5): Likewise.
16183         (ASM_ARGS_6): Likewise.
16184         (LOAD_ARGS_TYPES_1): Likewise.
16185         (LOAD_ARGS_TYPES_2): Likewise.
16186         (LOAD_ARGS_TYPES_3): Likewise.
16187         (LOAD_ARGS_TYPES_4): Likewise.
16188         (LOAD_ARGS_TYPES_5): Likewise.
16189         (LOAD_ARGS_TYPES_6): Likewise.
16190         (LOAD_REGS_TYPES_1): Likewise.
16191         (LOAD_REGS_TYPES_2): Likewise.
16192         (LOAD_REGS_TYPES_3): Likewise.
16193         (LOAD_REGS_TYPES_4): Likewise.
16194         (LOAD_REGS_TYPES_5): Likewise.
16195         (LOAD_REGS_TYPES_6): Likewise.
16196         (TYPEFY): New define.
16197         (ARGIFY): Likewise.
16198         (internal_syscall0): Likewise.
16199         (internal_syscall1): Likewise.
16200         (internal_syscall2): Likewise.
16201         (internal_syscall3): Likewise.
16202         (internal_syscall4): Likewise.
16203         (internal_syscall5): Likewise.
16204         (internal_syscall6): Likewise.
16205         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
16206         (INTERNAL_SYSCALL_NCS): Remove define.
16207         (internal_syscall1): Add define.
16208
16209 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16210
16211         * math/w_remainder_compat.c: Remove duplicate inclusion of
16212         math-svid-compat.h.
16213         * math/w_remainderf_compat.c: Likewise.
16214         * math/w_remainderl_compat.c: Likewise.
16215
16216 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16217
16218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16219
16220 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
16221
16222         [BZ #21684]
16223         * math/tgmath.h (__floating_type): Simplify definitions.
16224         (__real_integer_type): New macro.
16225         (__complex_integer_type): Likewise.
16226         (__expr_is_real): Likewise.
16227         (__tgmath_real_type_sub): Update comment to describe handling of
16228         complex types.
16229         (__tgmath_complex_type_sub): New macro.
16230         (__tgmath_complex_type): Likewise.
16231         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16232         (__TGMATH_CF128): Use __expr_is_real.
16233         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
16234         __expr_is_real.
16235         (__TGMATH_BINARY_REAL_IMAG): Likewise.
16236         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
16237         * math/gen-tgmath-tests.py (Type.create_type): Create complex
16238         integer types.
16239
16240 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16241
16242         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
16243         macro.
16244         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
16245         alias.
16246         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
16247         Likewise.
16248
16249         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
16250         nanosleep_not_cancel with __nanosleep_nocancel.
16251         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
16252         (__nanosleep_nocancel): New macro.
16253         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
16254         function.
16255         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
16256         macro.
16257         (__nanosleep_nocancel): New prototype.
16258
16259         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
16260         pause_not_cancel with __pause_nocancel.
16261         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
16262         (__pause_nocancel): New macro.
16263         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
16264         macro.
16265         (__pause_nocancel): New prototype.
16266         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
16267
16268 2017-08-22  Martin Sebor  <msebor@redhat.com>
16269
16270         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
16271         to return a pointer to the same type as the target function.
16272
16273 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
16274
16275         [BZ #18822]
16276         [BZ #21986]
16277         * include/printf.h (__printf_fphex): Add attribute_hidden.
16278         (__guess_grouping): New prototype.
16279         * stdio-common/printf_fp.c (__guess_grouping): Removed.
16280         * stdio-common/reg-printf.c (__register_printf_specifier): Add
16281         libc_hidden_proto and libc_hidden_def.
16282         * stdlib/strfmon_l.c (__guess_grouping): Removed.
16283         (__vstrfmon_l): Remove the third argument passed to
16284         __guess_grouping.
16285
16286 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16287
16288         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
16289         definition for issignaling that does not rely on __MATH_TG,
16290         since __MATH_TG uses __builtin_types_compatible_p, which is only
16291         available in C mode.
16292         (CFLAGS-test-math-issignaling.cc): New variable.
16293         * math/Makefile [CXX] (tests): Add test-math-issignaling.
16294         * math/test-math-issignaling.cc: New test for C++ implementation
16295         of type-generic issignaling.
16296         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
16297         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
16298         options of test-math-issignaling on powerpc64le.
16299
16300 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
16301
16302         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
16303         building libc.a.
16304         (hidden_proto): Likewise.
16305         (hidden_tls_proto): Likewise.
16306         (__hidden_proto): Likewise.
16307
16308 2017-08-22  Florian Weimer  <fweimer@redhat.com>
16309
16310         math: Statically link tests of internal functionality.
16311         * math/Makefile (tests): Remove atest-exp, atest-sincos,
16312         atest-exp2.
16313         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
16314         (gmp-objs): Remove assignment.
16315         (atest-exp, atest-sincos, atest-exp2): Remove targets.
16316
16317 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
16318
16319         [BZ #21987]
16320         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
16321         and copy to ...
16322         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
16323         ... here.
16324         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
16325         ... and here.
16326
16327         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
16328         variable definitions above inclusion of ../Rules.
16329
16330 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
16331
16332         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
16333         case calling __builtin_unreachable.
16334
16335 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16336
16337         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
16338         __waitpid_nocancel.
16339         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
16340         (__waitpid_nocancel): New macro.
16341         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
16342         macro.
16343         (__waitpid_nocancel): Replace macro with a function.
16344         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
16345         function.
16346
16347         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
16348         __fcntl_nocancel.
16349         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
16350         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
16351
16352         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
16353         __writev_nocancel_nostatus.
16354         (write_call_graph): Likewise.
16355         (write_bb_counts): Likewise.
16356         * resolv/herror.c (herror): Likewise.
16357         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
16358         macro.
16359         (__writev_nocancel_nostatus): New macro.
16360         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
16361         Remove macro.
16362         (__writev_nocancel_nostatus): New function.
16363
16364 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
16365
16366         Revert:
16367         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16368
16369         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
16370         building libc.a.
16371         (hidden_proto): Likewise.
16372         (hidden_tls_proto): Likewise.
16373         (__hidden_proto): Likewise.
16374
16375         [BZ #21973]
16376         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
16377         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
16378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
16379         Likewise.
16380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
16381         Likewise.
16382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
16383         Likewise.
16384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
16385         Likewise.
16386         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
16387         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
16388         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
16389         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
16390         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
16391         GLIBC_2.0 sqrtl symbol.
16392
16393         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
16394         [__USE_MISC] (_LIB_VERSION): Likewise.
16395         [__USE_MISC] (struct exception): Likewise.
16396         [__USE_MISC] (matherr): Likewise.
16397         [__USE_MISC] (DOMAIN): Likewise.
16398         [__USE_MISC] (SING): Likewise.
16399         [__USE_MISC] (OVERFLOW): Likewise.
16400         [__USE_MISC] (UNDERFLOW): Likewise.
16401         [__USE_MISC] (TLOSS): Likewise.
16402         [__USE_MISC] (PLOSS): Likewise.
16403         [__USE_MISC] (HUGE): Likewise.
16404         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
16405         * math/math-svid-compat.h: New file.
16406         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
16407         and matherrl.
16408         * include/math.h [!_ISOMAC] (__matherr): Remove.
16409         * manual/arith.texi (FP Exceptions): Do not document matherr.
16410         * math/Makefile (tests): Change test-matherr to test-matherr-3.
16411         (tests-internal): New variable.
16412         (install-lib): Do not add libieee.a.
16413         (non-lib.a): Likewise.
16414         (extra-objs): Do not add libieee.a and ieee-math.o.
16415         (CPPFLAGS-s_lib_version.c): Remove variable.
16416         ($(objpfx)libieee.a): Remove rule.
16417         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
16418         * math/ieee-math.c: Remove.
16419         * math/libm-test-support.c (matherr): Remove.
16420         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
16421         and license notices.  Include <math-svid-compat.h> and
16422         <shlib-compat.h>.
16423         (matherr): Undefine as macro.  Use compat_symbol_reference.
16424         (_LIB_VERSION): Likewise.
16425         * math/test-matherr-2.c: New file.
16426         * math/test-matherr-3.c: Likewise.
16427         * sysdeps/generic/math_private.h (__kernel_standard): Remove
16428         declaration.
16429         (__kernel_standard_f): Likewise.
16430         (__kernel_standard_l): Likewise.
16431         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
16432         <math_private.h>.  Include <math-svid-compat.h>.
16433         (_LIB_VERSION): Undefine as macro.
16434         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
16435         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
16436         [LIBM_SVID_COMPAT], use compat_symbol.
16437         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
16438         <math_private.h>.  Include <math-svid-compat.h>.
16439         (matherr): Undefine as macro.
16440         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
16441         compat_symbol.
16442         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
16443         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
16444         compat_symbol_reference.
16445         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
16446         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
16447         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
16448         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
16449         (MATHERR_D): Remove declaration.
16450         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
16451         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
16452         [LIBM_BUILD] (pmatherrf): Likewise.
16453         [LIBM_BUILD] (pmatherr): Likewise.
16454         [LIBM_BUILD] (pmatherrl): Likewise.
16455         (DOMAIN): Likewise.
16456         (SING): Likewise.
16457         (OVERFLOW): Likewise.
16458         (UNDERFLOW): Likewise.
16459         (TLOSS): Likewise.
16460         (PLOSS): Likewise.
16461         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
16462         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
16463         compat_symbol.
16464         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
16465         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
16466         compat_symbol.
16467         * math/lgamma-compat.h: Include <math-svid-compat.h>.
16468         * math/w_acos_compat.c: Likewise.
16469         * math/w_acosf_compat.c: Likewise.
16470         * math/w_acosh_compat.c: Likewise.
16471         * math/w_acoshf_compat.c: Likewise.
16472         * math/w_acoshl_compat.c: Likewise.
16473         * math/w_acosl_compat.c: Likewise.
16474         * math/w_asin_compat.c: Likewise.
16475         * math/w_asinf_compat.c: Likewise.
16476         * math/w_asinl_compat.c: Likewise.
16477         * math/w_atan2_compat.c: Likewise.
16478         * math/w_atan2f_compat.c: Likewise.
16479         * math/w_atan2l_compat.c: Likewise.
16480         * math/w_atanh_compat.c: Likewise.
16481         * math/w_atanhf_compat.c: Likewise.
16482         * math/w_atanhl_compat.c: Likewise.
16483         * math/w_cosh_compat.c: Likewise.
16484         * math/w_coshf_compat.c: Likewise.
16485         * math/w_coshl_compat.c: Likewise.
16486         * math/w_exp10_compat.c: Likewise.
16487         * math/w_exp10f_compat.c: Likewise.
16488         * math/w_exp10l_compat.c: Likewise.
16489         * math/w_exp2_compat.c: Likewise.
16490         * math/w_exp2f_compat.c: Likewise.
16491         * math/w_exp2l_compat.c: Likewise.
16492         * math/w_fmod_compat.c: Likewise.
16493         * math/w_fmodf_compat.c: Likewise.
16494         * math/w_fmodl_compat.c: Likewise.
16495         * math/w_hypot_compat.c: Likewise.
16496         * math/w_hypotf_compat.c: Likewise.
16497         * math/w_hypotl_compat.c: Likewise.
16498         * math/w_j0_compat.c: Likewise.
16499         * math/w_j0f_compat.c: Likewise.
16500         * math/w_j0l_compat.c: Likewise.
16501         * math/w_j1_compat.c: Likewise.
16502         * math/w_j1f_compat.c: Likewise.
16503         * math/w_j1l_compat.c: Likewise.
16504         * math/w_jn_compat.c: Likewise.
16505         * math/w_jnf_compat.c: Likewise.
16506         * math/w_jnl_compat.c: Likewise.
16507         * math/w_lgamma_main.c: Likewise.
16508         * math/w_lgamma_r_compat.c: Likewise.
16509         * math/w_lgammaf_main.c: Likewise.
16510         * math/w_lgammaf_r_compat.c: Likewise.
16511         * math/w_lgammal_main.c: Likewise.
16512         * math/w_lgammal_r_compat.c: Likewise.
16513         * math/w_log10_compat.c: Likewise.
16514         * math/w_log10f_compat.c: Likewise.
16515         * math/w_log10l_compat.c: Likewise.
16516         * math/w_log2_compat.c: Likewise.
16517         * math/w_log2f_compat.c: Likewise.
16518         * math/w_log2l_compat.c: Likewise.
16519         * math/w_log_compat.c: Likewise.
16520         * math/w_logf_compat.c: Likewise.
16521         * math/w_logl_compat.c: Likewise.
16522         * math/w_pow_compat.c: Likewise.
16523         * math/w_powf_compat.c: Likewise.
16524         * math/w_powl_compat.c: Likewise.
16525         * math/w_remainder_compat.c: Likewise.
16526         * math/w_remainderf_compat.c: Likewise.
16527         * math/w_remainderl_compat.c: Likewise.
16528         * math/w_scalb_compat.c: Likewise.
16529         * math/w_scalbf_compat.c: Likewise.
16530         * math/w_scalbl_compat.c: Likewise.
16531         * math/w_sinh_compat.c: Likewise.
16532         * math/w_sinhf_compat.c: Likewise.
16533         * math/w_sinhl_compat.c: Likewise.
16534         * math/w_sqrt_compat.c: Likewise.
16535         * math/w_sqrtf_compat.c: Likewise.
16536         * math/w_sqrtl_compat.c: Likewise.
16537         * math/w_tgamma_compat.c: Likewise.
16538         * math/w_tgammaf_compat.c: Likewise.
16539         * math/w_tgammal_compat.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
16541         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
16542         * sysdeps/ieee754/k_standard.c: Likewise.
16543         * sysdeps/ieee754/k_standardf.c: Likewise.
16544         * sysdeps/ieee754/k_standardl.c: Likewise.
16545         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
16546         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
16547         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
16548         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
16549         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
16550         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
16551         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
16552         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
16553         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
16554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
16555         Likewise.
16556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
16557         Likewise.
16558         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
16559         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
16560         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
16561         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
16562
16563 2017-08-21  Florian Weimer  <fweimer@redhat.com>
16564
16565         [BZ #21864]
16566         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
16567         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
16568         Move before inclusion of ../Rules.
16569
16570 2017-08-21  Florian Weimer  <fweimer@redhat.com>
16571
16572         [BZ #21972]
16573         * assert/assert.h (assert): Use static_cast (bool) for C++.
16574         Use the ternary operator in the warning branch for GNU C.
16575         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
16576         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
16577         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
16578         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
16579         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
16580
16581 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16582
16583         [BZ #18822]
16584         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16585         (__syscall_clock_gettime): Add attribute_hidden.
16586         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
16587         (__start_context): Likewise.
16588
16589 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16590
16591         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
16592         building libc.a.
16593         (hidden_proto): Likewise.
16594         (hidden_tls_proto): Likewise.
16595         (__hidden_proto): Likewise.
16596
16597 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16598
16599         * include/libc-symbols.h (attribute_hidden): Enable hidden
16600         visibility in libc.a compiled with PIE.
16601
16602 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16603
16604         [BZ #18822]
16605         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
16606         Add attribute_hidden.
16607
16608 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16609
16610         [BZ #21864]
16611         * Makerules (all-nonlib): Add $(others-extras).
16612         * catgets/Makefile (others-extras): New.
16613         * elf/Makefile (others-extras): Likewise.
16614         * nss/Makefile (others-extras): Likewise.
16615
16616 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16617
16618         [BZ #18822]
16619         * csu/libc-start.c (__libc_multiple_libcs): Removed.
16620         * elf/dl-open.c: Include <libc-internal.h>.
16621         (__libc_multiple_libcs): Removed.
16622         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
16623         <hp-timing.h>.
16624         * include/libc-internal.h (__libc_multiple_libcs): New.
16625         * misc/sbrk.c: Include <libc-internal.h>.
16626         (__libc_multiple_libcs): Removed.
16627
16628 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
16629
16630         [BZ #18822]
16631         * grp/initgroups.c (__nss_group_database): Removed.
16632         (__nss_initgroups_database): Likewise.
16633         * nscd/gai.c (__nss_hosts_database): Likewise.
16634         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
16635         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16636         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16637         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16638         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
16639         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
16640         attribute_hidden.
16641         * nss/nsswitch.c (__nss_database_custom): Define only if
16642         USE_NSCD is defined.
16643         (__nss_configure_lookup): Use __nss_database_custom only if
16644         USE_NSCD is defined.
16645         * nss/nsswitch.h (__nss_database_custom): Declare only if
16646         USE_NSCD is defined.  Add attribute_hidden.
16647         (__nss_setent): Add attribute_hidden.
16648         (__nss_endent): Likewise.
16649         (__nss_getent_r): Likewise.
16650         (__nss_getent): Likewise.
16651         (DEFINE_DATABASE): Declare __nss_##arg##_database.
16652
16653 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16654
16655         [BZ #18822]
16656         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
16657         libc_hidden_proto and libc_hidden_def.
16658
16659 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16660
16661         [BZ #18822]
16662         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
16663         Add libc_hidden_proto.
16664         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
16665         Add libc_hidden_def.
16666
16667 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16668
16669         [BZ #21974]
16670         * gmon/Makefile (routines): Remove bb_init_func and
16671         bb_exit_func.
16672         (elide-routines.os): Removed.
16673         * gmon/bb_exit_func.c: Likewise.
16674         * gmon/bb_init_func.c: Likewise.
16675         * include/sys/gmon.h (__bb): Likewise.
16676         (__bb_init_func): Likewise.
16677         (__bb_exit_func): Likewise.
16678         * sysdeps/alpha/bb_init_func.S: Likewise.
16679
16680 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16681
16682         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
16683         * include/setjmp.h (____longjmp_chk): Here.  Add
16684         attribute_hidden.
16685
16686 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
16687
16688         [BZ #18822]
16689         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
16690         attribute_hidden.
16691         (__strspn_sse2): Likewise.
16692
16693 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16694
16695         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
16696         (close_not_cancel_no_status): Likewise.
16697         (__close_nocancel): New macro.
16698         (__close_nocancel_nostatus): Likewise.
16699         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
16700         macro.
16701         (close_not_cancel): Likewise.
16702         (close_not_cancel_no_status): Likewise.
16703         (__close_nocancel): New prototype.
16704         (__close_nocancel_nostatus): New function.
16705         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
16706         * catgets/open_catalog.c (__open_catalog): Replace
16707         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
16708         * gmon/gmon.c (write_gmon): Likewise.
16709         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
16710         * intl/loadmsgcat.c (close): Likewise.
16711         * io/ftw.c (open_dir_stream): Likewise.
16712         (ftw_startup): Likewise.
16713         * libio/fileops.c (_IO_file_open): Likewise.
16714         (_IO_file_close_mmap): Likewise.
16715         (_IO_file_close): Likewise.
16716         * libio/iopopen.c (_IO_dup2): Likewise.
16717         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
16718         * locale/loadlocale.c (_nl_load_locale): Likewise.
16719         * login/utmp_file.c (pututline_file): Likewise.
16720         (endutent_file): Likewise.
16721         * misc/daemon.c (daemon): Likewise.
16722         * nscd/nscd_getai.c (__nscd_getai): Likewise.
16723         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
16724         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
16725         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
16726         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16727         * nscd/nscd_helper.c (open_socket): Likewise.
16728         (__nscd_open_socket): Likewise.
16729         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
16730         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
16731         (__nscd_innetgr): Likewise.
16732         * nss/nss_db/db-open.c (internal_setent): Likewise.
16733         * resolv/res-close.c (__res_iclose): Likewise.
16734         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
16735         * sysdeps/posix/closedir.c (__closedir): Likewise.
16736         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
16737         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
16738         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
16739         (opendir_tail): Likewise.
16740         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
16741         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
16742         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
16743         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
16744         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
16745         (gethostid): Likewise.
16746         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
16747         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16748         Likewise.
16749         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16750         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
16751         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
16752         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
16753         Likewise.
16754         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
16755         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
16756         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
16757         Likewise.
16758         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
16759         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
16760         Likewise.
16761         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
16762         Likewise.
16763         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
16764         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
16765         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
16766         __close_nocancel.
16767
16768         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
16769         (openat_not_cancel_3): Likewise.
16770         (openat64_not_cancel_3): Likewise).
16771         (openat_not_cancel_3): Likewise).
16772         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
16773         macro.
16774         (openat_not_cancel_3): Likewise.
16775         (openat64_not_cancel): Likewise.
16776         (openat64_not_cancel_3): Likewise.
16777         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
16778         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
16779         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
16780         __open{64}_nocancel.
16781         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
16782         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
16783         * sysdeps/posix/opendir.c (__opendirat): Likewise.
16784
16785 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
16786
16787         [BZ #18822]
16788         * include/argz.h (__argz_create_sep): New function prototype.
16789         (__argz_append): Likewise.
16790         (__argz_add): Likewise.
16791         (__argz_add_sep): Likewise.
16792         (__argz_delete): Likewise.
16793         (__argz_insert): Likewise.
16794         (__argz_replace): Likewise.
16795         * string/argz.h (__argz_create_sep): Removed.
16796         (__argz_append): Likewise.
16797         (__argz_add): Likewise.
16798         (__argz_add_sep): Likewise.
16799         (__argz_delete): Likewise.
16800         (__argz_insert): Likewise.
16801         (__argz_replace): Likewise.
16802
16803 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
16804
16805         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
16806         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
16807         (GNU_PROPERTY_STACK_SIZE): Likewie.
16808         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
16809         (GNU_PROPERTY_LOPROC): Likewise.
16810         (GNU_PROPERTY_HIPROC): Likewise.
16811         (GNU_PROPERTY_LOUSER): Likewise.
16812         (GNU_PROPERTY_HIUSER): Likewise.
16813         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
16814         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
16815         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
16816         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
16817         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
16818         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
16819         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
16820         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
16821         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
16822         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
16823         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
16824         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
16825         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
16826         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
16827         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
16828         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
16829         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
16830         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
16831         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
16832         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
16833         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
16834         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
16835         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
16836
16837 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16838
16839         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
16840         in C++ mode.
16841
16842 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16843
16844         [BZ #21930]
16845         * math/math.h (isinf): Check if in C or C++ mode before using
16846         __builtin_types_compatible_p, since this is a C mode feature.
16847
16848 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16849
16850         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
16851         (__write_nocancel): New macro.
16852         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
16853         Rewrite as a function prototype.
16854         (write_not_cancel): Remove macro.
16855         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
16856         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
16857         (write_gmon): Likewise.
16858         * libio/fileops.c (_IO_new_file_write): Likewise.
16859         * login/utmp_file.c (pututline_file): Likewise.
16860         (updwtmp_file): Likewise.
16861         * stdio-common/psiginfo.c (psiginfo): Likewise.
16862         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
16863         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
16864         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
16865         Likewise.
16866         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
16867         Likewise.
16868
16869         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
16870         (__read_nocancel): New macro.
16871         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
16872         __read_nocancel.
16873         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
16874         macro.
16875         (__read_nocancel): New prototype.
16876         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
16877         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
16878         with __read_nocancel.
16879         * intl/loadmsgcat.c (read): Likewise.
16880         * libio/fileops.c (_IO_file_read): Likewise.
16881         * locale/loadlocale.c (_nl_load_locale): Likewise.
16882         * login/utmp_file.c (getutent_r_file): Likewise.
16883         (internal_getut_r): Likewise.
16884         (getutline_r_file): Likewise.
16885         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
16886         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16887         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
16888         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16889         Likewise.
16890         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
16891         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
16892         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
16893         Likewise.
16894         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
16895         Likewise.
16896         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
16897         Likewise.
16898         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
16899         Likewise.
16900         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
16901
16902 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
16903
16904         [BZ #21966]
16905         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
16906         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
16907         usable.
16908
16909 2017-08-17  DJ Delorie  <dj@redhat.com>
16910
16911         * bug17079.c: Update to new test harness.
16912         * test-digits-dots.c: Likewise.
16913         * test-netdb.c: Likewise.
16914         * tst-field.c: Likewise.
16915         * tst-nss-getpwent.c: Likewise.
16916         * tst-nss-static.c: Likewise.
16917         * tst-nss-test1.c: Likewise.
16918         * tst-nss-test2.c: Likewise.
16919         * tst-nss-test3.c: Likewise.
16920         * tst-nss-test4.c: Likewise.
16921         * tst-nss-test5.c: Likewise.
16922
16923 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16924
16925         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
16926         (open_not_cancel_2): Likewise.
16927         (open_nocancel): New macro.
16928         (open64_nocancel): Likewise.
16929         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
16930         (open_not_cancel_2): Likewise.
16931         (__open_nocancel): New prototype.
16932         (__open64_nocancel): Likewise.
16933         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
16934         __open_nocancel.
16935         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
16936         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
16937         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
16938         with __open_nocancel.
16939         * csu/check_fds.c (check_one_fd): Likewise.
16940         * gmon/gmon.c (write_gmon): Likewise.
16941         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
16942         * intl/loadmsgcat.c (open): Likewise.
16943         * libio/fileops.c (_IO_file_open): Likewise.
16944         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
16945         * locale/loadlocale.c (_nl_load_locale): Likewise.
16946         * login/utmp_file.c (setutent_file): Likewise.
16947         * misc/daemon.c (daemon): Likewise.
16948         * nss/nss_db/db-open.c (internal_setent): Likewise.
16949         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
16950         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
16951         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
16952         (__opendir): Likewise.
16953         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
16954         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
16955         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
16956         (gethostid): Likewise.
16957         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
16958         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16959         Likewise.
16960         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16961         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
16962         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
16963         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
16964         Likewise.
16965         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
16966         Likewise.
16967         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
16968         Likewise.
16969         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
16970         Likewise.
16971         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
16972         Likewise.
16973         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
16974         Likewise.
16975         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
16976         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
16977
16978 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
16979
16980         * benchtests/bench-skeleton.c (main): Add support for
16981         latency benchmarking.
16982         * benchtests/scripts/bench.py: Add support for latency benchmarking.
16983
16984 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
16985
16986         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
16987         the startup object.
16988
16989 2017-08-17  Florian Weimer  <fweimer@redhat.com>
16990
16991         * include/sys/socket.h (__opensock): Remove internal_function.
16992         * socket/opensock.c (__opensock): Likewise.
16993         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
16994
16995 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
16996
16997         [BZ #21944]
16998         * signal/bits/types/__sigval_t.h: New file.
16999         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
17000         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
17001         and define sigval_t using __sigval_t.
17002         * include/bits/types/__sigval_t.h: New file.
17003         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
17004         instead of <bits/types/__sigval_t.h>.
17005         (struct sigevent): Use __sigval_t instead of sigval_t.
17006         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
17007         instead of <bits/types/__sigval_t.h>.
17008         (siginfo_t): Use __sigval_t instead of sigval_t.
17009         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
17010         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17011         (struct sigevent): Use __sigval_t instead of sigval_t.
17012         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
17013         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17014         (siginfo_t): Use __sigval_t instead of sigval_t.
17015         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
17016
17017 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17018
17019         * NEWS: Remove "[Add new features here]" for 2.27.
17020
17021 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
17022
17023         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
17024         libc.so.
17025
17026 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17027
17028         * NEWS: Mention x86-64 FMA optimization.
17029
17030 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17031
17032         [BZ #21912]
17033         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17034         Add e_expf-fma.
17035         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
17036         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
17037         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
17038
17039 2017-08-16  Andreas Schwab  <schwab@suse.de>
17040
17041         [BZ #16750]
17042         CVE-2009-5064
17043         * elf/ldd.bash.in: Never run file directly.
17044
17045 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
17046
17047         [BZ #21955]
17048         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
17049         (L(SP_INF_0)): Likewise.
17050
17051 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17052
17053         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
17054         run-built-tests.
17055
17056 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17057
17058         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
17059         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
17060         BROKEN_THREAD_SIGNALS code.
17061         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
17062         request_list): Remove caller_pid member used for
17063         BROKEN_THREAD_SIGNALS.
17064         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
17065         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
17066         Remove BROKEN_THREAD_SIGNALS support.
17067         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
17068         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
17069
17070 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17071
17072         * gmon/Makefile (tests): Add tst-gmon.
17073         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
17074         Set.
17075         (tests-special): Add tst-gmon-prof.out.
17076         (tst-gmon.out): Depend on clean-tst-gmon-data.
17077         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
17078         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
17079         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
17080         startup object.
17081         * aclocal.m4 (GPROF): Set and substitute.
17082         * config.amke.in (GPROF): Set.
17083         * configure: Regenerate.
17084
17085 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
17086
17087         * elf/elf.h A (NT_PPC_TAR): New macro.
17088         (NT_PPC_PPR): Likewise.
17089         (NT_PPC_DSCR): Likewise.
17090         (NT_PPC_EBB): Likewise.
17091         (NT_PPC_PMU): Likewise.
17092         (NT_PPC_TM_CGPR): Likewise.
17093         (NT_PPC_TM_CFPR): Likewise.
17094         (NT_PPC_TM_CVMX): Likewise.
17095         (NT_PPC_TM_CVSX): Likewise.
17096         (NT_PPC_TM_SPR): Likewise.
17097         (NT_PPC_TM_CTAR): Likewise.
17098         (NT_PPC_TM_CPPR): Likewise.
17099         (NT_PPC_TM_CDSCR): Likewise.
17100
17101 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17102
17103         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
17104         regparm (2) instead of internal_function.
17105         (_MCOUNT_DECL): Adjust.
17106
17107 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
17108
17109         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
17110         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
17111
17112 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
17113
17114         * conform/data/sys/wait.h-data (si_value): Do not expect for
17115         XPG42.
17116
17117 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17118
17119         [BZ #21962]
17120         NSS: Create stubs for accidentally exported lookup functions.
17121         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
17122         Remove declaration.
17123         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
17124         (ether_hostton): Call __nss_ethers_lookup2 instead.
17125         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
17126         (ether_ntohost): Call __nss_ethers_lookup2 instead.
17127         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
17128         (setup): Call __nss_netgroup_lookup2 instead.
17129         * nss/Makefile (routines): Add compat-lookup.
17130         * nss/Versions (GLIBC_2.27): Add symbol version.
17131         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
17132         (DB_COMPAT_FCT): Remove.
17133         * nss/compat-lookup.c: New file.
17134         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
17135         from databases.def.
17136         * nss/service-lookup.c (NO_COMPAT): Remove definition.
17137         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
17138         (netname2user): Call __nss_publickey_lookup2 instead.
17139         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
17140         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
17141         instead.
17142
17143 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17144             Sergei Trofimovich  <slyfox@inbox.ru>
17145
17146         [BZ #21908]
17147         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
17148         Rename to MMAP2_PAGE_UNIT.
17149         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
17150         __OFF_T_MATCHES_OFF64_T is not defined.
17151         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
17152         uint64_t.
17153         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
17154         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
17155
17156 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17157
17158         i386: Do not set internal_function.
17159         * config.h.in (USE_REGPARMS, internal_function): Remove.
17160         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
17161         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
17162
17163 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17164
17165         * elf/dl-init.c (_dl_init): Remove internal_function.
17166         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
17167         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
17168
17169 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17170
17171         * elf/rtld.c (_dl_start): Remove internal_function.
17172         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
17173         _dl_start.
17174
17175 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17176
17177         * elf/dl-fini.c (_dl_fini): Remove internal_function
17178         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
17179
17180 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
17181
17182         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
17183         (bit_cpu_SHSTK): Likewise.
17184         (index_cpu_IBT): Likewise.
17185         (index_cpu_SHSTK): Likewise.
17186         (reg_IBT): Likewise.
17187         (reg_SHSTK): Likewise.
17188         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17189         Handle index_cpu_IBT and index_cpu_SHSTK.
17190
17191 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
17192
17193         [BZ #19982]
17194         * po/fr.po: Fix spelling mistake.
17195
17196 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17197
17198         * elf/dl-addr.c (_dl_addr): Remove internal_function.
17199         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
17200         (_dl_catch_error, _dl_receive_error): Likewise.
17201         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
17202         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
17203         (_dl_deallocate_tls): Likewise.
17204         * include/dlfcn.h (_dl_addr): Likewise.
17205         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
17206         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
17207         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
17208         Likewise.
17209
17210 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17211
17212         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
17213         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
17214         internal_function.
17215         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
17216
17217 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17218
17219         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
17220         internal_function.
17221         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
17222         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
17223         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
17224         internal_function from _dl_make_stack_executable_hook member.
17225         (_dl_make_stack_executable): Remove internal_function.
17226         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
17227         Likewise.
17228         * sysdeps/unix/sysv/linux/dl-execstack.c
17229         (_dl_make_stack_executable): Likewise.
17230
17231 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17232
17233         * sysdeps/unix/sysv/linux/netlinkaccess.h
17234         (__netlink_assert_response): Remove internal_function.
17235         * sysdeps/unix/sysv/linux/netlink_assert_response.c
17236         (__netlink_assert_response): Likewise.
17237
17238 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17239
17240         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
17241         internal_function.
17242         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
17243
17244 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17245
17246         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
17247         internal_function.
17248         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
17249         * inet/netgroup.h (__internal_setnetgrent)
17250         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
17251         * inet/getnetgrent_r.c (__internal_setnetgrent)
17252         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
17253         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
17254         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
17255         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
17256         * nss/nsswitch.h (db_lookup_function): Likewise.
17257
17258 2017-08-13  Florian Weimer  <fweimer@redhat.com>
17259
17260         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
17261         Remove internal_function.
17262         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
17263         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
17264         message argument on the stack.
17265         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
17266         Likeweise.
17267
17268 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
17269
17270         Adapt test case data to the changes in the thousands
17271         separators.
17272
17273         [BZ #20756]
17274         * localedata/tst-langinfo.sh: Adapt test case data.
17275         * stdlib/tst-strfmon_l.c: Likewise.
17276         * stdlib/tst-strtod4.c: Likewise.
17277         * stdlib/tst-strtod5i.c: Likewise.
17278
17279 2017-08-11  Florian Weimer  <fweimer@redhat.com>
17280
17281         [BZ #21242]
17282         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
17283         Suppress pedantic warning resulting from statement expression.
17284         (__ASSERT_FUNCTION): Add missing __extension__.
17285
17286 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17287
17288         * benchtests/bench-memmove-large.c: Print output in JSON
17289         format.
17290         * benchtests/bench-memmove.c: Likewise.
17291
17292         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
17293         * benchtests/bench-memchr.c (do_one_test): Likewise.
17294         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
17295         * benchtests/bench-memcpy.c (do_one_test): Likewise.
17296         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
17297         * benchtests/bench-memmove.c (do_one_test): Likewise.
17298         * benchtests/bench-memset-large.c (do_one_test): Likewise.
17299         * benchtests/bench-memset.c (do_one_test): Likewise.
17300         * benchtests/bench-string.h (test_init): Remove memsets.
17301
17302 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
17303
17304         * manual/lang.texi
17305         (Computing the Width of an Integer Data Type): Rename section to
17306         "Width of an Integer Type".  Remove inaccurate statement regarding
17307         lack of C language facilities for determining width of integer
17308         types, and reorder content to improve flow and context of
17309         discussion.
17310
17311 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
17312
17313         * lang.texi (va_copy): Change standard from ISO to C99.
17314         (__va_copy): Add standard and header annotation.
17315         Update description for clarity of origins and current use.
17316
17317 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17318
17319         [BZ #21941]
17320         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
17321         xssqrtqp requires operands to be in Vector Registers
17322         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
17323         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
17324         (__ieee754_sqrtf128): Likewise.
17325
17326 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
17327
17328         * sysdeps/aarch64/memcmp.S (memcmp):
17329         Rewrite of optimized memcmp.
17330
17331 2017-08-10  Florian Weimer  <fweimer@redhat.com>
17332
17333         Introduce ld.so exceptions.
17334         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
17335         (_dl_exception_create, _dl_exception_create_format)
17336         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
17337         (_dl_catch_exception): Declare.
17338         (_dl_catch_error): Update comment.
17339         * elf/dl-error-skeleton.c (struct catch): Replace objname,
17340         errstring, malloced members with exception member.
17341         (_dl_out_of_memory): Remove.
17342         (fatal_error): New function, extracted from _dl_signal_error.
17343         (_dl_signal_exception, _dl_signal_cexception): New functions.
17344         (_dl_signal_error): Call _dl_exception_create to allocate an
17345         exception object.
17346         (_dl_catch_exception): New function, based on _dl_catch_error.
17347         (_dl_catch_error): Implement using _dl_catch_exception.
17348         * elf/dl-exception.c: New file.
17349         * elf/Makefile (dl-routines): Add dl-exception.
17350         (elide-routines.os): Likewise.
17351         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
17352         _dl_exception_create_format, _dl_exception_free.
17353         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
17354         _dl_signal_exception.
17355         * elf/dl-lookup.c (make_string): Remove.
17356         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
17357         _dl_signal_cexception, _dl_exception_free.
17358         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
17359         _dl_signal_exception.
17360         * elf/dl-sym.c (do_sym): Likewise.
17361         * elf/dl-version.c (make_string): Remove.
17362         (match_symbol): Use _dl_exception_create_format,
17363         _dl_signal_cexception, _dl_exception_free.
17364         (_dl_check_map_versions): Likewise.
17365         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
17366         _dl_catch_exception.
17367         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
17368         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
17369         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
17370         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
17371         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
17372         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
17373         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
17374         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
17375         Likewise.
17376         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
17377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
17378         (ld.so): Likewise.
17379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
17380         (ld.so): Likewise.
17381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
17382         Likewise.
17383         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
17384         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
17385         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
17386         Likewise.
17387         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
17388         Likewise.
17389         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
17390
17391 2017-08-10  Florian Weimer  <fweimer@redhat.com>
17392
17393         * inet/net-internal.h (__inet6_scopeid_pton): Remove
17394         attribute_hidden, internal_function.
17395         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
17396         internal_function.
17397
17398 2017-08-10  Florian Weimer  <fweimer@redhat.com>
17399
17400         * malloc/malloc.c (get_max_fast): Reimplement as an inline
17401         function which calls __builtin_unreachable.
17402
17403 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
17404
17405         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
17406         Indian monetary formatting
17407         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
17408         test cases.
17409
17410 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
17411
17412         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
17413         Fix typo in comment.
17414
17415         [BZ #21928]
17416         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
17417         PTRACE_SEIZE_DEVEL): Remove.
17418         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17419         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17420         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17421         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17422         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17423
17424 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
17425
17426         * posix/bits/types.h (__qaddr_t): Remove.
17427
17428         [BZ #21457]
17429         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
17430         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
17431         __glibc_reserved1.
17432         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
17433         (ucontext_t): Use __ctx with uc_flags.
17434         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
17435         (__ctxt): Likewise.
17436         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
17437         __glibc_reserved1.
17438         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
17439         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
17440         __glibc_reserved1.
17441         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
17442         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
17443         __glibc_reserved1.
17444         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
17445         macro.
17446         (ucontext_t): Use __ctx with uc_flags.
17447         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
17448         (ucontext_t): Use __ctx with uc_flags.
17449         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
17450         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
17451         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
17452         (ucontext_t): Use __ctx with uc_flags.
17453         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
17454         undefine further down.
17455         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
17456         __glibc_reserved1.
17457         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
17458         undefine further down.
17459         (ucontext_t): Use __ctx with uc_flags.
17460         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
17461         undefine further down.
17462         (ucontext_t): Use __ctx with uc_flags.
17463         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
17464         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
17465         Rename uc_pad to __glibc_reserved1.
17466         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
17467         undefine further down.
17468         (ucontext_t): Use __ctx with uc_flags.
17469         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
17470         further down.
17471         (ucontext_t): Use __ctx with uc_flags.
17472         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
17473         __ctx with uc_flags.
17474         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
17475         (ucontext_t): Use __ctx with uc_flags.
17476         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
17477         __ctx with uc_flags.
17478
17479 2017-08-09  Florian Weimer  <fweimer@redhat.com>
17480
17481         [BZ #21932]
17482         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
17483         before early return.
17484
17485 2017-08-09  Andreas Schwab  <schwab@suse.de>
17486
17487         [BZ #21041]
17488         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
17489         renamed alias.
17490
17491         [BZ #21041]
17492         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
17493         tst-compat-forwarder.
17494         (modules-names): Add tst-compat-forwarder-mod.
17495         ($(objpfx)tst-compat-forwarder): Depend on
17496         $(objpfx)tst-compat-forwarder-mod.so.
17497         * nptl/tst-compat-forwarder.c: New file.
17498         * nptl/tst-compat-forwarder-mod.c: New file.
17499
17500 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17501
17502         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
17503         comments.
17504
17505         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
17506         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
17507         memcpy_falkor.
17508         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17509         Bump.
17510         (__libc_ifunc_impl_list): Add __memcpy_falkor.
17511         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
17512         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
17513         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
17514         Add falkor.
17515         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
17516         New macro.
17517
17518 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17519
17520         [BZ #759]
17521         * manual/setjmp.texi (getcontex): Document uc_stack value
17522         compatibility differences.
17523
17524 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
17525
17526         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
17527         (old_malloc_hook): Likewise.
17528         (old_memalign_hook): Likewise.
17529         (old_realloc_hook): Likewise.
17530         (struct hdr): Likewise.
17531         (flood): Likewise.
17532         (freehook): Likewise.
17533         (mallochook): Likewise.
17534         (memalignhook): Likewise.
17535         (reallochook): Likewise.
17536         (mprobe): Likewise.
17537         * malloc/mtrace.c (mallwatch): Likewise.
17538         (tr_old_free_hook): Likewise.
17539         (tr_old_malloc_hook): Likewise.
17540         (tr_old_realloc_hook): Likewise.
17541         (tr_old_memalign_hook): Likewise.
17542         (tr_where): Likewise.
17543         (lock_and_info): Likewise.
17544         (tr_freehook): Likewise.
17545         (tr_mallochook): Likewise.
17546         (tr_reallochook): Likewise.
17547         (tr_memalignhook): Likewise.
17548         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
17549         * misc/mmap.c (__mmap): Likewise.
17550         * misc/mmap64.c (__mmap64): Likewise.
17551         * misc/mprotect.c (__mprotect): Likewise.
17552         * misc/msync.c (msync): Likewise.
17553         * misc/munmap.c (__munmap): Likewise.
17554         * posix/posix_madvise.c (posix_madvise): Likewise.
17555         * socket/send.c (__send): Likewise.
17556         * socket/sendto.c (__sendto): Likewise.
17557         * socket/setsockopt.c (__setsockopt): Likewise.
17558         * string/memcmp.c (__ptr_t): Remove macro.
17559         (MEMCMP): Use void * instead of ptr_t.
17560         * string/memrchr.c (__ptr_t): Remove macro.
17561         (__memrchr): Use void * instead of ptr_t.
17562         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
17563         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
17564         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
17565         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
17566         * sysdeps/mach/msync.c (msync): Likewise.
17567         * sysdeps/mach/munmap.c (__munmap): Likewise.
17568         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
17569         Likewise.
17570         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
17571         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
17572         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
17573         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
17574         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
17575         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
17576         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
17577         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
17578         Likewise.
17579         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
17580         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
17581         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
17582         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
17583         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
17584         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
17585         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
17586         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
17587         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
17588         Likewise.
17589         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
17590         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
17591         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
17592         (MEMCMP): Use void * instead of ptr_t.
17593         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
17594         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
17595
17596 2017-08-08  Florian Weimer  <fweimer@redhat.com>
17597
17598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
17599         return statement.
17600
17601 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
17602
17603         [BZ #21913]
17604         * csu/libc-tls.c: Include <startup.h> first.
17605         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
17606         * elf/dl-tunables.c: Include <startup.h> first.
17607         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
17608         * sysdeps/generic/startup.h: New file.
17609         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
17610         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
17611         (I386_USE_SYSENTER): New.  Defined to 0.
17612
17613 2017-08-08  Andreas Schwab  <schwab@suse.de>
17614
17615         [BZ #21041]
17616         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
17617         * nptl/pt-system.c (system): Likewise.
17618
17619 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17620
17621         [BZ #21780]
17622         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
17623         EOPNOTSUPP.
17624         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
17625         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
17626         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
17627         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
17628         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
17629         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
17630         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
17631
17632 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
17633
17634         [BZ #21899]
17635         * bits/sigaction.h (struct sigaction): Define sa_handler and
17636         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
17637         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17638         [__USE_XOPEN_EXTENDED].
17639         (SA_RESTART): Likewise.
17640         (SA_NODEFER): Likewise.
17641         (SA_RESETHAND): Likewise.
17642         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
17643         (struct sigaction): Define sa_handler and sa_sigaction using union
17644         also for [__USE_XOPEN_EXTENDED].
17645         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17646         [__USE_XOPEN_EXTENDED].
17647         (SA_RESTART): Likewise.
17648         (SA_NODEFER): Likewise.
17649         (SA_RESETHAND): Likewise.
17650         * sysdeps/unix/sysv/linux/bits/sigaction.h
17651         (struct sigaction): Define sa_handler and sa_sigaction using union
17652         also for [__USE_XOPEN_EXTENDED].
17653         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17654         [__USE_XOPEN_EXTENDED].
17655         (SA_RESTART): Likewise.
17656         (SA_NODEFER): Likewise.
17657         (SA_RESETHAND): Likewise.
17658         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
17659         (struct sigaction): Define sa_handler and sa_sigaction using union
17660         also for [__USE_XOPEN_EXTENDED].
17661         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17662         [__USE_XOPEN_EXTENDED].
17663         (SA_RESTART): Likewise.
17664         (SA_NODEFER): Likewise.
17665         (SA_RESETHAND): Likewise.
17666         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
17667         (struct sigaction): Define sa_handler and sa_sigaction using union
17668         also for [__USE_XOPEN_EXTENDED].
17669         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17670         [__USE_XOPEN_EXTENDED].
17671         (SA_RESTART): Likewise.
17672         (SA_NODEFER): Likewise.
17673         (SA_RESETHAND): Likewise.
17674         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
17675         (struct sigaction): Define sa_handler and sa_sigaction using union
17676         also for [__USE_XOPEN_EXTENDED].
17677         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17678         [__USE_XOPEN_EXTENDED].
17679         (SA_RESTART): Likewise.
17680         (SA_NODEFER): Likewise.
17681         (SA_RESETHAND): Likewise.
17682         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
17683         (struct sigaction): Define sa_handler and sa_sigaction using union
17684         also for [__USE_XOPEN_EXTENDED].
17685         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17686         [__USE_XOPEN_EXTENDED].
17687         (SA_RESTART): Likewise.
17688         (SA_NODEFER): Likewise.
17689         (SA_RESETHAND): Likewise.
17690         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
17691         (struct sigaction): Define sa_handler and sa_sigaction using union
17692         also for [__USE_XOPEN_EXTENDED].
17693         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17694         [__USE_XOPEN_EXTENDED].
17695         (SA_RESTART): Likewise.
17696         (SA_NODEFER): Likewise.  Define directly rather than as alias.
17697         (SA_RESETHAND): Likewise.
17698         (SA_INTERRUPT): Define only for [__USE_MISC].
17699         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
17700         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
17701         [__USE_MISC].
17702         (SA_STACK): Define only for [__USE_MISC].
17703         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
17704         (struct sigaction): Define sa_handler and sa_sigaction using union
17705         also for [__USE_XOPEN_EXTENDED].
17706         (SA_ONSTACK): Change [__USE_UNIX98] condition to
17707         [__USE_XOPEN_EXTENDED].
17708         (SA_RESTART): Likewise.
17709         (SA_NODEFER): Likewise.
17710         (SA_RESETHAND): Likewise.
17711         (SA_NOPTRACE): Define only for [__USE_MISC].
17712
17713         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
17714         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
17715         (struct catalog_info): Likewise.
17716         * inet/htontest.c (lo): Likewise.
17717         (foo): Likewise.
17718         * inet/inet_lnaof.c (inet_lnaof): Likewise.
17719         * inet/inet_net.c (inet_network): Likewise.
17720         * inet/inet_netof.c (inet_netof): Likewise.
17721         * inet/rcmd.c (__ivaliduser): Likewise.
17722         (iruserok): Likewise.
17723         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
17724         * locale/programs/locale-spec.c (locale_special): Likewise.
17725         * nis/nis_findserv.c (struct findserv_req): Likewise.
17726         (__nis_findfastest_with_timeout): Likewise.
17727         * nss/test-netdb.c (test_network): Likewise.
17728         * resolv/inet_neta.c (inet_neta): Likewise.
17729         * resolv/ns_date.c (ns_datetosecs): Likewise.
17730         (SECS_PER_DAY): Likewise.
17731         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
17732         Likewise.
17733         * resolv/res_comp.c (__putlong): Likewise.
17734         (__putshort): Likewise.
17735         (_getlong): Likewise.
17736         (_getshort): Likewise.
17737         * resolv/res_debug.c (p_time): Likewise.
17738         (precsize_ntoa): Likewise.
17739         (precsize_aton): Likewise.
17740         (latlon2ul): Likewise.
17741         (loc_aton): Likewise.
17742         (loc_ntoa): Likewise.
17743         * resolv/res_hconf.c (struct netaddr): Likewise.
17744         (_res_hconf_reorder_addrs): Likewise.
17745         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
17746         (clnttcp_control): Likewise.
17747         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
17748         (clntudp_control): Likewise.
17749         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
17750         (clntunix_control): Likewise.
17751         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
17752         * sunrpc/rpc/auth.h (union des_block): Likewise.
17753         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
17754         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
17755         (xdrrec_create): Likewise.
17756         (xdrrec_endofrecord): Likewise.
17757         (flush_out): Likewise.
17758         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
17759         (xdrstdio_putlong): Likewise.
17760         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
17761         Likewise.
17762
17763         * misc/sys/cdefs.h (__long_double_t): Remove.
17764         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
17765         instead of __long_double_t,
17766         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
17767
17768 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17769
17770         * benchtests/scripts/compare_strings.py: Avoid display error when
17771         running on a text terminal.
17772
17773         * benchtests/scripts/compare_strings.py (main): Add an
17774         optional -base option.
17775         (process_results): New argument base_func.
17776
17777         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
17778         hardcoding memcpy.
17779         * benchtests/bench-memcpy-large.c (test_name): Likewise.
17780         * benchtests/bench-memcpy-random.c (test_name): Likewise.
17781
17782 2017-08-07  Andreas Schwab  <schwab@suse.de>
17783
17784         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
17785         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
17786         * intl/Makefile ($(objpfx)tst-gettext.out)
17787         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
17788         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
17789         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
17790         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
17791         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
17792         * posix/Makefile ($(objpfx)globtest.out)
17793         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
17794         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
17795         ($(objpfx)tst-printf.out): Likewise.
17796         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
17797         ($(objpfx)tst-setcontext3.out): Likewise.
17798
17799 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
17800
17801         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17802         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
17803         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
17804         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
17805         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
17806         and mptan-fma.
17807         (CFLAGS-doasin-fma.c): New.
17808         (CFLAGS-dosincos-fma.c): Likewise.
17809         (CFLAGS-e_asin-fma.c): Likewise.
17810         (CFLAGS-e_atan2-fma.c): Likewise.
17811         (CFLAGS-e_exp-fma.c): Likewise.
17812         (CFLAGS-e_log-fma.c): Likewise.
17813         (CFLAGS-e_pow-fma.c): Likewise.
17814         (CFLAGS-halfulp-fma.c): Likewise.
17815         (CFLAGS-mpa-fma.c): Likewise.
17816         (CFLAGS-mpatan-fma.c): Likewise.
17817         (CFLAGS-mpatan2-fma.c): Likewise.
17818         (CFLAGS-mpexp-fma.c): Likewise.
17819         (CFLAGS-mplog-fma.c): Likewise.
17820         (CFLAGS-mpsqrt-fma.c): Likewise.
17821         (CFLAGS-mptan-fma.c): Likewise.
17822         (CFLAGS-s_atan-fma.c): Likewise.
17823         (CFLAGS-sincos32-fma.c): Likewise.
17824         (CFLAGS-slowexp-fma.c): Likewise.
17825         (CFLAGS-slowpow-fma.c): Likewise.
17826         (CFLAGS-s_sin-fma.c): Likewise.
17827         (CFLAGS-s_tan-fma.c): Likewise.
17828         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
17829         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
17830         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
17831         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
17832         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
17833         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17834         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
17835         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
17836         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
17837         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
17838         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
17839         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
17840         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
17841         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17842         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17843         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
17844         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
17845         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
17846         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
17847         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
17848         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
17849         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17850         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17851         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
17852         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
17853         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
17854         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
17855         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
17856         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
17857         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
17858         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
17859
17860 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
17861
17862         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
17863         (min_of_type_f): New macro.
17864         (min_of_type_): Likewise.
17865         (min_of_type_l): Likewise.
17866         (min_of_type_f128): Likewise.
17867         (min_of_type): Define using __MATH_TG and taking an expression
17868         argument.
17869         (math_check_force_underflow): Pass expression instead of type to
17870         min_of_type.
17871         (math_check_force_underflow_nonneg): Likewise.
17872
17873 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
17874
17875         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
17876         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
17877         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
17878
17879 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
17880
17881         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17882         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
17883         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
17884         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
17885         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
17886         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
17887         memcpy_chk-nonshared, mempcpy_chk-nonshared,
17888         memmove_chk-nonshared and memset_chk-nonshared
17889         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
17890         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
17891         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
17892         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
17893         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
17894         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
17895         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
17896         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
17897         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
17898         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
17899         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
17900         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
17901         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
17902         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
17903         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
17904         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
17905         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
17906         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
17907         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
17908         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
17909         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
17910         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
17911         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
17912         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
17913         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
17914         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
17915         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
17916         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
17917         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
17918         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
17919         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
17920         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
17921         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
17922         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
17923         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
17924         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
17925         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
17926         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
17927         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
17928         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
17929         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
17930         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
17931         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
17932         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
17933         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
17934         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
17935         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
17936         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
17937         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
17938         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
17939         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
17940         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
17941         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
17942         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
17943         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
17944         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
17945         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
17946         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
17947         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
17948         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
17949         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
17950         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
17951         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
17952         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
17953         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
17954         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
17955         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
17956         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
17957         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
17958         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
17959         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
17960         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17961         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17962         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17963         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17964         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17965         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17966         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17967         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17968         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17969         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17970         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17971         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17972         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17973         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
17974         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
17975         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17976         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
17977         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17978         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17979         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17980         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17981         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17982         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17983         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
17984         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
17985         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
17986         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
17987         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17988         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
17989         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17990         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17991         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17992         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17993         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17994         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17995         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17996         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17997
17998 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
17999
18000         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
18001         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
18002         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
18003         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
18004         svml_d_log2_core-sse2, svml_d_log4_core-sse,
18005         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
18006         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
18007         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
18008         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
18009         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
18010         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
18011         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
18012         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
18013         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
18014         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
18015         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
18016         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
18017         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
18018         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
18019         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
18020         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
18021         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
18022         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
18023         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
18024         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
18025         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
18026         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
18027         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
18028         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
18029         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
18030         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
18031         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
18032         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
18033         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
18034         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
18035         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
18036         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
18037         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
18038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
18039         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
18040         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
18041         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
18042         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
18043         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
18044         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
18045         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
18046         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
18047         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
18048         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
18049         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
18050         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
18051         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
18052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
18053         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
18054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
18055         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
18056         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
18057         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
18058         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
18059         ...
18060         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
18061         Don't include <sysdep.h> nor <init-arch.h>.
18062         (_ZGVbN2v_cos): Removed.
18063         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
18064         ...
18065         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
18066         Don't include <sysdep.h> nor <init-arch.h>.
18067         (_ZGVdN4v_cos): Removed.
18068         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
18069         ...
18070         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
18071         Don't include <sysdep.h> nor <init-arch.h>.
18072         (_ZGVeN8v_cos): Removed.
18073         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
18074         ...
18075         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
18076         Don't include <sysdep.h> nor <init-arch.h>.
18077         (_ZGVbN2v_exp): Removed.
18078         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
18079         ...
18080         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
18081         Don't include <sysdep.h> nor <init-arch.h>.
18082         (_ZGVdN4v_exp): Removed.
18083         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
18084         ...
18085         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
18086         Don't include <sysdep.h> nor <init-arch.h>.
18087         (_ZGVeN8v_exp): Removed.
18088         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
18089         ...
18090         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
18091         Don't include <sysdep.h> nor <init-arch.h>.
18092         (_ZGVbN2v_log): Removed.
18093         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
18094         ...
18095         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
18096         Don't include <sysdep.h> nor <init-arch.h>.
18097         (_ZGVdN4v_log): Removed.
18098         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
18099         ...
18100         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
18101         Don't include <sysdep.h> nor <init-arch.h>.
18102         (_ZGVeN8v_log): Removed.
18103         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
18104         ...
18105         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
18106         Don't include <sysdep.h> nor <init-arch.h>.
18107         (_ZGVbN2vv_pow): Removed.
18108         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
18109         ...
18110         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
18111         Don't include <sysdep.h> nor <init-arch.h>.
18112         (_ZGVdN4vv_pow): Removed.
18113         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
18114         ...
18115         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
18116         Don't include <sysdep.h> nor <init-arch.h>.
18117         (_ZGVeN8vv_pow): Removed.
18118         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
18119         ...
18120         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
18121         Don't include <sysdep.h> nor <init-arch.h>.
18122         (_ZGVbN2v_sin): Removed.
18123         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
18124         ...
18125         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
18126         Don't include <sysdep.h> nor <init-arch.h>.
18127         (_ZGVbN4v_sin): Removed.
18128         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
18129         ...
18130         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
18131         Don't include <sysdep.h> nor <init-arch.h>.
18132         (_ZGVbN8v_sin): Removed.
18133         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
18134         ...
18135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
18136         Don't include <sysdep.h> nor <init-arch.h>.
18137         (_ZGVbN2vvv_sincos): Removed.
18138         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
18139         ...
18140         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
18141         Don't include <sysdep.h> nor <init-arch.h>.
18142         (_ZGVdN4vvv_sincos): Removed.
18143         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
18144         ...
18145         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
18146         Don't include <sysdep.h> nor <init-arch.h>.
18147         (_ZGVeN8vvv_sincos): Removed.
18148         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
18149         ...
18150         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
18151         Don't include <sysdep.h> nor <init-arch.h>.
18152         (_ZGVeN16v_cosf): Removed.
18153         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
18154         ...
18155         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
18156         Don't include <sysdep.h> nor <init-arch.h>.
18157         (_ZGVbN4v_cosf): Removed.
18158         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
18159         ...
18160         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
18161         Don't include <sysdep.h> nor <init-arch.h>.
18162         (_ZGVdN8v_cosf): Removed.
18163         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
18164         ...
18165         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
18166         Don't include <sysdep.h> nor <init-arch.h>.
18167         (_ZGVeN16v_expf): Removed.
18168         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
18169         ...
18170         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
18171         Don't include <sysdep.h> nor <init-arch.h>.
18172         (_ZGVbN4v_expf): Removed.
18173         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
18174         ...
18175         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
18176         Don't include <sysdep.h> nor <init-arch.h>.
18177         (_ZGVdN8v_expf): Removed.
18178         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
18179         ...
18180         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
18181         Don't include <sysdep.h> nor <init-arch.h>.
18182         (_ZGVeN16v_logf): Removed.
18183         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
18184         ...
18185         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
18186         Don't include <sysdep.h> nor <init-arch.h>.
18187         (_ZGVbN4v_logf): Removed.
18188         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
18189         ...
18190         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
18191         Don't include <sysdep.h> nor <init-arch.h>.
18192         (_ZGVdN8v_logf): Removed.
18193         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
18194         ...
18195         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
18196         Don't include <sysdep.h> nor <init-arch.h>.
18197         (_ZGVeN16vv_powf): Removed.
18198         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
18199         ...
18200         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
18201         Don't include <sysdep.h> nor <init-arch.h>.
18202         (_ZGVbN4vv_powf): Removed.
18203         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
18204         ...
18205         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
18206         Don't include <sysdep.h> nor <init-arch.h>.
18207         (_ZGVdN8vv_powf): Removed.
18208         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
18209         ...
18210         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
18211         Don't include <sysdep.h> nor <init-arch.h>.
18212         (_ZGVeN16vvv_sincosf): Removed.
18213         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
18214         ...
18215         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
18216         Don't include <sysdep.h> nor <init-arch.h>.
18217         (_ZGVbN4vvv_sincosf): Removed.
18218         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
18219         ...
18220         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
18221         Don't include <sysdep.h> nor <init-arch.h>.
18222         (_ZGVdN8vvv_sincosf): Removed.
18223         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
18224         ...
18225         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
18226         Don't include <sysdep.h> nor <init-arch.h>.
18227         (_ZGVeN16v_sinf): Removed.
18228         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
18229         ...
18230         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
18231         Don't include <sysdep.h> nor <init-arch.h>.
18232         (_ZGVbN4v_sinf): Removed.
18233         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
18234         ...
18235         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
18236         Don't include <sysdep.h> nor <init-arch.h>.
18237         (_ZGVdN8v_sinf): Removed.
18238
18239 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18240
18241         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18242         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
18243         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
18244         s_rint-sse4_1 and s_rintf-sse4_1.
18245         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
18246         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
18247         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
18248         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
18249         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
18250         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
18251         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
18252         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
18253         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
18254         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
18255         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
18256         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18257         (__ceil): Removed.
18258         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
18259         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
18260         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18261         (__ceilf): Removed.
18262         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
18263         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
18264         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18265         (__floor): Removed.
18266         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
18267         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
18268         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18269         (__floorf): Removed.
18270         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
18271         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
18272         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18273         (__nearbyint): Removed.
18274         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
18275         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
18276         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18277         (__nearbyintf): Removed.
18278         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
18279         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
18280         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18281         (__rint): Removed.
18282         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
18283         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
18284         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
18285         (__rintf): Removed.
18286
18287 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18288
18289         * sysdeps/i386/start.S (_start): Check Check PIC instead of
18290         SHARED.  Avoid dynamic relocation against main in static PIE.
18291
18292 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18293
18294         [BZ #21815]
18295         * elf/Makefile (CFLAGS-tst-prelink.c): New.
18296         (LDFLAGS-tst-prelink): Likewise.
18297
18298 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18299
18300         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
18301         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
18302         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
18303         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
18304         (INTERNAL_SYSCALL_NCS): Likewise.
18305         (LOADARGS_1): Likewise.
18306         (LOADARGS_5): Likewise.
18307         (RESTOREARGS_1): Likewise.
18308         (RESTOREARGS_5): Likewise.
18309
18310 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18311
18312         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
18313         (MEMPCPY_SYMBOL): Likewise.
18314         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
18315         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
18316         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
18317         in libc.a.
18318         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18319         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
18320         Likewise.
18321         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
18322         (__hidden_ver1): Don't use in libc.a.
18323         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
18324         (__mempcpy): Don't create a weak alias in libc.a.
18325         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
18326         libc.a.
18327         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
18328         (__hidden_ver1): Don't use in libc.a.
18329
18330 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18331
18332         * config.make.in (have-insert): New.
18333         * configure.ac (libc_cv_insert): New.  Set to yes if linker
18334         supports INSERT in linker script.
18335         (AC_SUBST(libc_cv_insert): New.
18336         * configure: Regenerated.
18337         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
18338         if $(have-insert) == yes.
18339
18340 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18341
18342         * elf/Makefile (tests): Add vismain only if
18343         $(have-protected-data) == yes.
18344         (tests-pie): Likewise.
18345
18346 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18347
18348         [BZ #21871]
18349         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
18350         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
18351
18352 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18353
18354         [BZ #21790]
18355         * sysdeps/i386/i586/memset.S
18356         (__memset_zero_constant_len_parameter): Removed.
18357         * sysdeps/i386/i686/memset.S
18358         (__memset_zero_constant_len_parameter): Likewise.
18359         * sysdeps/i386/i686/multiarch/memset_chk.S
18360         (__memset_zero_constant_len_parameter): Likewise.
18361         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
18362         Likewise.
18363
18364 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
18365
18366         * stdlib/getentropy.c (getentropy): Change return type to int.
18367
18368 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
18369
18370         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
18371
18372 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
18373
18374         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
18375         u_intN_t.
18376         * math/s_nexttowardf.c (__nexttowardf): Likewise.
18377         * sysdeps/generic/math_private.h (ieee_double_shape_type):
18378         Likewise.
18379         (ieee_float_shape_type): Likewise.
18380         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
18381         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
18382         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
18383         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
18384         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
18385         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
18386         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
18387         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
18388         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
18389         Likewise.
18390         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
18391         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
18392         (__ieee754_yn): Likewise.
18393         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
18394         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
18395         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
18396         Likewise.
18397         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
18398         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
18399         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
18400         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
18401         (__erfc): Likewise.
18402         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
18403         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
18404         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
18405         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
18406         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
18407         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
18408         Likewise.
18409         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
18410         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
18411         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
18412         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
18413         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
18414         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
18415         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
18416         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
18417         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
18418         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
18419         (__issignaling): Likewise.
18420         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
18421         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
18422         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18423         Likewise.
18424         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
18425         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
18426         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
18427         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
18428         Likewise.
18429         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
18430         Likewise.
18431         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
18432         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
18433         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
18434         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
18435         (__erfcf): Likewise.
18436         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
18437         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18438         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
18439         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
18440         Likewise.
18441         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
18442         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
18443         Likewise.
18444         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
18445         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
18446         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
18447         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
18448         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
18449         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
18450         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
18451         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
18452         Likewise.
18453         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
18454         Likewise.
18455         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
18456         Likewise.
18457         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
18458         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18459         Likewise.
18460         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
18461         Likewise.
18462         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
18463         (__ieee754_ynl): Likewise.
18464         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
18465         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
18466         Likewise.
18467         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
18468         Likewise.
18469         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
18470         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
18471         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
18472         Likewise.
18473         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
18474         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
18475         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
18476         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
18477         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
18478         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18479         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
18480         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
18481         Likewise.
18482         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
18483         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
18484         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
18485         Likewise.
18486         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
18487         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
18488         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
18489         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
18490         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
18491         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
18492         Likewise.
18493         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
18494         Likewise.
18495         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
18496         Likewise.
18497         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
18498         Likewise.
18499         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
18500         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
18501         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
18502         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
18503         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
18504         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
18505         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
18506         Likewise.
18507         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18508         Likewise.
18509         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
18510         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
18511         Likewise.
18512         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18513         (__ieee754_remainderl): Likewise.
18514         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
18515         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
18516         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
18517         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
18518         Likewise.
18519         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
18520         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
18521         Likewise.
18522         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18523         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
18524         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
18525         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
18526         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
18527         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18528         Likewise.
18529         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
18530         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
18531         (__ieee754_y0l): Likewise.
18532         (pzero): Likewise.
18533         (qzero): Likewise.
18534         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
18535         (__ieee754_y1l): Likewise.
18536         (pone): Likewise.
18537         (qone): Likewise.
18538         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
18539         (__ieee754_ynl): Likewise.
18540         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
18541         (__ieee754_lgammal_r): Likewise.
18542         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
18543         Likewise.
18544         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
18545         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
18546         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
18547         (__erfcl): Likewise.
18548         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
18549         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
18550         Likewise.
18551         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
18552         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
18553         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
18554         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
18555         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
18556         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
18557         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
18558         Likewise.
18559         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
18560         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
18561         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
18562         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
18563         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
18564         Likewise.
18565         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
18566         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
18567         Likewise.
18568         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
18569         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
18570         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
18571         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
18572         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
18573
18574 2017-08-03  Florian Weimer  <fweimer@redhat.com>
18575
18576         [BZ #21885]
18577         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
18578         on memory allocation failure.
18579
18580 2017-08-03  Alan Modra  <amodra@gmail.com>
18581
18582         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
18583         tst-tlsopt-powerpc.c with function name change and no test harness.
18584         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
18585         Call tls_get_addr_opt_test.
18586         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
18587         (modules-names): Add mod-tlsopt-powerpc.
18588         (mod-tlsopt-powerpc.so-no-z-defs): Define.
18589         (tst-tlsopt-powerpc): Depend on .so.
18590         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
18591         define.  Expand use in TLS_GD and TLS_LD.
18592
18593 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18594
18595         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
18596         function.
18597         * sysdeps/posix/shm_open.c: Include <pthread.h>.
18598
18599 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
18600
18601         [BZ #21686]
18602         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
18603         comparing size with that of double.
18604         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
18605         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
18606         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
18607         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
18608         (__TGMATH_BINARY_REAL_IMAG): Likewise.
18609         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
18610         unsigned __int128 types.
18611
18612 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
18613
18614         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
18615         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
18616         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
18617         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
18618         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
18619
18620 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18621
18622         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
18623
18624 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18625
18626         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
18627         of SHARED.
18628         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
18629         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
18630         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18631         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
18632         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
18633         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
18634         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
18635
18636 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
18637
18638         [BZ #21685]
18639         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
18640         bit-field expressions passed to sizeof or typeof.
18641         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18642         (__TGMATH_F128): Likewise.
18643         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18644         (__TGMATH_CF128): Likewise.
18645         (__TGMATH_UNARY_REAL_ONLY): Likewise.
18646         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
18647         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
18648         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
18649         (__TGMATH_BINARY_REAL_ONLY): Likewise.
18650         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
18651         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
18652         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
18653         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
18654         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
18655         (__TGMATH_UNARY_REAL_IMAG): Likewise.
18656         (__TGMATH_UNARY_IMAG): Likewise.
18657         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
18658         (__TGMATH_BINARY_REAL_IMAG): Likewise.
18659         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
18660         type.
18661         (define_vars_for_type): Handle bit_field type specially.
18662         (Tests.__init__): Declare structure with bit-field element.
18663
18664 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18665
18666         [BZ #21791]
18667         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
18668         (MEMCPY_CHK): Define only if SHARED is defined.
18669         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
18670         Likewise.
18671         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
18672         Likewise.
18673
18674 See ChangeLog.18 for earlier changes.