Add elf.h NT_* macros from Linux 4.15 (bug 14890).
[glibc.git] / ChangeLog
blobf4e5ac93f711e28f3ec77485547e6baf584c6989
1 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
3         [BZ #14890]
4         * elf/elf.h (NT_PRFPREG): New macro.
5         (NT_S390_VXRS_LOW): Likewise.
6         (NT_S390_VXRS_HIGH): Likewise.
7         (NT_S390_GS_CB): Likewise.
8         (NT_S390_GS_BC): Likewise.
9         (NT_S390_RI_CB): Likewise.
11         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12         (MAP_SYNC): New macro.
13         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
14         Likewise.
15         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16         (MAP_SYNC): Likewise.
17         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18         (MAP_SYNC): Likewise.
19         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
20         (MAP_SYNC): Likewise.
21         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22         (MAP_SYNC): Likewise.
23         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
24         (MAP_SYNC): Likewise.
25         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
26         (MAP_SYNC): Likewise.
27         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
28         Likewise.
29         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
30         Likewise.
32         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
33         (MAP_SHARED_VALIDATE): New macro.
34         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
35         (MAP_SHARED_VALIDATE): Likewise.
37 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
39         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
40         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
41         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
43 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
45         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
46         (DT_NUM): Updated to 35.
48 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
50         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
51         __builtin_expect with __glibc_likely and __glibc_unlikely.
52         (elf_machine_rela): Likewise.
53         (elf_machine_lazy_rel): Likewise.
55 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
57         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
58         __builtin_expect with __glibc_likely and __glibc_unlikely.
59         (elf_machine_lazy_rel): Likewise.
61 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
63         [BZ #22638]
64         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
65         SHARED.
66         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
68 2018-02-05  Andreas Schwab  <schwab@suse.de>
70         [BZ #22761]
71         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
72         string.
74 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
77         not check against PTHREAD_STACK_MIN.
79 2018-02-02  Sean McKean  <smckean83@gmail.com>
81         [BZ #22735]
82         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
84 2018-02-02  Florian Weimer  <fweimer@redhat.com>
86         [BZ #22753]
87         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
88         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
89         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
90         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
91         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
92         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
93         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
94         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
95         * manual/llio.texi (Scatter-Gather): Mention offset -1.
96         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
97         * misc/tst-preadvwritev2.c (do_test): Call it.
98         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
100 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
102         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
104         * benchtests/bench-memcmp.c: Print json instead of plain text.
106         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
107         every test run.
109 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
111         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
112         version to 4.15.
113         (s390_sthyi): New syscall.
115         * sysdeps/generic/ldbl-classify-compat.h: New file.
116         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
117         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
118         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
119         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
120         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
121         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
122         * sysdeps/ieee754/dbl-64/s_finite.c: Include
123         <ldbl-classify-compat.h>.
124         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
125         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
126         <ldbl-classify-compat.h>.
127         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
128         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
129         <ldbl-classify-compat.h>.
130         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
131         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
132         <ldbl-classify-compat.h>.
133         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
134         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
135         <ldbl-classify-compat.h>.
136         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
137         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
138         <ldbl-classify-compat.h>.
139         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
140         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
141         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
142         * sysdeps/m68k/coldfire/math_private.h: Remove file.
143         * sysdeps/microblaze/math_private.h: Likewise.
144         * sysdeps/nios2/math_private.h: Likewise.
145         * sysdeps/sh/math_private.h: Likewise.
147         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
148         * sysdeps/m68k/coldfire/math_private.h: ... here.
149         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
150         * sysdeps/tile/math_private.h: Likewise.
151         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
152         Remove macro.
153         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
154         Likewise.
156         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
157         Remove macro.
158         (libc_fetestexcept): Likewise.
159         (libc_feupdateenv_test): Likewise.
160         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
161         (libc_fetestexcept): Likewise.
162         (libc_feupdateenv_test): Likewise.
163         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
164         (libc_fetestexcept): Likewise.
165         (libc_feupdateenv_test): Likewise.
166         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
167         (libc_fetestexcept): Likewise.
168         (libc_feupdateenv_test): Likewise.
170         * sysdeps/generic/math_private.h
171         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
172         New inline function.
173         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
174         Likewise.
176         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
177         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
178         * sysdeps/generic/math_private.h
179         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
180         inline function.
181         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
182         Likewise.
183         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
184         Likewise.
185         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
186         Likewise.
187         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
188         Likewise.
189         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
190         Likewise.
191         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
192         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
193         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
194         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
195         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
196         (__fegetenv): Likewise.
197         (fesetenv): Likewise.
198         (__fesetenv): Likewise.
199         (feupdateenv): Likewise.
200         (__feupdateenv): Likewise.
201         (fegetround): Likewise.
202         (__fegetround): Likewise.
203         (fesetround): Likewise.
204         (__fesetround): Likewise.
206         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
207         (feraiseexcept): New macro.
208         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
209         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
210         Remove macro.
211         (__feraiseexcept): Likewise.
212         (feclearexcept): Likewise.
213         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
214         (__feraiseexcept): Likewise.
215         (feclearexcept): Likewise.
216         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
217         (__feraiseexcept): Likewise.
218         (feclearexcept): Likewise.
219         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
220         (__feraiseexcept): Likewise.
221         (feclearexcept): Likewise.
222         (fetestexcept): Likewise.
224         * sysdeps/m68k/coldfire/math-tests.h: New file.
226         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
227         * sysdeps/m68k/bits/fenv.h: ... here.
228         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
229         not define.
230         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
231         Likewise.
232         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
233         Likewise.
234         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
235         Likewise.
236         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
237         Likewise.
238         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
239         Define to 0.
240         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
241         (__FE_UNDEFINED): New enum constant.
242         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
243         Do not define.
244         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
245         Likewise.
246         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
247         Likewise.
248         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
249         to match generic bits/fenv.h.
250         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
251         Do not define.
253         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
254         packed on bits.
255         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
256         * soft-fp/half.h (union _FP_UNION_H): Likewise.
257         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
258         * soft-fp/single.h (union _FP_UNION_S): Likewise.
260 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
261             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
262             Joseph Myers  <joseph@codesourcery.com>
264         [BZ #21314]
265         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
266         (__log1p): Disable -Wmaybe-uninitialized for -Os around
267         computation using c.
268         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
269         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
270         computation using c.
272 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
274         * version.h (RELEASE): Set to "development".
275         (VERSION): Set to "2.27.9000".
276         * NEWS (2.28): New section.
278         * version.h (RELEASE): Set to "stable".
279         (VERSION): Set to "2.27".
280         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
282         * NEWS: Add the list of bugs fixed in 2.27.
284 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
286         * stdlib/test-atexit-race-common.c (do_test): Check stack size
287         against PTHREAD_STACK_MIN.
289 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
291         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
292         New entries.
293         (Rafal Luzynski, Andreas Schwab): Update.
295 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
297         [BZ #10871]
298         * NEWS: List the languages which actually use the alternative
299         months feature in this release.  Also explain that "alt_mon" and
300         "ab_alt_mon" are optional.
302 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
304         [BZ #22765]
305         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
307 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
309         * manual/install.texi (Tools for Compilation): Update the newest
310         versions of gcc, binutils, texinfo, gawk, bison, and sed.
311         * INSTALL: Regenerated.
313 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
315         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
316         instead of __builtin_expect.
318 2018-01-30  Florian Weimer  <fweimer@redhat.com>
320         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
321         data.
322         * nss/tst-nss-getpwent.c (do_test): Likewise.
324 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
326         [BZ #10871]
327         * localedata/locales/hr_HR (mon): Rename to...
328         (alt_mon): This.
329         (mon): Import from CLDR (genitive case).
330         (d_t_fmt): Update the comment.
332 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
334         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
335         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
336         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
338 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
340         * mach/Versions: Fix version when __mach_host_self_ was added.
341         * hurd/Versions: Fix version when _hurd_exec_paths was added.
342         * sysdeps/mach/hurd/i386/ld.abilist: New file.
343         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
344         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
345         * sysdeps/mach/hurd/i386/libc.abilist: New file.
346         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
347         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
348         * sysdeps/mach/hurd/i386/libm.abilist: New file.
349         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
350         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
351         * sysdeps/mach/hurd/i386/librt.abilist: New file.
352         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
353         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
354         || to respect codestyle.
355         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
356         (do_test_bz20181): Rename accordingly.
357         * malloc/malloc.c: Include <assert.h>.
358         (assert): Do not define.
359         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
360         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
361         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
362         * sysdeps/mach/hurd/hp-timing.h: New file.
363         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
365 2018-01-29  Darius Rad  <darius@bluespec.com>
367         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
369 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
371         * sysdeps/init_array/crti.S (.section .init_array): Add
372         PREINIT_FUNCTION when defined.
373         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
374         * config.h.in: Regenerate.
375         * manual/platform.texi: Add RISC-V documenation for
376         __riscv_flush_icache.
377         * sysdeps/riscv/__longjmp.S: New file.
378         * sysdeps/riscv/backtrace.c: Likewise.
379         * sysdeps/riscv/bits/endian.h: Likewise.
380         * sysdeps/riscv/bits/setjmp.h: Likewise.
381         * sysdeps/riscv/bits/wordsize.h: Likewise.
382         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
383         * sysdeps/riscv/bsd-setjmp.c: Likewise.
384         * sysdeps/riscv/dl-trampoline.S: Likewise.
385         * sysdeps/riscv/gccframe.h: Likewise.
386         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
387         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
388         * sysdeps/riscv/machine-gmon.h: Likewise.
389         * sysdeps/riscv/memusage.h: Likewise.
390         * sysdeps/riscv/setjmp.S: Likewise.
391         * sysdeps/riscv/sys/asm.h: Likewise.
392         * sysdeps/riscv/tls-macros.h: Likewise.
393         * sysdeps/riscv/dl-tls.h: New file.
394         * sysdeps/riscv/libc-tls.c: Likewise.
395         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
396         * sysdeps/riscv/nptl/tls.h: Likewise.
397         * sysdeps/riscv/stackinfo.h: Likewise.
398         * sysdeps/riscv/bits/fenv.h: New file.
399         * sysdeps/riscv/e_sqrtl.c: Likewise.
400         * sysdeps/riscv/fpu_control.h: Likewise.
401         * sysdeps/riscv/math-tests.h: Likewise.
402         * sysdeps/riscv/nofpu/Implies: Likewise.
403         * sysdeps/riscv/sfp-machine.h: Likewise.
404         * sysdeps/riscv/tininess.h: Likewise.
405         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
406         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
407         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
408         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
409         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
410         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
411         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
412         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
413         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
414         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
415         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
416         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
417         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
418         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
419         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
420         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
421         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
422         * sysdeps/riscv/rvd/s_finite.c: Likewise.
423         * sysdeps/riscv/rvd/s_fma.c: Likewise.
424         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
425         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
426         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
427         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
428         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
429         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
430         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
431         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
432         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
433         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
434         * sysdeps/riscv/rvf/fegetround.c: Likewise.
435         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
436         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
437         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
438         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
439         * sysdeps/riscv/rvf/fesetround.c: Likewise.
440         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
441         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
442         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
443         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
444         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
445         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
446         * sysdeps/riscv/rvf/math_private.h: Likewise.
447         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
448         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
449         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
450         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
451         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
452         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
453         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
454         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
455         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
456         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
457         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
458         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
459         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
460         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
461         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
462         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
463         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
464         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
465         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
466         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
467         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
468         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
469         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
470         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
471         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
472         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
473         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
474         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
475         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
476         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
477         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
478         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
479         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
480         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
481         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
482         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
483         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
484         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
485         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
486         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
487         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
488         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
489         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
490         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
491         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
492         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
493         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
494         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
495         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
496         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
497         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
498         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
499         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
500         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
501         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
502         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
503         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
504         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
505         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
506         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
507         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
508         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
509         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
510         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
511         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
512         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
513         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
514         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
515         * sysdeps/riscv/Implies: New file.
516         * sysdeps/riscv/Makefile: Likewise.
517         * sysdeps/riscv/configure: Likewise.
518         * sysdeps/riscv/configure.ac: Likewise.
519         * sysdeps/riscv/nptl/Makefile: Likewise.
520         * sysdeps/riscv/preconfigure: Likewise.
521         * sysdeps/riscv/rv64/Implies-after: Likewise.
522         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
523         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
524         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
525         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
526         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
527         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
528         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
529         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
530         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
531         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
532         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
533         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
534         (Config): Likewise.
536 2018-01-29  Florian Weimer  <fweimer@redhat.com>
538         [BZ #22701]
539         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
540         libnsl_hidden_proto.
541         * include/rpcsvc/yp.h (yp_xdrall): Declare with
542         libnsl_hidden_proto.
543         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
544         * nis/Makefile (libnsl-routines): Add nss-default only for
545         build-obsolete-nsl.
546         * nis/nis_defaults.c (__nis_default_ttl): Add
547         libnsl_hidden_nolink_def.
548         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
549         declaration.
550         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
551         * nis/ypclnt.c (yp_maplist): Likewise.
553 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
555         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
556         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
558 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
560         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
561         clean -dxfq for git updates when replacing sources.
563         * scripts/build-many-glibcs.py (Config.build_gcc): Use
564         --disable-libcilkrts unconditionally, not just for the final GCC
565         build for Hurd.
567         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
568         version to 4.15.
570 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
572         [BZ #10871]
573         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
574         case).
576 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
578         [BZ #10871]
579         * localedata/locales/be_BY (mon): Rename to...
580         (alt_mon): This, then synchronize with CLDR (nominative case).
581         (abmon): Rename to...
582         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
583         (mon): Import from CLDR (genitive case).
584         (abmon): Likewise.
585         * localedata/locales/be_BY@latin (mon): Rename to...
586         (alt_mon): This.
587         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
589         * localedata/locales/be_BY@latin (lang_name): Reworded to
590         "biełaruskaja mova".
592 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
594         [BZ #10871]
595         * localedata/locales/el_CY (mon): Renamed to...
596         (alt_mon): This.
597         (mon): Import from CLDR (genitive case).
598         * localedata/locales/el_GR: Likewise.
600 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
602         [BZ #10871]
603         * localedata/locales/ru_RU (mon): Rename to...
604         (alt_mon): This.
605         (abmon): Rename to...
606         (ab_alt_mon): This.
607         (mon): Import from CLDR (genitive case).
608         (abmon): Copy from the old content except the 5th month which is
609         now in the genitive case, even when abbreviated.
610         * localedata/locales/ru_UA: Likewise.
611         * time/tst-strptime.c (day_tests): Add an actual example of
612         a difference between %b and %Ob in Russian.
614 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
616         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
617         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
618         a `c' variable.
619         * resolv/res-close.c: Include <stdlib.h>.
620         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
621         <sys/wait.h>, <time.h>, <sys/uio.h>.
622         (NOT_CANCEL_H): Add inclusion guard.
623         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
624         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
625         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
626         return 0.
627         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
628         vm_address_t * to ElfW(Addr) * for dl_main parameter.
629         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
630         instead of void *.
631         * sysdeps/pthread/timer_create.c (timer_create): Do not use
632         timer_ptr2id to cast struct timer_node * to void *.
633         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
634         --disable-libcilkrts to gcc configure.
635         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
636         and make them the default for now.
637         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
638         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
639         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
640         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
641         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
642         MACH_IPC_COMPAT.
643         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
644         __task_terminate would ever return successfully.
645         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
646         to global scope.
647         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
648         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
649         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
650         critical section to make code simpler and avoid warning.
651         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
652         critical section to make code simpler and avoid warning.
653         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
654         const char * instead of char *.
655         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
656         __hurd_file_name_split, hurd_file_name_split,
657         __hurd_directory_name_split, hurd_directory_name_split,
658         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
659         hurd_file_name_path_lookup): Make lookup function parameter take a
660         const char *name instead of char *name.
661         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
662         __hurd_directory_name_split): Likewise.
663         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
664         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
665         * sysdeps/mach/hurd/check_native.c: New file.
666         * sysdeps/mach/hurd/check_pf.c: New file.
667         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
668         (__freeifaddrs): Define macro to freeifaddrs.
669         * sysdeps/mach/hurd/libhurduser.abilist: New file.
670         * sysdeps/mach/libmachuser.abilist: New file.
671         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
672         (do_test_bz20181): Rename accordingly.
673         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
674         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
675         <sys/mount.h>.
676         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
677         version only if __USE_EXTERN_INLINES is defined.
678         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
679         __hurd_sockfail): Likewise.
680         (_hurd_fd_get): Always declare functions, and provide inline versions
681         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
682         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
683         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
684         _hurd_port_set): Always declare functions, and provide inline versions
685         only if __USE_EXTERN_INLINES and _LIBC are defined and
686         IS_IN(libc).
687         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
688         _hurd_critical_section_unlock): Likewise.
689         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
690         * __hurd_threadvar_location): Likewise.
691         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
692         _hurd_userlink_clear): Likewise.
693         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
694         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
695         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
696         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
697         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
698         __spin_lock_locked): Likewise.
699         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
700         __spin_lock_locked): Likewise.
701         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
702         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
703         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
704         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
705         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
706         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
707         _POSIX_NO_TRUNC): Define to 0.
708         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
709         check size against PTHREAD_STACK_MIN.
710         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
711         IS_IN(libpthread)]: Include <sigsetops.h>.
712         * mach/Makefile (user-interfaces): Add mach/gnumach.
713         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
714         * sysdeps/mach/configure (mach_interface_list): Regenerate.
715         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
716         instead of invalid -1.
717         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
718         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
719         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
720         <net/ppp_defs.h>.
722 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
724         * hurd/fcntl-internal.h: New file.
726 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
728         * sysdeps/hppa/fpu/libm-test-ulps: Update.
730         * sysdeps/alpha/fpu/libm-test-ulps: Update.
732 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
734         [BZ #22701]
735         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
736         Build only shared objects.
738 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
740         * README: Update for hppa.
742 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
744         * sysdeps/sparc/fpu/libm-test-ulps: Update
745         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
747 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
749         Revert:
751         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
753         [BZ #22563]
754         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
755         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
756         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
757         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
758         to feature_1.
760         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
762         [BZ #22563]
763         * bits/types/__cancel_jmp_buf_tag.h: New file.
764         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
765         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
766         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
767         * nptl/Makefile (headers): Add
768         bits/types/__cancel_jmp_buf_tag.h.
769         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
770         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
771         * sysdeps/nptl/pthread.h: Include
772         <bits/types/__cancel_jmp_buf_tag.h>.
773         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
774         __cancel_jmp_buf.
775         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
777 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
779         [BZ #10871]
780         * localedata/locales/uk_UA (mon): Renamed to...
781         (alt_mon): This.
782         (alt_digits): "0" removed and then renamed to...
783         (mon): This.
784         (date_fmt): Definition changed not to use the alternative
785         digits hack.
787 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
789         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
790         FLAG_RISCV_FLOAT_ABI_DOUBLE.
791         * elf/elf.h (EF_RISCV_RVC): New define.
792         (EF_RISCV_FLOAT_ABI): Likewise.
793         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
794         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
795         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
796         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
797         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
798         define.
799         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
801 2018-01-25  Andreas Schwab  <schwab@suse.de>
803         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
804         single quotes.
805         * sysdeps/gnu/configure: Regenerate.
806         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
807         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
809         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
810         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
811         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
812         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
813         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
815 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
817         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
818         URL, and run autoconf, make it the default for now.
820 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
822         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
823         soft-float ColdFire configuration.
825         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
826         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
827         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
829         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
830         MicroBlaze file.
832         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
833         ....
834         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
835         ... here.
836         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
837         New file.
839         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
840         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
841         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
842         file.
844 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
846         [BZ #22742]
847         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
848         Rename to __reserved and add comment.
849         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
850         Rename to __reserved.
852 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
854         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
855         i686-gnu configurations.
856         (Context.run_builds): Include mig, gnumach and hurd in components
857         considered.
858         (Context.checkout): Add mig, gnumach and hurd to components.
859         (Context.checkout_tar): Add URL mappings for mig, gnumach and
860         hurd.
861         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
862         (Config.build): Install gnumach headers, build mig and install
863         hurd headers for 'gnu' OS.
864         (Config.install_gnumach_headers): New function.
865         (Config.install_hurd_headers): Likewise.
866         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
867         when building for 'gnu' OS.
869 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
871         * manual/tunables.texi (Hardware Capability Tunables): Fix
872         spelling.
874 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
876         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
877         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
878         (ALTMON_11, ALTMON_12): Improve documentation.
879         * manual/time.texi (strftime): Likewise.
881 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
883         [BZ #10871]
884         * localedata/locales/pl_PL: Alternative month names added,
885         primary month names are genitive now.
886         * time/tst-strptime.c (day_tests): Actually use a genitive case
887         of a month name in Polish language.
889 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
891         [BZ #10871]
892         * manual/locale.texi: Document ALTMON_1..12 constants for
893         nl_langinfo.  Specify when to use ALTMON instead of MON.
894         * manual/time.texi (strftime, strptime): Document GNU extension
895         permitting O modifier with %B and %b.  Specify when to use
896         %OB instead of %B.
898 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
900         [BZ #10871]
901         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
902         names, define them as the same as abbreviated month names explicitly.
903         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
904         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
905         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
906         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
907         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
908         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
909         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
910         _NL_WABALTMON_12): New enum constants.
911         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
912         wab_alt_mon, and ab_alt_mon_defined members.
913         (time_output): Output ab_alt_mon and wab_alt_mon members.
914         (time_read): Read them, initialize them as copies of abmon and wabmon
915         respectively if they are missing, initialize ab_alt_mon_defined.
916         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
917         * locale/programs/locfile-kw.h: Regenerate.
918         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
919         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
920         and ru_RU.UTF-8.
921         * time/strftime_l.c (a_altmonth, aam_len): New macros.
922         [!COMPILE_WIDE] (ABALTMON_1): New macro.
923         (__strftime_internal): Handle %Ob and %Oh formats.
924         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
925         (__strptime_internal): Handle %Ob and %Oh formats.
926         * time/tst-strptime.c (day_tests): Add more tests to parse different
927         forms of month names including the new %Ob format specifier.
929 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
931         [BZ #10871]
932         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
933         define them as the same as primary full month names explicitly.
934         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
935         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
936         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
937         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
938         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
939         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
940         _NL_WALTMON_12): New enum constants.
941         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
942         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
943         macros.
944         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
945         walt_mon, and alt_mon_defined members.
946         (time_output): Output alt_mon and walt_mon members.
947         (time_read): Read them, initialize them as copies of mon and wmon
948         respectively if they are missing, initialize alt_mon_defined.
949         * locale/programs/locfile-kw.gperf (alt_mon): Define.
950         * locale/programs/locfile-kw.h: Regenerate.
951         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
952         * localedata/tst-langinfo.c (map): Add tests for the new constants
953         ALTMON_1 .. ALTMON_12.
954         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
955         and pl_PL.UTF-8.
956         * time/strftime_l.c (f_altmonth): New macro.
957         (__strftime_internal): Handle %OB format.
958         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
959         (__strptime_internal): Handle %OB format.
960         * time/tst-strptime.c (day_tests): Add tests to parse different forms
961         of month names including the new %OB format specifier.
963 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
965         [BZ #22685]
966         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
967         from ABORT_TRANSACTION.
968         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
969         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
970         ABORT_TRANSACTION_IMPL): Likewise.
971         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
972         Linux code, but remove the code that aborts transactions.
974 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
976         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
978 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
980         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
981         in date: "2004-14-09" should be "2004-09-14".
982         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
983         "2003-15-09" should be "2003-09-15".
985 2018-01-18  Arjun Shankar  <arjun@redhat.com>
987         [BZ #22343]
988         CVE-2018-6485
989         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
990         after padding.
991         (_int_memalign): check for integer overflow before calling
992         _int_malloc.
993         * malloc/tst-malloc-too-large.c: New test.
994         * malloc/Makefile: Add tst-malloc-too-large.
996 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
998         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
999         in date: "2017-24-07" should be "2017-07-24".
1000         * localedata/locales/mai_IN: Likewise.
1001         * localedata/locales/mai_NP: Likewise.
1003 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
1005         * po/ru.po: Update translations.
1007 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
1009         [BZ #22719]
1010         * sysdeps/hppa/backtrace.c: New file.
1012 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1014         [BZ #22715]
1015         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
1016         align La_x86_64_retval to VEC_SIZE.
1018 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
1020         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
1021         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
1023 2018-01-16  Florian Weimer  <fweimer@redhat.com>
1025         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
1026         Move tst-thread-exit-clobber ...
1027         [$(CXX)] (tests-unsupported): ... to here.
1029 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1031         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
1032         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
1033         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
1034         (_dl_aarch64_cap_flags): Update.
1035         (_DL_HWCAP_COUNT): Update.
1037 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1039         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
1040         (_DL_HWCAP_LAST): Remove.
1041         (_DL_HWCAP_COUNT): Move to ...
1042         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
1043         (_DL_HWCAP_COUNT): ... here.
1045 2018-01-16  Florian Weimer  <fweimer@redhat.com>
1047         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
1048         mode with GNU extensions.
1050 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
1052         * elf/elf.h (NT_ARM_SVE): Define.
1054 2018-01-15  Florian Weimer  <fweimer@redhat.com>
1056         [BZ #22636]
1057         * nptl/tst-minstack-throw.cc: New file.
1058         * nptl/Makefile (tests): Add tst-minstack-throw.
1059         (LDLIBS-tst-minstack-throw): Link with libstdc++.
1060         [!CXX] (tests-unsupported): Add tst-minstack-throw.
1062 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
1064         * scripts/build-many-glibcs.py (Context.checkout): Default
1065         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
1066         version to 1.1.0.
1068 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
1070         [BZ #22707]
1071         * elf/elf.h (DF_1_STUB): Define.
1072         (DF_1_PIE): Define.
1074 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1076         [BZ #22697]
1077         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1078         Do not add 0.5 to integer or out-of-range arguments.
1080 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
1082         * po/bg.po: Update translations.
1083         * po/cs.po: Likewise.
1084         * po/de.po: Likewise.
1085         * po/ko.po: Likewise.
1086         * po/pl.po: Likewise.
1087         * po/sv.po: Likewise.
1088         * po/uk.po: Likewise.
1089         * po/vi.po: Likewise.
1091 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1093         * aarch64/start.S (_start): Use __wrap_main.
1094         (__wrap_main): New local symbol.
1096 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
1098         [BZ #22679]
1099         CVE-2018-1000001
1100         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
1101         generic_getcwd if the path returned by getcwd syscall is not absolute.
1102         * io/tst-getcwd-abspath.c: New test.
1103         * io/Makefile (tests): Add tst-getcwd-abspath.
1105 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
1107         * malloc/malloc.c (malloc_consolidate): Add size check.
1109 2018-01-12  Florian Weimer  <fweimer@redhat.com>
1111         * support/write_message.c (write_message): Preserve errno.
1112         * support/check.c (print_failure): Likewise.
1113         * support/support_test_verify_impl.c (support_test_verify_impl):
1114         Likewise.
1115         * support/support_test_compare_failure.c
1116         (support_test_compare_failure): Likewise.
1118 2018-01-12  Florian Weimer  <fweimer@redhat.com>
1120         [BZ #22701]
1121         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
1122         Prevent installation of libnsl.so.
1123         (libnsl-inhibit-o): Do not build (or install) static libraries.
1125 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
1127         [BZ #22657]
1128         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
1129         before the day number which may produce a double space.
1130         (date_fmt): Likewise.
1132 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
1134         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
1135         instead of fegetenv.
1137 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
1139         [BZ #22702]
1140         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
1141         comment to say exceptions are discarded.
1142         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
1143         __fegetenv.
1144         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
1145         be enabled.
1147 2018-01-11  Florian Weimer  <fweimer@redhat.com>
1149         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
1150         and error message.
1152 2018-01-11  Florian Weimer  <fweimer@redhat.com>
1154         [BZ #22636]
1155         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
1156         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
1158 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
1160         [BZ #22693]
1161         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
1162         negative arguments in test for NaN or infinity argument.
1164 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
1166         * po/libc.pot: Regenerate.
1168 2018-01-10  Florian Weimer  <fweimer@redhat.com>
1170         [BZ #22636]
1171         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
1172         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
1174 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1176         * hurd/hurd/fd.h: Include <fcntl.h>
1177         (__hurd_at_flags): New function.
1178         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
1179         with call to __hurd_at_flags.
1180         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
1181         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
1182         __faccessat
1183         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
1184         (__access_noerrno): Use __faccessat_common instead of access_common.
1185         (__access): Likewise.
1186         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
1187         with a call to __faccessat.
1188         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
1189         (__faccessat_common): ... this. Move implementation of __access into it when
1190         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
1191         reauthenticate_cwdir_at helper to implement AT mechanism.
1192         (__faccessat_noerrno): New function, just calls __faccessat_common.
1193         (__faccessat): New function, just calls __faccessat_common.
1194         (faccessat): Define weak alias.
1196 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
1198         [BZ #22691]
1199         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
1200         (CFLAGS-s_fmaxmagl.c): New variable.
1201         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
1203         [BZ #22690]
1204         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
1205         long int for arguments of possibly overflowing addition or
1206         subtraction.
1207         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
1209 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
1211         [BZ #22688]
1212         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
1213         (CFLAGS-e_remainderl.c): New variable.
1215         [BZ #22687]
1216         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
1217         variable.
1218         (CFLAGS-s_cacoshl.c): Likewise.
1219         (CFLAGS-s_casinhl.c): Likewise.
1220         (CFLAGS-s_catanl.c): Likewise.
1221         (CFLAGS-s_catanhl.c): Likewise.
1222         (CFLAGS-s_cexpl.c): Likewise.
1223         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
1224         (CFLAGS-s_csinhl.c): Likewise.
1225         (CFLAGS-s_clogl.c): Likewise.
1226         (CFLAGS-s_clog10l.c): Likewise.
1227         (CFLAGS-s_csinl.c): Likewise.
1228         (CFLAGS-s_csqrtl.c): Likewise.
1230 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
1231 2017-01-09  Svante Signell  <svante.signell@gmail.com>
1233         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
1234         (_hurd_exec_paths): New function.
1235         * hurd/hurd.h (_hurd_exec): Deprecate function.
1236         (_hurd_exec_paths): Declare function.
1237         * hurd/Versions: Export _hurd_exec_paths.
1238         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
1239         (__execve): Use __getcwd to build absolute path, and use
1240         _hurd_exec_paths instead of _hurd_exec.
1241         * sysdeps/mach/hurd/spawni.c: Likewise.
1242         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
1243         _hurd_exec.
1245 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
1247         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
1248         test instead of failing in case of ENOENT returned by posix_openpt.
1250 2018-01-08  Florian Weimer  <fweimer@redhat.com>
1252         resolv: Support binary labels in test framework.
1253         * support/resolv_test.c (struct to_be_freed): Remove.
1254         (struct compressed_name): New.
1255         (allocate_compressed_name, ascii_tolower)
1256         (compare_compressed_name): New functions.
1257         (struct resolv_response_builder): Update type of
1258         compression_offsets for use with tsearch.  Rempve to_be_freed.
1259         (response_push_pointer_to_free): Remove function.
1260         (resolv_response_add_name): Rewrite using struct compressed_name
1261         and tsearch instead of hsearch_r.
1262         (response_builder_allocate): Remove initialization of
1263         compression_offsets.
1264         (response_builder_free): Update for removal of to_be_freed.  Use
1265         tdestroy instead of hdestroy_r.
1266         * resolv/Makefile (tests): Add tst-resolv-binary.
1267         (tst-resolv-binary): Link with -lresolv -lpthread.
1269 2018-01-08  Florian Weimer  <fweimer@redhat.com>
1271         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
1272         time.  Pass positive flag instead of negative flag to
1273         support_test_compare_failure.
1274         (support_test_compare_failure): Change negative parameter to
1275         positive.
1276         * support/support_test_compare_failure.c (report)
1277         (support_test_compare_failure): Likewise.
1278         * support/tst-test_compare.c (return_ssize_t, return_int): New.
1279         (do_test): Check int/size_t, ssize_t/size_t comparisons.
1281 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1283         [BZ #22637]
1284         * nptl/descr.h (stackblock, stackblock_size): Update comments.
1285         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
1286         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
1287         stacksize.
1288         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
1290 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1292         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1293         Add s_sincosf-sse2 and s_sincosf-fma.
1294         (CFLAGS-s_sincosf-fma.c): New.
1295         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
1296         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1297         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
1298         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
1299         __sincosf is defined.
1301 2018-01-08  Florian Weimer  <fweimer@redhat.com>
1303         * nptl/tst-thread-exit-clobber.cc: New file.
1304         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
1305         C++11 mode.
1306         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
1307         (tests): Add tst-thread-exit-clobber.
1308         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
1310 2018-01-08  Florian Weimer  <fweimer@redhat.com>
1312         * support/check.h (support_static_assert): Define.
1313         (TEST_COMPARE): Use it.
1315 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
1317         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
1318         [!__RLIM_T_MATCHES_RLIM64_T]
1319         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
1320         __getrlimit64. Add libc_hidden_weak.
1322 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
1324         * elf/elf.h (R_RISCV_NONE): New define.
1325         (R_RISCV_32): Likewise.
1326         (R_RISCV_64): Likewise.
1327         (R_RISCV_RELATIVE): Likewise.
1328         (R_RISCV_COPY): Likewise.
1329         (R_RISCV_JUMP_SLOT): Likewise.
1330         (R_RISCV_TLS_DTPMOD32): Likewise.
1331         (R_RISCV_TLS_DTPMOD64): Likewise.
1332         (R_RISCV_TLS_DTPREL32): Likewise.
1333         (R_RISCV_TLS_DTPREL64): Likewise.
1334         (R_RISCV_TLS_TPREL32): Likewise.
1335         (R_RISCV_TLS_TPREL64): Likewise.
1336         * Makerules (make-link-multidir): Make directories before linking into
1337         them.
1338         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
1339         define.
1340         (VDSO_HASH_LINUX_4_15): Likewise.
1341         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
1342         in subdirectories of lib.
1343         * nptl/Makefile (/librt.so): Always depend on
1344         "$(shared-thread-library)".
1346 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1348         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
1349         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
1350         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
1351         (___tls_get_addr).
1352         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
1353         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1354         "-O2 -march=i686".
1355         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
1356         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
1357         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
1358         * sysdeps/gnu/glob-lstat-compat.c: New file.
1359         * sysdeps/gnu/glob64-lstat-compat.c: New file.
1360         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
1362 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1364         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1365         Reserve 16 chars to reloc_addr before calling _itoa_word.
1367 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
1369         [BZ #22678]
1370         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
1371         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
1373         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
1374         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
1376         * resource/tst-getrlimit.c: Add copyright header.
1378 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
1379             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1381         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
1382         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
1383         Define __GI_getrlimit64 as weak alias of __getrlimit64.
1384         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
1385         instead.
1386         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
1387         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
1388         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
1389         RLIM64_INFINITY): Fix values to match the kernel ones.
1390         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
1391         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
1392         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
1393         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
1394         getrlimit64@@GLIBC_2_27.
1395         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
1396         and setrlimit64.
1397         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
1398         getrlimit, setrlimit, getrlimit64 and setrlimit64.
1399         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
1400         setrlimit, getrlimit64 and setrlimit64.
1402 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
1404         [BZ #22648]
1405         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
1406         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
1408 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
1410         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
1411         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
1412         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
1414 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1416         [BZ #15479]
1417         [BZ #22666]
1418         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
1419         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
1421         [BZ #15479]
1422         [BZ #22665]
1423         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
1424         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1425         * sysdeps/alpha/fpu/s_floor.c: Likewise.
1426         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1428 2018-01-04  Florian Weimer  <fweimer@redhat.com>
1430         [BZ #22667]
1431         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
1432         Align the stack before calling exit.
1433         * stdlib/tst-makecontext-align.c: New file.
1434         * stdlib/Makefile (tests): Add tst-makecontext-align.
1436 2018-01-04  Florian Weimer  <fweimer@redhat.com>
1438         Add support for calling dlvsym from libc.so.
1439         * include/dlfcn.h (__libc_dlvsym): Declare.
1440         * elf/Makefile (tests-static-internal): Add
1441         tst-libc_dlvsym-static.
1442         (tests-internal): Add tst-libc_dlvsym.
1443         (modules-names): Add tst-libc_dlvsym-dso.
1444         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
1445         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
1446         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
1447         object tst-libc_dlvsym-dso.so needs to be built before running
1448         these tests.
1449         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
1450         * elf/Versions: Export __libc_dlvsym.
1451         * elf/dl-libc.c (struct do_dlvsym_args): New.
1452         (do_dlvsym, __libc_dlvsym): New functions.
1453         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
1454         (_dl_open_hook2): New variable.
1455         (__libc_register_dl_open_hook): Set it.
1456         * elf/tst-libc_dlvsym-dso.c: New file.
1457         * elf/tst-libc_dlvsym-static.c: Likewise.
1458         * elf/tst-libc_dlvsym.c: Likewise.
1459         * elf/tst-libc_dlvsym.h: Likewise.
1461 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1463         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
1464         include <sys/mount.h>.
1466 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
1468         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
1469         Add __NO_MATH_ERRNO__ check.
1471 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
1473         * sysdeps/mips/mips32/libm-test-ulps: Update.
1474         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1476 2018-01-02  Florian Weimer  <fweimer@redhat.com>
1478         * misc/tst-pselect.c: Add copyright header.
1480 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
1482         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
1483         comment.
1484         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
1485         comment.
1486         (settrlimit): Rename into setrlimit.
1487         (__sttrlimit): Rename into __setrlimit.
1489         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
1490         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
1491         never defined in that case.
1493 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
1495         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1497         * sysdeps/arm/libm-test-ulps: Update.
1499         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
1500         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
1502 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1504         * NEWS: Add cosf and sincosf to list of optimized functions.
1506 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
1508         [BZ #22660]
1509         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
1510         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
1511         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
1512         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
1514 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
1516         [BZ #22433]
1517         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
1519         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
1520         making a copy of it.
1522 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
1524         * manual/texinfo.tex: Update to version 2017-12-26.21 with
1525         trailing whitespace removed.
1526         * scripts/config.guess: Update to version 2018-01-01.
1527         * scripts/config.sub: Update to version 2018-01-01.
1528         * scripts/move-if-change: Update from gnulib.
1530         * NEWS: Update copyright dates.
1531         * catgets/gencat.c (print_version): Likewise.
1532         * csu/version.c (banner): Likewise.
1533         * debug/catchsegv.sh: Likewise.
1534         * debug/pcprofiledump.c (print_version): Likewise.
1535         * debug/xtrace.sh (do_version): Likewise.
1536         * elf/ldconfig.c (print_version): Likewise.
1537         * elf/ldd.bash.in: Likewise.
1538         * elf/pldd.c (print_version): Likewise.
1539         * elf/sotruss.sh: Likewise.
1540         * elf/sprof.c (print_version): Likewise.
1541         * iconv/iconv_prog.c (print_version): Likewise.
1542         * iconv/iconvconfig.c (print_version): Likewise.
1543         * locale/programs/locale.c (print_version): Likewise.
1544         * locale/programs/localedef.c (print_version): Likewise.
1545         * login/programs/pt_chown.c (print_version): Likewise.
1546         * malloc/memusage.sh (do_version): Likewise.
1547         * malloc/memusagestat.c (print_version): Likewise.
1548         * malloc/mtrace.pl: Likewise.
1549         * manual/libc.texinfo: Likewise.
1550         * nptl/version.c (banner): Likewise.
1551         * nscd/nscd.c (print_version): Likewise.
1552         * nss/getent.c (print_version): Likewise.
1553         * nss/makedb.c (print_version): Likewise.
1554         * posix/getconf.c (main): Likewise.
1555         * scripts/test-installation.pl: Likewise.
1556         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1558         * All files with FSF copyright notices: Update copyright dates
1559         using scripts/update-copyrights.
1560         * locale/programs/charmap-kw.h: Regenerated.
1561         * locale/programs/locfile-kw.h: Likewise.
1563 2017-12-31  Zack Weinberg  <zackw@panix.com>
1565         * libio/bits/libio-ldbl.h: Correct check for improper
1566         inclusion.  Add own multiple include guard.
1568 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
1569             Dmitry V. Levin  <ldv@altlinux.org>
1571         [BZ #22625]
1572         CVE-2017-16997
1573         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
1574         string token expansion. Check for NULL pointer or empty string possibly
1575         returned by expand_dynamic_string_token.
1576         (decompose_rpath): Check for empty path after dynamic string
1577         token expansion.
1579 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
1581         [BZ #22433]
1582         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
1584         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
1585         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
1586         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
1587         and PTRACE_SYSCALL.
1588         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
1589         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1590         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1591         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1592         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1593         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
1595         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
1596         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
1597         __ptrace_peeksiginfo_flags, ptrace): Move to ...
1598         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
1599         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1600         bits/ptrace-shared.h.
1601         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
1602         <bits/ptrace-shared.h>.
1603         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
1604         __ptrace_peeksiginfo_flags, ptrace): Remove.
1605         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1606         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1607         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1608         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1609         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
1611 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
1613         [BZ #17804]
1614         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
1615         end of the loop. Improve comments.
1617 2017-12-29  Zack Weinberg  <zackw@panix.com>
1619         [BZ #22615]
1620         * manual/errno.texi (Checking for Errors): Explicitly say that errno
1621         might be set on success.
1623 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
1625         [BZ #22611]
1626         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
1627         is unchanged on success.
1629 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
1631         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
1632         updated.
1633         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
1634         expand_dynamic_string_token): Likewise.
1635         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
1636         is_path argument.
1638         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
1639         contains ':'.
1641         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
1642         is set and name contains ':', and all code depending on these checks.
1644 2017-12-24  Zack Weinberg  <zackw@panix.com>
1646         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
1647         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
1648         respectively.
1649         * libio/libio.h: Rename the original version of this file to
1650         libio/bits/libio.h.  Error out if not included by stdio.h or the
1651         stub libio.h.
1652         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
1653         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
1654         if not included by bits/libio.h or the stub _G_config.h.
1655         * sysdeps/unix/sysv/linux/_G_config.h: Move to
1656         sysdeps/unix/sysv/linux/bits.  Error out if not included by
1657         bits/libio.h or the stub _G_config.h.
1658         * libio/stdio.h: Include bits/libio.h, not libio.h.
1659         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
1660         well as libio.h and _G_config.h.
1662         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
1663         * libio/strfile.h, stdio-common/vfscanf.c
1664         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
1665         Include stdio.h, not _G_config.h nor libio.h.
1666         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
1667         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
1669         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
1671 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
1673         [BZ #22347]
1674         * stdlib/getrandom.c (getrandom): Fix comment.
1675         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
1677 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
1679         [BZ #21161]
1680         * manual/arith.texi (strtoul): Fix a typo.
1682         [BZ #22596]
1683         * manual/arith.texi (finite): Fix the description of the return
1684         value.
1686 2017-12-22  Eric Blake  <ebb9@byu.net>
1688         Avoid gcc warnings on cygwin
1689         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
1690         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
1691         Avoid unused variable.
1693 2017-12-22  Florian Weimer  <fweimer@redhat.com>
1695         * io/Makefile (routines): Add copy_file_range.
1696         (tests): Add tst-copy_file_range.
1697         (tests-static, tests-internal): Add tst-copy_file_range-compat.
1698         * io/Versions (GLIBC_2.27): Export copy_file_range.
1699         * io/copy_file_range-compat.c: New file.
1700         * io/copy_file_range.c: Likewise.
1701         * io/tst-copy_file_range-compat.c: Likewise.
1702         * io/tst-copy_file_range.c: Likewise.
1703         * manual/llio.texi (Copying File Data): New section.
1704         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
1705         * support/Makefile (libsupport-routines): Add support-xfstat,
1706         xftruncate, xlseek.
1707         * support/support-xfstat.c: New file.
1708         * support/xftruncate.c: Likewise.
1709         * support/xlseek.c: Likewise.
1710         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
1711         * sysdeps/unix/sysv/linux/**.abilist: Update.
1712         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
1714 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1716         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
1717         disable-multi-arch variant to aarch64-linux-gnu.
1719 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
1721         * manual/texinfo.tex: Update to version 2017-12-18.20 with
1722         trailing whitespace removed.
1723         * scripts/config.guess: Update to version 2017-12-17.
1724         * scripts/config.sub: Update to version 2017-11-23.
1725         * scripts/install-sh: Update to version 2017-09-23.17.
1726         * scripts/move-if-change: Update to version 2017-09-13 06:45.
1728 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1730         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
1731         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
1732         * sysdeps/tile/_mcount.S (__mcount): Likewise.
1733         * sysdeps/tile/crti.S (_init, _fini): Likewise.
1734         * sysdeps/tile/crtn.S: Likewise.
1735         * sysdeps/tile/dl-start.S (_start): Likewise.
1736         * sysdeps/tile/dl-trampoline.S: Likewise.
1737         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
1738         * sysdeps/tile/start.S (_start): Likewise.
1739         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
1740         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
1741         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
1742         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
1743         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
1744         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
1745         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
1747         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
1748         comment.
1749         * sysdeps/tile/preconfigure: Remove tilegx folder.
1750         * sysdeps/tile/tilegx/Implies: Move definitions to ...
1751         * sysdeps/tile/Implies: ... here.
1752         * sysdeps/tile/tilegx/Makefile: Move rules to ...
1753         * sysdeps/tile/Makefile: ... here.
1754         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
1755         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
1756         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
1757         * sysdeps/tile/bits/wordsize.h: ... here.
1758         * sysdeps/tile/tilegx/*: Move to ...
1759         * sysdeps/tile/*: ... here.
1760         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
1761         * sysdeps/tile/tilegx32/Implies: ... here.
1762         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
1763         * sysdeps/tile/tilegx64/Implies: ... here.
1764         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
1765         to ...
1766         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1767         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
1768         * sysdeps/unix/sysv/linux/tile/*: ... here.
1769         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
1770         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
1771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
1772         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
1774         * README: Remove tilepro-*-linux-gnu from supported architecture.
1775         * scripts/build-many-glibcs.py: Likewise.
1776         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
1777         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
1778         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
1779         elf_machine_matches_host, elf_machine_dynamic,
1780         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
1781         howto, elf_machine_rela): Likewise.
1782         * sysdeps/tile/dl-start.S (_start): Likewise.
1783         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
1784         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
1785         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
1786         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
1787         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
1788         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
1789         Likewise.
1790         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
1791         * sysdeps/tile/preconfigure: Likewise.
1792         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
1793         POINTER_CHK_GUARD): Likewise.
1794         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
1795         * sysdeps/tile/start.S (_start): Likewise.
1796         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
1797         Likewise.
1798         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
1799         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
1800         CMOVNEZ): Remove.
1801         * sysdeps/unix/sysv/linux/tile/bits/environments.h
1802         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
1803         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
1804         Likewise.
1805         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
1806         * sysdeps/tile/tilepro/Implies: Remove file.
1807         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
1808         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1809         * sysdeps/tile/tilepro/memchr.c: Likewise.
1810         * sysdeps/tile/tilepro/memcpy.S: Likewise.
1811         * sysdeps/tile/tilepro/memset.c: Likewise.
1812         * sysdeps/tile/tilepro/memusage.h: Likewise.
1813         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
1814         * sysdeps/tile/tilepro/strchr.c: Likewise.
1815         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
1816         * sysdeps/tile/tilepro/strlen.c: Likewise.
1817         * sysdeps/tile/tilepro/strrchr.c: Likewise.
1818         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
1819         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
1820         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
1821         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
1822         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
1823         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1824         Likewise.
1825         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
1826         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1827         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
1828         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
1829         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1830         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
1831         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
1832         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
1833         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
1834         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
1835         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
1836         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
1837         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
1838         tilepro mention in comment.
1840         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
1841         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
1842         * nptl/pthread_join_common.c: New file: common function used on
1843         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
1844         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
1845         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
1846         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
1847         (cleanup): Move definition to pthread_join_common.c.
1848         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
1849         Remove superflous checks.
1850         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
1851         Likewise.
1853 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1855         * sysdeps/aarch64/libm-test-ulps: Update.
1857 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1859         * sysdeps/aarch64/memset.S (MEMSET): Define.
1861 2017-12-20  Florian Weimer  <fweimer@redhat.com>
1863         [BZ #22635]
1864         nptl: Provide full implementation of pthread_self in libc.so.
1865         * nptl/Makefile (routines): Add pthread_self.
1866         (libpthread-routines): Replace pthread_self with
1867         compat-pthread_self.
1868         * nptl/forward.c (pthread_self): Remove.
1869         * nptl/nptl-init.c (pthread_functions): Do not initialize
1870         ptr_pthread_self.
1871         * nptl/pthread_self.c (pthread_self): Remove weak alias.
1872         * nptl/compat-pthread_self.c: New file.
1873         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1874         Remove ptr_pthread_self.
1876 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
1878         * posix/regcomp.c: Fix spelling in comments.
1879         * posix/regex.h: Likewise.
1880         * posix/regex_internal.c: Likewise.
1881         * posix/regexec.c: Likewise.
1883 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1885         [BZ #22377]
1886         * math/Makefile [C++] (tests): Add test for iseqsig.
1887         * math/math.h [C++] (iseqsig): New implementation, which does
1888         not rely on __MATH_TG/__builtin_types_compatible_p.
1889         * math/test-math-iseqsig.cc: New file.
1890         * sysdeps/powerpc/powerpc64le/Makefile
1891         (CFLAGS-test-math-iseqsig.cc): New variable.
1893 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
1895         * elf/dl-load.c (is_trusted_path): Remove.
1896         (fillin_rpath): Remove check_trusted argument and its use,
1897         all callers changed.
1899 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
1901         [BZ #22630]
1902         * Makeconfig (link-pie-before-libc): Replace -pie with
1903         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
1904         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
1905         (tst-dlopen-aout-no-pie): New.
1906         (LDFLAGS-tst-prelink): Removed.
1907         (tst-prelink-no-pie): New.
1908         (LDFLAGS-tst-main1): Removed.
1909         (tst-main1-no-pie): New.
1910         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
1911         (tst-gmon-no-pie): New.
1913 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
1915         * manual/install.texi: Document that --enable-static-pie
1916         implies PIE.
1917         * INSTALL: Regenerated.
1919 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1921         [BZ #21309]
1922         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
1923         unsigned.
1925 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
1927         Revert:
1929         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
1931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1933         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
1935         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
1936         <errno.h>.  Include "eexp.tbl".
1937         (half): New constant.
1938         (one): Likewise.
1939         (__ieee754_exp): Rewrite.
1940         (__slowexp): Remove prototype.
1941         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
1942         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
1943         * sysdeps/i386/fpu/slowexp.c: Likewise.
1944         * sysdeps/ia64/fpu/slowexp.c: Likewise.
1945         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
1946         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
1947         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
1948         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
1949         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
1950         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
1951         comment.
1952         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
1953         (CPPFLAGS-slowexp.c): Remove variable.
1954         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1955         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
1956         (CFLAGS-slowexp-fma.c): Remove variable.
1957         (CFLAGS-slowexp-fma4.c): Likewise.
1958         (CFLAGS-slowexp-avx.c): Likewise.
1959         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
1960         define as macro.
1961         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
1962         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
1963         * math/Makefile (type-double-routines): Remove slowexp.
1964         * manual/probes.texi (slowexp_p6): Remove.
1965         (slowexp_p32): Likewise.
1967 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1969         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
1970         arithmetic.
1972         * lib/glob.c (glob): Do not pass NULL to mempcpy.
1974 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
1976         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1978 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
1980         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
1981         <errno.h>.  Include "eexp.tbl".
1982         (half): New constant.
1983         (one): Likewise.
1984         (__ieee754_exp): Rewrite.
1985         (__slowexp): Remove prototype.
1986         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
1987         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
1988         * sysdeps/i386/fpu/slowexp.c: Likewise.
1989         * sysdeps/ia64/fpu/slowexp.c: Likewise.
1990         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
1991         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
1992         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
1993         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
1994         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
1995         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
1996         comment.
1997         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
1998         (CPPFLAGS-slowexp.c): Remove variable.
1999         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2000         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
2001         (CFLAGS-slowexp-fma.c): Remove variable.
2002         (CFLAGS-slowexp-fma4.c): Likewise.
2003         (CFLAGS-slowexp-avx.c): Likewise.
2004         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
2005         define as macro.
2006         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
2007         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
2008         * math/Makefile (type-double-routines): Remove slowexp.
2009         * manual/probes.texi (slowexp_p6): Remove.
2010         (slowexp_p32): Likewise.
2012 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2013             James Clarke <jrtc27@jrtc27.com>
2015         [BZ #22603]
2016         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
2017         addition.
2019 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021         [BZ #22605]
2022         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
2023         code.
2025 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
2027         [BZ #22563]
2028         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2029         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
2030         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2031         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
2032         to feature_1.
2034 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
2036         [BZ #22563]
2037         * bits/types/__cancel_jmp_buf_tag.h: New file.
2038         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
2039         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
2040         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
2041         * nptl/Makefile (headers): Add
2042         bits/types/__cancel_jmp_buf_tag.h.
2043         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
2044         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
2045         * sysdeps/nptl/pthread.h: Include
2046         <bits/types/__cancel_jmp_buf_tag.h>.
2047         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
2048         __cancel_jmp_buf.
2049         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
2051 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
2053         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2054         --enable-static-pie variants to x86_64, x32 and i686.
2056 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
2058         [BZ #22631]
2059         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
2060         argument for attrubutes.  All callers changed.
2061         (__inline_mathop1): Likewise.  All callers changed.
2062         (__inline_mathop): Likewise.  All callers changed.
2063         [__USE_MISC] (scalbn): Use __inline_forward instead of
2064         __inline_forward_c.
2065         [__USE_ISOC99] (scalbln): Likewise.
2066         [__USE_ISOC99] (nearbyint): Likewise.
2067         [__USE_ISOC99] (lrint): Likewise.
2068         [__USE_MISC] (scalbnf): Likewise.
2069         [__USE_ISOC99] (scalblnf): Likewise.
2070         [__USE_ISOC99] (nearbyintf): Likewise.
2071         [__USE_ISOC99] (lrintf): Likewise.
2072         [__USE_MISC] (scalbnl): Likewise.
2073         [__USE_ISOC99] (scalblnl): Likewise.
2074         [__USE_ISOC99] (nearbyintl): Likewise.
2075         [__USE_ISOC99] (lrintl): Likewise.
2076         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
2077         __inline_mathop and __m81_defun changed.
2079         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
2080         CPU or FPU for ARM hard-float configurations.
2082 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
2084         * nptl/tst-attr3.c: Include <libc-diag.h>.
2085         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
2087         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
2089         * string/tester.c (test_strncat): Also disable -Warray-bounds
2090         warnings for two tests.
2092 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
2094         [BZ #22614]
2095         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
2096         $(cc-pie-default) == yes.
2097         * config.make.in (cc-pie-default): New.
2098         * configure.ac (libc_cv_pie_default): Renamed to ...
2099         (libc_cv_cc_pie_default): This.
2100         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
2101         * configure: Regenerated.
2103 2017-12-18  Florian Weimer  <fweimer@redhat.com>
2105         [BZ #20204]
2106         ld.so: Harden dl-libc/libdl hooks.
2107         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
2108         (rtld_active): New function.
2109         * dlfcn/dladdr.c (__dladdr): Call it.
2110         * dlfcn/dladdr1.c (__dladdr1): Likewise.
2111         * dlfcn/dlclose.c (__dlcose): Likewise.
2112         * dlfcn/dlerror.c (__dlerror): Likewise.
2113         * dlfcn/dlinfo.c (__dlinfo): Likewise.
2114         * dlfcn/dlmopen.c (__dlmopen): Likewise.
2115         * dlfcn/dlopen.c (__dlopen): Likewise.
2116         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
2117         * dlfcn/dlsym.c (__dlsym): Likewise.
2118         * dlfcn/dlvsym.c (__dlvsym): Likewise.
2119         * libio/vtables.c (_IO_vtable_check): Likewise.
2120         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
2121         (__libc_dlclose): Likewise.
2122         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
2123         assignment.
2125 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
2127         [BZ #22446]
2128         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
2129         buffers for readlink input and output.
2131 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
2133         [BZ #22624]
2134         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
2135         inhibit_stack_protector.
2137         [BZ #22624]
2138         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
2139         inhibit_stack_protector.
2141 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
2143         [BZ #22627]
2144         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
2145         code and invocation.
2147 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2149         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
2151 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
2153         [BZ #22505]
2154         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
2156 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2158         * sysdeps/s390/fpu/libm-test-ulps: Update.
2160 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2164 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2166         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
2167         constants to s_sincosf.h file.
2168         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2169         * sysdeps/ieee754/flt-32/s_sincosf.c: New
2170         implementation.
2171         * sysdeps/ieee754/flt-32/s_sincosf.h:
2172         New file.
2174 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
2176         [BZ #14681]
2177         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
2178         before mtrace.
2180 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
2182         [BZ #19574]
2183         * INSTALL: Regenerated.
2184         * Makeconfig (real-static-start-installed-name): New.
2185         (pic-default): Updated for --enable-static-pie.
2186         (pie-default): New for --enable-static-pie.
2187         (default-pie-ldflag): Likewise.
2188         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
2189         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
2190         Replace $(static-start-installed-name) with
2191         $(real-static-start-installed-name).
2192         (+prectorT): Updated for --enable-static-pie.
2193         (+postctorT): Likewise.
2194         (CFLAGS-.o): Add $(pie-default).
2195         (CFLAGS-.op): Likewise.
2196         * NEWS: Mention --enable-static-pie.
2197         * config.h.in (ENABLE_STATIC_PIE): New.
2198         * configure.ac (--enable-static-pie): New configure option.
2199         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
2200         (have-static-pie): Likewise.
2201         Enable static PIE if linker supports --no-dynamic-linker.
2202         (ENABLE_STATIC_PIE): New AC_DEFINE.
2203         (enable-static-pie): New LIBC_CONFIG_VAR.
2204         * configure: Regenerated.
2205         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
2206         gr$(start-installed-name) for --enable-static-pie.
2207         (extra-objs): Likewise.
2208         (install-lib): Likewise.
2209         (extra-objs): Add static-reloc.o and static-reloc.os
2210         ($(objpfx)$(start-installed-name)): Also depend on
2211         $(objpfx)static-reloc.o.
2212         ($(objpfx)r$(start-installed-name)): New.
2213         ($(objpfx)g$(start-installed-name)): Also depend on
2214         $(objpfx)static-reloc.os.
2215         ($(objpfx)gr$(start-installed-name)): New.
2216         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
2217         in libc.a.
2218         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
2219         initimage.
2220         * csu/static-reloc.c: New file.
2221         * elf/Makefile (routines): Add dl-reloc-static-pie.
2222         (elide-routines.os): Likewise.
2223         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
2224         (tst-tls1-static-non-pie-no-pie): New.
2225         * elf/dl-reloc-static-pie.c: New file.
2226         * elf/dl-support.c (_dl_get_dl_main_map): New function.
2227         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
2228         STATIC_PIE_BOOTSTRAP.
2229         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2230         * gmon/Makefile (tests): Add tst-gmon-static-pie.
2231         (tests-static): Likewise.
2232         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
2233         (tst-gmon-static-no-pie): New.
2234         (CFLAGS-tst-gmon-static-pie.c): Likewise.
2235         (CRT-tst-gmon-static-pie): Likewise.
2236         (tst-gmon-static-pie-ENV): Likewise.
2237         (tests-special): Likewise.
2238         ($(objpfx)tst-gmon-static-pie.out): Likewise.
2239         (clean-tst-gmon-static-pie-data): Likewise.
2240         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
2241         * gmon/tst-gmon-static-pie.c: New file.
2242         * manual/install.texi: Document --enable-static-pie.
2243         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
2244         (_dl_get_dl_main_map): Likewise.
2245         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
2246         * sysdeps/x86_64/configure.ac: Likewise.
2247         * sysdeps/i386/configure: Regenerated.
2248         * sysdeps/x86_64/configure: Likewise.
2249         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
2250         (ASFLAGS-.op): Likewise.
2252 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
2254         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
2255         * posix/tst-mmap-offset.c (fname): Use /tmp.
2256         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
2258 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
2260         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
2262 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
2264         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
2265         errno.
2267 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
2269         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
2270         --with-float=hard for arm-linux-gnueabihf configurations.
2272         [BZ #14121]
2273         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
2274         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
2275         ($(mo-installed)): Use $(objpfx)%.mo.
2276         (realclean): Remove rule.
2278         * po/Makefile (linguas): Remove rule and dependencies.
2279         (linguas.mo): Likewise.
2280         (.PHONY): Do not depend on linguas and linguas.mo.
2281         (podir): Remove variable.
2282         (pofiles): Likewise.
2283         [$(pofiles)] (%.po): Remove rule.
2285         * sysdeps/sparc/sparc32/Makefile
2286         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
2287         start-of-line whitespace in argument of echo.
2288         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
2289         with whitespace.  Generate __wrap_.udiv alias.
2290         * sysdeps/sparc/sparc32/rem.S: Regenerated.
2291         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
2292         * sysdeps/sparc/sparc32/udiv.S: Likewise.
2293         * sysdeps/sparc/sparc32/urem.S: Likewise.
2295 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2297         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
2298         for aligned inputs.
2300 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2302         * benchtests/bench-strcmp.c: Print output in JSON format.
2304         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
2306 2017-12-14  Florian Weimer  <fweimer@redhat.com>
2308         [BZ #22607]
2309         CVE-2017-1000409
2310         * elf/dl-load.c (_dl_init_paths): Compute number of components in
2311         the expanded path string.
2313 2017-12-14  Florian Weimer  <fweimer@redhat.com>
2315         [BZ #22606]
2316         CVE-2017-1000408
2317         * elf/dl-load.c (system_dirs): Update comment.
2318         (nsystem_dirs_len): Use array_length.
2319         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
2321 2017-12-14  Florian Weimer  <fweimer@redhat.com>
2323         Simplify compiling most of support/ outside of glibc.
2324         * support/check_addrinfo.c: Include <string.h>.
2325         * support/check_dns_packet.c: Likewise.
2326         * support/check_hostent.c: Likewise.
2327         * support/support_can_chroot.c: Include <support/xunistd.h>.
2328         * support/support_format_addrinfo.c: Include <stdlib.h>
2329         * support/support_format_dns_packet.c: Include <stdbool.h>.
2330         * support/support_format_hostent.c: Include <stdlib.h>.
2331         * support/support_format_netent.c: Likewise.
2332         * support/support_write_string.c: Include <support/xunistd.h>.
2333         * support/xdlfcn.c: Include <stddef.h>.
2335 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
2337         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
2339 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2340             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2342         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
2343         (sysdeps_routines): Add memset-niagara7.
2344         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
2345         Likewise.
2346         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
2347         file.
2348         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
2349         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
2350         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
2351         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
2352         Add niagara7 option.
2353         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
2354         memset.
2356         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
2357         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
2358         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
2359         Likewise.
2360         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
2361         New file.
2362         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
2363         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
2364         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
2365         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
2366         and __memmove_niagara7.
2367         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
2368         Add niagara7 option.
2369         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
2370         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
2371         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
2372         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
2373         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
2375 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
2377         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
2378         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
2379         * sysdeps/sparc/sparc64/memmove.S: Likewise.
2380         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
2382         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
2383         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
2384         _dl_sparc_cap_flags array.
2385         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
2387 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2389         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
2390         time whenever possible.
2392 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
2394         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
2395         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
2397 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
2399         * soft-fp/fmadf4.c: Move to ....
2400         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
2401         * soft-fp/fmasf4.c: Move to ....
2402         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
2403         * soft-fp/fmatf4.c: Move to ....
2404         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
2405         * sysdeps/ieee754/soft-fp/Makefile: New file.
2406         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
2407         * sysdeps/arm/preconfigure: Regenerated.
2408         * sysdeps/arm/nofpu/Implies: New file.
2409         * sysdeps/arm/s_fma.c: Remove file.
2410         * sysdeps/arm/s_fmaf.c: Likewise.
2411         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
2412         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
2413         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
2414         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
2415         * sysdeps/microblaze/s_fma.c: Remove file.
2416         * sysdeps/microblaze/s_fmaf.c: Likewise.
2417         * sysdeps/mips/mips32/nofpu/Implies: New file.
2418         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
2419         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
2420         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
2421         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
2422         * sysdeps/mips/ieee754/s_fma.c: Remove file.
2423         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
2424         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
2425         implementation.
2426         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
2427         * sysdeps/nios2/s_fma.c: Remove file.
2428         * sysdeps/nios2/s_fmaf.c: Likewise.
2429         * sysdeps/sh/nofpu/Implies: New file.
2430         * sysdeps/sh/s_fma.c: Remove file.
2431         * sysdeps/sh/s_fmaf.c: Likewise.
2432         * sysdeps/tile/Implies: Add ieee754/soft-fp.
2433         * sysdeps/tile/s_fma.c: Remove file.
2434         * sysdeps/tile/s_fmaf.c: Likewise.
2436 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
2438         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2439         Add s_cosf-sse2 and s_cosf-fma.
2440         (CFLAGS-s_cosf-fma.c): New.
2441         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
2442         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
2443         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
2445 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
2447         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
2449 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2451         * libio/Makefile (tests): Add tst-bz22415.
2452         (tst-bz22415-ENV): New rule.
2453         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
2454         (tests-special): Add tst-bz22415-mem.out.
2455         ($(objpfx)tst-bz22415-mem.out): New rule.
2456         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
2457         in case of a successful seek operation.
2458         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2459         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
2460         buffer is required.
2461         * libio/tst-bz22415.c: New test.
2463         * sysdeps/ia64/fpu/libm-test-ulps: Update.
2465 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
2467         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
2468         __IPC_64 to 0 to avoid IPC_64 being set.
2470 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2472         [BZ #22593]
2473         * math/bits/mathcalls.h (nextafter): Remove const.
2474         (nexttoward): Likewise.
2476 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
2478         * configure.ac (--with-fp): Remove configure option.
2479         (with_fp_cond): New variable.
2480         (libc_cv_with_fp): New configure test.  Use this variable instead
2481         of with_fp.
2482         * configure: Regenerated.
2483         * config.make.in (with-fp): Use @libc_cv_with_fp@.
2484         * manual/install.texi (Configuring and compiling): Remove
2485         --without-fp.
2486         * INSTALL: Regenerated.
2487         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
2488         * sysdeps/mips/preconfigure (with_fp_cond): Define.
2489         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
2490         * sysdeps/sh/preconfigure (with_fp_cond): Define.
2491         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
2492         use --without-fp to configure glibc.
2494 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
2496         * manual/locale.texi (nl_langinfo): Fix a typo.
2498 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
2500         [BZ #22588]
2501         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
2503 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
2505         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
2506         (CFLAGS-argp-parse.c): Likewise.
2507         (CFLAGS-argp-fmtstream.c): Likewise.
2508         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
2509         (CPPFLAGS-sha512-crypt.c): Likewise.
2510         (CPPFLAGS-md5-crypt.c): Likewise.
2511         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
2512         (CFLAGS-stack_chk_fail_local.c): Likewise.
2513         (CFLAGS-backtrace.c): Likewise.
2514         (CFLAGS-sprintf_chk.c): Likewise.
2515         (CFLAGS-snprintf_chk.c): Likewise.
2516         (CFLAGS-vsprintf_chk.c): Likewise.
2517         (CFLAGS-vsnprintf_chk.c): Likewise.
2518         (CFLAGS-asprintf_chk.c): Likewise.
2519         (CFLAGS-vasprintf_chk.c): Likewise.
2520         (CFLAGS-obprintf_chk.c): Likewise.
2521         (CFLAGS-dprintf_chk.c): Likewise.
2522         (CFLAGS-vdprintf_chk.c): Likewise.
2523         (CFLAGS-printf_chk.c): Likewise.
2524         (CFLAGS-fprintf_chk.c): Likewise.
2525         (CFLAGS-vprintf_chk.c): Likewise.
2526         (CFLAGS-vfprintf_chk.c): Likewise.
2527         (CFLAGS-gets_chk.c): Likewise.
2528         (CFLAGS-fgets_chk.c): Likewise.
2529         (CFLAGS-fgets_u_chk.c): Likewise.
2530         (CFLAGS-fread_chk.c): Likewise.
2531         (CFLAGS-fread_u_chk.c): Likewise.
2532         (CFLAGS-swprintf_chk.c): Likewise.
2533         (CFLAGS-vswprintf_chk.c): Likewise.
2534         (CFLAGS-wprintf_chk.c): Likewise.
2535         (CFLAGS-fwprintf_chk.c): Likewise.
2536         (CFLAGS-vwprintf_chk.c): Likewise.
2537         (CFLAGS-vfwprintf_chk.c): Likewise.
2538         (CFLAGS-fgetws_chk.c): Likewise.
2539         (CFLAGS-fgetws_u_chk.c): Likewise.
2540         (CFLAGS-read_chk.c): Likewise.
2541         (CFLAGS-pread_chk.c): Likewise.
2542         (CFLAGS-pread64_chk.c): Likewise.
2543         (CFLAGS-recv_chk.c): Likewise.
2544         (CFLAGS-recvfrom_chk.c): Likewise.
2545         (CFLAGS-tst-longjmp_chk.c): Likewise.
2546         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
2547         (CFLAGS-tst-longjmp_chk2.c): Likewise.
2548         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
2549         (CFLAGS-tst-longjmp_chk3.c): Likewise.
2550         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
2551         (CFLAGS-tst-chk1.c): Likewise.
2552         (CFLAGS-tst-chk2.c): Likewise.
2553         (CFLAGS-tst-chk3.c): Likewise.
2554         (CFLAGS-tst-chk4.cc): Likewise.
2555         (CFLAGS-tst-chk5.cc): Likewise.
2556         (CFLAGS-tst-chk6.cc): Likewise.
2557         (CFLAGS-tst-lfschk1.c): Likewise.
2558         (CFLAGS-tst-lfschk2.c): Likewise.
2559         (CFLAGS-tst-lfschk3.c): Likewise.
2560         (CFLAGS-tst-lfschk4.cc): Likewise.
2561         (CFLAGS-tst-lfschk5.cc): Likewise.
2562         (CFLAGS-tst-lfschk6.cc): Likewise.
2563         (CFLAGS-tst-ssp-1.c): Likewise.
2564         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
2565         (CFLAGS-scandir64.c): Likewise.
2566         (CFLAGS-scandir-tail.c): Likewise.
2567         (CFLAGS-scandir64-tail.c): Likewise.
2568         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
2569         (CFLAGS-dl-tunables.c): Likewise.
2570         (CFLAGS-dl-runtime.c): Likewise.
2571         (CFLAGS-dl-lookup.c): Likewise.
2572         (CFLAGS-dl-iterate-phdr.c): Likewise.
2573         (CFLAGS-vismain.c): Likewise.
2574         (CFLAGS-tst-linkall-static.c): Likewise.
2575         (CFLAGS-tst-linkall-static.c): Likewise.
2576         (CPPFLAGS-dl-load.c): Likewise.
2577         (CFLAGS-ldconfig.c): Likewise.
2578         (CFLAGS-dl-cache.c): Likewise.
2579         (CFLAGS-cache.c): Likewise.
2580         (CFLAGS-rtld.c): Likewise.
2581         (CFLAGS-multiload.c): Likewise.
2582         (CFLAGS-filtmod1.c): Likewise.
2583         (CFLAGS-tst-align.c): Likewise.
2584         (CFLAGS-tst-align2.c): Likewise.
2585         (CFLAGS-tst-alignmod.c): Likewise.
2586         (CFLAGS-tst-alignmod2.c): Likewise.
2587         (CPPFLAGS-tst-execstack.c): Likewise.
2588         (CFLAGS-tst-ptrguard1-static.c): Likewise.
2589         (CFLAGS-tst-latepthreadmod.c): Likewise.
2590         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
2591         (CFLAGS-getgrnam_r.c): Likewise.
2592         (CFLAGS-getgrent_r.c): Likewise.
2593         (CFLAGS-getgrent.c): Likewise.
2594         (CFLAGS-fgetgrent.c): Likewise.
2595         (CFLAGS-fgetgrent_r.c): Likewise.
2596         (CFLAGS-putgrent.c): Likewise.
2597         (CFLAGS-initgroups.c): Likewise.
2598         (CFLAGS-getgrgid.c): Likewise.
2599         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
2600         (CFLAGS-getsgent.c): Likewise.
2601         (CFLAGS-fgetsgent.c): Likewise.
2602         (CFLAGS-fgetsgent_r.c): Likewise.
2603         (CFLAGS-putsgent.c): Likewise.
2604         (CFLAGS-getsgnam.c): Likewise.
2605         (CFLAGS-getsgnam_r.c): Likewise.
2606         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
2607         (CFLAGS-iconv_charmap.c): Likewise.
2608         (CFLAGS-dummy-repertoire.c): Likewise.
2609         (CFLAGS-charmap.c): Likewise.
2610         (CFLAGS-linereader.c): Likewise.
2611         (CFLAGS-simple-hash.c): Likewise.
2612         (CFLAGS-gconv_conf.c): Likewise.
2613         (CFLAGS-iconvconfig.c): Likewise.
2614         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2615         (CFLAGS-gethstbyad.c): Likewise.
2616         (CFLAGS-gethstbynm_r.c): Likewise.
2617         (CFLAGS-gethstbynm.c): Likewise.
2618         (CFLAGS-gethstbynm2_r.c): Likewise.
2619         (CFLAGS-gethstbynm2.c): Likewise.
2620         (CFLAGS-gethstent_r.c): Likewise.
2621         (CFLAGS-gethstent.c): Likewise.
2622         (CFLAGS-rcmd.c): Likewise.
2623         (CFLAGS-getnetbynm_r.c): Likewise.
2624         (CFLAGS-getnetbynm.c): Likewise.
2625         (CFLAGS-getnetbyad_r.c): Likewise.
2626         (CFLAGS-getnetbyad.c): Likewise.
2627         (CFLAGS-getnetent_r.c): Likewise.
2628         (CFLAGS-getnetent.c): Likewise.
2629         (CFLAGS-getaliasent_r.c): Likewise.
2630         (CFLAGS-getaliasent.c): Likewise.
2631         (CFLAGS-getrpcent_r.c): Likewise.
2632         (CFLAGS-getrpcent.c): Likewise.
2633         (CFLAGS-getservent_r.c): Likewise.
2634         (CFLAGS-getservent.c): Likewise.
2635         (CFLAGS-getprtent_r.c): Likewise.
2636         (CFLAGS-getprtent.c): Likewise.
2637         (CFLAGS-either_ntoh.c): Likewise.
2638         (CFLAGS-either_hton.c): Likewise.
2639         (CFLAGS-getnetgrent.c): Likewise.
2640         (CFLAGS-getnetgrent_r.c): Likewise.
2641         (CFLAGS-tst-checks-posix.c): Likewise.
2642         (CFLAGS-tst-sockaddr.c): Likewise.
2643         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
2644         (CFLAGS-tst-translit.c): Likewise.
2645         (CFLAGS-tst-gettext2.c): Likewise.
2646         (CFLAGS-tst-codeset.c): Likewise.
2647         (CFLAGS-tst-gettext3.c): Likewise.
2648         (CFLAGS-tst-gettext4.c): Likewise.
2649         (CFLAGS-tst-gettext5.c): Likewise.
2650         (CFLAGS-tst-gettext6.c): Likewise.
2651         * io/Makefile (CFLAGS-open.c): Likewise.
2652         (CFLAGS-open64.c): Likewise.
2653         (CFLAGS-creat.c): Likewise.
2654         (CFLAGS-creat64.c): Likewise.
2655         (CFLAGS-fcntl.c): Likewise.
2656         (CFLAGS-poll.c): Likewise.
2657         (CFLAGS-ppoll.c): Likewise.
2658         (CFLAGS-lockf.c): Likewise.
2659         (CFLAGS-statfs.c): Likewise.
2660         (CFLAGS-fstatfs.c): Likewise.
2661         (CFLAGS-statvfs.c): Likewise.
2662         (CFLAGS-fstatvfs.c): Likewise.
2663         (CFLAGS-fts.c): Likewise.
2664         (CFLAGS-fts64.c): Likewise.
2665         (CFLAGS-ftw.c): Likewise.
2666         (CFLAGS-ftw64.c): Likewise.
2667         (CFLAGS-lockf.c): Likewise.
2668         (CFLAGS-posix_fallocate.c): Likewise.
2669         (CFLAGS-posix_fallocate64.c): Likewise.
2670         (CFLAGS-fallocate.c): Likewise.
2671         (CFLAGS-fallocate64.c): Likewise.
2672         (CFLAGS-read.c): Likewise.
2673         (CFLAGS-write.c): Likewise.
2674         (CFLAGS-test-stat.c): Likewise.
2675         (CFLAGS-test-lfs.c): Likewise.
2676         * libio/Makefile (CFLAGS-fileops.c): Likewise.
2677         (CFLAGS-fputc.c): Likewise.
2678         (CFLAGS-fputwc.c): Likewise.
2679         (CFLAGS-freopen64.c): Likewise.
2680         (CFLAGS-freopen.c): Likewise.
2681         (CFLAGS-fseek.c): Likewise.
2682         (CFLAGS-fseeko64.c): Likewise.
2683         (CFLAGS-fseeko.c): Likewise.
2684         (CFLAGS-ftello64.c): Likewise.
2685         (CFLAGS-ftello.c): Likewise.
2686         (CFLAGS-fwide.c): Likewise.
2687         (CFLAGS-genops.c): Likewise.
2688         (CFLAGS-getc.c): Likewise.
2689         (CFLAGS-getchar.c): Likewise.
2690         (CFLAGS-getwc.c): Likewise.
2691         (CFLAGS-getwchar.c): Likewise.
2692         (CFLAGS-iofclose.c): Likewise.
2693         (CFLAGS-iofflush.c): Likewise.
2694         (CFLAGS-iofgetpos64.c): Likewise.
2695         (CFLAGS-iofgetpos.c): Likewise.
2696         (CFLAGS-iofgets.c): Likewise.
2697         (CFLAGS-iofgetws.c): Likewise.
2698         (CFLAGS-iofputs.c): Likewise.
2699         (CFLAGS-iofputws.c): Likewise.
2700         (CFLAGS-iofread.c): Likewise.
2701         (CFLAGS-iofsetpos64.c): Likewise.
2702         (CFLAGS-iofsetpos.c): Likewise.
2703         (CFLAGS-ioftell.c): Likewise.
2704         (CFLAGS-iofwrite.c): Likewise.
2705         (CFLAGS-iogetdelim.c): Likewise.
2706         (CFLAGS-iogetline.c): Likewise.
2707         (CFLAGS-iogets.c): Likewise.
2708         (CFLAGS-iogetwline.c): Likewise.
2709         (CFLAGS-ioputs.c): Likewise.
2710         (CFLAGS-ioseekoff.c): Likewise.
2711         (CFLAGS-ioseekpos.c): Likewise.
2712         (CFLAGS-iosetbuffer.c): Likewise.
2713         (CFLAGS-iosetvbuf.c): Likewise.
2714         (CFLAGS-ioungetc.c): Likewise.
2715         (CFLAGS-ioungetwc.c): Likewise.
2716         (CFLAGS-oldfileops.c): Likewise.
2717         (CFLAGS-oldiofclose.c): Likewise.
2718         (CFLAGS-oldiofgetpos64.c): Likewise.
2719         (CFLAGS-oldiofgetpos.c): Likewise.
2720         (CFLAGS-oldiofsetpos64.c): Likewise.
2721         (CFLAGS-oldiofsetpos.c): Likewise.
2722         (CFLAGS-peekc.c): Likewise.
2723         (CFLAGS-putc.c): Likewise.
2724         (CFLAGS-putchar.c): Likewise.
2725         (CFLAGS-putwc.c): Likewise.
2726         (CFLAGS-putwchar.c): Likewise.
2727         (CFLAGS-rewind.c): Likewise.
2728         (CFLAGS-wfileops.c): Likewise.
2729         (CFLAGS-wgenops.c): Likewise.
2730         (CFLAGS-oldiofopen.c): Likewise.
2731         (CFLAGS-iofopen.c): Likewise.
2732         (CFLAGS-iofopen64.c): Likewise.
2733         (CFLAGS-oldtmpfile.c): Likewise.
2734         (CFLAGS-tst_putwc.c): Likewise.
2735         * locale/Makefile (CFLAGS-md5.c): Likewise.
2736         (CFLAGS-charmap.c): Likewise.
2737         (CFLAGS-locfile.c): Likewise.
2738         (CFLAGS-charmap-dir.c): Likewise.
2739         * login/Makefile (CFLAGS-grantpt.c): Likewise.
2740         (CFLAGS-getpt.c): Likewise.
2741         (CFLAGS-pt_chown.c): Likewise.
2742         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
2743         (CFLAGS-obstack.c): Likewise.
2744         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
2745         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
2746         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
2747         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
2748         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
2749         (CFLAGS-test-tgmath.c): Likewise.
2750         (CFLAGS-test-tgmath2.c): Likewise.
2751         (CFLAGS-test-tgmath-ret.c): Likewise.
2752         (CFLAGS-test-powl.c): Likewise.
2753         (CFLAGS-test-snan.c): Likewise.
2754         (CFLAGS-test-signgam-finite.c): Likewise.
2755         (CFLAGS-test-signgam-finite-c99.c): Likewise.
2756         (CFLAGS-test-signgam-finite-c11.c): Likewise.
2757         (CFLAGS-test-signgam-uchar.c): Likewise.
2758         (CFLAGS-test-signgam-uchar-init.c): Likewise.
2759         (CFLAGS-test-signgam-uchar-static.c): Likewise.
2760         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
2761         (CFLAGS-test-signgam-uint.c): Likewise.
2762         (CFLAGS-test-signgam-uint-init.c): Likewise.
2763         (CFLAGS-test-signgam-uint-static.c): Likewise.
2764         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
2765         (CFLAGS-test-signgam-ullong.c): Likewise.
2766         (CFLAGS-test-signgam-ullong-init.c): Likewise.
2767         (CFLAGS-test-signgam-ullong-static.c): Likewise.
2768         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
2769         (CFLAGS-test-math-cxx11.cc): Likewise.
2770         (CFLAGS-test-math-isinff.cc): Likewise.
2771         (CFLAGS-test-math-iszero.cc): Likewise.
2772         (CFLAGS-test-math-issignaling.cc): Likewise.
2773         (CFLAGS-test-math-iscanonical.cc): Likewise.
2774         (CFLAGS-test-iszero-excess-precision.c): Likewise.
2775         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
2776         (CFLAGS-test-flt-eval-method.c): Likewise.
2777         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
2778         (CFLAGS-test-finite-macros.c): Likewise.
2779         * misc/Makefile (CFLAGS-select.c): Likewise.
2780         (CFLAGS-tsearch.c): Likewise.
2781         (CFLAGS-lsearch.c): Likewise.
2782         (CFLAGS-pselect.c): Likewise.
2783         (CFLAGS-readv.c): Likewise.
2784         (CFLAGS-writev.c): Likewise.
2785         (CFLAGS-preadv.c): Likewise.
2786         (CFLAGS-preadv64.c): Likewise.
2787         (CFLAGS-pwritev.c): Likewise.
2788         (CFLAGS-pwritev64.c): Likewise.
2789         (CFLAGS-preadv2.c): Likewise.
2790         (CFLAGS-preadv64v2.c): Likewise.
2791         (CFLAGS-pwritev2.c): Likewise.
2792         (CFLAGS-pwritev64v2.c): Likewise.
2793         (CFLAGS-usleep.c): Likewise.
2794         (CFLAGS-syslog.c): Likewise.
2795         (CFLAGS-error.c): Likewise.
2796         (CFLAGS-getpass.c): Likewise.
2797         (CFLAGS-mkstemp.c): Likewise.
2798         (CFLAGS-mkstemp64.c): Likewise.
2799         (CFLAGS-getsysstats.c): Likewise.
2800         (CFLAGS-getusershell.c): Likewise.
2801         (CFLAGS-err.c): Likewise.
2802         (CFLAGS-tst-tsearch.c): Likewise.
2803         (CFLAGS-msync.c): Likewise.
2804         (CFLAGS-fdatasync.c): Likewise.
2805         (CFLAGS-fsync.c): Likewise.
2806         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
2807         (CFLAGS-unwind.c): Likewise.
2808         (CFLAGS-unwind-forcedunwind.c): Likewise.
2809         (CFLAGS-pthread_cancel.c): Likewise.
2810         (CFLAGS-pthread_setcancelstate.c): Likewise.
2811         (CFLAGS-pthread_setcanceltype.c): Likewise.
2812         (CFLAGS-cancellation.c): Likewise.
2813         (CFLAGS-libc-cancellation.c): Likewise.
2814         (CFLAGS-pthread_exit.c): Likewise.
2815         (CFLAGS-forward.c): Likewise.
2816         (CFLAGS-pthread_testcancel.c): Likewise.
2817         (CFLAGS-pthread_join.c): Likewise.
2818         (CFLAGS-pthread_timedjoin.c): Likewise.
2819         (CFLAGS-pthread_once.c): Likewise.
2820         (CFLAGS-pthread_cond_wait.c): Likewise.
2821         (CFLAGS-sem_wait.c): Likewise.
2822         (CFLAGS-sem_timedwait.c): Likewise.
2823         (CFLAGS-fcntl.c): Likewise.
2824         (CFLAGS-lockf.c): Likewise.
2825         (CFLAGS-pread.c): Likewise.
2826         (CFLAGS-pread64.c): Likewise.
2827         (CFLAGS-pwrite.c): Likewise.
2828         (CFLAGS-pwrite64.c): Likewise.
2829         (CFLAGS-wait.c): Likewise.
2830         (CFLAGS-waitpid.c): Likewise.
2831         (CFLAGS-sigwait.c): Likewise.
2832         (CFLAGS-msgrcv.c): Likewise.
2833         (CFLAGS-msgsnd.c): Likewise.
2834         (CFLAGS-tcdrain.c): Likewise.
2835         (CFLAGS-open.c): Likewise.
2836         (CFLAGS-open64.c): Likewise.
2837         (CFLAGS-pause.c): Likewise.
2838         (CFLAGS-recv.c): Likewise.
2839         (CFLAGS-send.c): Likewise.
2840         (CFLAGS-accept.c): Likewise.
2841         (CFLAGS-sendto.c): Likewise.
2842         (CFLAGS-connect.c): Likewise.
2843         (CFLAGS-recvfrom.c): Likewise.
2844         (CFLAGS-recvmsg.c): Likewise.
2845         (CFLAGS-sendmsg.c): Likewise.
2846         (CFLAGS-close.c): Likewise.
2847         (CFLAGS-read.c): Likewise.
2848         (CFLAGS-write.c): Likewise.
2849         (CFLAGS-nanosleep.c): Likewise.
2850         (CFLAGS-sigsuspend.c): Likewise.
2851         (CFLAGS-msync.c): Likewise.
2852         (CFLAGS-fdatasync.c): Likewise.
2853         (CFLAGS-fsync.c): Likewise.
2854         (CFLAGS-pt-system.c): Likewise.
2855         (CFLAGS-tst-cleanup2.c): Likewise.
2856         (CFLAGS-tst-cleanupx2.c): Likewise.
2857         (CFLAGS-flockfile.c): Likewise.
2858         (CFLAGS-ftrylockfile.c): Likewise.
2859         (CFLAGS-funlockfile.c): Likewise.
2860         (CFLAGS-tst-initializers1.c): Likewise.
2861         (CFLAGS-tst-initializers1-c89.c): Likewise.
2862         (CFLAGS-tst-initializers1-c99.c): Likewise.
2863         (CFLAGS-tst-initializers1-c11.c): Likewise.
2864         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
2865         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
2866         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
2867         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
2868         (CFLAGS-nscd_getgr_r.c): Likewise.
2869         (CFLAGS-nscd_gethst_r.c): Likewise.
2870         (CFLAGS-nscd_getai.c): Likewise.
2871         (CFLAGS-nscd_initgroups.c): Likewise.
2872         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
2873         (CFLAGS-pause.c): Likewise.
2874         (CFLAGS-pread.c): Likewise.
2875         (CFLAGS-pread64.c): Likewise.
2876         (CFLAGS-pwrite.c): Likewise.
2877         (CFLAGS-pwrite64.c): Likewise.
2878         (CFLAGS-sleep.c): Likewise.
2879         (CFLAGS-wait.c): Likewise.
2880         (CFLAGS-waitid.c): Likewise.
2881         (CFLAGS-waitpid.c): Likewise.
2882         (CFLAGS-getopt.c): Likewise.
2883         (CFLAGS-wordexp.c): Likewise.
2884         (CFLAGS-sysconf.c): Likewise.
2885         (CFLAGS-pathconf.c): Likewise.
2886         (CFLAGS-fpathconf.c): Likewise.
2887         (CFLAGS-spawn.c): Likewise.
2888         (CFLAGS-spawnp.c): Likewise.
2889         (CFLAGS-spawni.c): Likewise.
2890         (CFLAGS-glob.c): Likewise.
2891         (CFLAGS-glob64.c): Likewise.
2892         (CFLAGS-getconf.c): Likewise.
2893         (CFLAGS-nanosleep.c): Likewise.
2894         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
2895         (CFLAGS-getpwent.c): Likewise.
2896         (CFLAGS-getpw.c): Likewise.
2897         (CFLAGS-fgetpwent_r.c): Likewise.
2898         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
2899         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
2900         (CFLAGS-mq_timedreceive.c): Likewise.
2901         (CFLAGS-mq_timedsend.c): Likewise.
2902         (CFLAGS-clock_nanosleep.c): Likewise.
2903         (CFLAGS-librt-cancellation.c): Likewise.
2904         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
2905         (CFLAGS-getspent.c): Likewise.
2906         (CFLAGS-fgetspent.c): Likewise.
2907         (CFLAGS-fgetspent_r.c): Likewise.
2908         (CFLAGS-putspent.c): Likewise.
2909         (CFLAGS-getspnam.c): Likewise.
2910         (CFLAGS-getspnam_r.c): Likewise.
2911         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
2912         (CFLAGS-sigsuspend.c): Likewise.
2913         (CFLAGS-sigtimedwait.c): Likewise.
2914         (CFLAGS-sigwait.c): Likewise.
2915         (CFLAGS-sigwaitinfo.c): Likewise.
2916         (CFLAGS-sigreturn.c): Likewise.
2917         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
2918         (CFLAGS-vfwprintf.c): Likewise.
2919         (CFLAGS-tmpfile.c): Likewise.
2920         (CFLAGS-tmpfile64.c): Likewise.
2921         (CFLAGS-tempname.c): Likewise.
2922         (CFLAGS-psignal.c): Likewise.
2923         (CFLAGS-vprintf.c): Likewise.
2924         (CFLAGS-cuserid.c): Likewise.
2925         (CFLAGS-errlist.c): Likewise.
2926         (CFLAGS-siglist.c): Likewise.
2927         (CFLAGS-scanf15.c): Likewise.
2928         (CFLAGS-scanf17.c): Likewise.
2929         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
2930         (CFLAGS-msort.c): Likewise.
2931         (CFLAGS-qsort.c): Likewise.
2932         (CFLAGS-system.c): Likewise.
2933         (CFLAGS-fmtmsg.c): Likewise.
2934         (CFLAGS-strfmon.c): Likewise.
2935         (CFLAGS-strfmon_l.c): Likewise.
2936         (CFLAGS-strfromd.c): Likewise.
2937         (CFLAGS-strfromf.c): Likewise.
2938         (CFLAGS-strfroml.c): Likewise.
2939         (CFLAGS-tst-bsearch.c): Likewise.
2940         (CFLAGS-tst-qsort.c): Likewise.
2941         (CFLAGS-tst-makecontext2.c): Likewise.
2942         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
2943         (CFLAGS-xnlm_prot.c): Likewise.
2944         (CFLAGS-xrstat.c): Likewise.
2945         (CFLAGS-xyppasswd.c): Likewise.
2946         (CFLAGS-xklm_prot.c): Likewise.
2947         (CFLAGS-xrex.c): Likewise.
2948         (CFLAGS-xsm_inter.c): Likewise.
2949         (CFLAGS-xmount.c): Likewise.
2950         (CFLAGS-xrusers.c): Likewise.
2951         (CFLAGS-xspray.c): Likewise.
2952         (CFLAGS-xnfs_prot.c): Likewise.
2953         (CFLAGS-xrquota.c): Likewise.
2954         (CFLAGS-xkey_prot.c): Likewise.
2955         (CFLAGS-auth_unix.c): Likewise.
2956         (CFLAGS-key_call.c): Likewise.
2957         (CFLAGS-pmap_rmt.c): Likewise.
2958         (CFLAGS-clnt_perr.c): Likewise.
2959         (CFLAGS-openchild.c): Likewise.
2960         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
2961         (CFLAGS-msgsnd.c): Likewise.
2962         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
2963         * time/Makefile (CFLAGS-tzfile.c): Likewise.
2964         (CFLAGS-tzset.c): Likewise.
2965         (CFLAGS-getdate.c): Likewise.
2966         (CFLAGS-test_time.c): Likewise.
2967         (CPPFLAGS-tst-tzname.c): Likewise.
2968         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
2969         (CFLAGS-zic.c): Likewise.
2970         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
2971         (CFLAGS-wcswidth.c): Likewise.
2972         (CFLAGS-wcstol.c): Likewise.
2973         (CFLAGS-wcstoul.c): Likewise.
2974         (CFLAGS-wcstoll.c): Likewise.
2975         (CFLAGS-wcstoull.c): Likewise.
2976         (CFLAGS-wcstod.c): Likewise.
2977         (CFLAGS-wcstold.c): Likewise.
2978         (CFLAGS-wcstof128.c): Likewise.
2979         (CFLAGS-wcstof.c): Likewise.
2980         (CFLAGS-wcstol_l.c): Likewise.
2981         (CFLAGS-wcstoul_l.c): Likewise.
2982         (CFLAGS-wcstoll_l.c): Likewise.
2983         (CFLAGS-wcstoull_l.c): Likewise.
2984         (CFLAGS-wcstod_l.c): Likewise.
2985         (CFLAGS-wcstold_l.c): Likewise.
2986         (CFLAGS-wcstof128_l.c): Likewise.
2987         (CFLAGS-wcstof_l.c): Likewise.
2988         (CPPFLAGS-tst-wchar-h.c): Likewise.
2989         (CPPFLAGS-wcstold_l.c): Likewise.
2991 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
2993         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
2995 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2996             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2998         * manual/tunables.texi (Hardware Capability Tunables): Document
2999         glibc.tune.cached_memopt.
3000         * sysdeps/powerpc/cpu-features.c: New file.
3001         * sysdeps/powerpc/cpu-features.h: New file.
3002         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
3003         _dl_powerpc_cpu_features.
3004         * sysdeps/powerpc/dl-tunables.list: New file.
3005         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
3006         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
3007         (INIT_ARCH): Initialize use_aligned_memopt.
3008         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
3009         IS_IN(rtld))]: Restrict dl_platform_init availability and
3010         initialize CPU features used by tunables.
3011         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
3012         Add memcpy-power8-cached.
3013         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
3014         __memcpy_power8_cached.
3015         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
3016         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
3017         New file.
3019 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
3021         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
3022         (CFLAGS-noinl-tester.c): Likewise.
3023         (CFLAGS-tst-strlen.c): Likewise.
3024         (CFLAGS-stratcliff.c): Likewise.
3025         (CFLAGS-test-ffs.c): Likewise.
3026         (CFLAGS-tst-inlcall.c): Likewise.
3027         (CFLAGS-tst-xbzero-opt.c): Likewise.
3028         (CFLAGS-memcpy.c): Likewise.
3029         (CFLAGS-wordcopy.c): Likewise.
3031 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3033         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
3034         Store r15 on stack and add cfi rule.
3035         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3036         Likewise.
3038 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
3040         [BZ #22577]
3041         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
3042         call.
3044 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
3046         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3047         Add s_sinf-sse2 and s_sinf-fma.
3048         (CFLAGS-s_sinf-fma.c): New.
3049         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
3050         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
3051         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
3053 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
3055         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
3057 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
3059         [BZ #22568]
3060         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
3061         part of result to imaginary part of argument if it is zero and the
3062         real part of the argument is not finite.
3063         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
3064         of result to real part of argument if it is zero and the imaginary
3065         part of the argument is not finite.
3067 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
3069         [BZ #22524]
3070         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
3071         and to the list of locales to be built for testing.
3072         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
3073         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
3074         and build the collation rules upon that.
3076 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
3078         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
3079         * manual/math.texi (Mathematics): Document support for _Float32.
3080         * math/Makefile (test-types): Add float32.
3081         * math/Versions (GLIBC_2.27): Add _Float32 functions.
3082         * stdlib/Versions (GLIBC_2.27): Likewise.
3083         * wcsmbs/Versions (GLIBC_2.27): Likewise.
3084         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3085         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3086         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3087         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3088         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3089         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3090         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3091         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3092         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3093         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3094         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3095         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3096         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3097         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3098         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3099         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3100         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3101         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3102         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3103         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3104         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3105         Likewise.
3106         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3107         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3108         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3109         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3110         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3112         Likewise.
3113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3114         Likewise.
3115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3116         Likewise.
3117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3118         Likewise.
3120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3121         Likewise.
3122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3123         Likewise.
3124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3125         Likewise.
3126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3127         Likewise.
3128         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3129         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3130         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3131         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3132         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3133         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3134         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3135         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3136         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3137         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3138         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
3139         Likewise.
3140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3141         Likewise.
3142         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
3143         Likewise.
3144         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3145         Likewise.
3146         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3147         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3148         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3149         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3150         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3151         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3152         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3153         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3155 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
3157         * stdlib/strtof.c: Include <bits/floatn.h>
3158         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
3159         and later undefine as macro.  Define as weak alias if
3160         [!USE_WIDE_CHAR].
3161         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
3162         and later undefine as macro.  Define as weak alias if
3163         [USE_WIDE_CHAR].
3164         * stdlib/strtof_l.c: Include <bits/floatn.h>
3165         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
3166         and later undefine as macro.  Define as weak alias if
3167         [!USE_WIDE_CHAR].
3168         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
3169         and later undefine as macro.  Define as weak alias if
3170         [USE_WIDE_CHAR].
3172         * stdlib/strfromf.c: Include <bits/floatn.h>.
3173         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
3174         and later undefine as macro and define as weak alias.
3176         * math/test-float32.h: New file.
3178         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
3179         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
3180         (libm_alias_float_other_r): Create f32 alias.
3181         (libm_alias_float_r): Use semicolon before call to
3182         libm_alias_float_other_r.
3184         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
3185         second argument to libm_alias_float_other.
3186         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
3187         second argument to libm_alias_float_other.
3188         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
3189         argument to libm_alias_float_other.
3191         [BZ #22561]
3192         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
3193         real part of result for argument 0 + i * NaN.
3194         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
3195         results for tests of 0 + i * NaN.
3197 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3199         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3201 2017-12-06  David S. Miller  <davem@davemloft.net>
3203         * sysdeps/sparc/fpu/libm-test-ulps: Update
3204         exp_{downward,towardzero,upward} ulps.
3206 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
3208         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
3209         variables static.
3211         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
3212         (Y0_2D): Likewise.
3213         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
3214         (Y0_2D): Likewise.
3215         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
3216         (Y0_2D): Likewise.
3217         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
3218         (Y0_2D): Likewise.
3220 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
3222         [BZ #22515]
3223         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
3224         and to the list of locales to be built for testing.
3225         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
3226         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
3227         and build the collation rules upon that.
3229 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3231         * NEWS: Add sinf to list of optimized functions.
3233 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
3235         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
3236         (__HAVE_FLOAT32X): Likewise.
3237         * manual/math.texi (Mathematics): Document support for _Float64
3238         and _Float32x.
3239         * math/Makefile (test-types): Add float64 and float32x.
3240         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
3241         functions.
3242         * stdlib/Versions (GLIBC_2.27): Likewise.
3243         * wcsmbs/Versions (GLIBC_2.27): Likewise.
3244         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3245         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3246         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3247         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3248         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3249         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3250         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3251         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3252         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3253         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3254         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3255         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3256         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3257         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3258         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3259         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3260         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3261         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3262         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3263         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3264         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3265         Likewise.
3266         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3267         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3268         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3269         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3270         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3272         Likewise.
3273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3274         Likewise.
3275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3276         Likewise.
3277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3278         Likewise.
3279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3280         Likewise.
3281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3282         Likewise.
3283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3284         Likewise.
3285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3286         Likewise.
3287         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3288         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3289         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3290         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3291         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3292         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3293         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3294         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3295         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3296         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3297         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
3298         Likewise.
3299         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3300         Likewise.
3301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
3302         Likewise.
3303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3304         Likewise.
3305         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3306         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3307         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3308         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3309         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3310         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3311         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3312         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3314 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
3316         * bits/floatn-common.h: Include <bits/long-double.h>.
3317         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
3318         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
3319         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
3320         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
3321         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
3322         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
3323         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
3324         (__builtin_huge_valf64): Use __builtin_huge_vall.
3325         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
3326         (__builtin_inff64): Use __builtin_infl.
3327         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
3328         (__builtin_nanf64): Use __builtin_nanl.
3329         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
3330         (__builtin_nansf64): Use __builtin_nansl.
3332 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
3333             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3334             Carlos O'Donnell <carlos@redhat.com>
3336         * elf/dl-tunables.list: Add elision parameters.
3337         * manual/tunables.texi: Add entries about elision tunable.
3338         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
3339         Add callback functions to dynamically enable/disable elision.
3340         Add multiple callbacks functions to set elision parameters.
3341         Deleted __libc_enable_secure check.
3342         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
3343         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
3344         * configure: Regenerated.
3345         * configure.ac: Option enable_lock_elision was deleted.
3346         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
3347         * config.make.in: Remove references to enable_lock_elision.
3348         * manual/install.texi: Elision configure option was removed.
3349         * INSTALL: Regenerated to remove enable_lock_elision.
3350         * nptl/Makefile:
3351         Disable elision so it can verify error case for destroying a mutex.
3352         * sysdeps/powerpc/nptl/elide.h:
3353         Cleanup ENABLE_LOCK_ELISION check.
3354         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
3355         * sysdeps/s390/configure: Regenerated.
3356         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
3357         * nptl/tst-mutex8.c:
3358         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
3359         * sysdeps/powerpc/powerpc32/sysdep.h:
3360         Deleted all ENABLE_LOCK_ELISION checks.
3361         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3362         * sysdeps/powerpc/sysdep.h: Likewise.
3363         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
3364         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
3365         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3366         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3367         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
3368         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
3369         enable-lock-elision.
3371 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
3373         * stdlib/strtod.c: Include <bits/floatn.h>.
3374         (BUILD_DOUBLE): New macro.
3375         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
3376         (strtof64): Define and later undefine as macro.  Define as weak
3377         alias if [!USE_WIDE_CHAR].
3378         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
3379         (wcstof64): Define and later undefine as macro.  Define as weak
3380         alias if [USE_WIDE_CHAR].
3381         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
3382         (strtof32x): Define and later undefine as macro.  Define as weak
3383         alias if [!USE_WIDE_CHAR].
3384         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
3385         (wcstof32x): Define and later undefine as macro.  Define as weak
3386         alias if [USE_WIDE_CHAR].
3387         * stdlib/strtod_l.c: Include <bits/floatn.h>.
3388         (BUILD_DOUBLE): New macro.
3389         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
3390         (strtof64_l): Define and later undefine as macro.  Define as weak
3391         alias if [!USE_WIDE_CHAR].
3392         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
3393         (wcstof64_l): Define and later undefine as macro.  Define as weak
3394         alias if [USE_WIDE_CHAR].
3395         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
3396         (strtof32x_l): Define and later undefine as macro.  Define as weak
3397         alias if [!USE_WIDE_CHAR].
3398         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
3399         (wcstof32x_l): Define and later undefine as macro.  Define as weak
3400         alias if [USE_WIDE_CHAR].
3402 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3404         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
3405         (reduced): Use ones as double instead of integer.
3407 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3409         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
3411 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
3413         * stdlib/strfromd.c: Include <bits/floatn.h>.
3414         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
3415         and later undefine as macro and define as weak alias.
3416         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
3417         Likewise.
3419         * math/test-float32x.h: New file.
3420         * math/test-float64.h: Likewise.
3422         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
3423         (libm_alias_double_other_r_f64): New macro.
3424         (libm_alias_double_other_r_f32x): Likewise.
3425         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
3426         libm_alias_double_other_r_f32x.
3427         (libm_alias_double_r): Use semicolon before call to
3428         libm_alias_double_other_r.
3429         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
3430         <bits/floatn.h>.
3431         (libm_alias_double_other_r_f64): New macro.
3432         (libm_alias_double_other_r_f32x): Likewise.
3433         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
3434         libm_alias_double_other_r_f32x.
3436 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
3438         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
3439         int.
3440         (SINF_FUNC): Likewise.  Replace floor with simple casts.
3442 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
3444         [BZ #22517]
3445         * localedata/Makefile: Add et_EE.UTF-8 to test-input
3446         and to the list of locales to be built for testing.
3447         * localedata/et_EE.UTF-8.in: New file for testing the collation.
3448         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
3449         and build the collation rules upon that.
3451 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
3453         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
3454         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
3455         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
3456         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
3457         instead of __insn__xxx.
3458         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
3459         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
3460         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
3461         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
3462         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
3463         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
3465 2017-12-05  Florian Weimer  <fweimer@redhat.com>
3467         Linux: Implement interfaces for memory protection keys
3468         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
3469         xsignal, xsysconf.
3470         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
3471         * support/xunistd.h (xsysconf): Declare.
3472         * support/xraise.c: New file.
3473         * support/xsigaction.c: Likewise.
3474         * support/xsignal.c: Likewise.
3475         * support/xsysconf.c: Likewise.
3476         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
3477         pkey_set, pkey_get, pkey_mprotect.
3478         [misc] (tests): Add tst-pkey.
3479         (tst-pkey): Link with -lpthread.
3480         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
3481         pkey_free, pkey_set, pkey_get, pkey_mprotect.
3482         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
3483         (PKEY_DISABLE_WRITE): Define.
3484         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
3485         Declare.
3486         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
3487         (SEGV_PKUERR): Add.
3488         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
3489         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
3490         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
3491         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
3492         Add.
3493         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
3494         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
3495         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
3496         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
3497         * sysdeps/unix/sysv/linux/**.abilist: Update.
3499 2017-12-05  Florian Weimer  <fweimer@redhat.com>
3501         * support/tst-test_compare.c (subprocess): Use long long instead
3502         of long argument for consistent type width across 32-bit and
3503         64-bit architectures.
3504         (do_test): Adjust expected output.
3506 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
3508         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
3509         (cosf): Define using libm_alias_float.
3510         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
3511         (fabsf): Define using libm_alias_float.
3512         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
3513         (fmaf): Define using libm_alias_float.
3514         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
3515         (rintf): Define using libm_alias_float.
3516         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
3517         (sinf): Define using libm_alias_float.
3518         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
3519         <libm-alias-float.h>.
3520         (modff): Define using libm_alias_float.
3521         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
3522         <libm-alias-float.h>.
3523         (logbf): Define using libm_alias_float.
3524         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
3525         <libm-alias-float.h>.
3526         (ceilf): Define using libm_alias_float.
3527         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
3528         <libm-alias-float.h>.
3529         (copysignf): Define using libm_alias_float.
3530         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
3531         <libm-alias-float.h>.
3532         (floorf): Define using libm_alias_float.
3533         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
3534         <libm-alias-float.h>.
3535         (llrintf): Define using libm_alias_float.
3536         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
3537         <libm-alias-float.h>.
3538         (llroundf): Define using libm_alias_float.
3539         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
3540         <libm-alias-float.h>.
3541         (lrintf): Define using libm_alias_float.
3542         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
3543         <libm-alias-float.h>.
3544         (lroundf): Define using libm_alias_float.
3545         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
3546         <libm-alias-float.h>.
3547         (nearbyintf): Define using libm_alias_float.
3548         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
3549         <libm-alias-float.h>.
3550         (rintf): Define using libm_alias_float.
3551         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
3552         <libm-alias-float.h>.
3553         (roundf): Define using libm_alias_float.
3554         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
3555         <libm-alias-float.h>.
3556         (truncf): Define using libm_alias_float.
3557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
3558         Include <libm-alias-float.h>.
3559         (ceilf): Define using libm_alias_float.
3560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3561         Include <libm-alias-float.h>.
3562         (copysignf): Define using libm_alias_float.
3563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
3564         Include <libm-alias-float.h>.
3565         (floorf): Define using libm_alias_float.
3566         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
3567         Include <libm-alias-float.h>.
3568         (llrintf): Define using libm_alias_float.
3569         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
3570         Include <libm-alias-float.h>.
3571         (llroundf): Define using libm_alias_float.
3572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
3573         Include <libm-alias-float.h>.
3574         (logbf): Define using libm_alias_float.
3575         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
3576         Include <libm-alias-float.h>.
3577         (lrintf): Define using libm_alias_float.
3578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
3579         Include <libm-alias-float.h>.
3580         (lroundf): Define using libm_alias_float.
3581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
3582         Include <libm-alias-float.h>.
3583         (modff): Define using libm_alias_float.
3584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
3585         Include <libm-alias-float.h>.
3586         (roundf): Define using libm_alias_float.
3587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
3588         Include <libm-alias-float.h>.
3589         (truncf): Define using libm_alias_float.
3590         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
3591         <libm-alias-float.h>.
3592         (llrintf): Define using libm_alias_float.
3593         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
3594         <libm-alias-float.h>.
3595         (llroundf): Define using libm_alias_float.
3596         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
3597         <libm-alias-float.h>.
3598         (ceilf): Define using libm_alias_float.
3599         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
3600         <libm-alias-float.h>.
3601         (floorf): Define using libm_alias_float.
3602         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
3603         <libm-alias-float.h>.
3604         (llroundf): Define using libm_alias_float.
3605         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
3606         <libm-alias-float.h>.
3607         (lroundf): Define using libm_alias_float.
3608         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
3609         <libm-alias-float.h>.
3610         (roundf): Define using libm_alias_float.
3611         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
3612         <libm-alias-float.h>.
3613         (truncf): Define using libm_alias_float.
3614         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
3615         <libm-alias-float.h>.
3616         (copysignf): Define using libm_alias_float.
3617         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
3618         <libm-alias-float.h>.
3619         (llrintf): Define using libm_alias_float.
3620         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
3621         <libm-alias-float.h>.
3622         (llroundf): Define using libm_alias_float.
3623         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
3624         <libm-alias-float.h>.
3625         (lrintf): Define using libm_alias_float.
3626         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
3627         <libm-alias-float.h>.
3628         (lroundf): Define using libm_alias_float.
3629         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
3630         <libm-alias-float.h>.
3631         (ceilf): Define using libm_alias_float.
3632         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
3633         <libm-alias-float.h>.
3634         (copysignf): Define using libm_alias_float.
3635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
3636         <libm-alias-float.h>.
3637         (cosf): Define using libm_alias_float.
3638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
3639         <libm-alias-float.h>.
3640         (floorf): Define using libm_alias_float.
3641         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
3642         <libm-alias-float.h>.
3643         (llrintf): Define using libm_alias_float.
3644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
3645         <libm-alias-float.h>.
3646         (llroundf): Define using libm_alias_float.
3647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
3648         <libm-alias-float.h>.
3649         (logbf): Define using libm_alias_float.
3650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
3651         <libm-alias-float.h>.
3652         (modff): Define using libm_alias_float.
3653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
3654         <libm-alias-float.h>.
3655         (roundf): Define using libm_alias_float.
3656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
3657         <libm-alias-float.h>.
3658         (sinf): Define using libm_alias_float.
3659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
3660         <libm-alias-float.h>.
3661         (truncf): Define using libm_alias_float.
3662         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
3663         <libm-alias-float.h>.
3664         (ceilf): Define using libm_alias_float.
3665         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
3666         <libm-alias-float.h>.
3667         (copysignf): Define using libm_alias_float.
3668         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
3669         <libm-alias-float.h>.
3670         (floorf): Define using libm_alias_float.
3671         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
3672         <libm-alias-float.h>.
3673         (llrintf): Define using libm_alias_float.
3674         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
3675         <libm-alias-float.h>.
3676         (llroundf): Define using libm_alias_float.
3677         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
3678         <libm-alias-float.h>.
3679         (nearbyintf): Define using libm_alias_float.
3680         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
3681         <libm-alias-float.h>.
3682         (rintf): Define using libm_alias_float.
3683         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
3684         <libm-alias-float.h>.
3685         (roundf): Define using libm_alias_float.
3686         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
3687         <libm-alias-float.h>.
3688         (truncf): Define using libm_alias_float.
3689         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
3690         <libm-alias-float.h>.
3691         (ceilf): Define using libm_alias_float.
3692         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
3693         <libm-alias-float.h>.
3694         (floorf): Define using libm_alias_float.
3695         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
3696         <libm-alias-float.h>.
3697         (llroundf): Define using libm_alias_float.
3698         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
3699         <libm-alias-float.h>.
3700         (roundf): Define using libm_alias_float.
3701         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
3702         <libm-alias-float.h>.
3703         (truncf): Define using libm_alias_float.
3704         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
3705         <libm-alias-float.h>.
3706         (copysignf): Define using libm_alias_float.
3707         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
3708         <libm-alias-float.h>.
3709         (llrintf): Define using libm_alias_float.
3710         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
3711         <libm-alias-float.h>.
3712         (llroundf): Define using libm_alias_float.
3713         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
3714         <libm-alias-float.h>.
3715         (cosf): Define using libm_alias_float.
3716         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
3717         <libm-alias-float.h>.
3718         (llrintf): Define using libm_alias_float.
3719         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
3720         <libm-alias-float.h>.
3721         (llroundf): Define using libm_alias_float.
3722         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
3723         <libm-alias-float.h>.
3724         (sinf): Define using libm_alias_float.
3726 2017-12-04  Florian Weimer  <fweimer@redhat.com>
3728         * support/check.h (TEST_COMPARE): Define.
3729         (support_test_compare_failure): Declare.
3730         * support/Makefile (libsupport-routines): Add
3731         support_test_compare_failure.
3732         (tests): Add tst-test_compare.
3733         * support /support_test_compare_failure.c: New file.
3734         * support/tst-test_compare.c: Likewise.
3736 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
3738         [BZ #22527]
3739         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
3740         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
3741         available, this rewrite of the collation rules does reproduce
3742         the test file in the same order.
3744 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
3746         [BZ #10580]
3747         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
3748         digraphs in the month and day names. Using single code points for
3749         digraphs is deprecated.  While there are dedicated Unicode
3750         codepoints, for the digraphs, these are included for backwards
3751         compatibility and modern texts use a sequence of Basic Latin
3752         characters. See: https://www.unicode.org/faq/ligature_digraph.html
3753         This makes the month and day names agree exactly with CLDR now,
3754         CLDR does not use the single code points for the digraphs either.
3756 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
3758         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
3760 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
3762         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
3763         of floor.
3765 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3767         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
3768         Define only for libc.so.
3770 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3772         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3773         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
3774          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
3775         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
3776         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3778 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3780         [BZ #5997]
3781         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
3783 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
3785         [BZ libc/19170]
3786         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
3787         PREINIT_FUNCTION_WEAK is nonzero.
3788         (gmon_initializer): New function.  Put procedure label for it in
3789         .init_array section.
3790         (_init): Don't call PREINIT_FUNCTION.
3791         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
3792         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
3793         value when map argument is null.
3795         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
3796         depi instruction from PIC pc-relative sequence.
3797         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
3798         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
3799         (elf_machine_load_address): Likewise.
3800         (elf_machine_runtime_setup): Likewise.
3802 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
3804         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
3805         <libm-alias-double.h>.
3806         (logb): Define using libm_alias_double.
3807         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
3808         <libm-alias-double.h>.
3809         (copysign): Define using libm_alias_double.
3810         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
3811         <libm-alias-double.h>.
3812         (llrint): Define using libm_alias_double.
3813         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
3814         <libm-alias-double.h>.
3815         (llround): Define using libm_alias_double.
3816         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
3817         <libm-alias-double.h>.
3818         (lrint): Define using libm_alias_double.
3819         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
3820         <libm-alias-double.h>.
3821         (lround): Define using libm_alias_double.
3822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3823         Include <libm-alias-double.h>.
3824         (copysign): Define using libm_alias_double.
3825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
3826         Include <libm-alias-double.h>.
3827         (llrint): Define using libm_alias_double.
3828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
3829         Include <libm-alias-double.h>.
3830         (llround): Define using libm_alias_double.
3831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
3832         <libm-alias-double.h>.
3833         (logb): Define using libm_alias_double.
3834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
3835         Include <libm-alias-double.h>.
3836         (lrint): Define using libm_alias_double.
3837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
3838         Include <libm-alias-double.h>.
3839         (lround): Define using libm_alias_double.
3840         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
3841         <libm-alias-double.h>.
3842         (llrint): Define using libm_alias_double.
3843         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
3844         <libm-alias-double.h>.
3845         (llround): Define using libm_alias_double.
3846         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
3847         <libm-alias-double.h>.
3848         (llround): Define using libm_alias_double.
3849         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
3850         <libm-alias-double.h>.
3851         (lround): Define using libm_alias_double.
3852         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
3853         <libm-alias-double.h>.
3854         (copysign): Define using libm_alias_double.
3855         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
3856         <libm-alias-double.h>.
3857         (llrint): Define using libm_alias_double.
3858         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
3859         <libm-alias-double.h>.
3860         (llround): Define using libm_alias_double.
3861         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
3862         <libm-alias-double.h>.
3863         (lrint): Define using libm_alias_double.
3864         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
3865         <libm-alias-double.h>.
3866         (lround): Define using libm_alias_double.
3867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
3868         <libm-alias-double.h>.
3869         (copysign): Define using libm_alias_double.
3870         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
3871         <libm-alias-double.h>.
3872         (llrint): Define using libm_alias_double.
3873         (lrint): Likewise.
3874         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
3875         <libm-alias-double.h>.
3876         (llround): Define using libm_alias_double.
3877         (lround): Likewise.
3878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
3879         <libm-alias-double.h>.
3880         (logb): Define using libm_alias_double.
3881         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
3882         <libm-alias-double.h>.
3883         (copysign): Define using libm_alias_double.
3884         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
3885         <libm-alias-double.h>.
3886         (llrint): Define using libm_alias_double.
3887         (lrint): Likewise.
3888         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
3889         <libm-alias-double.h>.
3890         (llround): Define using libm_alias_double.
3891         (lround): Likewise.
3892         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
3893         <libm-alias-double.h>.
3894         (llround): Define using libm_alias_double.
3895         (lround): Likewise.
3896         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
3897         <libm-alias-double.h>.
3898         (copysign): Define using libm_alias_double.
3899         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
3900         <libm-alias-double.h>.
3901         (llrint): Define using libm_alias_double.
3902         (lrint): Likewise.
3903         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
3904         <libm-alias-double.h>.
3905         (llround): Define using libm_alias_double.
3906         (lround): Likewise.
3907         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
3908         <libm-alias-double.h>.
3909         (llrint): Define using libm_alias_double.
3910         (lrint): Likewise.
3911         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
3912         <libm-alias-double.h>.
3913         (llround): Define using libm_alias_double.
3914         (lround): Likewise.
3916 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
3918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
3919         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
3920         compat symbol based on llround.
3922         * sysdeps/powerpc/power7/fpu/s_logb.c
3923         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
3924         symbol based on __logb, not on logb.
3925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
3926         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
3927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
3928         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
3930         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
3931         (rint): Define using libm_alias_double.
3932         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
3933         <libm-alias-double.h>.
3934         (modf): Define using libm_alias_double.
3935         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
3936         <libm-alias-double.h>.
3937         (ceil): Define using libm_alias_double.
3938         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
3939         <libm-alias-double.h>.
3940         (floor): Define using libm_alias_double.
3941         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
3942         <libm-alias-double.h>.
3943         (nearbyint): Define using libm_alias_double.
3944         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
3945         <libm-alias-double.h>.
3946         (rint): Define using libm_alias_double.
3947         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
3948         <libm-alias-double.h>.
3949         (round): Define using libm_alias_double.
3950         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
3951         <libm-alias-double.h>.
3952         (trunc): Define using libm_alias_double.
3953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
3954         <libm-alias-double.h>.
3955         (ceil): Define using libm_alias_double.
3956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
3957         Include <libm-alias-double.h>.
3958         (floor): Define using libm_alias_double.
3959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
3960         <libm-alias-double.h>.
3961         (modf): Define using libm_alias_double.
3962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
3963         Include <libm-alias-double.h>.
3964         (round): Define using libm_alias_double.
3965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
3966         Include <libm-alias-double.h>.
3967         (trunc): Define using libm_alias_double.
3968         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
3969         <libm-alias-double.h>.
3970         (ceil): Define using libm_alias_double.
3971         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
3972         <libm-alias-double.h>.
3973         (floor): Define using libm_alias_double.
3974         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
3975         <libm-alias-double.h>.
3976         (round): Define using libm_alias_double.
3977         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
3978         <libm-alias-double.h>.
3979         (trunc): Define using libm_alias_double.
3980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
3981         <libm-alias-double.h>.
3982         (ceil): Define using libm_alias_double.
3983         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
3984         <libm-alias-double.h>.
3985         (floor): Define using libm_alias_double.
3986         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
3987         <libm-alias-double.h>.
3988         (modf): Define using libm_alias_double.
3989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
3990         <libm-alias-double.h>.
3991         (round): Define using libm_alias_double.
3992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
3993         <libm-alias-double.h>.
3994         (trunc): Define using libm_alias_double.
3995         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
3996         <libm-alias-double.h>.
3997         (ceil): Define using libm_alias_double.
3998         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
3999         <libm-alias-double.h>.
4000         (floor): Define using libm_alias_double.
4001         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
4002         <libm-alias-double.h>.
4003         (nearbyint): Define using libm_alias_double.
4004         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
4005         <libm-alias-double.h>.
4006         (rint): Define using libm_alias_double.
4007         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
4008         <libm-alias-double.h>.
4009         (round): Define using libm_alias_double.
4010         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
4011         <libm-alias-double.h>.
4012         (trunc): Define using libm_alias_double.
4013         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
4014         <libm-alias-double.h>.
4015         (ceil): Define using libm_alias_double.
4016         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
4017         <libm-alias-double.h>.
4018         (floor): Define using libm_alias_double.
4019         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
4020         <libm-alias-double.h>.
4021         (round): Define using libm_alias_double.
4022         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
4023         <libm-alias-double.h>.
4024         (trunc): Define using libm_alias_double.
4026         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
4027         (fabs): Define using libm_alias_double.
4028         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
4029         (fma): Define using libm_alias_double.
4030         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
4031         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
4032         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
4033         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
4035 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4037         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
4039         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
4040         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
4041         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
4043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
4044         due redirect macro.
4046 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
4048         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
4050 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4052         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
4053         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
4054         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
4055         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
4057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4058         (libm-sysdep_routines): Add s_nearbyintf-generic and
4059         s_nearbyint-generic.
4060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
4061         New file.
4062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
4063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
4064         Likewise.
4065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
4066         Likewise.
4067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
4068         file.
4069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
4070         Likewise.
4072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4073         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
4074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
4075         file.
4076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
4077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
4078         Likewise.
4079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
4080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
4081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
4083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4084         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
4085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
4086         file.
4087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
4088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
4089         Likewise.
4090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
4091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
4092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
4094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4095         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
4096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
4097         file.
4098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
4099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
4100         Likewise.
4101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
4102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
4103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
4105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4106         (sysdep_calls): New rule.
4107         (sysdep_routines): Use sysdep_calls as base.
4108         (libm-sysdep_routines): Add generic rule for symbols shared with
4109         libc.  Add s_copysign-generic and s_copysign-generic objects.
4110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
4111         New file.
4112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
4113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
4114         Likewise.
4115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
4116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
4117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
4119 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
4121         [BZ #22519]
4122         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
4123         the list of locales to be built for testing.
4124         * localedata/is_IS.UTF-8.in: New file.
4125         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
4126         on iso14651_t1.
4128 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
4130         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
4131         <libm-alias-float.h>.
4132         (fabsf): Define using libm_alias_float.
4134 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4136         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
4138 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
4140         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
4141         <libm-alias-float.h>.
4142         (fabsf): Define using libm_alias_float.
4143         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
4144         <libm-alias-float.h>.
4145         (lrintf): Define using libm_alias_float.
4146         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
4147         <libm-alias-float.h>.
4148         (rintf): Define using libm_alias_float.
4150         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
4151         <libm-alias-double.h>.
4152         (fabs): Define using libm_alias_double.
4153         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
4154         <libm-alias-double.h>.
4155         (lrint): Define using libm_alias_double.
4156         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
4157         <libm-alias-double.h>.
4158         (rint): Define using libm_alias_double.
4160         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
4161         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
4162         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
4163         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
4164         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
4165         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
4166         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
4167         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
4168         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
4169         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
4170         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
4171         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
4172         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
4173         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
4174         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
4175         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
4176         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
4177         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
4178         s_atan_template.c.
4179         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
4180         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
4181         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
4182         s_ceil_template.c.
4183         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
4184         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
4185         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
4186         s_cos_template.c.
4187         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
4188         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
4189         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
4190         s_expm1_template.c.
4191         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
4192         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
4193         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
4194         s_fabs_template.c.
4195         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
4196         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
4197         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
4198         s_floor_template.c.
4199         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
4200         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
4201         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
4202         s_frexp_template.c.
4203         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
4204         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
4205         s_lrint_template.c.
4206         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
4207         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
4208         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
4209         s_modf_template.c.
4210         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
4211         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
4212         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
4213         s_nearbyint_template.c.
4214         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
4215         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
4216         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
4217         s_remquo_template.c.
4218         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
4219         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
4220         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
4221         s_rint_template.c.
4222         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
4223         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
4224         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
4225         s_sin_template.c.
4226         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
4227         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
4228         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
4229         s_sincos_template.c.
4230         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
4231         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
4232         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
4233         s_tan_template.c.
4234         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
4235         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
4236         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
4237         s_tanh_template.c.
4238         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
4239         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
4240         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
4241         s_trunc_template.c.
4242         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
4243         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
4244         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
4245         s_atan.c instead of including s_atan.c.
4246         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
4247         s_atanf.c instead of including s_atanf.c.
4248         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
4249         s_atanl.c instead of including s_atanl.c.
4250         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
4251         instead of s_atan.c.
4252         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
4253         instead of s_atanf.c.
4254         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
4255         instead of s_atanl.c.
4257         * scripts/update-copyrights: Do not handle intl/plural.c
4258         specially.
4260 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
4262         [BZ #22432]
4263         * configure.ac (BISON): Require to be present.
4264         * configure: Regenerated.
4265         * intl/Makefile (generated): Add plural.c.
4266         [$(BISON) != no]: Make code unconditional.
4267         (plural.c): Change rule to $(objpfx)plural.c.
4268         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
4269         * intl/plural.c: Remove.
4270         * manual/install.texi (Tools for Compilation): Document bison as
4271         required.
4272         * INSTALL: Regenerated.
4274 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
4276         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
4277         <libm-alias-double.h>.
4278         (llrint): Define using libm_alias_double.
4279         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
4280         <libm-alias-float.h>.
4281         (llrintf): Define using libm_alias_float.
4282         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
4283         <libm-alias-ldouble.h>.
4284         (llrintl): Define using libm_alias_ldouble.
4286         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
4287         declare_mgen_alias instead of weak_alias.
4288         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
4289         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
4290         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
4292 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4294         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
4295         Add add_n-generic.
4296         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
4297         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
4298         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
4300         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
4301         Add submul_1-generic.
4302         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
4303         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
4304         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
4306         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
4307         Add addmul_1-generic.
4308         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
4309         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
4310         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
4312         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
4313         Add sub_n-generic.
4314         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
4315         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
4316         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
4318         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
4319         Add mul_1-generic.
4320         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
4321         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
4322         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
4324 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
4326         According to CLDR, collation rules for Serbian and Bosnian
4327         should be the same as for Croatian.
4329         [BZ #22534]
4330         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
4331         and to the list of locales to be built for testing.
4332         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
4333         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
4334         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
4335         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
4337 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
4339         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
4340         to make test case pass.
4341         * localedata/hr_HR.UTF-8.in: Add more test strings.
4343 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
4345         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
4347 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
4349         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
4350         the list of locales to built for testing.
4351         * localedata/hr_HR.UTF-8.in: New file.
4353 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
4355         [BZ #10580]
4356         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
4357         iso14651_t1.
4358         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
4359         CLDR (except use ligatures for the digraphs, CLDR does not use
4360         the ligatures), add first_workday, some fixes in the date and time
4361         formats.
4362         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
4363         for Đ and đ.
4364         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
4365         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
4366         Add int_p_cs_precedes and int_n_cs_precedes.
4367         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
4368         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
4369         LC_MONETARY now).
4370         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
4371         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
4372         name_miss.
4373         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
4374         and lang_lib. Change postal_fmt.
4376 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4378         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
4379         <setjmp.h>.
4380         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
4381         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
4382         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
4383         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
4384         * sysdeps/generic/setjmpP.h: New file.
4385         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
4386         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
4387         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
4388         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
4389         Add jmp_buf-ssp.sym.
4390         (tests): Add tst-saved_mask-1.
4392 2017-11-30  Arjun Shankar  <arjun@redhat.com>
4394         [BZ #22375]
4395         CVE-2017-17426
4396         * malloc/malloc.c (__libc_malloc): Use checked_request2size
4397         instead of request2size.
4399 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
4401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
4402         (__lllrint): Remove alias.
4403         (lllrint): Likewise.
4404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
4405         (__lllrintf): Likewise.
4406         (lllrintf): Likewise.
4408         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
4409         <libm-alias-float.h>.
4410         (copysignf): Define using libm_alias_float.
4411         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
4412         <libm-alias-float.h>.
4413         (fabsf): Define using libm_alias_float.
4414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
4415         Include <libm-alias-float.h>.
4416         (copysignf): Define using libm_alias_float.
4417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
4418         <libm-alias-float.h>.
4419         (fabsf): Define using libm_alias_float.
4420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
4421         <libm-alias-float.h>.
4422         (fdimf): Define using libm_alias_float.
4423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
4424         <libm-alias-float.h>.
4425         (fmaf): Define using libm_alias_float.
4426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
4427         <libm-alias-float.h>.
4428         (llrintf): Define using libm_alias_float.
4429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
4430         Include <libm-alias-float.h>.
4431         (nearbyintf): Define using libm_alias_float.
4432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
4433         <libm-alias-float.h>.
4434         (rintf): Define using libm_alias_float.
4435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
4436         <libm-alias-float.h>.
4437         (llrintf): Define using libm_alias_float.
4438         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
4439         <libm-alias-float.h>.
4440         (lrintf): Define using libm_alias_float.
4441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
4442         <libm-alias-float.h>.
4443         (nearbyintf): Define using libm_alias_float.
4444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
4445         <libm-alias-float.h>.
4446         (rintf): Define using libm_alias_float.
4447         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
4448         <libm-alias-float.h>.
4449         (ceilf): Define using libm_alias_float.
4450         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
4451         <libm-alias-float.h>.
4452         (floorf): Define using libm_alias_float.
4453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
4454         <libm-alias-float.h>.
4455         (fmaf): Define using libm_alias_float.
4456         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
4457         <libm-alias-float.h>.
4458         (lrintf): Define using libm_alias_float.
4459         (llrintf): Likewise.
4460         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
4461         <libm-alias-float.h>.
4462         (nearbyintf): Define using libm_alias_float.
4463         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
4464         <libm-alias-float.h>.
4465         (rintf): Define using libm_alias_float.
4466         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
4467         <libm-alias-float.h>.
4468         (truncf): Define using libm_alias_float.
4469         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
4470         <libm-alias-float.h>.
4471         (copysignf): Define using libm_alias_float.
4472         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
4473         <libm-alias-float.h>.
4474         (fabsf): Define using libm_alias_float.
4475         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
4476         <libm-alias-float.h>.
4477         (lrintf): Define using libm_alias_float.
4478         (llrintf): Likewise.
4479         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
4480         <libm-alias-float.h>.
4481         (nearbyintf): Define using libm_alias_float.
4482         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
4483         <libm-alias-float.h>.
4484         (rintf): Define using libm_alias_float.
4486 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
4488         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
4489         <libm-alias-double.h>.
4490         (copysign): Define using libm_alias_double.
4491         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
4492         <libm-alias-double.h>.
4493         (fabs): Define using libm_alias_double.
4494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
4495         Include <libm-alias-double.h>.
4496         (copysign): Define using libm_alias_double.
4497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
4498         <libm-alias-double.h>.
4499         (fabs): Define using libm_alias_double.
4500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
4501         <libm-alias-double.h>.
4502         (fdim): Define using libm_alias_double.
4503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
4504         <libm-alias-double.h>.
4505         (fma): Define using libm_alias_double.
4506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
4507         <libm-alias-double.h>.
4508         (llrint): Define using libm_alias_double.
4509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
4510         Include <libm-alias-double.h>.
4511         (nearbyint): Define using libm_alias_double.
4512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
4513         <libm-alias-double.h>.
4514         (rint): Define using libm_alias_double.
4515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
4516         <libm-alias-double.h>.
4517         (fabs): Define using libm_alias_double.
4518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
4519         <libm-alias-double.h>.
4520         (llrint): Define using libm_alias_double.
4521         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
4522         <libm-alias-double.h>.
4523         (nearbyint): Define using libm_alias_double.
4524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
4525         <libm-alias-double.h>.
4526         (rint): Define using libm_alias_double.
4527         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
4528         <libm-alias-double.h>.
4529         (ceil): Define using libm_alias_double.
4530         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
4531         <libm-alias-double.h>.
4532         (floor): Define using libm_alias_double.
4533         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
4534         <libm-alias-double.h>.
4535         (fma): Define using libm_alias_double.
4536         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
4537         <libm-alias-double.h>.
4538         (lrint): Define using libm_alias_double.
4539         (llrint): Likewise.
4540         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
4541         <libm-alias-double.h>.
4542         (nearbyint): Define using libm_alias_double.
4543         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
4544         <libm-alias-double.h>.
4545         (rint): Define using libm_alias_double.
4546         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
4547         <libm-alias-double.h>.
4548         (trunc): Define using libm_alias_double.
4549         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
4550         <libm-alias-double.h>.
4551         (copysign): Define using libm_alias_double.
4552         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
4553         <libm-alias-double.h>.
4554         (fabs): Define using libm_alias_double.
4555         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
4556         <libm-alias-double.h>.
4557         (lrint): Define using libm_alias_double.
4558         (llrint): Likewise.
4559         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
4560         <libm-alias-double.h>.
4561         (nearbyint): Define using libm_alias_double.
4562         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
4563         <libm-alias-double.h>.
4564         (rint): Define using libm_alias_double.
4566         [BZ #22229]
4567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
4568         <math_ldbl_opt.h>.
4569         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
4571         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4572         SPARC --disable-multi-arch glibc variants.
4574         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
4575         <libm-alias-float.h>.
4576         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4577         if [SHARED].
4578         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
4579         <libm-alias-float.h>.
4580         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4581         if [SHARED].
4582         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
4583         <libm-alias-float.h>.
4584         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4585         if [SHARED].
4586         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
4587         <libm-alias-float.h>.
4588         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4589         if [SHARED].
4590         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
4591         <libm-alias-float.h>.
4592         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4593         if [SHARED].
4594         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
4595         <libm-alias-float.h>.
4596         (ceilf): Define using libm_alias_float.
4597         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
4598         <libm-alias-float.h>.
4599         (floorf): Define using libm_alias_float.
4600         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
4601         <libm-alias-float.h>.
4602         (fmaf): Define using libm_alias_float.
4603         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
4604         <libm-alias-float.h>.
4605         (nearbyintf): Define using libm_alias_float.
4606         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
4607         <libm-alias-float.h>.
4608         (rintf): Define using libm_alias_float.
4609         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
4610         <libm-alias-float.h>.
4611         (truncf): Define using libm_alias_float.
4612         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
4613         (copysignf): Define using libm_alias_float.
4614         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
4615         (cosf): Define using libm_alias_float.
4616         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
4617         (fabsf): Define using libm_alias_float.
4618         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
4619         (fmaxf): Define using libm_alias_float.
4620         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
4621         (fminf): Define using libm_alias_float.
4622         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
4623         (llrintf): Define using libm_alias_float.
4624         [!__ILP32__] (lrintf): Likewise.
4625         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
4626         (sincosf): Define using libm_alias_float.
4627         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
4628         (sinf): Define using libm_alias_float.
4629         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
4630         (lrintf): Define using libm_alias_float.
4632         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
4633         <libm-alias-double.h>.
4634         (atan): Define using libm_alias_double.
4635         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
4636         <libm-alias-double.h>.
4637         (ceil): Define using libm_alias_double.
4638         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
4639         <libm-alias-double.h>.
4640         (floor): Define using libm_alias_double.
4641         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
4642         <libm-alias-double.h>.
4643         (fma): Define using libm_alias_double.
4644         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
4645         <libm-alias-double.h>.
4646         (nearbyint): Define using libm_alias_double.
4647         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
4648         <libm-alias-double.h>.
4649         (rint): Define using libm_alias_double.
4650         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
4651         <libm-alias-double.h>.
4652         (sin): Define using libm_alias_double.
4653         (cos): Likewise.
4654         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
4655         <libm-alias-double.h>.
4656         (tan): Define using libm_alias_double.
4657         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
4658         <libm-alias-double.h>.
4659         (trunc): Define using libm_alias_double.
4660         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
4661         (copysign): Define using libm_alias_double.
4662         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
4663         (fabs): Define using libm_alias_double.
4664         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
4665         (fmax): Define using libm_alias_double.
4666         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
4667         (fmin): Define using libm_alias_double.
4668         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
4669         (llrint): Define using libm_alias_double.
4670         [!__ILP32__] (lrint): Likewise.
4671         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
4672         (lrint): Define using libm_alias_double.
4674 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4676         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4677         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
4678         objects.
4679         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
4680         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
4681         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
4682         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
4683         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
4684         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
4686         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4687         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
4688         objects.
4689         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
4690         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
4691         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
4692         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
4693         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
4694         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
4696         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4697         (libm-sysdep_routines): Add s_nearbyint-generic and
4698         s_nearbyintf-generic objects.
4699         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
4700         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
4701         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
4702         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
4703         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
4704         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
4706         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
4707         Add s_finitef-generic and s_finite-generic objects.
4708         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
4709         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
4710         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
4711         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
4712         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
4713         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
4715         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
4716         Add s_isinff-generic and s_isinf-generic objects.
4717         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
4718         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
4719         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
4720         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
4721         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
4722         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
4724         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
4725         Add s_isnanf-generic and s_isnan-generic objects.
4726         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
4727         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
4728         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
4729         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
4730         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
4731         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
4733         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
4734         macro.
4735         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
4736         rule.
4737         (sysdep_routines): Use sysdep_calls as base.
4738         (libm-sysdep_routines): Add generic rule for symbols shared with
4739         libc.  Add s_signbit-generic and s_signbitf-generic objects.
4740         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
4741         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
4742         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
4743         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
4744         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
4745         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
4747 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
4749         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
4750         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
4751         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
4752         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
4753         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
4754         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
4755         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
4756         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
4757         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
4758         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
4759         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
4760         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
4761         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
4762         libm_alias_float_r.
4763         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
4764         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
4765         (logf): Likewise.
4766         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
4767         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
4768         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
4769         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
4770         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
4771         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
4772         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
4773         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
4774         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
4775         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
4776         libm_alias_float.
4777         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
4778         (cosf): Likewise.
4779         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
4780         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
4781         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
4782         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
4783         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
4784         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
4785         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
4786         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
4787         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
4788         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
4789         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
4790         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
4791         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
4792         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
4793         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
4794         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
4795         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
4796         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
4797         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
4798         libm_alias_float.
4799         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
4800         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
4801         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
4802         * sysdeps/ia64/fpu/w_lgammaf_main.c
4803         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
4804         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
4806 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
4807             Alexandre Oliva  <aoliva@redhat.com>
4809         [BZ #17750]
4810         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
4811         * localedata/fr_CA.UTF-8.in: New file with test data for backward
4812         accents sorting.
4813         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
4814         sorting.
4815         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
4816         * localedata/locales/de_DE (LC_COLLATE): Likewise.
4817         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
4818         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
4819         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
4820         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
4821         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
4822         instead of “ifdef DIACRIT_BACKWARD”.
4824 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4826         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
4827         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
4828         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
4829         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
4830         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
4831         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
4832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
4833         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
4834         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
4835         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
4836         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
4837         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
4838         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
4839         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
4840         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
4841         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
4842         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
4843         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
4844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4845         ($(have-as-vis3) == yes): Remove conditional.
4846         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
4847         Likewise.
4848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
4849         file.
4850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
4851         file.
4852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
4853         file.
4854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
4855         file.
4856         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
4857         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
4858         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
4859         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
4860         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
4861         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
4862         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
4863         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
4865 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
4867         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
4868         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
4869         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
4870         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
4871         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
4872         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
4873         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
4874         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
4875         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
4876         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
4877         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
4878         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
4879         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
4880         libm_alias_double_r.
4881         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
4882         (log): Likewise.
4883         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
4884         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
4885         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
4886         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
4887         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
4888         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
4889         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
4890         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
4891         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
4892         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
4893         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
4894         libm_alias_double.
4895         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
4896         (cos): Likewise.
4897         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
4898         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
4899         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
4900         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
4901         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
4902         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
4903         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
4904         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
4905         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
4906         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
4907         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
4908         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
4909         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
4910         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
4911         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
4912         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
4913         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
4914         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
4915         libm_alias_double.
4916         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
4917         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
4918         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
4919         * sysdeps/ia64/fpu/w_lgamma_main.c
4920         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
4921         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
4923 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
4925         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
4926         address of $global$ into %dp register earlier.  Use pc-relative
4927         instruction sequence for PIC case.
4929 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
4931         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
4932         (asinhf): Define using libm_alias_float.
4933         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
4934         (atanf): Define using libm_alias_float.
4935         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
4936         (cbrtf): Define using libm_alias_float.
4937         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
4938         (ceilf): Define using libm_alias_float.
4939         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
4940         (copysignf): Define using libm_alias_float.
4941         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
4942         (expm1f): Define using libm_alias_float.
4943         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
4944         (fabsf): Define using libm_alias_float.
4945         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
4946         (floorf): Define using libm_alias_float.
4947         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
4948         (fmaxf): Define using libm_alias_float.
4949         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
4950         (fminf): Define using libm_alias_float.
4951         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
4952         (frexpf): Define using libm_alias_float.
4953         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
4954         (llrintf): Define using libm_alias_float.
4955         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
4956         (logbf): Define using libm_alias_float.
4957         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
4958         (lrintf): Define using libm_alias_float.
4959         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
4960         (nearbyintf): Define using libm_alias_float.
4961         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
4962         (remquof): Define using libm_alias_float.
4963         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
4964         (rintf): Define using libm_alias_float.
4965         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
4966         (truncf): Define using libm_alias_float.
4967         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
4968         <libm-alias-float.h>.
4969         (exp2f): Define using libm_alias_float, or libm_alias_float_other
4970         if [SHARED].
4971         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
4972         <libm-alias-float.h>.
4973         (expf): Define using libm_alias_float, or libm_alias_float_other
4974         if [SHARED].
4975         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
4976         <libm-alias-float.h>.
4977         (log2f): Define using libm_alias_float, or libm_alias_float_other
4978         if [SHARED].
4979         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
4980         <libm-alias-float.h>.
4981         (logf): Define using libm_alias_float, or libm_alias_float_other
4982         if [SHARED].
4983         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
4984         <libm-alias-float.h>.
4985         (powf): Define using libm_alias_float, or libm_alias_float_other
4986         if [SHARED].
4987         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
4988         <libm-alias-float.h>.
4989         (cosf): Define using libm_alias_float.
4990         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
4991         <libm-alias-float.h>.
4992         (sincosf): Define using libm_alias_float.
4993         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
4994         <libm-alias-float.h>.
4995         (sinf): Define using libm_alias_float.
4996         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
4997         (fmaxf): Define using libm_alias_float.
4998         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
4999         (fminf): Define using libm_alias_float.
5000         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
5001         <libm-alias-float.h>.
5002         (fmaf): Define using libm_alias_float.
5004         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
5005         (asinh): Define using libm_alias_double.
5006         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
5007         (atan): Define using libm_alias_double.
5008         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
5009         (cbrt): Define using libm_alias_double.
5010         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
5011         (ceil): Define using libm_alias_double.
5012         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
5013         (copysign): Define using libm_alias_double.
5014         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
5015         (expm1): Define using libm_alias_double.
5016         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
5017         (fabs): Define using libm_alias_double.
5018         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
5019         (fdim): Define using libm_alias_double.
5020         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
5021         (floor): Define using libm_alias_double.
5022         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
5023         (fmax): Define using libm_alias_double.
5024         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
5025         (fmin): Define using libm_alias_double.
5026         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
5027         (frexp): Define using libm_alias_double.
5028         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
5029         (llrint): Define using libm_alias_double.
5030         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
5031         (logb): Define using libm_alias_double.
5032         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
5033         (lrint): Define using libm_alias_double.
5034         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
5035         (nearbyint): Define using libm_alias_double.
5036         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
5037         (remquo): Define using libm_alias_double.
5038         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
5039         (rint): Define using libm_alias_double.
5040         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
5041         (trunc): Define using libm_alias_double.
5042         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
5043         (fmax): Define using libm_alias_double.
5044         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
5045         (fmin): Define using libm_alias_double.
5046         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
5047         (fma): Define using libm_alias_double.
5049 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
5051         [BZ #22370]
5052         * elf/dl-hwcaps.c (ROUND): Removed.
5053         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
5054         and ELF_NOTE_NEXT_OFFSET.
5055         * elf/dl-load.c (ROUND): Removed.
5056         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
5057         * elf/readelflib.c (ROUND): Removed.
5058         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
5059         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
5060         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
5061         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
5063 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
5065         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
5066         [!__fmaf] (fmaf): Define using libm_alias_float.
5068         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
5069         [!__fma] (fma): Define using libm_alias_double.
5070         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
5072 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
5074         [BZ #22336]
5075         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
5076         and implement the collation rules for cs from CLDR on top of that.
5077         * Makefile: Add cs_CZ.UTF-8 to test-input.
5078         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
5080 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5082         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
5084 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
5085             Icarus Sparry  <icarus.w.sparry@intel.com>
5087         * benchtests/Makefile:Add BENCHSET to allow subsets of
5088         benchmarks to be run.
5089         * benchtests/README: Add documentation for: Running subsets of
5090         benchmarks.
5092 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
5094         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
5095         range of tests names.
5097         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
5098         result from property and remove "max", min" and "mean" from
5099         required properties based on benchtests/bench-skeleton.c.
5101 2017-11-28  Florian Weimer  <fweimer@redhat.com>
5103         [BZ #20826]
5104         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
5105         due to Internet requirement.
5106         * posix/Makefile (tests): Remove tst-getaddrinfo4,
5107         tst-getaddrinfo5.
5108         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
5110 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5112         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5113         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
5114         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
5115         (sysdep_routines): Add memset-ultra1.
5116         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
5117         file.
5118         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
5119         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
5120         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
5121         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
5122         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
5123         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
5124         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
5125         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5127         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
5128         file.
5129         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
5130         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
5131         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
5132         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
5133         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
5134         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
5135         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
5136         macro.
5137         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5138         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
5139         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
5140         (sysdep_routines): Add memcpy-ultra1.
5141         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
5142         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
5144 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
5146         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
5147         (cfloat_versions): Take function argument without trailing 'f'.
5148         Call libm_alias_float_other.
5149         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
5150         * sysdeps/alpha/fpu/cargf.c: Likewise.
5151         * sysdeps/alpha/fpu/cimagf.c: Likewise.
5152         * sysdeps/alpha/fpu/conjf.c: Likewise.
5153         * sysdeps/alpha/fpu/crealf.c: Likewise.
5154         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
5155         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
5156         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
5157         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
5158         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
5159         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
5160         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
5161         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
5162         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
5163         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
5164         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
5165         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
5166         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
5167         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
5168         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
5169         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
5170         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
5171         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
5172         (clog10f): Use libm_alias_float_other.
5173         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
5174         (ceilf): Define using libm_alias_float.
5175         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
5176         (copysignf): Define using libm_alias_float.
5177         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
5178         (fabsf): Define using libm_alias_float.
5179         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
5180         (floorf): Define using libm_alias_float.
5181         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
5182         (fmaxf): Define using libm_alias_float.
5183         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
5184         (fminf): Define using libm_alias_float.
5185         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
5186         (lrintf): Define using libm_alias_float.
5187         (llrintf): Likewise.
5188         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
5189         (lroundf): Define using libm_alias_float.
5190         (llroundf): Likewise.
5191         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
5192         (rintf): Define using libm_alias_float.
5193         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
5194         (truncf): Define using libm_alias_float.
5196         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
5197         (ceilf): Define using libm_alias_float.
5198         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
5199         (floorf): Define using libm_alias_float.
5200         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
5201         (fmaf): Define using libm_alias_float.
5202         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
5203         (fmaxf): Define using libm_alias_float.
5204         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
5205         (fminf): Define using libm_alias_float.
5206         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
5207         (llrintf): Define using libm_alias_float.
5208         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
5209         (llroundf): Define using libm_alias_float.
5210         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
5211         (lrintf): Define using libm_alias_float.
5212         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
5213         (lroundf): Define using libm_alias_float.
5214         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
5215         <libm-alias-float.h>.
5216         (nearbyintf): Define using libm_alias_float.
5217         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
5218         (rintf): Define using libm_alias_float.
5219         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
5220         (roundf): Define using libm_alias_float.
5221         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
5222         (truncf): Define using libm_alias_float.
5224         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
5225         (ceil): Define using libm_alias_double.
5226         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
5227         (copysign): Define using libm_alias_double.
5228         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
5229         (fabs): Define using libm_alias_double.
5230         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
5231         (floor): Define using libm_alias_double.
5232         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
5233         (fmax): Define using libm_alias_double.
5234         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
5235         (fmin): Define using libm_alias_double.
5236         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
5237         (lrint): Define using libm_alias_double.
5238         (llrint): Likewise.
5239         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
5240         (lround): Define using libm_alias_double.
5241         (llround): Likewise.
5242         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
5243         (rint): Define using libm_alias_double.
5244         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
5245         (trunc): Define using libm_alias_double.
5247         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
5248         (libm_alias_double_r): Add semicolon after weak_alias call.
5250 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
5252         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
5253         (ceil): Define using libm_alias_double.
5254         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
5255         (floor): Define using libm_alias_double.
5256         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
5257         (fma): Define using libm_alias_double.
5258         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
5259         (fmax): Define using libm_alias_double.
5260         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
5261         (fmin): Define using libm_alias_double.
5262         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
5263         (llrint): Define using libm_alias_double.
5264         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
5265         (llround): Define using libm_alias_double.
5266         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
5267         (lrint): Define using libm_alias_double.
5268         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
5269         (lround): Define using libm_alias_double.
5270         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
5271         (nearbyint): Define using libm_alias_double.
5272         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
5273         (rint): Define using libm_alias_double.
5274         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
5275         (round): Define using libm_alias_double.
5276         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
5277         (trunc): Define using libm_alias_double.
5279 2017-11-27  Florian Weimer  <fweimer@redhat.com>
5281         * sysdeps/unix/sysv/linux/mlock2.c: New file.
5282         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
5283         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
5284         (tests): Add tst-mlock2.
5285         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
5286         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
5287         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
5288         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
5289         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
5290         for mlock.  Document mlock2.
5292 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
5294         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
5295         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
5296         Likewise.
5297         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
5298         Likewise.
5299         * sysdeps/x86/Makeconfig: New file.
5300         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
5301         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5302         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
5303         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5304         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
5305         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5306         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
5307         Likewise.
5308         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5309         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
5310         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5311         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
5312         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5313         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
5314         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
5315         * manual/math.texi (Mathematics): Document support for _Float64x.
5316         * math/Versions (GLIBC_2.27): Add _Float64x functions.
5317         * stdlib/Versions (GLIBC_2.27): Likewise.
5318         * wcsmbs/Versions (GLIBC_2.27): Likewise.
5319         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5320         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5321         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5322         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5323         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5324         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5325         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5326         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5327         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5328         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5329         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5331         Likewise.
5332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5333         Likewise.
5334         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5335         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5336         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5337         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5338         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5339         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5340         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5341         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5342         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5343         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5344         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5345         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5346         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5347         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5349 2017-11-27  Andreas Schwab  <schwab@suse.de>
5351         * elf/Makefile (dl-routines): Add dl-sort-maps.
5352         * elf/dl-sort-maps.c: New file.
5353         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
5354         (_dl_sort_maps): Declare.
5355         * elf/dl-fini.c (_dl_sort_fini): Remove.
5356         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
5357         * elf/dl-close.c (_dl_close_worker): Likewise.
5358         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
5359         open-coding it.
5360         * elf/dl-open.c (dl_open_worker): Likewise.
5362 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
5364         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
5365         using libm_alias_float128.
5366         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
5367         Likewise.
5368         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
5369         Likewise.
5370         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
5371         (setpayloadsigf128): Likewise.
5372         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
5373         Likewise.
5374         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
5375         Likewise.
5377         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
5378         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
5379         -mfloat128 to CFLAGS.
5380         ($(foreach
5381         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
5382         Likewise.
5383         (CFLAGS-libm-test-support-float64x.c): New variable.
5384         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
5385         $(f128-loader-link) to gnulib-tests.
5387         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
5388         (libm_alias_float128_other_r): If
5389         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
5390         alias.
5391         (libm_alias_float128_r): Add semicolon after weak_alias call.
5392         * sysdeps/generic/libm-alias-ldouble.h
5393         (libm_alias_ldouble_other_r_f128): New macro.
5394         (libm_alias_ldouble_other_r_f64x): Likewise.
5395         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
5396         and libm_alias_ldouble_other_r_f64x.
5397         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
5398         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
5399         (libm_alias_ldouble_other_r_f128): New macro.
5400         (libm_alias_ldouble_other_r_f64x): Likewise.
5401         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
5402         and libm_alias_ldouble_other_r_f64x.
5404         * stdlib/strfroml.c: Always include <stdlib.h>.
5405         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
5406         undefine as macro and define as weak alias.
5407         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
5408         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
5409         <stdlib.h>.
5410         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
5411         Define and later undefine as macro and define as weak alias.
5413         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
5414         Define and later undefine as macro.  Define as weak alias if
5415         [!USE_WIDE_CHAR].
5416         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
5417         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
5418         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
5419         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
5420         Define and later undefine as macro.  Define as weak alias if
5421         [!USE_WIDE_CHAR].
5422         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
5423         Define and later undefine as macro.  Define as weak alias if
5424         [USE_WIDE_CHAR].
5425         * sysdeps/ieee754/float128/strtof128_l.c
5426         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
5427         Define and later undefine as macro.  Define as weak alias if
5428         [!USE_WIDE_CHAR].
5429         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
5430         Define and later undefine as macro.  Define as weak alias if
5431         [USE_WIDE_CHAR].
5432         * sysdeps/ieee754/ldbl-128/strtold_l.c
5433         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
5434         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
5435         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
5436         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
5437         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
5438         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
5439         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
5440         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
5441         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
5442         * sysdeps/ieee754/ldbl-96/strtold_l.c
5443         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
5444         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
5445         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
5446         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
5448         * math/test-float64x.h: New file.
5449         * math/Makefile (type-float64x-yes): New variable.
5450         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
5452         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
5453         function-like macro.
5454         (min_of_type_): Likewise.
5455         (min_of_type_l): Likewise.
5456         (min_of_type_f128): Likewise.
5457         (min_of_type): Pass () as last argument of __MATH_TG.
5459         * stdlib/tst-strtod-round-skeleton.c
5460         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
5461         headers.
5463         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
5464         for combinations of long double with _Float64 and _Float64x.
5466         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
5467         (__DECL_SIMD_cosf32): Likewise.
5468         (__DECL_SIMD_cosf64): Likewise.
5469         (__DECL_SIMD_cosf32x): Likewise.
5470         (__DECL_SIMD_cosf64x): Likewise.
5471         (__DECL_SIMD_cosf128x): Likewise.
5472         (__DECL_SIMD_sinf16): Likewise.
5473         (__DECL_SIMD_sinf32): Likewise.
5474         (__DECL_SIMD_sinf64): Likewise.
5475         (__DECL_SIMD_sinf32x): Likewise.
5476         (__DECL_SIMD_sinf64x): Likewise.
5477         (__DECL_SIMD_sinf128x): Likewise.
5478         (__DECL_SIMD_sincosf16): Likewise.
5479         (__DECL_SIMD_sincosf32): Likewise.
5480         (__DECL_SIMD_sincosf64): Likewise.
5481         (__DECL_SIMD_sincosf32x): Likewise.
5482         (__DECL_SIMD_sincosf64x): Likewise.
5483         (__DECL_SIMD_sincosf128x): Likewise.
5484         (__DECL_SIMD_logf16): Likewise.
5485         (__DECL_SIMD_logf32): Likewise.
5486         (__DECL_SIMD_logf64): Likewise.
5487         (__DECL_SIMD_logf32x): Likewise.
5488         (__DECL_SIMD_logf64x): Likewise.
5489         (__DECL_SIMD_logf128x): Likewise.
5490         (__DECL_SIMD_expf16): Likewise.
5491         (__DECL_SIMD_expf32): Likewise.
5492         (__DECL_SIMD_expf64): Likewise.
5493         (__DECL_SIMD_expf32x): Likewise.
5494         (__DECL_SIMD_expf64x): Likewise.
5495         (__DECL_SIMD_expf128x): Likewise.
5496         (__DECL_SIMD_powf16): Likewise.
5497         (__DECL_SIMD_powf32): Likewise.
5498         (__DECL_SIMD_powf64): Likewise.
5499         (__DECL_SIMD_powf32x): Likewise.
5500         (__DECL_SIMD_powf64x): Likewise.
5501         (__DECL_SIMD_powf128x): Likewise.
5503         * stdlib/Versions (libc): Move entries for wcstof128 and
5504         wcstof128_l to ....
5505         * wcsmbs/Versions (libc): ... here.
5506         Include <float128-abi.h>.
5508 2017-11-24  Florian Weimer  <fweimer@redhat.com>
5510         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5511         bits/mman-shared.h.
5512         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
5513         <bits/mman-shared.h>.
5514         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
5515         to ...
5516         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
5517         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
5518         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5519         <bits/mman-shared.h>.
5521 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5523         [BZ #22457]
5524         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
5525         posix_memalign/free.
5526         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
5528 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
5530         [BZ #22469]
5531         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
5532         and implement the collation rules for pl from CLDR on top of that.
5533         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
5534         of locales to be built for testing.
5535         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
5537 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
5539         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
5540         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
5541         libm_alias_ldouble_other.
5542         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
5543         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
5544         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
5545         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
5546         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
5547         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
5548         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
5549         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
5550         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
5551         libm_alias_ldouble_r.
5552         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
5553         libm_alias_ldouble_other.
5554         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
5555         (log10l): Likewise.
5556         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
5557         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
5558         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
5559         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
5560         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
5561         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
5562         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
5563         (atan2l): Likewise.
5564         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
5565         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
5566         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
5567         libm_alias_ldouble.
5568         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
5569         (cosl): Likewise.
5570         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
5571         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
5572         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
5573         (expl): Likewise.
5574         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
5575         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
5576         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
5577         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
5578         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
5579         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
5580         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
5581         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
5582         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
5583         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
5584         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
5585         libm_alias_ldouble.
5586         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
5587         libm_alias_ldouble_other.
5588         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
5589         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
5590         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
5591         libm_alias_ldouble.
5592         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
5593         libm_alias_ldouble_other.
5594         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
5595         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
5596         * sysdeps/ia64/fpu/w_lgammal_main.c
5597         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
5598         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
5600 2017-11-23  Florian Weimer  <fweimer@redhat.com>
5602         * malloc/malloc.c (tcache_thread_shutdown): Rename from
5603         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
5604         alike.  Remove freeres marker.
5605         * malloc/arena.c (arena_thread_freeres): Call
5606         tcache_thread_shutdown.
5608 2017-11-23  Florian Weimer  <fweimer@redhat.com>
5610         [BZ #22459]
5611         Export nscd hash function as __nss_hash.
5612         * include/nss.h (__nss_hash): Declare.
5613         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
5614         symbol.
5615         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
5616         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
5617         of __nscd_hash.
5618         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
5619         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
5620         * nss/Makefiles (routines): Add nss_hash.
5621         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
5622         * nss/nss_hash.c: Rename from nis/nis_hash.c.
5623         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
5624         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
5626 2017-11-23  Florian Weimer  <fweimer@redhat.com>
5628         [BZ #22478]
5629         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
5630         Return error code, not -1.
5631         * signal/tst-sigwait-eintr.c: New file.
5632         * signal/Makefile (tests): Add tst-sigwait-eintr.
5634 2017-11-23  Florian Weimer  <fweimer@redhat.com>
5636         Linux: Add memfd_create system call wrapper
5637         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
5638         tst-memfd_create.
5639         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5640         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
5641         [__USE_GNU] (memfd_create): Declare.
5642         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
5643         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
5644         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
5645         * sysdeps/unix/sysv/linux/**.abilist: Update.
5646         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
5648 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
5650         * localedata/gen-locale.sh: Fix typo in variable name.
5652         * resolv/res_debug.c (p_secstodate): Condition definition on
5653         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
5654         directly as __p_secstodate, and as a compat symbol.  Do not use
5655         libresolv_hidden_def.
5656         * resolv/resolv.h (p_secstodate): Remove macro and function
5657         declaration.
5658         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
5659         using p_secstodate.
5660         * include/resolv.h (__p_secstodate): Do not use
5661         libresolv_hidden_proto.
5662         * resolv/Makefile (tests): Move tst-p_secstodate to ....
5663         (tests-internal): ... here.
5664         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
5665         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
5666         and declare and use __p_secstodate and use compat_symbol_reference
5667         in that case.
5668         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
5669         implementation returning 77.
5671         [BZ #22463]
5672         * resolv/res_debug.c: Include <libc-diag.h>.
5673         (p_secstodate): Assert time_t at least as wide as u_long.  On
5674         overflow, use integer seconds since the epoch as output, or use
5675         "<overflow>" as output and set errno to EOVERFLOW if integer
5676         seconds since the epoch would be 14 or more characters.
5677         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
5678         for sprintf call.
5679         * resolv/tst-p_secstodate.c: New file.
5680         * resolv/Makefile (tests): Add tst-p_secstodate.
5681         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
5683         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
5684         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
5685         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
5687 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5689         * posix/regcomp.c (init_word_char): Add comments.
5691 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
5693         [BZ #22447]
5694         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
5695         strlen to compute length of ut_user and set trailing NUL byte of
5696         result explicitly.
5698 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
5700         [BZ #15537]
5701         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
5702         using “copy "iso14651_t1"” and then implementing the
5703         collation rules for lv from CLDR on top of that.
5704         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
5705         of locales to be built for testing.
5706         * lv_LV.UTF-8.in: New file with test data to test the Latvian
5707         sorting.
5709 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
5711         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
5712         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
5713         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
5714         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
5715         [__USE_MISC] (MADV_HWPOISON): New macro.
5716         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
5718 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5720         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
5721         -Wmissing-braces on GCC 4.9.
5723 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
5725         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
5726         * sysdeps/s390/s390-32/start.S (_start): Likewise
5727         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
5728         (thread_start): Likewise.
5729         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
5730         (thread_start): Likewise.
5731         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
5732         (__makecontext_ret): Likewise.
5733         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
5734         (__makecontext_ret): Likewise.
5736 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
5738         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
5739         __wcschrnul): Remove attribute_hidden.
5741 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5743         regex: don't assume uint64_t or uint32_t
5744         This avoids -Werror=overflow errors for 32-bit systems in
5745         the 64-bit case.  Problem reported by Joseph Myers in:
5746         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
5747         Also, when this code is used in Gnulib it ports to platforms
5748         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
5749         them, and on some 32-bit compilers there is no uint64_t.
5750         Problem reported by Gianluigi Tiesi in:
5751         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
5752         * posix/regcomp.c (init_word_char): Don't assume that the types
5753         uint64_t and uint32_t exist.  Adapted from Gnulib patch
5754         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
5755         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
5757 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5759         * sysdeps/aarch64/memset-reg.h: New file.
5760         * sysdeps/aarch64/memset.S: Use it.
5761         (__memset): Rename to MEMSET macro.
5762         [ZVA_MACRO]: Use zva_macro.
5763         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
5764         Add memset_generic and memset_falkor.
5765         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5766         (__libc_ifunc_impl_list): Add memset ifuncs.
5767         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
5768         local variable zva_size.
5769         * sysdeps/aarch64/multiarch/memset.c: New file.
5770         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
5771         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
5772         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
5773         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
5774         (DCZID_DZP_MASK): New macro.
5775         (DCZID_BS_MASK): Likewise.
5776         (init_cpu_features): Read and set zva_size.
5777         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
5778         (struct cpu_features): New member zva_size.
5780         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
5781         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
5782         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
5784         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
5785         backwards.  Fix timing computation.
5786         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
5787         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
5788         on memset by N at a time.  Fix timing computation.
5790 2017-11-20  Florian Weimer  <fweimer@redhat.com>
5792         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
5793         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
5795 2017-11-19  Florian Weimer  <fweimer@redhat.com>
5797         manual: Document mprotect
5798         * manual/memory.texi (Memory Protection): New section.
5799         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
5800         documentation of PROT_* flags and reference the Memory Protection
5801         section instead.
5803 2017-11-19  Florian Weimer  <fweimer@redhat.com>
5805         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
5806         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
5807         (Scatter-Gather): ... to here.  Remove misleading comment.
5809 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
5811         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
5812         style.
5814         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
5815         when /proc/<pid>/setgroups does not exist.
5817 2017-11-18  Florian Weimer  <fweimer@redhat.com>
5819         * sysdeps/unix/sysv/linux/tst-ttyname.c
5820         (become_root_in_mount_ns): Remove.
5821         (do_in_chroot_1): Call support_enter_mount_namespace.
5822         (do_in_chroot_2): Likewise.
5823         (do_test): Call support_become_root early.
5825 2017-11-18  Florian Weimer  <fweimer@redhat.com>
5827         * support/namespace.h (support_enter_mount_namespace): Declare.
5828         * support/support_enter_mount_namespace.c: New file.
5829         * support/Makefile (libsupport-routines): Add
5830         support_enter_mount_namespace.
5832 2017-11-18  Florian Weimer  <fweimer@redhat.com>
5834         * support/temp_file.c (support_create_temp_directory): Use
5835         test_dir and do not rely on the presence of the XXXXXX suffix.
5836         * support/temp_file.h (support_create_temp_directory): Update
5837         comment.
5838         * support/tst-xreadlink.c (do_test): Adjust.
5839         * support/support_chroot.c (support_chroot_create): Likewise.
5841 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5843         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
5844         macro.
5845         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
5846         htm-no-suspend.
5848 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
5850         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
5851         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
5852         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
5853         (ceill): Define using libm_alias_ldouble.
5854         * sysdeps/x86_64/fpu/s_copysignl.S: Include
5855         <libm-alias-ldouble.h>.
5856         (copysignl): Define using libm_alias_ldouble.
5857         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
5858         (fabsl): Define using libm_alias_ldouble.
5859         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
5860         (floorl): Define using libm_alias_ldouble.
5861         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
5862         (fmaxl): Define using libm_alias_ldouble.
5863         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
5864         (fminl): Define using libm_alias_ldouble.
5865         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
5866         (llrintl): Define using libm_alias_ldouble.
5867         (lrintl): Likewise.
5868         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
5869         <libm-alias-ldouble.h>.
5870         (nearbyintl): Define using libm_alias_ldouble.
5871         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
5872         (truncl): Define using libm_alias_ldouble.
5873         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
5874         <libm-alias-ldouble.h>.
5875         (lrintl): Define using libm_alias_ldouble.
5877         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
5878         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
5879         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
5880         (asinhl): Define using libm_alias_ldouble.
5881         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
5882         (atanl): Define using libm_alias_ldouble.
5883         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
5884         (cbrtl): Define using libm_alias_ldouble.
5885         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
5886         (ceill): Define using libm_alias_ldouble.
5887         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
5888         (copysignl): Define using libm_alias_ldouble.
5889         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
5890         (fabsl): Define using libm_alias_ldouble.
5891         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
5892         (floorl): Define using libm_alias_ldouble.
5893         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
5894         (fmaxl): Define using libm_alias_ldouble.
5895         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
5896         (fminl): Define using libm_alias_ldouble.
5897         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
5898         (frexpl): Define using libm_alias_ldouble.
5899         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
5900         (llrintl): Define using libm_alias_ldouble.
5901         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
5902         (logbl): Define using libm_alias_ldouble.
5903         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
5904         (lrintl): Define using libm_alias_ldouble.
5905         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
5906         (nearbyintl): Define using libm_alias_ldouble.
5907         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
5908         (nextafterl): Define using libm_alias_ldouble.
5909         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
5910         (remquol): Define using libm_alias_ldouble.
5911         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
5912         (rintl): Define using libm_alias_ldouble.
5913         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
5914         (truncl): Define using libm_alias_ldouble.
5915         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
5916         (fmaxl): Define using libm_alias_ldouble.
5917         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
5918         (fminl): Define using libm_alias_ldouble.
5920         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
5921         to C syntax instead of availability and properties of types.
5922         * bits/floatn.h [!__ASSEMBLER]: Likewise.
5923         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
5924         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
5925         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
5926         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
5927         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
5929 2017-11-17  Florian Weimer  <fweimer@redhat.com>
5931         support_become_root: Enable file creation in namespaces.
5932         * support/support_become_root.c (setup_mapping): New function.
5933         (support_become_root): Call it.
5935 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
5937         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
5938         macro.
5940 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5942         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
5943         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
5945 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
5947         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
5949         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5950         version to 4.14.
5952 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5954         * INSTALL: Fix botched up regeneration.
5956         * NEWS: Update sourceare link to https.
5957         * configure.ac: Likewise.
5958         * crypt/md5test-giant.c: Likewise.
5959         * dlfcn/bug-atexit1.c: Likewise.
5960         * dlfcn/bug-atexit2.c: Likewise.
5961         * localedata/README: Likewise.
5962         * malloc/tst-mallocfork.c: Likewise.
5963         * manual/install.texi: Likewise.
5964         * nptl/tst-pthread-getattr.c: Likewise.
5965         * stdio-common/tst-fgets.c: Likewise.
5966         * stdio-common/tst-fwrite.c: Likewise.
5967         * sunrpc/Makefile: Likewise.
5968         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
5969         * wcsmbs/tst-mbrtowc2.c: Likewise.
5970         * configure: Regenerate.
5971         * INSTALL: Regenerate.
5973 2017-11-15  Martin Sebor  <msebor@redhat.com>
5975         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
5976         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
5977         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
5979 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
5981         [BZ #22145]
5982         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
5983         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
5985         [BZ #22145]
5986         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
5987         Defer is_pty check until end of the function.
5988         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
5990         [BZ #22145]
5991         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
5992         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
5993         (ttyname): Likewise.
5994         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
5995         (__ttyname_r): Likewise.
5997         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
5998         int to bool.
6000         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
6002         * manual/terminal.texi (Is It a Terminal):
6003         Mention ENODEV for ttyname and ttyname_r.
6005 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
6007         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
6008         constant and macro.
6010         * sysdeps/unix/sysv/linux/bits/mman-linux.h
6011         [__USE_MISC] (MADV_WIPEONFORK): New macro.
6012         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6013         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
6014         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6015         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6017 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6019         * signal/sigrelse.c (sigrelse): Optimize implementation.
6021         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
6022         (__sigpause): Rely on __sigsuspend to implement single thread
6023         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
6025 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
6027         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6028         kernel version to 4.14.
6030 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
6032         [BZ #22442]
6033         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
6034         Check if ifname is too long.
6036 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
6038         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
6040 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
6042         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
6043         was accidentally lost.
6045 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
6047         * localedata/locales/az_IR: Add standard copyright header.
6049 2017-11-15  Florian Weimer  <fweimer@redhat.com>
6051         [BZ #22439]
6052         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
6053         not just the top one.  Output a new "subheaps" statistic.
6055 2017-11-15  Florian Weimer  <fweimer@redhat.com>
6057         [BZ #22408]
6058         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
6059         under the per-arena lock.
6060         * malloc/Makefile (tests): Add tst-malloc_info.
6061         (tst-malloc_info): Link with libpthread.
6062         * malloc/tst-malloc_info.c: New file.
6064 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
6066         [BZ #21660]
6067         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
6068         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
6069         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
6070         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
6071         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
6072         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
6073         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
6074         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
6075         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
6076         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
6077         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
6078         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
6079         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
6080         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
6081         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
6082         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
6083         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
6084         (__floating_type): Likewise.
6085         (__real_integer_type): Likewise.
6086         (__complex_integer_type): Likewise.
6087         (__expr_is_real): Likewise.
6088         (__tgmath_real_type_sub): Likewise.
6089         (__tgmath_real_type): Likewise.
6090         (__tgmath_complex_type_sub): Likewise.
6091         (__tgmath_complex_type): Likewise.
6092         (__TGMATH_F128): Likewise.
6093         (__TGMATH_CF128): Likewise.
6094         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
6095         new macros.
6096         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
6097         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
6098         Likewise.
6099         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
6100         Likewise.
6101         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
6102         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
6103         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
6104         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
6105         Likewise.
6106         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
6107         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
6108         Likewise.
6109         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
6110         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
6111         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
6112         Likewise.
6113         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
6114         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
6115         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
6116         (cimag): Likewise.
6117         (creal): Likewise.
6119 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
6121         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
6122         for stpncpy calls for GCC 8.
6123         (test_strncat): Disable -Wstringop-truncation warning for strncat
6124         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
6125         strncat call for GCC 7.
6126         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
6127         calls for GCC 8.
6128         (test_memcmp): Use memcpy instead of strncpy for calls not copying
6129         trailing NUL.
6131         * string/bug-strncat1.c: Include <libc-diag.h>.
6132         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
6134 2017-11-13  Claude Paroz  <claude@2xlibre.net>
6136         [BZ #22387]
6137         * localedata/locales/aa_DJ: Improved readibility by replacing
6138         <Uxxxx> sequences in the ASCII printable range by their ASCII
6139         character equivalents.
6140         * localedata/locales/aa_ER: Likewise.
6141         * localedata/locales/aa_ER@saaho: Likewise.
6142         * localedata/locales/aa_ET: Likewise.
6143         * localedata/locales/af_ZA: Likewise.
6144         * localedata/locales/agr_PE: Likewise.
6145         * localedata/locales/ak_GH: Likewise.
6146         * localedata/locales/am_ET: Likewise.
6147         * localedata/locales/anp_IN: Likewise.
6148         * localedata/locales/ar_AE: Likewise.
6149         * localedata/locales/ar_BH: Likewise.
6150         * localedata/locales/ar_DZ: Likewise.
6151         * localedata/locales/ar_EG: Likewise.
6152         * localedata/locales/ar_IN: Likewise.
6153         * localedata/locales/ar_IQ: Likewise.
6154         * localedata/locales/ar_JO: Likewise.
6155         * localedata/locales/ar_KW: Likewise.
6156         * localedata/locales/ar_LB: Likewise.
6157         * localedata/locales/ar_LY: Likewise.
6158         * localedata/locales/ar_MA: Likewise.
6159         * localedata/locales/ar_OM: Likewise.
6160         * localedata/locales/ar_QA: Likewise.
6161         * localedata/locales/ar_SA: Likewise.
6162         * localedata/locales/ar_SD: Likewise.
6163         * localedata/locales/ar_SS: Likewise.
6164         * localedata/locales/ar_SY: Likewise.
6165         * localedata/locales/ar_TN: Likewise.
6166         * localedata/locales/ar_YE: Likewise.
6167         * localedata/locales/as_IN: Likewise.
6168         * localedata/locales/ast_ES: Likewise.
6169         * localedata/locales/ayc_PE: Likewise.
6170         * localedata/locales/az_AZ: Likewise.
6171         * localedata/locales/az_IR: Likewise.
6172         * localedata/locales/be_BY: Likewise.
6173         * localedata/locales/be_BY@latin: Likewise.
6174         * localedata/locales/bem_ZM: Likewise.
6175         * localedata/locales/ber_DZ: Likewise.
6176         * localedata/locales/ber_MA: Likewise.
6177         * localedata/locales/bg_BG: Likewise.
6178         * localedata/locales/bhb_IN: Likewise.
6179         * localedata/locales/bho_IN: Likewise.
6180         * localedata/locales/bi_VU: Likewise.
6181         * localedata/locales/bn_BD: Likewise.
6182         * localedata/locales/bn_IN: Likewise.
6183         * localedata/locales/bo_CN: Likewise.
6184         * localedata/locales/bo_IN: Likewise.
6185         * localedata/locales/br_FR: Likewise.
6186         * localedata/locales/brx_IN: Likewise.
6187         * localedata/locales/bs_BA: Likewise.
6188         * localedata/locales/byn_ER: Likewise.
6189         * localedata/locales/ca_AD: Likewise.
6190         * localedata/locales/ca_ES: Likewise.
6191         * localedata/locales/ca_FR: Likewise.
6192         * localedata/locales/ca_IT: Likewise.
6193         * localedata/locales/ce_RU: Likewise.
6194         * localedata/locales/chr_US: Likewise.
6195         * localedata/locales/cmn_TW: Likewise.
6196         * localedata/locales/crh_UA: Likewise.
6197         * localedata/locales/cs_CZ: Likewise.
6198         * localedata/locales/csb_PL: Likewise.
6199         * localedata/locales/cv_RU: Likewise.
6200         * localedata/locales/cy_GB: Likewise.
6201         * localedata/locales/da_DK: Likewise.
6202         * localedata/locales/de_AT: Likewise.
6203         * localedata/locales/de_BE: Likewise.
6204         * localedata/locales/de_CH: Likewise.
6205         * localedata/locales/de_DE: Likewise.
6206         * localedata/locales/de_IT: Likewise.
6207         * localedata/locales/de_LI: Likewise.
6208         * localedata/locales/de_LU: Likewise.
6209         * localedata/locales/doi_IN: Likewise.
6210         * localedata/locales/dv_MV: Likewise.
6211         * localedata/locales/dz_BT: Likewise.
6212         * localedata/locales/el_CY: Likewise.
6213         * localedata/locales/el_GR: Likewise.
6214         * localedata/locales/en_AG: Likewise.
6215         * localedata/locales/en_AU: Likewise.
6216         * localedata/locales/en_BW: Likewise.
6217         * localedata/locales/en_CA: Likewise.
6218         * localedata/locales/en_DK: Likewise.
6219         * localedata/locales/en_GB: Likewise.
6220         * localedata/locales/en_HK: Likewise.
6221         * localedata/locales/en_IE: Likewise.
6222         * localedata/locales/en_IL: Likewise.
6223         * localedata/locales/en_IN: Likewise.
6224         * localedata/locales/en_NG: Likewise.
6225         * localedata/locales/en_NZ: Likewise.
6226         * localedata/locales/en_PH: Likewise.
6227         * localedata/locales/en_SG: Likewise.
6228         * localedata/locales/en_US: Likewise.
6229         * localedata/locales/en_ZA: Likewise.
6230         * localedata/locales/en_ZM: Likewise.
6231         * localedata/locales/en_ZW: Likewise.
6232         * localedata/locales/eo: Likewise.
6233         * localedata/locales/es_AR: Likewise.
6234         * localedata/locales/es_BO: Likewise.
6235         * localedata/locales/es_CL: Likewise.
6236         * localedata/locales/es_CO: Likewise.
6237         * localedata/locales/es_CR: Likewise.
6238         * localedata/locales/es_CU: Likewise.
6239         * localedata/locales/es_DO: Likewise.
6240         * localedata/locales/es_EC: Likewise.
6241         * localedata/locales/es_ES: Likewise.
6242         * localedata/locales/es_GT: Likewise.
6243         * localedata/locales/es_HN: Likewise.
6244         * localedata/locales/es_MX: Likewise.
6245         * localedata/locales/es_NI: Likewise.
6246         * localedata/locales/es_PA: Likewise.
6247         * localedata/locales/es_PE: Likewise.
6248         * localedata/locales/es_PR: Likewise.
6249         * localedata/locales/es_PY: Likewise.
6250         * localedata/locales/es_SV: Likewise.
6251         * localedata/locales/es_US: Likewise.
6252         * localedata/locales/es_UY: Likewise.
6253         * localedata/locales/es_VE: Likewise.
6254         * localedata/locales/et_EE: Likewise.
6255         * localedata/locales/eu_ES: Likewise.
6256         * localedata/locales/eu_ES@euro: Likewise.
6257         * localedata/locales/fa_IR: Likewise.
6258         * localedata/locales/ff_SN: Likewise.
6259         * localedata/locales/fi_FI: Likewise.
6260         * localedata/locales/fil_PH: Likewise.
6261         * localedata/locales/fo_FO: Likewise.
6262         * localedata/locales/fr_BE: Likewise.
6263         * localedata/locales/fr_CA: Likewise.
6264         * localedata/locales/fr_CH: Likewise.
6265         * localedata/locales/fr_FR: Likewise.
6266         * localedata/locales/fr_LU: Likewise.
6267         * localedata/locales/fur_IT: Likewise.
6268         * localedata/locales/fy_DE: Likewise.
6269         * localedata/locales/fy_NL: Likewise.
6270         * localedata/locales/ga_IE: Likewise.
6271         * localedata/locales/gd_GB: Likewise.
6272         * localedata/locales/gez_ER: Likewise.
6273         * localedata/locales/gez_ET: Likewise.
6274         * localedata/locales/gl_ES: Likewise.
6275         * localedata/locales/gu_IN: Likewise.
6276         * localedata/locales/gv_GB: Likewise.
6277         * localedata/locales/ha_NG: Likewise.
6278         * localedata/locales/hak_TW: Likewise.
6279         * localedata/locales/he_IL: Likewise.
6280         * localedata/locales/hi_IN: Likewise.
6281         * localedata/locales/hif_FJ: Likewise.
6282         * localedata/locales/hne_IN: Likewise.
6283         * localedata/locales/hr_HR: Likewise.
6284         * localedata/locales/hsb_DE: Likewise.
6285         * localedata/locales/ht_HT: Likewise.
6286         * localedata/locales/hu_HU: Likewise.
6287         * localedata/locales/hy_AM: Likewise.
6288         * localedata/locales/i18n: Likewise.
6289         * localedata/locales/ia_FR: Likewise.
6290         * localedata/locales/id_ID: Likewise.
6291         * localedata/locales/ig_NG: Likewise.
6292         * localedata/locales/ik_CA: Likewise.
6293         * localedata/locales/is_IS: Likewise.
6294         * localedata/locales/it_CH: Likewise.
6295         * localedata/locales/it_IT: Likewise.
6296         * localedata/locales/iu_CA: Likewise.
6297         * localedata/locales/ja_JP: Likewise.
6298         * localedata/locales/ka_GE: Likewise.
6299         * localedata/locales/kk_KZ: Likewise.
6300         * localedata/locales/kl_GL: Likewise.
6301         * localedata/locales/kn_IN: Likewise.
6302         * localedata/locales/ko_KR: Likewise.
6303         * localedata/locales/kok_IN: Likewise.
6304         * localedata/locales/ks_IN: Likewise.
6305         * localedata/locales/ks_IN@devanagari: Likewise.
6306         * localedata/locales/ku_TR: Likewise.
6307         * localedata/locales/kw_GB: Likewise.
6308         * localedata/locales/ky_KG: Likewise.
6309         * localedata/locales/lb_LU: Likewise.
6310         * localedata/locales/lg_UG: Likewise.
6311         * localedata/locales/li_BE: Likewise.
6312         * localedata/locales/li_NL: Likewise.
6313         * localedata/locales/lij_IT: Likewise.
6314         * localedata/locales/ln_CD: Likewise.
6315         * localedata/locales/lo_LA: Likewise.
6316         * localedata/locales/lt_LT: Likewise.
6317         * localedata/locales/lv_LV: Likewise.
6318         * localedata/locales/lzh_TW: Likewise.
6319         * localedata/locales/mag_IN: Likewise.
6320         * localedata/locales/mai_IN: Likewise.
6321         * localedata/locales/mg_MG: Likewise.
6322         * localedata/locales/mhr_RU: Likewise.
6323         * localedata/locales/mi_NZ: Likewise.
6324         * localedata/locales/mk_MK: Likewise.
6325         * localedata/locales/ml_IN: Likewise.
6326         * localedata/locales/mn_MN: Likewise.
6327         * localedata/locales/mni_IN: Likewise.
6328         * localedata/locales/mr_IN: Likewise.
6329         * localedata/locales/ms_MY: Likewise.
6330         * localedata/locales/mt_MT: Likewise.
6331         * localedata/locales/my_MM: Likewise.
6332         * localedata/locales/nan_TW: Likewise.
6333         * localedata/locales/nan_TW@latin: Likewise.
6334         * localedata/locales/nb_NO: Likewise.
6335         * localedata/locales/nds_DE: Likewise.
6336         * localedata/locales/nds_NL: Likewise.
6337         * localedata/locales/ne_NP: Likewise.
6338         * localedata/locales/nhn_MX: Likewise.
6339         * localedata/locales/niu_NU: Likewise.
6340         * localedata/locales/niu_NZ: Likewise.
6341         * localedata/locales/nl_AW: Likewise.
6342         * localedata/locales/nl_BE: Likewise.
6343         * localedata/locales/nl_NL: Likewise.
6344         * localedata/locales/nn_NO: Likewise.
6345         * localedata/locales/nr_ZA: Likewise.
6346         * localedata/locales/nso_ZA: Likewise.
6347         * localedata/locales/oc_FR: Likewise.
6348         * localedata/locales/om_ET: Likewise.
6349         * localedata/locales/om_KE: Likewise.
6350         * localedata/locales/or_IN: Likewise.
6351         * localedata/locales/os_RU: Likewise.
6352         * localedata/locales/pa_IN: Likewise.
6353         * localedata/locales/pa_PK: Likewise.
6354         * localedata/locales/pap_AW: Likewise.
6355         * localedata/locales/pap_CW: Likewise.
6356         * localedata/locales/pl_PL: Likewise.
6357         * localedata/locales/ps_AF: Likewise.
6358         * localedata/locales/pt_BR: Likewise.
6359         * localedata/locales/pt_PT: Likewise.
6360         * localedata/locales/quz_PE: Likewise.
6361         * localedata/locales/raj_IN: Likewise.
6362         * localedata/locales/ro_RO: Likewise.
6363         * localedata/locales/ru_RU: Likewise.
6364         * localedata/locales/ru_UA: Likewise.
6365         * localedata/locales/rw_RW: Likewise.
6366         * localedata/locales/sa_IN: Likewise.
6367         * localedata/locales/sat_IN: Likewise.
6368         * localedata/locales/sc_IT: Likewise.
6369         * localedata/locales/sd_IN: Likewise.
6370         * localedata/locales/sd_IN@devanagari: Likewise.
6371         * localedata/locales/se_NO: Likewise.
6372         * localedata/locales/sgs_LT: Likewise.
6373         * localedata/locales/shs_CA: Likewise.
6374         * localedata/locales/si_LK: Likewise.
6375         * localedata/locales/sid_ET: Likewise.
6376         * localedata/locales/sk_SK: Likewise.
6377         * localedata/locales/sl_SI: Likewise.
6378         * localedata/locales/sm_WS: Likewise.
6379         * localedata/locales/so_DJ: Likewise.
6380         * localedata/locales/so_ET: Likewise.
6381         * localedata/locales/so_KE: Likewise.
6382         * localedata/locales/so_SO: Likewise.
6383         * localedata/locales/sq_AL: Likewise.
6384         * localedata/locales/sq_MK: Likewise.
6385         * localedata/locales/sr_ME: Likewise.
6386         * localedata/locales/sr_RS: Likewise.
6387         * localedata/locales/sr_RS@latin: Likewise.
6388         * localedata/locales/ss_ZA: Likewise.
6389         * localedata/locales/st_ZA: Likewise.
6390         * localedata/locales/sv_FI: Likewise.
6391         * localedata/locales/sv_SE: Likewise.
6392         * localedata/locales/sw_KE: Likewise.
6393         * localedata/locales/sw_TZ: Likewise.
6394         * localedata/locales/szl_PL: Likewise.
6395         * localedata/locales/ta_IN: Likewise.
6396         * localedata/locales/ta_LK: Likewise.
6397         * localedata/locales/tcy_IN: Likewise.
6398         * localedata/locales/te_IN: Likewise.
6399         * localedata/locales/tg_TJ: Likewise.
6400         * localedata/locales/th_TH: Likewise.
6401         * localedata/locales/the_NP: Likewise.
6402         * localedata/locales/ti_ER: Likewise.
6403         * localedata/locales/ti_ET: Likewise.
6404         * localedata/locales/tig_ER: Likewise.
6405         * localedata/locales/tk_TM: Likewise.
6406         * localedata/locales/tl_PH: Likewise.
6407         * localedata/locales/tn_ZA: Likewise.
6408         * localedata/locales/to_TO: Likewise.
6409         * localedata/locales/tpi_PG: Likewise.
6410         * localedata/locales/tr_CY: Likewise.
6411         * localedata/locales/tr_TR: Likewise.
6412         * localedata/locales/ts_ZA: Likewise.
6413         * localedata/locales/tt_RU: Likewise.
6414         * localedata/locales/tt_RU@iqtelif: Likewise.
6415         * localedata/locales/ug_CN: Likewise.
6416         * localedata/locales/uk_UA: Likewise.
6417         * localedata/locales/unm_US: Likewise.
6418         * localedata/locales/ur_IN: Likewise.
6419         * localedata/locales/ur_PK: Likewise.
6420         * localedata/locales/uz_UZ: Likewise.
6421         * localedata/locales/uz_UZ@cyrillic: Likewise.
6422         * localedata/locales/ve_ZA: Likewise.
6423         * localedata/locales/vi_VN: Likewise.
6424         * localedata/locales/wa_BE: Likewise.
6425         * localedata/locales/wae_CH: Likewise.
6426         * localedata/locales/wal_ET: Likewise.
6427         * localedata/locales/wo_SN: Likewise.
6428         * localedata/locales/xh_ZA: Likewise.
6429         * localedata/locales/yi_US: Likewise.
6430         * localedata/locales/yo_NG: Likewise.
6431         * localedata/locales/yue_HK: Likewise.
6432         * localedata/locales/yuw_PG: Likewise.
6433         * localedata/locales/zh_CN: Likewise.
6434         * localedata/locales/zh_HK: Likewise.
6435         * localedata/locales/zh_SG: Likewise.
6436         * localedata/locales/zh_TW: Likewise.
6437         * localedata/locales/zu_ZA: Likewise.
6439 2017-11-13  Florian Weimer  <fweimer@redhat.com>
6441         * support/next_to_fault.h, support/next_to_fault.c: New files.
6442         * support/Makefile (libsupport-routines): Add next_to_fault.
6443         * resolv/tst-inet_pton.c (struct next_to_fault)
6444         (next_to_fault_allocate, next_to_fault_free): Remove.
6445         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
6447 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
6449         * elf/dl-support.c: Include <dl-procruntime.c>.
6450         * include/link.h: Include <link_map.h>.
6451         * sysdeps/generic/dl-procruntime.c: New file.
6452         * sysdeps/generic/link_map.h: Likewise.
6453         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
6454         the writable ld.so namespace.
6456 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6458         timezone: pacify GCC -Wstringop-truncation
6459         Problem reported by Martin Sebor in:
6460         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
6461         * timezone/zic.c (writezone): Use memcpy, not strncpy.
6463 2017-11-12  Florian Weimer  <fweimer@redhat.com>
6465         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
6466         tst-xreadlink.
6467         (tests): Add tst-xreadlink.
6468         * support/support.h (xstrndup): Declare.
6469         * support/xunistd.h (xunlink, xreadlink): Declare.
6470         * support/temp_file.h (support_create_temp_directory): Declare.
6471         * support/temp_file.c (support_create_temp_directory): New function.
6472         * support/support_chroot.c (support_chroot_create): Use it.
6473         * support/xreadlink.c: New file.
6474         * support/xstrndup.c: Likewise.
6475         * support/xunlink.c: Likewise.
6476         * support/tst-xreadlink.c: Likewise.
6478 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
6480         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
6482 2017-11-11  Florian Weimer  <fweimer@redhat.com>
6484         [BZ #22409]
6485         [BZ #22412]
6486         * resolv/res_comp.c (printable_string, binary_hnok)
6487         (binary_leading_dash): New functions.
6488         (res_hnok): Reimplement using these functions and ns_name_pton.
6489         (res_ownok): Likewise.
6490         (res_mailok): Reimplement using printable_string, ns_name_pton and
6491         binary_hnok.
6492         (res_dnok): Reimplement using printable_string and ns_name_pton.
6493         * resolv/tst-res_hnok.c (tests): Add additional tests.
6494         (LETTERDIGITS, PRINTABLE): Define.
6495         (do_test): Adjust one_char results.
6497 2017-11-11  Florian Weimer  <fweimer@redhat.com>
6499         [BZ #22413]
6500         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
6501         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
6503 2017-11-11  Florian Weimer  <fweimer@redhat.com>
6505         * resolv/tst-ns_name_pton.c: New file.
6506         * resolv/Makefile (tests): Add tst-ns_name_pton.
6507         (tst-ns_name_pton): Link against libresolv.
6509 2017-11-11  Florian Weimer  <fweimer@redhat.com>
6511         * resolv/tst-res_hnok.c: New file.
6512         * resolv/Makefile (tests): Add tst-res_hnok.
6513         (tst-res_hnok): Link against libresolv.
6515 2017-11-11  Florian Weimer  <fweimer@redhat.com>
6517         * resolv/tst-resolv-network.c: Use test framework instead explicit
6518         main function.
6520 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
6522         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
6523         <jmp_buf-macros.h>.
6524         [!_ISOMAC] (STR_HELPER): New.
6525         [!_ISOMAC] (STR): Likewise.
6526         [!_ISOMAC] (TEST_SIZE): Likewise.
6527         [!_ISOMAC] (TEST_ALIGN): Likewise.
6528         [!_ISOMAC] (TEST_OFFSET): Likewise.
6529         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
6530         field offsets of jmp_buf as well as sigjmp_buf.
6531         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
6532         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
6533         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
6534         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
6535         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
6536         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
6537         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
6538         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
6539         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
6540         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
6541         Likewise.
6542         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
6543         Likewise.
6544         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
6545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
6546         Likewise.
6547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
6548         Likewise.
6549         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
6550         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
6551         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
6552         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
6553         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
6554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
6555         Likewise.
6556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
6557         Likewise.
6558         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
6559         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
6560         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
6562 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
6564         * include/float.h
6565         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6566         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
6567         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6568         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
6569         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6570         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
6571         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6572         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
6573         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6574         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
6575         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6576         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
6577         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6578         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
6579         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6580         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
6581         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6582         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
6583         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6584         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
6585         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6586         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
6587         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6588         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
6589         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6590         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
6591         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6592         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
6593         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6594         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
6595         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6596         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
6597         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6598         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
6599         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6600         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
6601         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6602         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
6603         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6604         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
6605         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6606         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
6607         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6608         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
6609         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6610         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
6611         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6612         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
6613         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6614         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
6615         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6616         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
6617         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6618         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
6619         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6620         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
6621         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6622         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
6623         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6624         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
6625         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6626         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
6627         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6628         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
6629         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6630         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
6631         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6632         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
6633         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6634         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
6635         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6636         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
6637         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6638         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
6639         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6640         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
6641         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6642         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
6643         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6644         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
6645         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6646         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
6647         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6648         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
6649         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6650         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
6651         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
6652         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
6654         * stdlib/tst-strtod.h (F16): New macro.
6655         (F32): Likewise.
6656         (F64): Likewise.
6657         (F32X): Likewise.
6658         (F64X): Likewise.
6659         (F128X): Likewise.
6660         (IF_FLOAT16): Likewise.
6661         (IF_FLOAT32): Likewise.
6662         (IF_FLOAT64): Likewise.
6663         (IF_FLOAT32X): Likewise.
6664         (IF_FLOAT64X): Likewise.
6665         (IF_FLOAT128X): Likewise.
6666         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
6667         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
6668         (STRTOD_TEST_FOREACH): Likewise.
6669         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
6670         (CHOOSE_f64): Likewise.
6671         (CHOOSE_f32x): Likewise.
6672         (CHOOSE_f64x): Likewise.
6674 2017-11-07  Andreas Schwab  <schwab@suse.de>
6676         * nptl/Makefile (tests-internal): Remove tst-typesizes.
6678 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
6680         [BZ #22403]
6681         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
6682         to be escaped.
6683         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
6684         to be escaped.
6686 2017-11-07  Claude Paroz  <claude@2xlibre.net>
6688         [BZ #22403]
6689         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
6690         to be escaped.
6691         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
6692         to be escaped.
6693         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
6694         to be escaped.
6696 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6698         [BZ #22298]
6699         * nptl/allocatestack.c (allocate_stack): Check if
6700         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
6701         __PTHREAD_MUTEX_HAVE_PREV is defined.
6702         * nptl/descr.h (pthread): Likewise.
6703         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
6704         Likewise.
6705         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
6706         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
6707         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
6708         * sysdeps/nptl/bits/thread-shared-types.h
6709         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
6710         defines.
6711         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
6712         of __WORDSIZE for internal layout.
6713         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
6714         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
6715         instead of __WORDSIZE whether to use an union for __spins and __list
6716         fields.
6717         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
6718         case.
6719         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
6720         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
6721         defines.
6722         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
6723         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6724         Likewise.
6725         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
6726         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6727         Likewise.
6728         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
6729         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6730         Likewise.
6731         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
6732         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6733         Likewise.
6734         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
6735         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6736         Likewise.
6737         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
6738         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6739         Likewise.
6740         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
6741         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6742         Likewise.
6743         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
6744         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6745         Likewise.
6746         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
6747         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6748         Likewise.
6749         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
6750         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6751         Likewise.
6752         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
6753         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6754         Likewise.
6755         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
6756         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6757         Likewise.
6758         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
6759         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6760         Likewise.
6761         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
6762         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
6763         Likewise.
6765         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
6766         New macros.
6767         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
6768         checks for expected input type size.
6769         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
6770         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
6771         Likewise.
6772         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
6773         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
6774         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
6775         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
6776         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
6777         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
6778         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
6779         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
6780         superflous runtime assert check.
6781         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
6782         Likewise.
6783         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
6784         Likewise.
6785         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
6786         Likewise.
6787         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
6788         Likewise.
6789         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
6790         Likewise.
6791         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
6792         Likewise.
6793         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
6794         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
6795         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
6796         Likewise.
6797         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
6798         Likewise.
6799         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6800         Likewise.
6801         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
6802         Likewise.
6803         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
6804         Likewise.
6805         * nptl/pthread_attr_setinheritsched.c
6806         (__pthread_attr_setinheritsched): Likewise.
6807         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
6808         Likewise.
6809         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
6810         Likewise.
6811         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
6812         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
6813         __old_pthread_attr_setstack): Likewise.
6814         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
6815         Likewise.
6816         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
6817         Likewise.
6818         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
6819         Likewise.
6820         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
6821         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6822         Likewise.
6823         * nptl/tst-typesizes.c: Remove file.
6825         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
6826         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
6827         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
6828         checks for internal pthread_mutex_t offsets.
6829         * sysdeps/aarch64/nptl/pthread-offsets.h
6830         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
6831         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
6832         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
6833         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
6834         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
6835         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
6836         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
6837         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
6838         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
6839         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
6840         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
6841         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
6842         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
6843         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
6844         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
6845         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
6846         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
6847         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
6849 2017-11-07  Florian Weimer  <fweimer@redhat.com>
6851         * bits/mman-linux.h: Move ...
6852         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
6853         comment.
6854         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
6855         outdated comment.
6857 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6859         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
6860         Redefine STRNLEN as __strnlen_power8.
6862 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6864         * signal/sighold.c (sighold): Optimize implementation.
6866         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
6867         __NR_rt_sigqueueinfo.
6869         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6870         __sigtimedwait.
6871         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
6872         assume __NR_rt_sigtimedwait.
6873         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
6874         and add LIBC_CANCEL_HANDLED for cancellation marking.
6875         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
6877         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
6878         (sysdeps_routines): Add memchr_noneon.
6879         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
6880         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
6881         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
6882         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
6883         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
6884         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
6885         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
6887         * sysdeps/arm/arm-ifunc.h: New file.
6888         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
6889         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
6890         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
6891         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
6892         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
6893         (__memcpy_neon): Avoid create hidden alias.
6894         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
6895         (__memcpy_vfp): Likewise.
6896         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
6897         (sysdep_routines): Add memcpy_arm.
6898         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
6900 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
6902         [BZ #22362]
6903         * Makerules (make-link-multidir): New.
6904         * config.make.in (multidir): New.
6905         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
6906         * configure: Regenerated.
6907         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
6908         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
6909         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
6910         New target.
6912 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
6914         [BZ #22402]
6915         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
6916         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
6918 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
6920         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
6921         to be escaped.
6923 2017-11-04  Florian Weimer  <fweimer@redhat.com>
6925         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
6927 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
6929         * math/math.h [__HAVE_DISTINCT_FLOAT16
6930         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
6931         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
6932         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
6933         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
6934         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
6935         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
6936         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
6937         (__MATH_TG_F32): New macro.
6938         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
6939         (__MATH_TG_F64X): Likewise.
6940         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
6941         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
6943 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
6945         * po/de.po: Update translations.
6946         * po/ru.po: Likewise.
6948 2017-11-03  Florian Weimer  <fweimer@redhat.com>
6950         * manual/filesys.texi (Hard Links): Document linkat.
6952 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
6954         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
6955         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
6956         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
6957         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
6958         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
6959         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
6960         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
6961         the same as _Float128.
6962         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
6963         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
6964         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
6966         * stdlib/stdlib.h
6967         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
6968         Declare.
6969         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
6970         Likewise.
6971         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
6972         Likewise.
6973         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6974         (strtof32x): Likewise.
6975         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6976         (strtof64x): Likewise.
6977         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6978         (strtof128x): Likewise.
6979         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6980         (strfromf16): Likewise.
6981         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6982         (strfromf32): Likewise.
6983         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6984         (strfromf64): Likewise.
6985         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6986         (strfromf32x): Likewise.
6987         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6988         (strfromf64x): Likewise.
6989         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6990         (strfromf128x): Likewise.
6991         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
6992         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
6993         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
6994         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
6995         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
6996         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
6998 2017-11-03  Richard Henderson  <rth@twiddle.net>
7000         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
7002 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7004         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
7006 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7008         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
7009         DT_TLSDESC_GOT initialization.
7010         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
7011         (_dl_tlsdesc_resolve_hold): Likewise.
7012         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
7013         (_dl_tlsdesc_resolve_hold): Likewise.
7014         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
7015         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
7017 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7019         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
7021 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7023         [BZ #18572]
7024         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
7025         non-lazily for R_ARM_TLS_DESC.
7027 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7029         [BZ #17078]
7030         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
7031         R_ARM_TLS_DESC case.
7032         (elf_machine_lazy_rel): Remove the prelink check.
7034 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7036         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
7037         DT_TLSDESC_GOT initialization.
7038         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
7039         (_dl_tlsdesc_resolve_rela): Likewise.
7040         (_dl_tlsdesc_resolve_hold): Likewise.
7041         (_dl_tlsdesc_undefweak): Remove ldar.
7042         (_dl_tlsdesc_dynamic): Likewise.
7043         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
7044         (_dl_tlsdesc_resolve_rela): Likewise.
7045         (_dl_tlsdesc_resolve_hold): Likewise.
7046         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
7047         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
7048         (_dl_tlsdesc_resolve_rela): Likewise.
7049         (_dl_tlsdesc_resolve_hold): Likewise.
7051 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7053         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
7054         binding and initialization non-lazily for R_AARCH64_TLSDESC.
7056 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7058         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
7059         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
7061 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
7063         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
7064         Declare.
7065         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
7066         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
7067         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
7068         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
7069         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
7070         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
7071         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
7072         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
7073         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
7074         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
7075         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
7077 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
7079         [BZ #22382]
7080         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
7081         * localedata/locales/tpi_PG: Add standard header.
7083 2017-11-02  Florian Weimer  <fweimer@redhat.com>
7085         test-errno-linux: quotactl can fail with EPERM in containers.
7086         * sysdeps/unix/sysv/linux/test-errno-linux.c
7087         (LIST, LIST_FORWARD): New macros.
7088         (check_error_in_list): New function.
7089         (test_wrp_rv): Accept list of permitted error codes.
7090         (test_wrp_rv2): Remove.
7091         (test_wrp): Call test_wrp_rv with list of error codes.
7092         (test_wrp2): Accept list of error codes.
7093         (do_test): Adjust.  Allow EPERM for quotactl.
7095 2017-11-02  Florian Weimer  <fweimer@redhat.com>
7097         * stdio-common/bug16.c (do_test): Use array_length.
7098         * stdio-common/errlist.c (_sys_nerr): Likewise.
7099         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
7100         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
7101         * stdio-common/psiginfo.c (psiginfo): Use array_length.
7102         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
7103         (do_test): Use array_length.
7104         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
7105         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
7106         * stdio-common/tst-printf-round.c (do_test): Likewise.
7107         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
7108         (CHECK): Use array_length.
7109         * stdio-common/tstdiomisc.c (t3, F): Likewise.
7110         * stdio-common/tstscanf.c (main): Likewise.
7111         * stdio-common/vfprintf.c (process_string_arg): Likewise.
7113 2017-11-02  Florian Weimer  <fweimer@redhat.com>
7115         Add array_length and array_end macros.
7116         * include/array_length.h: New file.
7118 2017-11-02  Florian Weimer  <fweimer@redhat.com>
7120         [BZ #22332]
7121         * posix/tst-glob-tilde.c (do_noescape): New variable.
7122         (one_test): Process it.
7123         (do_test): Set do_noescape.  Add unescaping test case.
7125 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
7127         * math/complex.h
7128         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
7129         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
7130         with appropriate macros defined and undefined.
7131         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
7132         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
7133         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
7134         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
7135         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
7136         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
7137         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
7138         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
7139         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
7140         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
7142         * math/complex.h
7143         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
7144         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
7145         that for long double.  Do not condition define and undefine of
7146         _Mdouble_complex_ on [__CFLOAT128].
7148 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7150         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
7151         of <sysdeps/generic/sysdep.h>.
7152         (ALIGNARG): Removed.
7153         (ASM_SIZE_DIRECTIVE): Likewise.
7154         (ENTRY): Likewise.
7155         (END): Likewise.
7156         (ENTRY_CHK): Likewise.
7157         (END_CHK): Likewise.
7158         (syscall_error): Likewise.
7159         (mcount): Likewise.
7160         (PSEUDO_END): Likewise.
7161         (L): Likewise.
7162         (atom_text_section): Likewise.
7163         * sysdeps/x86/sysdep.h: New file.
7164         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
7165         of <sysdeps/generic/sysdep.h>.
7166         (ALIGNARG): Removed.
7167         (ASM_SIZE_DIRECTIVE): Likewise.
7168         (ENTRY): Likewise.
7169         (END): Likewise.
7170         (ENTRY_CHK): Likewise.
7171         (END_CHK): Likewise.
7172         (syscall_error): Likewise.
7173         (mcount): Likewise.
7174         (PSEUDO_END): Likewise.
7175         (L): Likewise.
7176         (atom_text_section): Likewise.
7178 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
7180         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
7181         category of LC_CTYPE set to "i18n:2012".
7182         * localedata/locales/i18n_ctype: Regenerate.
7184 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
7186         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
7187         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
7188         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7189         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7191         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
7192         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
7193         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
7194         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
7196 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
7198         * math/complex.h
7199         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
7200         New macro.
7201         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
7202         Likewise.
7203         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
7204         Likewise.
7205         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7206         (CMPLXF32X): Likewise.
7207         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7208         (CMPLXF64X): Likewise.
7209         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7210         (CMPLXF128X): Likewise.
7212         * math/math.h
7213         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
7214         (__MATH_EVAL_FMT2): Define to add 0.0f.
7216 2017-10-31  Alan Modra  <amodra@gmail.com>
7218         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
7219         include sysdep.h.
7220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
7221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
7222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7224         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
7225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
7226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
7227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
7228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
7229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
7230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
7233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
7234         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
7235         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
7236         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
7237         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
7238         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
7239         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
7240         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
7241         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
7242         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
7243         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
7244         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
7245         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
7246         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
7247         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
7248         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
7249         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
7250         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
7251         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
7252         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
7253         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
7254         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
7255         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
7256         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
7257         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
7258         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
7259         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
7260         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
7261         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
7262         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
7263         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
7264         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
7265         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
7266         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
7267         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
7268         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
7269         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
7270         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
7271         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
7272         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
7273         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
7274         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
7275         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
7276         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
7277         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
7278         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
7279         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
7280         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
7281         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
7282         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
7283         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
7284         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
7285         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
7286         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
7287         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
7288         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
7290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
7291         include sysdep.h and math_ldbl_opt.h.
7293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
7294         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
7295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
7296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
7297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
7298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
7299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
7300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
7301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
7302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
7303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
7304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
7305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
7306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
7307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
7308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
7309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
7310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
7311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
7312         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
7313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
7314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
7315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
7316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
7317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
7318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
7320 2017-10-31  Alan Modra  <amodra@gmail.com>
7322         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
7323         string/strncase_l.c, not string/strncase.c.
7324         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
7325         (libc_hidden_def): Redefine.
7327 2017-10-31  Alan Modra  <amodra@gmail.com>
7329         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
7330         (__STRCMP, STRCMP, __strcasecmp_l): Define.
7331         (__strcasecmp): Don't define.
7333 2017-10-31  Alan Modra  <amodra@gmail.com>
7335         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
7336         IS_IN (libc).
7337         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
7338         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
7339         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
7341 2017-10-31  Alan Modra  <amodra@gmail.com>
7343         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
7344         USE_AS_STPNCPY.
7346 2017-10-31  Alan Modra  <amodra@gmail.com>
7348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
7349         Redefine only when SHARED.
7351 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
7353         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
7354         Include <bits/math-finite.h> with appropriate macros defined and
7355         undefined.
7356         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
7357         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
7358         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
7359         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
7360         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
7362         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
7363         [!_Mlong_double_] (_Mlong_double_): Likewise.
7364         [!_Mfloat16_] (_Mfloat16_): Likewise.
7365         [!_Mfloat32_] (_Mfloat32_): Likewise.
7366         [!_Mfloat64_] (_Mfloat64_): Likewise.
7367         [!_Mfloat128_] (_Mfloat128_): Likewise.
7368         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
7369         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
7370         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
7371         (_Mdouble_): Define without indirection through those macros.
7372         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
7373         [!_Mfloat128_] (_Mfloat128_): Likewise.
7374         [_Mlong_double_] (_Mlong_double_): Likewise.
7375         (_Mdouble_): Define without indirection through those macros.
7376         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
7377         not add -D_Mlong_double_=double.
7378         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
7379         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
7381 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7383         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
7385 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7387         * sysdeps/x86/libc-start.c: Reformat.
7389 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7391         [BZ #22353]
7392         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
7393         (1): Renamed to ...
7394         (L(Src0)): This.
7395         (L(Src1)): New.
7396         (L(Src2)): Likewise.
7397         (L(1)): Renamed to ...
7398         (L(Src3)): This.
7400 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
7402         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
7403         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
7404         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
7405         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
7406         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
7407         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
7408         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
7409         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
7410         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
7411         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
7412         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
7413         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
7414         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
7415         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
7416         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
7417         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
7418         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
7419         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
7420         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
7421         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
7422         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
7423         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
7424         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
7425         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
7426         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
7427         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
7428         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
7429         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
7430         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
7431         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
7432         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
7433         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
7434         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
7435         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
7436         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
7437         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
7438         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
7439         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
7440         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
7441         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
7442         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
7443         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
7444         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
7445         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
7446         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
7447         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
7448         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
7449         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
7450         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
7451         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
7452         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
7453         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
7454         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
7455         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
7456         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
7457         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
7458         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
7459         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
7460         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
7461         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
7462         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
7463         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
7464         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
7465         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
7466         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
7467         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
7469 2017-10-30  Florian Weimer  <fweimer@redhat.com>
7471         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
7472         always defined.
7473         * io/tst-mkdirat.c (do_test): Likewise.
7474         * io/tst-mkfifoat.c (do_test): Likewise.
7475         * io/tst-mknodat.c (do_test): Likewise.
7476         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
7477         * locale/programs/locale.c (select_dirs): Likewise.
7478         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
7479         * posix/bug-glob2.c (my_readdir): Likewise.
7480         * posix/tst-dir.c (main): Likewise.
7481         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
7482         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
7484 2017-10-30  Florian Weimer  <fweimer@redhat.com>
7486         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
7487         just __USE_GNU.
7489 2017-10-30  Florian Weimer  <fweimer@redhat.com>
7491         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
7492         Convert to support/test-driver.c.
7493         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
7494         New macro parameters.
7495         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
7496         * posix/tst-gnuglob.c: New file.
7497         * posix/tst-gnuglob64.c: Likewise.
7498         * posix/Makefile (tests): Add tst-gnuglob64.
7500 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
7502         [BZ #19485]
7503         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
7504         and use a better translation for March in “mon”.
7505         * localedata/locales/csb_PL: Use more ASCII to improve the
7506         readability of the source.
7508 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
7510         [BZ #13953]
7511         * localedata/locales/km_KH: Use ASCII as much
7512         as possible for better readability of the source and
7513         remove useless comments.
7514         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
7515         was commented out and apparently wrong anyway because it was
7516         using Lao characters. If Buddhist era should be used
7517         for km_KH, a native speaker should write the correct formaat
7518         for Khmer.
7519         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
7520         (According to CLDR, the first weekday for Cambodia is Sunday).
7521         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
7522         (These were using Lao characters which must be wrong. If we get
7523         the correct data from a native speaker, we could add it back, until
7524         then it is better not to have name_mr and name_mrs at all than
7525         having it wrong).
7527 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
7529         * locale/loadlocale.c: Correct size of
7530         _nl_value_type_LC_<category> arrays.
7532 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
7534         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
7535         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
7536         with appropriate macros defined and undefined.
7537         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
7538         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
7539         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
7540         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
7541         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
7543 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
7545         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
7546         "-O2 -march=i586".
7548 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
7550         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
7551         with lowercase letters to make it agree with CLDR.
7553 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
7555         [BZ #15260]
7556         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
7557         first letters of yesstr and nostr in yesexpr and noexpr,
7558         not for the full words.
7559         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
7560         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
7561         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
7562         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
7563         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
7564         first letters of yesstr and nostr in yesexpr and noexpr,
7565         until now only English was matched in yesexpr and noexpr.
7566         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
7567         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
7568         fil but not for tl. As tl and fil are very similar, using fil
7569         is probably better than using English.
7571 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
7573         [BZ #21706]
7574         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
7575         in yesstr and nostr.
7577 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
7579         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
7580         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
7581         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
7582         Likewise.
7583         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
7584         Likewise.
7585         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
7586         Likewise.
7587         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
7588         Likewise.
7589         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7590         (SNANF128X): Likewise.
7592         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
7593         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
7594         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7595         (HUGE_VAL_F32): Likewise.
7596         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7597         (HUGE_VAL_F64): Likewise.
7598         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7599         (HUGE_VAL_F32X): Likewise.
7600         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7601         (HUGE_VAL_F64X): Likewise.
7602         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7603         (HUGE_VAL_F128X): Likewise.
7605 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
7607         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
7608         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
7609         for the br_FR locale.
7611 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
7613         [BZ #21706]
7614         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
7616 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
7618         * locale/programs/record-status.h: Define globals, and function
7619         prototypes. Move function bodies...
7620         * locale/programs/record-status.c: ... to here. New file.
7621         * iconv/Makefile (iconv_prog-modules): Add record-status.
7622         * locale/Makefile (lib-modules): Likewise.
7623         * iconv/iconv_prog.c: Remove verbose.
7624         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
7625         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
7626         record a warning about ASCII compatibility.
7627         * locale/programs/ld-monetary.c (monetary_finish): If
7628         warn_int_curr_symbol is true then record a warning about the symbol
7629         not being in our ISO 4217 list.
7630         * locale/programs/locale.c: Include record-status.h. Remove verbose.
7631         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
7632         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
7633         (OPT_NO_WARN): Define.
7634         (OPT_WARN): Define.
7635         (options): Add entry for --no-warnings, and --warnings.
7636         (set_warnings): New function to enable/disable warnings.
7637         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
7638         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
7639         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
7640         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
7641         Pass flags to generate_locale.
7642         (generate_locale): Accept new flag argument and pass it to localedef
7643         invocation.
7644         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
7645         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
7647         * localedata/Makefile (test-input-data): Use full file name.
7648         * localedata/da_DK.in: Rename to...
7649         * localedata/da_DK.ISO-8859-1.in: ...this.
7650         * localedata/de_DE.in: Rename to...
7651         * localedata/de_DE.ISO-8859-1.in: ...this.
7652         * localedata/en_US.in: Rename to...
7653         * localedata/en_US.ISO-8859-1.in: ...this.
7654         * localedata/fr_FR.in: Rename to...
7655         * localedata/fr_FR.UTF-8.in: ... this.
7656         * localedata/hr_HR.in: Rename to...
7657         * localedata/hr_HR.ISO-8859-2.in: ...this.
7658         * localedata/hu_HU.in: Rename to...
7659         * localedata/hu_HU.UTF-8.in: ...this.
7660         * localedata/si_LK.in: Rename to...
7661         * localedata/si_LK.UTF-8.in: ...this.
7662         * localedata/sv_SE.in: Rename to...
7663         * localedata/sv_SE.ISO-8859-1.in: ...this.
7664         * localedata/tr_TR.in: Rename to...
7665         * localedata/tr_TR.UTF-8.in: ...this.
7666         * localedata/uk_UA.in: Rename to...
7667         * localedata/uk_UA.UTF-8.in: ...this.
7668         * localedata/sort-test.sh: Test file is locale name with the
7669         suffix.
7671         * localedata/unicode-gen/Makefile (check_i18n): Rename to
7672         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
7673         file.
7674         * localedata/locales/i18n_ctype: Regenerate.
7675         * localedata/locales/tr_TR: Likewise.
7676         * localedata/locales/translit_circle: Likewise.
7677         * localedata/locales/translit_cjk_compat: Likewise.
7678         * localedata/locales/translit_combining: Likewise.
7679         * localedata/locales/translit_compat: Likewise.
7680         * localedata/locales/translit_font: Likewise.
7681         * localedata/locales/translit_fraction: Likewise.
7683 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7685         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
7686         lxvd2x/stxvd2x with lvx/stvx.
7687         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
7689 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
7691         * include/alloc_buffer.h: Replace "if if " with "if " in
7692         comments.
7693         * sysdeps/mips/memcpy.S: Likkewise.
7694         * sysdeps/mips/memset.S: Likewise.
7695         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7696         Likewise.
7697         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
7698         Likewise.
7699         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
7700         Likewise.
7702 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7704         [BZ #15261]
7705         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
7706         yesexpr and noexpr.
7707         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
7708         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
7709         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
7710         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
7711         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
7712         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
7713         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
7715 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7717         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
7718         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
7719         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
7720         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
7721         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
7722         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
7723         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
7724         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
7725         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
7726         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
7727         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
7728         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
7730 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7732         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
7733         as possible for better readability of the source.
7734         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
7735         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
7736         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
7737         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
7738         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
7739         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
7740         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
7741         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
7742         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
7743         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
7744         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
7745         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
7746         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
7747         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
7748         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
7749         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
7750         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
7751         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
7752         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
7753         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
7754         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
7755         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
7756         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
7757         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
7758         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
7759         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
7760         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
7761         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
7762         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
7763         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
7764         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
7765         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
7766         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
7767         * localedata/locales/en_US (LC_MESSAGES): Likewise.
7768         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
7769         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
7770         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
7771         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
7772         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
7773         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
7774         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
7775         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
7776         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
7777         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
7778         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
7779         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
7780         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
7781         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
7782         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
7783         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
7784         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
7785         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
7786         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
7787         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
7788         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
7789         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
7790         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
7791         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
7792         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
7793         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
7794         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
7795         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
7796         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
7797         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
7798         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
7799         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
7800         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
7801         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
7802         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
7803         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
7804         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
7805         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
7806         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
7807         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
7808         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
7809         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
7810         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
7811         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
7812         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
7813         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
7814         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
7815         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
7816         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
7817         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
7818         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
7819         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
7820         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
7821         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
7822         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
7823         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
7824         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
7825         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
7826         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
7827         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
7828         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
7829         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
7830         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
7831         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
7832         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
7833         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
7834         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
7835         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
7836         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
7837         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
7838         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
7839         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
7840         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
7841         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
7842         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
7843         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
7844         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
7845         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
7846         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
7847         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
7848         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
7849         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
7850         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
7851         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
7852         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
7853         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
7854         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
7855         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
7856         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
7857         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
7858         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
7859         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
7860         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
7861         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
7862         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
7863         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
7864         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
7865         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
7866         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
7867         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
7868         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
7869         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
7870         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
7871         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
7872         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
7873         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
7874         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
7875         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
7876         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
7877         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
7878         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
7879         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
7880         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
7881         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
7882         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
7883         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
7884         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
7885         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
7886         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
7887         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
7888         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
7889         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
7890         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
7891         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
7892         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
7893         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
7894         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
7895         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
7896         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
7897         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
7898         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
7899         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
7900         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
7901         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
7902         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
7903         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
7904         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
7905         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
7906         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
7907         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
7909 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7911         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
7912         (Use first letters of yesstr and nostr correctly instead of using
7913         full words).
7915 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7917         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
7918         (Use first letters of yesstr and nostr correctly).
7920 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7922         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
7923         also check for the first characters of yesstr and nostr.
7924         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
7925         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
7927 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7929         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
7930         also check for Chinese characters.
7932 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7934         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
7935         match also for the contents of yesstr and nostr. As the first letter
7936         of yesstr and nostr is equal, checking only for the first letter
7937         is not enough.
7939 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7941         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
7942         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
7944 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7946         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
7947         of main contributor.
7949 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7951         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
7952         instead of using English.
7954 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7956         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
7957         by including the first letters of nostr and yesexpr in the regexp.
7958         Also make it more readable by using ASCII where possible.
7960 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
7962         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
7963         the first letter of nostr in the regexp. It agrees with CLDR now.
7964         Also make it more readable by using ASCII where possible.
7966 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
7968         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
7969         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
7970         these strings contain a U+17D6 (which somewhat looks like a colon)
7971         instead of a real colon to separate the full words for “yes”
7972         and “no” from the single letter responses.
7974 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
7976         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
7977         it agree with CLDR (include the first letter of yesstr).
7978         Also make it more readable by using ASCII where possible.
7980 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
7982         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
7983         and improve yesexpr and noexpr. The yesstr and nostr apparently
7984         came from CLDR. And CLDR has a bug there: these strings contain
7985         a U+0903 (which looks like a colon) instead of a real colon
7986         to separate the full words for “yes” and “no” from the single
7987         letter responses.
7989 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
7991         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
7992         letters of the full yesstr and nostr in yesexpr and noexpr.
7994 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
7996         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
7997         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
7998         * localedata/locales/an_ES: Make source more readable by using ASCII
7999         where possible.
8001 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
8003         [BZ #20952]
8004         * localedata/locales/yuw_PG: New file.
8005         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
8006         * locale/iso-639.def: Add Yau (Uruwa).
8008 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
8010         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
8012 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
8014         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
8015         (__libc_realloc): Likewise.
8016         (_mid_memalign): Likewise.
8017         (__libc_calloc): Likewise.
8019 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
8021         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
8022         by adding the generic +1 and -0 as in all other locales.
8023         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
8024         day names and make it more readable by using ASCII where possible.
8026 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
8028         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
8029         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
8031 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8033         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
8034         WNOHANG in waitpid call.
8036 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8038         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
8039         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
8041         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
8042         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
8043         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
8044         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
8045         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
8046         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
8047         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
8048         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
8049         variables.
8051 2017-10-23  Michael Collison  <michael.collison@arm.com>
8053         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
8054         with __builtin_sqrt.
8055         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
8056         with __builtin_sqrtf.
8057         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
8058         with __builtin_ceil.
8059         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
8060         with __builtin_ceilf.
8061         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
8062         with __builtin_floor.
8063         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
8064         with __builtin_floorf.
8065         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
8066         with __builtin_fma.
8067         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
8068         with __builtin_fmaf.
8069         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
8070         with __builtin_fmax.
8071         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
8072         with __builtin_fmaxf.
8073         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
8074         with __builtin_fmin.
8075         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
8076         with __builtin_fminf.
8077         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
8078         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
8079         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
8080         with builtin_rint and conversion to int.
8081         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
8082         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
8083         with builtin_llround.
8084         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
8085         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
8086         with builtin_rint and conversion to long int.
8087         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
8088         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
8089         with builtin_lround.
8090         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
8091         with builtin_lroundf.
8092         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
8093         statements with __builtin_nearbyint.
8094         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
8095         statements with __builtin_nearbyintf.
8096         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
8097         with __builtin_rint.
8098         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
8099         with __builtin_rintf.
8100         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
8101         with __builtin_round.
8102         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
8103         with __builtin_roundf.
8104         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
8105         with __builtin_trunc.
8106         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
8107         with __builtin_truncf.
8108         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
8109         and s_l[l]round[f].c too.
8111 2017-10-23  Alan Modra  <amodra@gmail.com>
8113         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
8114         Adjust stack after restoring regs.  Add missing LR cfi_restore.
8116 2017-10-23  Alan Modra  <amodra@gmail.com>
8118         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
8119         Move LR save and frame setup/teardown and LR restore to
8120         immediately around memset call.  Provide cfi.
8122 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8124         * sysdeps/i386/fpu/e_powf.S: Removed.
8125         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
8126         * sysdeps/i386/fpu/w_powf.c: Likewise.
8127         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
8128         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8129         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
8130         Add e_powf-sse2.
8131         (CFLAGS-e_powf-sse2.c): New.
8132         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
8133         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
8135 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8137         * sysdeps/i386/fpu/e_log2f.S: Removed.
8138         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
8139         * sysdeps/i386/fpu/w_log2f.c: Likewise.
8140         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
8141         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8142         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
8143         Add e_log2f-sse2.
8144         (CFLAGS-e_log2f-sse2.c): New.
8145         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
8146         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
8148 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8150         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8151         Add e_powf-fma.
8152         (CFLAGS-e_powf-fma.c): New.
8153         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
8154         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
8156 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8158         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8159         Add e_log2f-fma.
8160         (CFLAGS-e_log2f-fma.c): New.
8161         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
8162         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
8164 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8166         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8167         Add e_logf-fma.
8168         (CFLAGS-e_logf-fma.c): New.
8169         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
8170         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
8172 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8174         * sysdeps/i386/fpu/e_logf.S: Removed.
8175         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
8176         * sysdeps/i386/fpu/w_logf.c: Likewise.
8177         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
8178         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
8179         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8180         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
8181         Add e_logf-sse2.
8182         (CFLAGS-e_logf-sse2.c): New.
8183         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
8184         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
8186 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8188         * sysdeps/i386/fpu/e_exp2f.S: Removed.
8189         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
8190         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
8191         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8192         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
8193         Add e_exp2f-sse2.
8194         (CFLAGS-e_exp2f-sse2.c): New.
8195         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
8196         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
8198 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8200         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8201         Add e_exp2f-fma.
8202         (CFLAGS-e_exp2f-fma.c): New.
8203         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
8204         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
8206 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8208         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
8209         * sysdeps/i386/fpu/e_expf.S: Likewise.
8210         * sysdeps/i386/fpu/math_errf.c: Likewise.
8211         * sysdeps/i386/fpu/w_expf.c: Likewise.
8212         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
8213         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
8214         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
8215         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
8216         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8217         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
8218         Remove e_expf-ia32.
8219         (CFLAGS-e_expf-sse2.c): New.
8220         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
8221         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
8223 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
8225         * sysdeps/x86_64/fpu/e_expf.S: Removed.
8226         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
8227         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
8228         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
8229         e_expf.c.
8230         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
8231         New.
8232         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
8233         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
8234         Renamed to ...
8235         (__redirect_expf): This.
8236         (SYMBOL_NAME): Changed to expf.
8237         (__ieee754_expf): Renamed to ...
8238         (__expf): This.
8239         (__GI___expf): This.
8240         (__ieee754_expf): Add strong_alias.
8241         (__expf_finite): Likewise.
8242         (__expf): New.
8243         Include <sysdeps/ieee754/flt-32/e_expf.c>.
8245 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8247         [BZ #22332]
8248         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
8249         unescaping.
8251 2017-10-21  Florian Weimer  <fweimer@redhat.com>
8253         * posix/Makefile (tests): Add tst-glob-tilde.
8254         (tests-special): Add tst-glob-tilde-mem.out
8255         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
8256         (tst-glob-tilde-mem.out): Add mtrace check.
8257         * posix/tst-glob-tilde.c: New file.
8259 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
8261         * bits/floatn-common.h: New file.
8262         * math/Makefile (headers): Add bits/floatn-common.h.
8263         * bits/floatn.h: Include <bits/floatn-common.h>.
8264         * sysdeps/ia64/bits/floatn.h: Likewise.
8265         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
8266         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
8267         * sysdeps/powerpc/bits/floatn.h: Likewise.
8268         * sysdeps/x86/bits/floatn.h: Likewise.
8270 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8272         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
8273         indicates whether compiler emits an warning for alias for
8274         functions with incompatible types.
8276         [BZ #22273]
8277         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
8278         the auxiliary process is terminated by a signal before calling _exit
8279         or execve.
8281 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8283         [BZ #21265]
8284         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
8285         New.
8286         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
8287         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
8288         and bit_arch_XSAVEC_Usable if needed.
8289         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
8290         and bit_arch_Use_dl_runtime_resolve_opt.
8291         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
8292         Removed.
8293         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
8294         (bit_arch_Prefer_No_AVX512): Updated.
8295         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
8296         (bit_arch_XSAVEC_Usable): New.
8297         (STATE_SAVE_OFFSET): Likewise.
8298         (STATE_SAVE_MASK): Likewise.
8299         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
8300         (cpu_features): Add xsave_state_size and xsave_state_full_size.
8301         (index_arch_Use_dl_runtime_resolve_opt): Removed.
8302         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
8303         (index_arch_XSAVEC_Usable): New.
8304         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8305         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
8306         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
8307         is enabled.
8308         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8309         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
8310         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
8311         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
8312         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
8313         _dl_runtime_resolve_xsavec.
8314         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
8315         Removed.
8316         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
8317         instead of VEC_SIZE.
8318         (REGISTER_SAVE_BND0): Removed.
8319         (REGISTER_SAVE_BND1): Likewise.
8320         (REGISTER_SAVE_BND3): Likewise.
8321         (REGISTER_SAVE_RAX): Always defined to 0.
8322         (VMOV): Removed.
8323         (_dl_runtime_resolve_avx): Likewise.
8324         (_dl_runtime_resolve_avx_slow): Likewise.
8325         (_dl_runtime_resolve_avx_opt): Likewise.
8326         (_dl_runtime_resolve_avx512): Likewise.
8327         (_dl_runtime_resolve_avx512_opt): Likewise.
8328         (_dl_runtime_resolve_sse): Likewise.
8329         (_dl_runtime_resolve_sse_vex): Likewise.
8330         (USE_FXSAVE): New.
8331         (_dl_runtime_resolve_fxsave): Likewise.
8332         (USE_XSAVE): Likewise.
8333         (_dl_runtime_resolve_xsave): Likewise.
8334         (USE_XSAVEC): Likewise.
8335         (_dl_runtime_resolve_xsavec): Likewise.
8336         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
8337         Removed.
8338         (_dl_runtime_resolve_avx512_opt): Likewise.
8339         (_dl_runtime_resolve_avx): Likewise.
8340         (_dl_runtime_resolve_avx_opt): Likewise.
8341         (_dl_runtime_resolve_sse): Likewise.
8342         (_dl_runtime_resolve_sse_vex): Likewise.
8343         (_dl_runtime_resolve_fxsave): New.
8344         (_dl_runtime_resolve_xsave): Likewise.
8345         (_dl_runtime_resolve_xsavec): Likewise.
8347 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8349         [BZ #22320]
8350         CVE-2017-15670
8351         * posix/glob.c (__glob): Fix one-byte overflow.
8353 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
8355         * malloc/malloc.c (sysdep-cancel.h): Add include.
8357 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
8359         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
8361 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
8363         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
8364         (tests): Remove $(objpfx)ga_test depdendency.
8365         * resolv/ga_test.c: Remove file.
8367 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
8369         [BZ #18812]
8370         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
8371         * localedata/locales/kab_DZ: New file.
8373 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8375         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
8376         _dl_relocate_static_pie instead of _dl_start to compute load
8377         address in static PIE.
8379 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8381         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
8383 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
8385         [BZ #13605]
8386         * localedata/SUPPORTED: Add shn_MM/UTF-8.
8387         * localedata/locales/shn_MM: New file.
8389 2017-10-20  Florian Weimer  <fweimer@redhat.com>
8391         [BZ #22321]
8392         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
8393         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
8394         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
8395         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
8396         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
8397         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
8399 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
8401         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8403 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
8405         * sysdeps/mips/ieee754/bits/floatn.h: New file.
8407         [BZ #22322]
8408         * sysdeps/mips/bits/long-double.h: Move to ....
8409         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
8411 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
8413         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
8415 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
8416             H.J. Lu  <hongjiu.lu@intel.com>
8418         [BZ #22299]
8419         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
8420         GLRO(dl_platform) to NULL.
8421         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
8422         (modules-names): Add tst-platformmod-1 and
8423         x86_64/tst-platformmod-2.
8424         (CFLAGS-tst-platform-1.c): New.
8425         (CFLAGS-tst-platformmod-1.c): Likewise.
8426         (CFLAGS-tst-platformmod-2.c): Likewise.
8427         (LDFLAGS-tst-platformmod-2.so): Likewise.
8428         ($(objpfx)tst-platform-1): Likewise.
8429         ($(objpfx)tst-platform-1.out): Likewise.
8430         (tst-platform-1-ENV): Likewise.
8431         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
8432         * sysdeps/x86_64/tst-platform-1.c: New file.
8433         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
8434         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
8436 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
8438         [BZ #13994]
8439         * locale/iso-639.def: Add Karbi.
8440         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
8441         * localedata/locales/mjw_IN: New file.
8443 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
8445         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
8446         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
8447         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
8448         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
8449         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
8450         (libm_alias_ldouble_other_r): Also create _Float128 alias.
8451         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
8452         <bits/floatn.h>.
8453         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
8454         (libm_alias_ldouble_other_r): Also create _Float128 alias.
8455         * manual/math.texi (Mathematics): Document additional architecture
8456         support for _Float128.
8457         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
8458         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8459         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8460         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8461         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8462         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8463         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8464         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8465         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8466         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8467         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8468         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8469         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8470         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8471         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8473 2017-10-18  Renlin Li  <renlin.li@arm.com>
8475         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
8476         _DYNAMIC symbol to calculate load address.
8478 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
8480         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
8481         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
8482         summary bits.
8483         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
8484         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
8486 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
8488         [BZ #16777]
8489         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
8490         and improve readability by using more ASCII.
8491         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
8492         and improve readability by using more ASCII.
8494 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
8496         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
8497         not all targets support atomics on bool.
8499 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
8501         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
8502         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
8503         __f128.
8504         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
8505         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
8506         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
8507         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
8508         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
8509         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
8511 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8513         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
8514         defines.
8516 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
8518         [BZ #22159]
8519         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
8520         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
8521         (do_check_remalloced_chunk): Fix build bug.
8522         (do_check_malloc_state): Add assert that checks arena->top.
8523         (malloc_consolidate): Remove initialization.
8524         (int_mallinfo): Remove call to malloc_consolidate.
8525          (__libc_mallopt): Clarify why malloc_consolidate is needed.
8527 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
8529         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
8530         (have_fastchunks): Remove.
8531         (clear_fastchunks): Remove.
8532         (set_fastchunks): Remove.
8533         (malloc_state): Add have_fastchunks.
8534         (malloc_init_state): Use have_fastchunks.
8535         (do_check_malloc_state): Remove incorrect invariant checks.
8536         (_int_malloc): Use have_fastchunks.
8537         (_int_free): Likewise.
8538         (malloc_consolidate): Likewise.
8540 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
8542         * malloc/malloc.c (tcache_put): Inline.
8543         (tcache_get): Inline.
8545 2017-10-17  Jordi Mallach  <jordi@gnu.org>
8547         Aurelien Jarno  <aurelien@aurel32.net>
8548         [BZ #2522]
8549         * localedata/locales/ca_ES@valencia: New file.
8550         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
8552 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
8554         [BZ #22296]
8555         * math/math.h: Let signbit use the builtin in C++ mode with gcc
8556         < 6.x
8558 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8560         * scripts/build-many-glibcs.py (Context.add_all_configs):
8561         Add arm-linux-gnueabihf multiarch extra_glibcs.
8563         * sysdeps/generic/ifunc-init.h: New file.
8564         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
8566 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
8568         [BZ #22019]
8569         * localedata/locales/el_GR: Set n_cs_precedes to 0.
8570         * localedata/locales/el_CY: copy "el_GR" because it is identical.
8571         * stdlib/tst-strfmon_l.c: adapt test case.
8573 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
8575         * sysdeps/generic/float128-abi.h: New file.
8576         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
8577         non-__prefixed symbols to ....
8578         * math/Versions: ... here.  Include <float128-abi.h>.
8579         * stdlib/Versions ... and here.  Include <float128-abi.h>
8581 2017-10-16  Florian Weimer  <fweimer@redhat.com>
8583         * version.h (VERSION): Switch to ".9000" as the development
8584         version suffix.
8586 2017-10-16  Florian Weimer  <fweimer@redhat.com>
8588         [BZ #22050]
8589         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
8590         compat_symbol_reference to access non-default version.
8592 2017-10-16  Florian Weimer  <fweimer@redhat.com>
8594         * malloc/Makefile (others-extras): Set to mcheck-init.o.
8596 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
8598         * include/shlib-compat.h (compat_symbol_reference): Update
8599         comment.
8601 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
8603         * math/Makefile (test-types): Add
8604         $(type-float128-$(float128-alias-fcts)).
8605         * math/test-float128.h (TYPE_STR): Define conditional on
8606         [FLT128_MANT_DIG == LDBL_MANT_DIG].
8607         (ULP_IDX): Likewise.
8608         (ULP_I_IDX): Likewise.
8610         * stdlib/strtold.c: Include <bits/floatn.h>
8611         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
8612         and later undefine as macro.  Define as weak alias if
8613         [!USE_WIDE_CHAR].
8614         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
8615         and later undefine as macro.  Define as weak alias if
8616         [USE_WIDE_CHAR].
8617         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
8618         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
8619         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8620         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
8621         Define and later undefine as macro.  Define as weak alias if
8622         [USE_WIDE_CHAR].
8623         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
8624         <bits/floatn.h>.
8625         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
8626         Define and later undefine as macro.  Define as weak alias if
8627         [!USE_WIDE_CHAR].
8628         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
8629         Define and later undefine as macro.  Define as weak alias if
8630         [USE_WIDE_CHAR].
8632 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
8634         * localedata/collate-test.c (allocate_arrays): Don't use \n in
8635         record_verbose messages.
8637 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8639         [BZ #22052]
8640         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
8641         to silence -O3 -Wall warning with GCC 7.
8643 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
8645         * Makeconfig (+link-static-before-libc): Use the first of
8646         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
8647         * gmon/Makefile (tests): Add tst-gmon-static.
8648         (tests-static): Likewise.
8649         (CFLAGS-tst-gmon-static.c): New.
8650         (CRT-tst-gmon-static): Likewise.
8651         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
8652         (tst-gmon-static-ENV): Likewise.
8653         (tests-special): Likewise.
8654         ($(objpfx)tst-gmon-static.out): Likewise.
8655         (clean-tst-gmon-static-data): Likewise.
8656         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
8657         * gmon/tst-gmon-static-gprof.sh: New file.
8658         * gmon/tst-gmon-static.c: Likewise.
8660 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
8662         [BZ #22295]
8663         * locale/programs/linereader.c (get_string): Don't warn on
8664         non-symbolic character.
8666         [BZ #22294]
8667         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
8668         int_curr_symbol.
8670         [BZ #22292]
8671         * locale/programs/record-status.h: New file
8672         * locale/programs/locale.c: Add comment.
8673         * locale/programs/charmap-dir.c: Don't include error.h.
8674         (charmap_opendir): Use record_error.
8675         * locale/programs/charmap.c: Don't include error.h.
8676         (charmap_read): Use record_error, and record_warning.
8677         (parse_charmap): Likewise.
8678         * locale/programs/ld-address.c: Don't include error.h.
8679         (address_finish): Use record_error, and record_warning.
8680         * locale/programs/ld-collate.c: Don't include error.h.
8681         (collate_finish): Use record_error, and record_error_at_line.
8682         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
8683         (ctype_class_new): Likewise.
8684         (ctype_map_new): Likewise.
8685         (set_one_default): Likewise.
8686         (set_class_defaults): Likewise.
8687         (translit_flatten): Likewise.
8688         (allocate_arrays): Use record_error, and record_verbose.
8689         * locale/programs/ld-identification.c: Don't include error.h.
8690         (indentation_finish): Use record_error and record_warning.
8691         * locale/programs/ld-measurement.c: Don't include error.h.
8692         (measurement_finish): Use record_error.
8693         * locale/programs/ld-messages.c
8694         (message_finish): Likewise.
8695         * locale/programs/ld-monetary.c
8696         (monetary_finish): Likewise.
8697         * locale/programs/ld-name.c (name_finish): Use record_error
8698         and record_warning.
8699         * locale/programs/ld-numeric.c
8700         (numeric_finish): Use record_error.
8701         * locale/programs/ld-paper.c: Don't include error.h.
8702         (paper_finish): Use record_error.
8703         * locale/programs/ld-telephone.c: Don't include error.h.
8704         (telephone_finish): Use record_error.
8705         * locale/programs/ld-time.c (time_finish): Likewise.
8706         * locale/programs/linereader.h (lr_error): Make inline func.
8707         * locale/programs/localedef.c: Define recorded_warning_count,
8708         and recorded_error_count.
8709         (main): Use record_error. Use recorded_error_count and
8710         recorded_warning_count to issue correct error returns.
8711         (add_to_readlist): Use record_error.
8712         (find_locale): Likewise.
8713         (load_locale): Likewise.
8714         * locale/programs/localedef.h: Remove be_quiet
8715         and WITH_CUR_LOCALE.
8716         * locale/programs/locarchive.c (compare_from_file): Use
8717         record_error.
8718         * locale/programs/locfile.c (write_locale_data): Use
8719         record_error.
8720         * locale/programs/repertoire.c: Dont include error.h.
8721         (repertoire_complain): Use record_error.
8722         * localedata/tst-fmon.sh: Expect failures from localedef.
8723         * localedata/tst-locale.sh: Likewise.
8724         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
8726         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
8727         (REPORTS): Likewise.
8728         (check): Likewise.
8729         (i18n): Rename to...
8730         (i18n_ctype): ...this.
8731         (i18n-report): Rename to...
8732         (i18n_ctype-report): ...this.
8733         * localedata/locales/i18n_ctype: Regenerate.
8734         * localedata/locales/i18n: copy i18n_ctype.
8736 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
8738         * stdlib/strfroml.c: Include <bits/floatn.h>.
8739         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
8740         Define before include of <stdlib.h> and undefine afterwards, then
8741         define as weak alias.
8743         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
8744         Undefine and restore default definition.  Use
8745         libm_alias_ldouble_other.
8747 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
8749         [BZ #22153]
8750         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
8751         in coredumps.
8753 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
8755         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8756         Assign sym_map to be map for local symbols, as TLS relocations
8757         use sym_map to determine whether the symbol is defined and to
8758         extract the TLS information.
8759         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8760         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8762 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8764         [BZ #22189]
8765         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
8766         (math_force_eval): Add powerpc version.
8768         [BZ #22142]
8769         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
8770         -DBL_MAX.
8771         (do_test): Likewise.
8772         * stdio-common/tst-printf.sh: Likewise.
8773         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
8774         ifdef clause in order to set the carry bit right.  Replace r0 by
8775         0 without changing the behavior.
8777 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
8779         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
8780         <libm-alias-ldouble.h>.
8781         (fabsl): Define using libm_alias_ldouble.
8782         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
8783         <libm-alias-ldouble.h>.
8784         (fabsl): Define using libm_alias_ldouble.
8786         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
8787         Remove conditional code.
8789         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
8790         Rename to __clog10_internal_l.
8791         (__clog10_internal_l): Define aliases using
8792         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
8793         with __clog10.
8795 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8797         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
8798         * benchtests/sincosf-inputs: New file.
8799         * benchtests/cosf-inputs: New file.
8800         * benchtests/sinf-inputs: New file.
8802 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8804         * posix/tst-spawn.c (do_test): Wait for both children.
8806 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8808         [BZ #22284]
8809         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
8810         tests-pie): Add tst-gmon-pie.
8811         (CFLAGS-tst-gmon-pie.c): New.
8812         (CRT-tst-gmon-pie): Likewise.
8813         (tst-gmon-pie-ENV): Likewise.
8814         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
8815         ($(objpfx)tst-gmon-pie.out): Likewise.
8816         (clean-tst-gmon-pie-data): Likewise.
8817         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
8818         * gmon/gmon.c [PIC]: Include <link.h>.
8819         [PIC] (callback): New function.
8820         (write_hist): Add an argument for load address.  Subtract load
8821         address from PCs.
8822         (write_call_graph): Likewise.
8823         (write_gmon): Call __dl_iterate_phdr to get load address, pass
8824         it to write_hist and write_call_graph.
8825         * gmon/tst-gmon-pie.c: New file.
8827 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
8829         * math/Makefile (test-types-basic): New variable.
8830         (test-types): Likewise.
8831         (libm-test-support): Use $(test-types) instead of $(types).
8832         (libm-tests-base-normal): Likewise.
8833         (libm-tests-base-finite): Likewise.
8834         (libm-tests-base-inline): Likewise.
8835         (generated): Likewise.
8836         ($(objpfx)libm-test-support-$(t).c): Likewise.
8837         (libm-tests-for-type iterator): Likewise.
8838         (libm-test-support iterator): Likewise.
8839         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
8840         (ulp_idx): Use ULP_IDX.
8841         * math/test-ldouble.h: Include <float.h>.
8842         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
8843         (ULP_IDX): New macro.
8844         (ULP_I_IDX): Likewise.
8845         * math/test-double.h (ULP_IDX): Likewise.
8846         (ULP_I_IDX): Likewise.
8847         * math/test-float.h (ULP_IDX): Likewise.
8848         (ULP_I_IDX): Likewise.
8849         * math/test-float128.h (ULP_IDX): Likewise.
8850         (ULP_I_IDX): Likewise.
8852 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8854         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
8855         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
8856         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
8857         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
8858         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
8859         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
8860         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
8861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
8862         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
8863         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
8864         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
8865         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
8866         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
8867         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8868         (SINGLE_THREAD_BY_GLOBAL): Define.
8869         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
8870         Likewise.
8871         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
8872         Likewise.
8873         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
8874         Likewise.
8875         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
8876         Likewise.
8877         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
8878         (SINGLE_THREAD_BY_GLOBAL): Likewise.
8879         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
8880         Likewise.
8882 2017-10-11  Andreas Schwab  <schwab@suse.de>
8884         * nis/Makefile (aux): Remove.
8885         * nscd/Makefile (aux): Add nscd_hash.
8886         (nscd-modules): Likewise.
8887         ($(objpfx)nscd): Don't depend on libnsl.
8888         * nscd/nscd_hash.c: New file.
8889         * nscd/nscd_hash.h: Likewise.
8890         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
8891         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
8892         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
8893         instead of <nis/rpcsvc/nis.h>.
8894         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
8896 2017-10-11  Florian Weimer  <fweimer@redhat.com>
8898         [BZ #22078]
8899         Avoid large NSS buffers with many addresses, aliases.
8900         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
8901         using dynarrays and struct alloc_buffer.
8902         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
8903         (tst-nss-files-hosts-multi): Link with -ldl.
8904         * nss/tst-nss-files-hosts-multi.c: New file.
8906 2017-10-11  Florian Weimer  <fweimer@redhat.com>
8908         [BZ #18023]
8909         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
8910         scratch_buffer.  Eliminate gotos.
8912 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
8914         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
8915         libm_alias_ldouble_other.
8916         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
8917         undefine and redefine.
8918         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
8919         (exp10l): Do not define here.
8920         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
8921         (weak_alias): Undefine and redefine.
8922         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
8923         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
8924         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
8925         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
8927         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
8928         [!__fma] (fma): Define using libm_alias_double.
8929         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
8930         [!__fmaf] (fmaf): Define using libm_alias_float.
8931         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
8932         (fmal): Define using libm_alias_ldouble.
8934 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
8936         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
8937         New macro.
8938         (libm_alias_double_other): Likewise.
8939         (libm_alias_double_r): Use libm_alias_double_other_r.
8940         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
8941         New macro.
8942         (libm_alias_float_other): Likewise.
8943         (libm_alias_float_r): Use libm_alias_float_other_r.
8944         * sysdeps/generic/libm-alias-float128.h
8945         (libm_alias_float128_other_r): New macro.
8946         (libm_alias_float128_other): Likewise.
8947         (libm_alias_float128_r): Use libm_alias_float128_other_r.
8948         * sysdeps/generic/libm-alias-ldouble.h
8949         (libm_alias_ldouble_other_r): New macro.
8950         (libm_alias_ldouble_other): Likewise.
8951         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
8952         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
8953         (libm_alias_double_other_r): New macro.
8954         (libm_alias_double_other): Likewise.
8955         (libm_alias_double_r): Use libm_alias_double_other_r.
8956         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
8957         (libm_alias_ldouble_other_r): New macro.
8958         (libm_alias_ldouble_other): Likewise.
8959         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
8960         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
8961         [!USE_AS_COMPAT]: Use libm_alias_double_other.
8962         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
8963         [!USE_AS_COMPAT]: Use libm_alias_float_other.
8964         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
8965         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
8966         * math/w_exp2f.c: Use libm_alias_float_other.
8967         * math/w_expf.c: Likewise.
8968         * math/w_log2f.c: Likewise.
8969         * math/w_logf.c: Likewise.
8970         * math/w_powf.c: Likewise.
8971         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
8972         [!__exp2f]: Use libm_alias_float_other.
8973         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
8974         [!__expf]: Use libm_alias_float_other.
8975         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
8976         [!__log2f]: Use libm_alias_float_other.
8977         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
8978         [!__logf]: Use libm_alias_float_other.
8979         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
8980         [!__powf]: Use libm_alias_float_other.
8982 2017-10-10  Florian Weimer  <fweimer@redhat.com>
8984         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
8985         function.
8986         (_nss_files_gethostbyname3_r): Call it.
8988 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
8990         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
8991         error.  Remove default definition of declare_mgen_alias.
8992         [!declare_mgen_alias_r]: Likewise.
8993         * sysdeps/generic/math-type-macros-double.h
8994         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
8995         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
8996         (declare_mgen_alias_r): Likewise.
8997         * sysdeps/generic/math-type-macros-float128.h
8998         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
8999         * sysdeps/generic/math-type-macros-ldouble.h
9000         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
9001         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
9002         macro.
9003         (declare_mgen_alias_r_s): Likewise.
9004         (declare_mgen_alias_r): Likewise.
9005         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
9006         (lgamma_r): Define using libm_alias_double_r.
9007         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
9008         (lgammaf_r): Define using libm_alias_float_r.
9009         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
9010         (lgammal_r): Define using libm_alias_ldouble_r.
9011         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
9012         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
9014 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9016         * lib/glob.c (__glob_pattern_type): Remove now-spurious
9017         extern declaration.
9019 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
9021         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
9023 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
9025         [BZ #21326]
9026         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
9027         [__cplusplus >= 201103] (__USE_ISOC99): Define.
9028         * math/Makefile (test-math-cxx11): New test.
9029         * math/test-math-cxx11.cc: New file.
9031 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
9033         * login/openpty.c (openpty): Close slave pty file descriptor on error.
9035         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
9036         call to allocate the slave pty file descriptor.
9038 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
9040         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
9041         [!__fma] (fma): Define using libm_alias_double.
9042         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
9043         [!__fma] (fma): Define using libm_alias_double.
9045         * sysdeps/ieee754/float128/float128_private.h: Include
9046         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
9047         (libm_alias_ldouble_r): Undefine and redefine.
9048         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
9049         <libm-alias-ldouble.h>.
9050         (asinhl): Define using libm_alias_ldouble.
9051         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
9052         <libm-alias-ldouble.h>.
9053         (atanl): Define using libm_alias_ldouble.
9054         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
9055         <libm-alias-ldouble.h>.
9056         (cbrtl): Define using libm_alias_ldouble.
9057         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
9058         <libm-alias-ldouble.h>.
9059         (ceill): Define using libm_alias_ldouble.
9060         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
9061         <libm-alias-ldouble.h>.
9062         (copysignl): Define using libm_alias_ldouble.
9063         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
9064         <libm-alias-ldouble.h>.
9065         (cosl): Define using libm_alias_ldouble.
9066         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
9067         <libm-alias-ldouble.h>.
9068         (erfl): Define using libm_alias_ldouble.
9069         (erfcl): Likewise.
9070         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
9071         <libm-alias-ldouble.h>.
9072         (expm1l): Define using libm_alias_ldouble.
9073         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
9074         <libm-alias-ldouble.h>.
9075         (fabsl): Define using libm_alias_ldouble.
9076         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
9077         <libm-alias-ldouble.h>.
9078         (floorl): Define using libm_alias_ldouble.
9079         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
9080         <libm-alias-ldouble.h>.
9081         (fmal): Define using libm_alias_ldouble.
9082         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
9083         <libm-alias-ldouble.h>.
9084         (frexpl): Define using libm_alias_ldouble.
9085         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
9086         libm_alias_ldouble.
9087         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
9088         <libm-alias-ldouble.h>.
9089         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
9090         libm_alias_ldouble.
9091         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
9092         <libm-alias-ldouble.h>.
9093         (getpayloadl): Define using libm_alias_ldouble.
9094         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
9095         <libm-alias-ldouble.h>.
9096         (llrintl): Define using libm_alias_ldouble.
9097         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
9098         <libm-alias-ldouble.h>.
9099         (llroundl): Define using libm_alias_ldouble.
9100         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
9101         <libm-alias-ldouble.h>.
9102         (logbl): Define using libm_alias_ldouble.
9103         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
9104         <libm-alias-ldouble.h>.
9105         (lrintl): Define using libm_alias_ldouble.
9106         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
9107         <libm-alias-ldouble.h>.
9108         (lroundl): Define using libm_alias_ldouble.
9109         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
9110         <libm-alias-ldouble.h>.
9111         (modfl): Define using libm_alias_ldouble.
9112         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
9113         <libm-alias-ldouble.h>.
9114         (nearbyintl): Define using libm_alias_ldouble.
9115         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
9116         <libm-alias-ldouble.h>.
9117         (nextafterl): Define using libm_alias_ldouble.
9118         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
9119         <libm-alias-ldouble.h>.
9120         (nextupl): Define using libm_alias_ldouble.
9121         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
9122         <libm-alias-ldouble.h>.
9123         (remquol): Define using libm_alias_ldouble.
9124         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
9125         <libm-alias-ldouble.h>.
9126         (rintl): Define using libm_alias_ldouble.
9127         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
9128         <libm-alias-ldouble.h>.
9129         (roundevenl): Define using libm_alias_ldouble.
9130         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
9131         <libm-alias-ldouble.h>.
9132         (roundl): Define using libm_alias_ldouble.
9133         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
9134         using libm_alias_ldouble.
9135         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
9136         <libm-alias-ldouble.h>.
9137         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
9138         Define using libm_alias_ldouble.
9139         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
9140         <libm-alias-ldouble.h>.
9141         (sincosl): Define using libm_alias_ldouble.
9142         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
9143         <libm-alias-ldouble.h>.
9144         (sinl): Define using libm_alias_ldouble.
9145         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
9146         <libm-alias-ldouble.h>.
9147         (tanhl): Define using libm_alias_ldouble.
9148         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
9149         <libm-alias-ldouble.h>.
9150         (tanl): Define using libm_alias_ldouble.
9151         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
9152         <libm-alias-ldouble.h>.
9153         (totalorderl): Define using libm_alias_ldouble.
9154         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
9155         <libm-alias-ldouble.h>.
9156         (totalordermagl): Define using libm_alias_ldouble.
9157         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
9158         <libm-alias-ldouble.h>.
9159         (truncl): Define using libm_alias_ldouble.
9160         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
9161         libm_alias_ldouble.
9162         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
9163         libm_alias_ldouble.
9164         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
9165         <libm-alias-ldouble.h>.
9166         (weak_alias): Do not undefine and redefine.
9167         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
9168         (copysignl): Define with long_double_symbol only if [IS_IN
9169         (libc)].
9170         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
9171         <libm-alias-ldouble.h>.
9172         (weak_alias): Do not undefine and redefine.
9173         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
9174         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
9175         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
9176         <libm-alias-ldouble.h>.
9177         (weak_alias): Do not undefine and redefine.
9178         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
9179         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
9180         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
9181         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
9182         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
9183         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
9184         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
9185         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
9186         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
9187         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
9188         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
9189         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
9190         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
9191         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
9192         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
9193         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
9194         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
9195         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
9196         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
9197         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
9198         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
9199         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
9200         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
9201         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
9202         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
9203         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
9205 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
9207         [BZ #22111]
9208         * malloc/malloc.c (tcache_shutting_down): Use bool type.
9209         (tcache_thread_freeres): Set tcache_shutting_down before
9210         freeing the tcache.
9211         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
9212         * malloc/tst-malloc-tcache-leak.c: New file.
9214 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9216         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
9217         back to powerpc32 file.
9218         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
9219         (memrchr): Add __memrchr_power8 to ifunc list.
9220         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
9221         extra bytes for unaligned inputs.
9223 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
9225         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
9226         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
9227         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
9228         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
9229         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
9231 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
9233         * sysdeps/arm/libm-test-ulps: Update.
9235         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
9236         <libm-alias-ldouble.h>.
9237         (asinhl): Define using libm_alias_ldouble.
9238         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
9239         <libm-alias-ldouble.h>.
9240         (cbrtl): Define using libm_alias_ldouble.
9241         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
9242         <libm-alias-ldouble.h>.
9243         (copysignl): Define using libm_alias_ldouble.
9244         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
9245         <libm-alias-ldouble.h>.
9246         (cosl): Define using libm_alias_ldouble.
9247         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
9248         <libm-alias-ldouble.h>.
9249         (erfl): Define using libm_alias_ldouble.
9250         (erfcl): Likewise.
9251         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
9252         <libm-alias-ldouble.h>.
9253         (fmal): Define using libm_alias_ldouble.
9254         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
9255         <libm-alias-ldouble.h>.
9256         (frexpl): Define using libm_alias_ldouble.
9257         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
9258         libm_alias_ldouble.
9259         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
9260         <libm-alias-ldouble.h>.
9261         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
9262         libm_alias_ldouble.
9263         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
9264         <libm-alias-ldouble.h>.
9265         (getpayloadl): Define using libm_alias_ldouble.
9266         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
9267         <libm-alias-ldouble.h>.
9268         (llrintl): Define using libm_alias_ldouble.
9269         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
9270         <libm-alias-ldouble.h>.
9271         (llroundl): Define using libm_alias_ldouble.
9272         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
9273         <libm-alias-ldouble.h>.
9274         (lrintl): Define using libm_alias_ldouble.
9275         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
9276         <libm-alias-ldouble.h>.
9277         (lroundl): Define using libm_alias_ldouble.
9278         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
9279         <libm-alias-ldouble.h>.
9280         (modfl): Define using libm_alias_ldouble.
9281         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
9282         <libm-alias-ldouble.h>.
9283         (nextupl): Define using libm_alias_ldouble.
9284         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
9285         <libm-alias-ldouble.h>.
9286         (remquol): Define using libm_alias_ldouble.
9287         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
9288         <libm-alias-ldouble.h>.
9289         (roundevenl): Define using libm_alias_ldouble.
9290         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
9291         <libm-alias-ldouble.h>.
9292         (roundl): Define using libm_alias_ldouble.
9293         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
9294         using libm_alias_ldouble.
9295         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
9296         <libm-alias-ldouble.h>.
9297         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
9298         <libm-alias-ldouble.h>.
9299         (setpayloadsigl): Define using libm_alias_ldouble.
9300         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
9301         <libm-alias-ldouble.h>.
9302         (sincosl): Define using libm_alias_ldouble.
9303         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
9304         <libm-alias-ldouble.h>.
9305         (sinl): Define using libm_alias_ldouble.
9306         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
9307         <libm-alias-ldouble.h>.
9308         (tanhl): Define using libm_alias_ldouble.
9309         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
9310         <libm-alias-ldouble.h>.
9311         (tanl): Define using libm_alias_ldouble.
9312         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
9313         <libm-alias-ldouble.h>.
9314         (totalorderl): Define using libm_alias_ldouble.
9315         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
9316         <libm-alias-ldouble.h>.
9317         (totalordermagl): Define using libm_alias_ldouble.
9318         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
9319         libm_alias_ldouble.
9320         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
9321         libm_alias_ldouble.
9323 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9325         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9326         memmove_falkor.
9327         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9328         (__libc_ifunc_impl_list): Likewise.
9329         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
9330         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
9332         * benchtests/bench-memmove-walk.c: New file.
9333         * benchtests/Makefile (string-benchset): Add it.
9335         * benchtests/bench-memset-walk.c: New file.
9336         * benchtests/Makefile (string-benchset): Add it.
9338         * benchtests/bench-memcpy-walk.c: New file.
9339         * benchtests/Makefile (string-benchset): Add it.
9341 2017-10-05  Florian Weimer  <fweimer@redhat.com>
9343         nscd: Eliminate compilation time dependency in the build output.
9344         * nscd/nscd_stat.c (STATDATA_VERSION)
9345         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
9346         (STATDATA_VERSION_FULL): New macro definitions.
9347         (compilation): Remove.
9348         (struct statdata): Adjust version member.
9349         (send_stats): Set version from STATDATA_VERSION_FULL.
9350         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
9352 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
9354         * configure.ac (--enable-add-ons): Remove option.
9355         (machine): Do not mention add-ons in comment.
9356         (LIBC_PRECONFIGURE): Likewise.
9357         (add_ons): Remove variable and sanity checks and logic to locate
9358         add-ons.
9359         (add_ons_automatic): Remove variable.
9360         (configured_add_ons): Likewise.
9361         (add_ons_sfx): Likewise.
9362         (add_ons_pfx): Likewise.
9363         (add_on_subdirs): Likewise.
9364         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
9365         consideration of add-ons in Implies handling.
9366         (sysdeps_add_ons): Likewise.
9367         * configure: Regenerated.
9368         * libidn/configure.ac: Remove.
9369         * libidn/configure: Likewise.
9370         * sysdeps/unix/inet/configure.ac: New file.
9371         * sysdeps/unix/inet/configure: New generated file.
9372         * sysdeps/unix/inet/Subdirs: Add libidn.
9373         * Makeconfig (sysdeps-srcdirs): Remove variable.
9374         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
9375         ($(common-objpfx)config.status): Do not depend on add-on files.
9376         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
9377         comment.
9378         (all-subdirs): Do not include $(add-on-subdirs).
9379         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
9380         * config.make.in (add-ons): Remove variable.
9381         (add-on-subdirs): Likewise.
9382         (sysdeps-add-ons): Likewise.
9383         * manual/Makefile (add-chapters): Remove.
9384         ($(objpfx)texis): Do not depend on $(add-chapters).
9385         (nonexamples): Do not handle $(add-chapters).
9386         (examples): Do not handle $(add-ons).
9387         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
9388         libc-texinfo.sh.
9389         * manual/install.texi (Installation): Do not mention add-ons.
9390         (--enable-add-ons): Do not document configure option.
9391         * INSTALL: Regenerated.
9392         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
9393         * manual/maint.texi (Hierarchy Conventions): Do not mention
9394         add-ons.
9395         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
9396         --enable-add-ons.
9397         * scripts/gen-sorted.awk: Do not handle Subdirs files from
9398         add-ons.
9399         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
9400         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
9402 2017-10-05  Andreas Schwab  <schwab@suse.de>
9404         [BZ #15142]
9405         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
9406         (_IO_flush_all_lockp): Always lock list_all_lock.
9407         (_IO_flush_all_linebuffered): Likewise.
9408         (_IO_unbuffer_all): Likewise.
9410 2017-10-05  Florian Weimer  <fweimer@redhat.com>
9412         [BZ #15436]
9413         Do not flush stdio streams on abort.
9414         * stdlib/abort.c (fflush): Remove macro definition.
9415         (abort): Remove stages related to stdio flushing.
9417 2017-10-05  Florian Weimer  <fweimer@redhat.com>
9419         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
9421 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
9423         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9425 2017-10-05  Florian Weimer  <fweimer@redhat.com>
9427         * support/support_format_hostent.c (support_format_hostent): Add
9428         more error information for NETDB_INTERNAL.
9430 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
9432         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
9433         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
9434         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
9435         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
9436         AC_DEFINE if multi-arch is enabled.
9437         * sysdeps/i386/configure: Regenerated.
9439 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
9441         * Makeconfig (+link-static-before-libc): Use
9442         $(DEFAULT-LDFLAGS-$(@F)).
9443         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
9444         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
9445         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
9447 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
9449         * elf/Makefile (tests): Add tst-main1.
9450         (modules-names): Add tst-main1mod.
9451         ($(objpfx)tst-main1): New.
9452         (CRT-tst-main1): Likewise.
9453         (LDFLAGS-tst-main1): Likewise.
9454         (LDLIBS-tst-main1): Likewise.
9455         (tst-main1mod.so-no-z-defs): Likewise.
9456         * elf/tst-main1.c: New file.
9457         * elf/tst-main1mod.c: Likewise.
9459 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
9461         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
9463 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
9465         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
9466         (fma): Define using libm_alias_double.
9467         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
9468         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
9469         <math_ldbl_opt.h>.
9470         (fmal): Do not define as compat symbol here.
9471         * sysdeps/alpha/fpu/s_fma.c: New file.
9473 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9475         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
9477 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
9479         [BZ #22229]
9480         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
9481         <math_ldbl_opt.h>
9482         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
9483         and libc.
9484         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
9485         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
9486         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
9487         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
9488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9489         Include <math_ldbl_opt.h>
9490         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
9491         and libc.
9492         (compat_symbol): Undefine and redefine.
9493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
9494         <math_ldbl_opt.h>
9495         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
9496         (compat_symbol): Undefine and redefine.
9497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
9498         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
9499         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
9500         GLIBC_2_1 for libm.
9501         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
9502         GLIBC_2.0 copysignl symbol.
9503         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
9504         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
9506         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
9508 2017-10-04  Florian Weimer  <fweimer@redhat.com>
9510         * scripts/check-local-headers.sh: Ignore nspr4 header file
9511         directory in addition to nspr.
9513 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
9515         [BZ #17956]
9516         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
9517         * configure: Regenerate.
9518         * crypt/Makefile (nss-cpp-flags): New variable.
9519         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
9520         (CPPFLAGS-md5-crypt.c): Use it.
9521         * scripts/check-local-headers.sh: Ignore nspr header file
9522         directory.
9524 2017-10-04  Andreas Schwab  <schwab@suse.de>
9526         * nis/Makefile (services): Remove compat.
9527         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
9528         ($(objpfx)libnss_compat.so): Remove rule.
9529         * nis/Versions (libnss_compat): Remove.
9530         * nss/Makefile (services): Add compat.
9531         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
9532         * nss/Versions (libnss_compat): Define.
9533         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
9534         Don't include <rpc/types.h>.  Replace bool_t by bool.
9535         * nss/nss_compat/compat-initgroups.c: Likewise.
9536         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
9537         instead of <rpcsrv/ypclnt.h>.
9538         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
9539         yp_get_default_domain.
9540         * nss/nss_compat/compat-pwd.c: Likewise.
9541         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
9542         yp_get_default_domain.
9543         * nss/nss_compat/nisdomain.c: New file.
9544         * nss/nss_compat/nisdomain.h: Likewise.
9546 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9548         [BZ #22244]
9549         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
9550         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9552 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9554         [BZ #22243]
9555         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
9556         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
9558 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9560         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
9561         "movl main@GOTOFF(%ebx), %eax".
9563 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9565         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
9566         allow undefined _DYNAMIC in PIE libc.a.
9567         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
9568         Likewse.
9570 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9572         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
9573         check _DYNAMIC.
9575 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9577         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
9578         check _DYNAMIC.
9580 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9582         * math/test-math-iscanonical.cc (error): Replace bool with int.
9584 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
9586         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
9587         (modf): Define using libm_alias_double, only if [!__modf].
9588         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
9589         <libm-alias-double.h>.
9590         (modf): Define using libm_alias_double, only if [!__modf].
9591         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
9592         compat symbol here.
9593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
9594         (weak_alias): Do not undefine and redefine.
9595         (strong_alias): Likewise.
9596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
9597         (weak_alias): Likewise.
9598         (strong_alias): Likewise.
9600         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
9601         (logb): Define using libm_alias_double, only if [!__logb].
9602         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
9603         <libm-alias-double.h>.
9604         (logb): Define using libm_alias_double, only if [!__logb].
9605         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
9606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
9607         (weak_alias): Do not undefine and redefine.
9608         (strong_alias): Likewise.
9609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
9610         (weak_alias): Likewise.
9611         (strong_alias): Likewise.
9613 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9615         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
9616         Check SHARED instead PIC.
9618 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
9620         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
9621         [!__fmaf] (fmaf): Define using libm_alias_float.
9623         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
9624         (frexp): Define using libm_alias_double.
9625         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
9626         <libm-alias-double.h>.
9627         (frexp): Define using libm_alias_double.
9628         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
9629         compat symbol here.
9631 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9633         [BZ #22235]
9634         * math/math.h: Trivial fix for unbalanced parentheses in comment.
9635         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
9636         (CFLAGS-test-math-iscanonical.cc): New variable.
9637         * math/test-math-iscanonical.cc: New file.
9638         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
9639         Provide a C++ implementation based on function overloading,
9640         rather than using __MATH_TG, which uses C-only builtins.
9641         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
9642         Likewise.
9643         * sysdeps/powerpc/powerpc64le/Makefile
9644         (CFLAGS-test-math-iscanonical.cc): New variable.
9646 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
9648         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
9649         (ceil): Define using libm_alias_double.
9650         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
9651         (floor): Define using libm_alias_double.
9652         * sysdeps/ieee754/dbl-64/s_llround.c: Include
9653         <libm-alias-double.h>.
9654         (llround): Define using libm_alias_double.
9655         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9656         <libm-alias-double.h>.
9657         (lround): Define using libm_alias_double.
9658         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
9659         <libm-alias-double.h>.
9660         (nearbyint): Define using libm_alias_double.
9661         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
9662         <libm-alias-double.h>.
9663         (remquo): Define using libm_alias_double.
9664         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
9665         (rint): Define using libm_alias_double.
9666         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
9667         (round): Define using libm_alias_double.
9668         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
9669         (trunc): Define using libm_alias_double.
9670         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
9671         <libm-alias-double.h>.
9672         (ceil): Define using libm_alias_double.
9673         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
9674         <libm-alias-double.h>.
9675         (floor): Define using libm_alias_double.
9676         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
9677         <libm-alias-double.h>.
9678         (llround): Define using libm_alias_double.
9679         [_LP64] (lround): Likewise.
9680         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
9681         <libm-alias-double.h>.
9682         [!_LP64] (lround): Define using libm_alias_double.
9683         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
9684         <libm-alias-double.h>.
9685         (nearbyint): Define using libm_alias_double.
9686         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
9687         <libm-alias-double.h>.
9688         (remquo): Define using libm_alias_double.
9689         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
9690         <libm-alias-double.h>.
9691         (rint): Define using libm_alias_double.
9692         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
9693         <libm-alias-double.h>.
9694         (round): Define using libm_alias_double.
9695         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
9696         <libm-alias-double.h>.
9697         (trunc): Define using libm_alias_double.
9698         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
9699         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
9700         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
9701         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
9702         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
9703         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
9704         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
9705         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
9706         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
9708 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9710         * math/w_remainder.c: New file.
9711         * math/w_remainderf.c: New file.
9712         * math/w_remainderl.c: New file.
9714 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9716         * elf/rtld.c (BOOTSTRAP_MAP): New.
9717         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
9718         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9719         Likewise.
9720         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9721         Likewise.
9722         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9723         Likewise.
9725 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9727         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
9728         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
9729         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
9730         rtld_hidden_data_ver): Define to empty.
9731         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
9732         __assert_perror_fail): Likewise.
9733         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
9734         (__rewinddir): Likewise.
9735         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
9736         (__profile_frequency): Likewise.
9737         * include/setjmp.h (__sigsetjmp): Likewise.
9738         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
9739         __libc_sigaction): Likewise.
9740         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
9741         not set hidden attribute.
9742         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
9743         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
9744         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
9745         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
9746         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
9747         __fxstatat64): Likewise.
9748         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
9749         (__uname): Likewise.
9750         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
9751         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
9752         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
9753         (NO_RTLD_HIDDEN): Set.
9754         * sysdeps/mach/hurd/configure: Refresh.
9755         * config.h.in: Refresh.
9757 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
9759         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
9760         (atan): Define using libm_alias_double.
9761         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
9762         (tan): Define using libm_alias_double.
9763         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
9764         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
9766         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
9767         define as weak alias of __atan.  Do not define any aliases if
9768         [__atan].
9769         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
9770         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
9771         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
9772         as weak alias of __tan.  Do not define any aliases if [__tan].
9773         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
9774         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
9775         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
9776         __atan.
9777         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
9778         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
9779         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
9780         and define as weak alias of __atan.
9781         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
9782         __atan.
9783         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
9784         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
9785         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
9786         define as weak alias of __tan.
9788 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9790         * math/w_lgamma.c: New file.
9791         * math/w_lgammaf.c: New file.
9792         * math/w_lgammal.c: New file.
9794 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9796         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
9797         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
9798         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
9799         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
9800         * sysdeps/ieee754/flt-32/w_logf.c: New file.
9801         * sysdeps/ieee754/flt-32/w_powf.c: New file.
9802         * sysdeps/i386/fpu/w_log2f.c: New file.
9803         * sysdeps/i386/fpu/w_logf.c: New file.
9804         * sysdeps/i386/fpu/w_powf.c: New file.
9805         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
9806         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
9807         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
9809 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9810             H.J. Lu  <hongjiu.lu@intel.com>
9812         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
9813         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
9814         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
9815         * sysdeps/ieee754/flt-32/w_expf.c: New file.
9816         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
9817         the new expf code.
9818         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
9819         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
9820         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
9821         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
9822         * sysdeps/i386/fpu/w_exp2f.c: New file.
9823         * sysdeps/i386/fpu/w_expf.c: New file.
9824         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
9825         * sysdeps/x86_64/fpu/w_expf.c: New file.
9827 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9829         * math/Versions (logf): New libm symbol at GLIBC_2.27.
9830         (log2f): Likewise.
9831         (powf): Likewise.
9832         * math/w_log2f.c: New file.
9833         * math/w_logf.c: New file.
9834         * math/w_powf.c: New file.
9835         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
9836         * math/w_logf_compat.c (__logf_compat): Likewise.
9837         * math/w_powf_compat.c (__powf_compat): Likewise.
9838         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
9839         * sysdeps/ia64/fpu/e_logf.S: Likewise.
9840         * sysdeps/ia64/fpu/e_powf.S: Likewise.
9841         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9842         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9843         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9844         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9845         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9846         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9847         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9848         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9849         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9850         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9851         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9852         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9854         Likewise.
9855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9856         Likewise.
9857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9858         Likewise.
9859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9860         Likewise.
9861         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9862         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9863         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9864         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9865         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9867         Likewise.
9868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9869         Likewise.
9870         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9871         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9872         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9874 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9876         * sysdeps/powerpc/powerpc64/multiarch/Makefile
9877         (sysdep_routines): Add memrchr_power8.
9878         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9879         (memrchr): Add __memrchr_power8 to list of memrchr functions.
9880         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
9881         New file.
9882         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
9883         (memrchr): Add __memrchr_power8 to ifunc list.
9884         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
9886 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9888         [BZ #18822]
9889         * sysdeps/unix/sysv/linux/posix_fadvise64.c
9890         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
9891         libc_hidden_def.
9892         * sysdeps/unix/sysv/linux/posix_fallocate64.c
9893         (__posix_fallocate64_l64): Likewise.
9895 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9897         [BZ #18822]
9898         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9899         (__sched_setaffinity_new): Add libc_hidden_proto and
9900         libc_hidden_def.
9902 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9904         [BZ #18822]
9905         * include/glob.h (__glob64): Add libc_hidden_proto.
9906         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
9907         libc_hidden_def.
9909 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9911         [BZ #18822]
9912         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
9913         attribute_hidden.
9915 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9917         [BZ #18822]
9918         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
9920 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9922         [BZ #18822]
9923         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
9924         libc_hidden_def.
9926 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9928         [BZ #18822]
9929         * csu/version.c (__libc_print_version): Add attribute_hidden.
9931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9933         [BZ #18822]
9934         * include/libc-internal.h (__init_misc): Add attribute_hidden.
9936 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9938         [BZ #18822]
9939         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
9941 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9943         [BZ #18822]
9944         * nscd/nscd_helper.c (__nis_hash): New prototype.
9946 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9948         [BZ #18822]
9949         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
9950         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
9951         libc_hidden_def.
9952         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9953         * termios/tcgetattr.c (__tcgetattr): Likewise.
9955 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9957         [BZ #18822]
9958         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
9959         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
9960         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
9961         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
9962         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
9964 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9966         [BZ #18822]
9967         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
9969 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9971         [BZ #18822]
9972         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
9973         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
9975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9977         [BZ #18822]
9978         * intl/hash-string.h (__hash_string): Add attribute_hidden.
9980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9982         [BZ #18822]
9983         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
9984         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
9986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9988         [BZ #18822]
9989         * include/ifreq.h: New file.
9990         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
9991         (__ifreq): Likewise.
9992         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
9993         (__ifreq): Likewise.
9995 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9997         [BZ #18822]
9998         * include/idna.h: New file.
9999         * inet/getnameinfo.c: Include <idna.h> instead of
10000         <libidn/idna.h>.
10001         (__idna_to_unicode_lzlz): Removed.
10002         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
10003         <libidn/idna.h>.
10004         (__idna_to_ascii_lz): Removed.
10005         (__idna_to_unicode_lzlz): Likewise.
10007 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10009         [BZ #18822]
10010         * include/plural-exp.h: New file.
10011         * intl/plural-exp.c: Include <plural-exp.h> instead of
10012         "plural-exp.h".
10014 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10016         [BZ #18822]
10017         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
10018         "getsourcefilter.h".
10019         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
10020         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
10021         "getsourcefilter.h".
10022         (__get_sol): Removed.
10024 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10026         [BZ #18822]
10027         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
10028         to ...
10029         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
10031 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10033         [BZ #18822]
10034         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
10035         attribute_hidden.
10037 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10039         [BZ #18822]
10040         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
10042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10044         [BZ #18822]
10045         * include/search.h (__tdestroy): Add libc_hidden_proto.
10046         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
10048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10050         [BZ #18822]
10051         * include/assert.h (__assert_fail_base): Add attribute_hidden.
10053 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10055         [BZ #18822]
10056         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
10057         attribute_hidden.
10059 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10061         [BZ #18822]
10062         * include/signal.h (__kill): Add libc_hidden_proto.
10063         (__sigblock): Likewise.
10064         (__sigprocmask): Likewise.
10065         (__sigaltstack): Likewise.
10066         * signal/kill.c (__kill): Add libc_hidden_def.
10067         * signal/sigblock.c (__sigblock): Likewise.
10068         * signal/sigprocmask.c (__sigprocmask): Likewise.
10069         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
10070         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
10071         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
10072         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
10073         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
10074         Likewise.
10075         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
10076         Likewise.
10077         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
10078         (__sigprocmask): Likewise.
10079         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
10080         Likewise.
10081         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
10082         (__sigprocmask): Likewise.
10083         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
10084         Likewise.
10086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10088         [BZ #18822]
10089         * include/string.h (__strsep): Add libc_hidden_proto.
10090         * string/strsep.c (__strsep): Add libc_hidden_def.
10092 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10094         [BZ #18822]
10095         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
10096         attribute_hidden.
10097         (__spawni): Likewise.
10099 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10101         [BZ #18822]
10102         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
10103         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
10104         libc_hidden_def.
10106 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10108         [BZ #18822]
10109         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
10111 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10113         [BZ #18822]
10114         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
10115         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
10116         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
10117         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
10118         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
10119         Likewise.
10120         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
10121         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
10123 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10125         [BZ #18822]
10126         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
10127         (__dcigettext): Likewise.
10129 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10131         [BZ #18822]
10132         * include/sys/sysinfo.h (__get_nprocs_conf): Add
10133         libc_hidden_proto.
10134         (__get_nprocs): Likewise.
10135         (__get_phys_pages): Likewise.
10136         (__get_avphys_pages): Likewise.
10137         (__get_child_max): Add attribute_hidden.
10138         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
10139         (__get_nprocs): Likewise.
10140         (__get_phys_pages): Likewise.
10141         (__get_avphys_pages): Likewise.
10142         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
10143         libc_hidden_def.
10144         (__get_nprocs): Likewise.
10145         (__get_phys_pages): Likewise.
10146         (__get_avphys_pages): Likewise.
10147         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
10148         libc_hidden_def.
10149         (__get_nprocs_conf): Likewise.
10150         (__get_phys_pages): Likewise.
10151         (__get_avphys_pages): Likewise.
10153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10155         [BZ #18822]
10156         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
10157         attribute_hidden.
10158         (__netlink_close): Likewise.
10159         (__netlink_free_handle): Likewise.
10160         (__netlink_request): Likewise.
10162 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10164         [BZ #18822]
10165         * include/rpc/rpc.h (__rpc_thread_variables): Add
10166         attribute_hidden.
10167         (__rpc_thread_svc_cleanup): Likewise.
10168         (__rpc_thread_clnt_cleanup): Likewise.
10169         (__rpc_thread_key_cleanup): Likewise.
10171 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10173         [BZ #18822]
10174         * include/sys/uio.h (__readv): Add libc_hidden_proto.
10175         (__writev): Likewise.
10176         * misc/readv.c (__readv): Add libc_hidden_def.
10177         * misc/writev.c (__writev): Likewise.
10178         * sysdeps/posix/readv.c (__readv): Likewise.
10179         * sysdeps/posix/writev.c (__writev): Likewise.
10180         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
10181         (__readv): Likewise.
10182         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
10183         (__writev): Likewise.
10185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10187         [BZ #18822]
10188         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
10189         (__regcomp): Add libc_hidden_proto.
10190         (__regexec): Likewise.
10191         (__regfree): Likewise.
10192         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
10193         (__regfree): Likewise.
10194         * posix/regexec.c (__regexec): Likewise.
10196 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10198         [BZ #18822]
10199         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
10200         (__getutent): Likewise.
10201         (__getutid): Likewise.
10202         (__getutline): Likewise.
10203         (__pututline): Likewise.
10204         (__getutent_r): Likewise.
10205         (__getutid_r): Likewise.
10206         (__getutline_r): Likewise.
10207         (__utmpname): Add attribute_hidden.
10208         (__setutent): Likewise.
10209         (__endutent): Likewise.
10210         * login/getutent.c (__getutent): Add libc_hidden_def.
10211         * login/getutent_r.c (__getutent_r): Likewise.
10212         (__pututline): Likewise.
10213         * login/getutid.c (__getutid): Likewise.
10214         * login/getutid_r.c (__getutid_r): Likewise.
10215         * login/getutline.c (__getutline): Likewise.
10216         * login/getutline_r.c (__getutline_r): Likewise.
10217         * login/updwtmp.c (__updwtmp): Likewise.
10219 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10221         [BZ #18822]
10222         * include/dirent.h (__opendir): Always add attribute_hidden.
10223         (__fdopendir): Likewise.
10224         (__closedir): Likewise.
10225         (__readdir): Likewise.
10226         (__readdir64): Add libc_hidden_proto.
10227         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
10228         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
10229         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
10230         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
10231         New alias.
10233 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10235         [BZ #18822]
10236         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
10237         * include/netdb.h (__gethostbyaddr_r): Likewise.
10238         (__gethostbyname_r): Likewise.
10239         (__gethostbyname2_r): Likewise.
10240         (__getnetbyaddr_r): Likewise.
10241         (__getnetbyname_r): Likewise.
10242         (__getservbyname_r): Likewise.
10243         (__getservbyport_r): Likewise.
10244         (__getprotobyname_r): Likewise.
10245         (__getprotobynumber_r): Likewise.
10246         (__getnetgrent_r): Likewise.
10247         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
10248         (__getrpcbynumber_r): Likewise.
10249         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
10251 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10253         [BZ #18822]
10254         * include/stdio.h (__fcloseall): Add attribute_hidden.
10255         (__getline): Likewise.
10256         (__path_search): Likewise.
10257         (__gen_tempname): Likewise.
10258         (__libc_message): Likewise.
10259         (__flockfile): Likewise.
10260         (__funlockfile): Likewise.
10261         (__fxprintf): Likewise.
10262         (__fxprintf_nocancel): Likewise.
10264 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10266         [BZ #18822]
10267         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
10268         (__sgetsgent_r): Likewise.
10270 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10272         [BZ #18822]
10273         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
10274         (__statfs64): Likewise.
10275         (__fstatfs64): Likewise.
10276         * include/sys/statvfs.h (__statvfs64): Likewise.
10277         (__fstatvfs64): Likewise.
10278         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
10279         (__statfs_filesize_max): Likewise.
10280         (__statfs_symlinks): Likewise.
10281         (__statfs_chown_restricted): Likewise.
10283 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10285         [BZ #18822]
10286         * include/time.h (__tzstring): Add attribute_hidden.
10287         (__tzfile_read): Likewise.
10288         (__tzfile_compute): Likewise.
10289         (__tzfile_default): Likewise.
10290         (__tzset_parse_tz): Likewise.
10291         (__offtime): Likewise.
10292         (__asctime_r): Likewise.
10293         (__tzset): Likewise.
10294         (__tz_convert): Likewise.
10295         (__getdate_r): Likewise.
10296         (__getclktck): Likewise.
10298 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10300         [BZ #18822]
10301         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
10302         (__nscd_unmap): Likewise.
10303         (__nscd_cache_search): Likewise.
10304         (__nscd_get_nl_timestamp): Likewise.
10305         (__nscd_getpwnam_r): Likewise.
10306         (__nscd_getpwuid_r): Likewise.
10307         (__nscd_getgrnam_r): Likewise.
10308         (__nscd_getgrgid_r): Likewise.
10309         (__nscd_gethostbyname_r): Likewise.
10310         (__nscd_gethostbyname2_r): Likewise.
10311         (__nscd_gethostbyaddr_r): Likewise.
10312         (__nscd_getai): Likewise.
10313         (__nscd_getgrouplist): Likewise.
10314         (__nscd_getservbyname_r): Likewise.
10315         (__nscd_getservbyport_r): Likewise.
10316         (__nscd_innetgr): Likewise.
10317         (__nscd_setnetgrent): Likewise.
10319 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10321         [BZ #18822]
10322         * include/gmp.h: Declare internal functions only if _ISOMAC is
10323         undefined.
10324         (__mpn_extract_double): Add attribute_hidden.
10325         (__mpn_extract_long_double): Likewise.
10326         (__mpn_extract_float128): Likewise.
10327         (__mpn_construct_float): Likewise.
10328         (__mpn_construct_double): Likewise.
10329         (__mpn_construct_long_double): Likewise.
10330         (__mpn_construct_float128): Likewise.
10331         (mpn_add_1): Likewise.
10332         (mpn_addmul_1): Likewise.
10333         (mpn_add_n): Likewise.
10334         (mpn_cmp): Likewise.
10335         (mpn_divrem): Likewise.
10336         (mpn_lshift): Likewise.
10337         (mpn_mul): Likewise.
10338         (mpn_mul_1): Likewise.
10339         (mpn_rshift): Likewise.
10340         (mpn_sub_1): Likewise.
10341         (mpn_submul_1): Likewise.
10342         (mpn_sub_n): Likewise.
10344 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10346         [BZ #18822]
10347         * include/wchar.h (__wcsnlen): Add attribute_hidden.
10348         (__wcscat): Likewise.
10349         (__btowc): Likewise.
10350         (__wcrtomb): Likewise.
10351         (__mbsrtowcs): Likewise.
10352         (__wcsrtombs): Likewise.
10353         (__mbsnrtowcs): Likewise.
10354         (__wcsnrtombs): Likewise.
10355         (__wcsncpy): Likewise.
10356         (__wcpncpy): Likewise.
10357         (__wmemcpy): Likewise.
10358         (__wmempcpy): Likewise.
10359         (__wmemmove): Likewise.
10360         (__wcschrnul): Likewise.
10361         (__vfwscanf): Likewise.
10362         (__vswprintf): Likewise.
10363         (__fwprintf): Likewise.
10364         (__vfwprintf): Likewise.
10366 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10368         [BZ #18822]
10369         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
10370         (__getgrgid_r): Likewise.
10371         (__getgrnam_r): Likewise.
10372         * include/pwd.h (__getpwuid_r): Likewise.
10373         (__getpwnam_r): Likewise.
10374         (__fgetpwent_r): Likewise.
10375         * include/shadow.h (__getspnam_r): Likewise.
10376         (__sgetspent_r): Likewise.
10377         (__fgetspent_r): Likewise.
10379 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10381         [BZ #18822]
10382         * include/unistd.h (__access): Add attribute_hidden.
10383         (__lseek64): Likewise.
10384         (__libc_pread64): Likewise.
10385         (__pipe2): Likewise.
10386         (__sleep): Likewise.
10387         (__chdir): Likewise.
10388         (__fchdir): Likewise.
10389         (__getcwd): Likewise.
10390         (__rmdir): Likewise.
10391         (__execvpe): Likewise.
10392         (__execve): Likewise.
10393         (__setsid): Likewise.
10394         (__getuid): Likewise.
10395         (__geteuid): Likewise.
10396         (__getgid): Likewise.
10397         (__getegid): Likewise.
10398         (__getgroups): Likewise.
10399         (__group_member): Likewise.
10400         (__ttyname_r): Likewise.
10401         (__isatty): Likewise.
10402         (__readlink): Likewise.
10403         (__unlink): Likewise.
10404         (__gethostname): Likewise.
10405         (__profil): Likewise.
10406         (__getdtablesize): Likewise.
10407         (__brk): Likewise.
10408         (__ftruncate): Likewise.
10409         (__ftruncate64): Likewise.
10411 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10413         [BZ #18822]
10414         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
10415         * argp/argp-fs-xinl.c: Likewise.
10416         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
10417         * argp/argp-parse.c: Include <argp.h>.
10418         * argp/argp-xinl.c: Likewise.
10419         * include/argp-fmtstream.h: New file.
10420         * include/argp.h (__argp_error): Add attribute_hidden.
10421         (__argp_failure): Likewise.
10422         (__argp_input): Likewise.
10423         (__argp_state_help): Likewise.
10425 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10427         [BZ #18822]
10428         * include/wchar.h (____wcstof_l_internal): New prototype.
10429         (____wcstod_l_internal): Likewise.
10430         (____wcstold_l_internal): Likewise.
10431         (____wcstol_l_internal): Likewise.
10432         (____wcstoul_l_internal): Likewise.
10433         (____wcstoll_l_internal): Likewise.
10434         (____wcstoull_l_internal): Likewise.
10435         (____wcstof128_l_internal): Likewise.
10436         * sysdeps/ieee754/float128/wcstof128.c
10437         (____wcstof128_l_internal): Removed.
10438         * sysdeps/ieee754/float128/wcstof128_l.c
10439         (____wcstof128_l_internal): Likewise.
10440         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
10441         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
10442         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
10443         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
10444         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
10445         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
10446         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
10447         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
10448         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
10449         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
10451 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10453         [BZ #18822]
10454         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
10455         instead of <sys/statvfs.h>.
10456         (__internal_statvfs): Removed.
10457         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
10458         instead of <sys/statvfs.h>.
10459         (__internal_statvfs64): Removed.
10460         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
10461         "internal_statvfs.h" instead of <sys/statvfs.h>.
10462         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
10463         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
10464         instead of <sys/statvfs.h>.
10465         (__internal_statvfs): Removed.
10466         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
10467         instead of <sys/statvfs.h>.
10468         (__internal_statvfs64): Removed.
10470 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10472         [BZ #18822]
10473         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
10474         (__gconv_close): Likewise.
10475         (__gconv): Likewise.
10476         (__gconv_find_transform): Likewise.
10477         (__gconv_lookup_cache): Likewise.
10478         (__gconv_compare_alias_cache): Likewise.
10479         (__gconv_load_cache): Likewise.
10480         (__gconv_get_path): Likewise.
10481         (__gconv_close_transform): Likewise.
10482         (__gconv_release_cache): Likewise.
10483         (__gconv_find_shlib): Likewise.
10484         (__gconv_release_shlib): Likewise.
10485         (__gconv_get_builtin_trans): Likewise.
10486         (__gconv_compare_alias): Likewise.
10487         * include/dlfcn.h (_dlerror_run): Likewise.
10488         * include/stdio.h (__fortify_fail_abort): Likewise.
10489         * include/time.h (__tz_compute): Likewise.
10490         (__strptime_internal): Likewise.
10491         * intl/gettextP.h (_nl_find_domain): Likewise.
10492         (_nl_load_domain): Likewise.
10493         (_nl_find_msg): Likewise.
10494         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
10495         (EXTRACT_PLURAL_EXPRESSION): Likewise.
10496         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
10497         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
10498         (__gai_find_request): Likewise.
10499         (__gai_remove_request): Likewise.
10500         (__gai_notify): Likewise.
10501         (__gai_notify_only): Likewise.
10502         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
10503         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
10504         (_dl_non_dynamic_init): Likewise.
10505         (_dl_aux_init): Likewise.
10506         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
10507         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
10508         Likewise.
10509         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
10510         (__wcsmbs_clone_conv): Likewise.
10511         (__wcsmbs_named_conv): Likewise.
10513 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10515         [BZ #18822]
10516         * include/stdlib.h (__random): Add attribute_hidden.
10517         (__random_r): Likewise.
10518         (__srandom_r): Likewise.
10519         (__initstate_r): Likewise.
10520         (__setstate_r): Likewise.
10521         (__erand48_r): Likewise.
10522         (__nrand48_r): Likewise.
10523         (__jrand48_r): Likewise.
10524         (__srand48_r): Likewise.
10525         (__seed48_r): Likewise.
10526         (__lcong48_r): Likewise.
10527         (__drand48_iterate): Likewise.
10528         (__setenv): Likewise.
10529         (__unsetenv): Likewise.
10530         (__clearenv): Likewise.
10531         (__ptsname_r): Likewise.
10532         (__posix_openpt): Likewise.
10533         (__add_to_environ): Likewise.
10534         (__realpath): Add libc_hidden_proto.
10535         (__ecvt_r): Likewise.
10536         (__fcvt_r): Likewise.
10537         (__qecvt_r): Likewise.
10538         (__qfcvt_r): Likewise.
10539         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
10540         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
10542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
10544         [BZ #18822]
10545         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
10546         * include/time.h (__mktime_internal): Likewise.
10547         * libio/iolibio.h (__fopen_internal): Likewise.
10549 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
10551         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
10552         pointer in frame.
10553         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
10554         Correct offset used to restore PIC register.
10556 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
10558         [BZ libc/22165]
10559         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
10560         code to load address of __getcontext_ret when generating PIC code.
10562 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10564         * elf/Makefile (tests-static-internal): Add
10565         tst-tls1-static-non-pie.
10566         (LDFLAGS-tst-tls1-static-non-pie): New.
10567         * elf/tst-tls1-static-non-pie.c: New file.
10569 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
10571         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
10572         (asinh): Define using libm_alias_double.
10573         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
10574         (cbrt): Define using libm_alias_double.
10575         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
10576         <libm-alias-double.h>.
10577         (copysign): Define using libm_alias_double.
10578         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
10579         (erf): Define using libm_alias_double.
10580         (erfc): Likewise.
10581         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
10582         (expm1): Define using libm_alias_double.
10583         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
10584         (fabs): Define using libm_alias_double.
10585         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
10586         libm_alias_double.
10587         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
10588         <libm-alias-double.h>.
10589         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
10590         libm_alias_double.
10591         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
10592         <libm-alias-double.h>.
10593         (getpayload): Define using libm_alias_double.
10594         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
10595         <libm-alias-double.h>.
10596         (llrint): Define using libm_alias_double.
10597         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
10598         (lrint): Define using libm_alias_double.
10599         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
10600         <libm-alias-double.h>.
10601         (nextup): Define using libm_alias_double.
10602         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
10603         <libm-alias-double.h>.
10604         (roundeven): Define using libm_alias_double.
10605         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
10606         libm_alias_double.
10607         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
10608         <libm-alias-double.h>.
10609         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
10610         using libm_alias_double.
10611         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
10612         (cos): Define using libm_alias_double.
10613         (sin): Likewise.
10614         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
10615         <libm-alias-double.h>.
10616         (sincos): Define using libm_alias_double.
10617         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
10618         (tanh): Define using libm_alias_double.
10619         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
10620         <libm-alias-double.h>.
10621         (totalorder): Define using libm_alias_double.
10622         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
10623         <libm-alias-double.h>.
10624         (totalordermag): Define using libm_alias_double.
10625         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
10626         libm_alias_double.
10627         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
10628         libm_alias_double.
10629         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
10630         <libm-alias-double.h>.
10631         (getpayload): Define using libm_alias_double.
10632         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
10633         <libm-alias-double.h>.
10634         (roundeven): Define using libm_alias_double.
10635         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
10636         <libm-alias-double.h>.
10637         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
10638         <libm-alias-double.h>.
10639         (totalorder): Define using libm_alias_double.
10640         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
10641         <libm-alias-double.h>.
10642         (totalordermag): Define using libm_alias_double.
10643         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
10644         libc compat symbol here.
10645         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
10646         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
10647         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
10648         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
10649         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
10650         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
10651         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
10652         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
10653         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
10654         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
10656 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10658         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
10659         _dl_relocate_static_pie instead of _dl_start to compute load
10660         address in static PIE.  Return 0 if _DYNAMIC is undefined for
10661         static executable.
10663 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10665         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
10666         _DYNAMIC is undefined for static executable.
10668 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
10670         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
10672 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
10674         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10676 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
10678         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
10679         (__ieee754_lgamma_r): Use fabs rather than __fabs.
10680         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10681         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10682         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
10683         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
10684         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10685         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
10686         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
10687         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
10688         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
10689         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
10690         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
10691         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
10692         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
10693         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
10694         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
10696 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
10698         * math/bits/cmathcalls.h (cimag): Remove inline.
10699         (creal): Remove inline.
10700         (conj): Remove inline.
10702 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10704         * math/Makefile (type-float-routines): Add e_powf_log2_data.
10705         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
10706         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
10707         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
10708         (issignalingf_inline): Likewise.
10709         (POWF_LOG2_TABLE_BITS): Likewise.
10710         (POWF_LOG2_POLY_ORDER): Likewise.
10711         (POWF_SCALE_BITS): Likewise.
10712         (POWF_SCALE): Likewise.
10713         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
10714         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
10715         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
10717 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10719         * math/Makefile (type-float-routines): Add e_log2f_data.
10720         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
10721         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
10722         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
10723         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
10724         * sysdeps/i386/fpu/e_log2f_data.c: New file.
10725         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
10726         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
10728 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10730         * math/Makefile (type-float-routines): Add e_logf_data.
10731         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
10732         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
10733         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
10734         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
10735         * sysdeps/i386/fpu/e_logf_data.c: New file.
10736         * sysdeps/ia64/fpu/e_logf_data.c: New file.
10737         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
10739 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
10741         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
10742         undefined _DYNAMIC in PIE libc.a.
10743         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
10744         Likewse.
10746 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
10748         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
10749         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
10750         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
10751         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
10752         (__signbit): Remove.
10753         (__signbitl): Remove.
10754         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
10755         (__signbit): Remove.
10756         (__signbitl): Remove.
10757         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
10758         (__signbit): Remove.
10759         (__signbitl): Remove.
10760         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
10761         (__signbit): Remove.
10762         (__signbitl): Remove.
10763         * sysdeps/tile/bits/mathinline.h: Delete file.
10764         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
10765         (__signbit): Remove.
10766         (__signbitl): Remove.
10768 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
10770         * math/math.h: Improve handling of C99 isgreater macros.
10771         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
10772         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
10773         * sysdeps/powerpc/bits/mathinline.h: Likewise.
10774         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10775         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
10777 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10779         * sysdeps/aarch64/libm-test-ulps: Update.
10781 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
10783         [BZ #22225]
10784         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
10785         math_opt_barrier on argument when doing arithmetic on it.
10786         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10787         Likewise.  Use math_force_eval not math_opt_barrier after
10788         arithmetic.
10789         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
10790         math_opt_barrier on argument when doing arithmetic on it.
10791         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10792         Likewise.
10794 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
10796         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
10797         libc_hidden_def.
10798         (__freeifaddrs): Likewise.
10800 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10802         * include/dirent.h (__dirfd): New declaration.
10803         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
10804         alias.
10805         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
10806         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
10807         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
10808         * include/unistd.h (__revoke): New declaration.
10809         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
10810         alias.
10811         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
10812         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
10813         revoke.
10814         * include/dirent.h (__seekdir): New declaration.
10815         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
10816         redefine as weak alias.
10817         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
10818         of seekdir.
10819         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
10820         and use libc_hidden_def on them.
10821         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
10822         them.
10823         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
10824         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
10825         instead of getifaddrs and freeifaddrs.
10827 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
10829         [BZ #18822]
10830         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
10831         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
10832         (__dso_handle): Remove declaration.
10833         * dlfcn/tstatexit.c (__dso_handle): Removed.
10834         (main): Don't check __dso_handle.
10835         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
10836         (main): Don't check __dso_handle.
10837         * include/dso_handle.h: New file.
10838         * malloc/mtrace.c: Include <dso_handle.h>.
10839         (mtrace): Pass __dso_handle directly.
10840         * nptl/pthread_atfork.c: Include <dso_handle.h>.
10841         (__dso_handle): Remove declaration.
10842         (__pthread_atfork): Pass __dso_handle directly.
10843         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
10844         (__dso_handle): Removed.
10845         * posix/wordexp-test.c: Include <dso_handle.h>.
10846         (__dso_handle): Remove declaration.
10847         (__app_register_atfork): Pass __dso_handle directly.
10848         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
10849         (__dso_handle): Remove declaration.
10850         (at_quick_exit): Pass __dso_handle directly.
10851         * stdlib/atexit.c: Include <dso_handle.h>.
10852         (__dso_handle): Remove declaration.
10853         (atexit): Pass __dso_handle directly.
10854         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
10855         (__dso_handle): Removed.
10857 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
10859         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
10860         using VDSO.
10862 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
10864         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
10865         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
10866         values to correct default value for given type.
10868 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
10870         [BZ #22101]
10871         * elf/Makefile (tests): Add tst-debug1.
10872         ($(objpfx)tst-debug1): New.
10873         ($(objpfx)tst-debug1.out): Likewise.
10874         ($(objpfx)tst-debug1mod1.so): Likewise.
10875         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
10876         with p_filesz == 0.
10877         * elf/tst-debug1.c: New file.
10879 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
10881         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
10882         Define using __ifunc.
10884 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10886         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
10887         exp2f() values.
10889 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
10891         [BZ #22156]
10892         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
10894 2017-09-26  Florian Weimer  <fweimer@redhat.com>
10896         * resolv/Makefile (tests-internal): Fix typo in comment.
10898 2017-09-26  Florian Weimer  <fweimer@redhat.com>
10900         * resolv/nss_dns/dns-host.c: Fix typo in comment.
10902 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10904         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
10905         Use an union instead of a max_align_t array for __space,
10906         so that __space is the same size on all platforms.
10907         * malloc/scratch_buffer_grow_preserve.c
10908         (__libc_scratch_buffer_grow_preserve): Likewise.
10910         [BZ #22183]
10911         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
10912         version to 2.
10913         * posix/Makefile (routines): Add glob-lstat-compat and
10914         glob64-lstat-compat.
10915         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
10916         * posix/glob-lstat-compat.c: New file.
10917         * posix/glob64-lstat-compat.c: Likewise.
10918         * posix/tst-glob_lstat_compat.c: Likewise.
10919         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
10920         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
10921         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
10922         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
10923         Likewise.
10924         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
10925         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
10926         * posix/glob.c (glob_lstat): New function.
10927         (glob): Rename to __glob and add versioned symbol to 2.27.
10928         (glob_in_dir): Use glob_lstat.
10929         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
10930         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10931         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
10932         2.27.
10933         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
10934         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
10935         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
10936         gl_lstat on glob call.
10937         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
10938         and glob64 symbols.
10939         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10940         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10941         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10942         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10943         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10944         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10945         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10946         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10947         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10948         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10949         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10950         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10952         Likewise.
10953         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
10954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10955         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10956         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10957         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10958         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10959         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
10961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
10962         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10963         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10964         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10966 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
10968         * configure.ac (AS): Require binutils 2.25 or later.
10969         * configure: Regenerated.
10971 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
10973         [BZ #22207]
10974         * stdlib/test-atexit-race-common.c (do_test): Minimize required
10975         VM size.
10977 2017-09-25  DJ Delorie  <dj@redhat.com>
10979         [BZ #22161]
10980         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
10981         resetting timeout.
10983 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
10985         * sysdeps/ieee754/dbl-64/sincos32.h
10986         [SINCCOS32_H]: Remove define.
10987         [SINCOS32_H]: Define.
10989 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10991         * math/Versions (expf): New libm symbol at GLIBC_2.27.
10992         (exp2f): Likewise.
10993         * math/w_exp2f.c: New file.
10994         * math/w_expf.c: New file.
10995         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
10996         * math/w_expf_compat.c (__expf_compat): Likewise.
10997         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
10998         * sysdeps/ia64/fpu/e_expf.S: Likewise.
10999         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11000         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11001         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11002         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11003         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11004         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11005         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11006         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11007         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11008         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11009         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11010         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11012         Likewise.
11013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11014         Likewise.
11015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11016         Likewise.
11017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11018         Likewise.
11019         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11020         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11021         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11022         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11023         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11024         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11025         Likewise.
11026         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11027         Likewise.
11028         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11029         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11030         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11032 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11034         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
11035         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
11036         (roundtoint, converttoint): Likewise.
11037         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
11038         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
11039         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
11040         * sysdeps/ieee754/flt-32/math_config.h: New file.
11041         * sysdeps/ieee754/flt-32/math_errf.c: New file.
11042         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
11043         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
11044         * sysdeps/i386/fpu/math_errf.c: New file.
11045         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
11046         * sysdeps/ia64/fpu/math_errf.c: New file.
11047         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
11048         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
11050 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11052         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
11053         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
11054         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
11055         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
11056         to make sure that these symbols are defined.
11057         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
11058         of <limits.h>
11059         (__need_NULL): Do not define.
11060         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
11061         alignment.
11062         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
11063         CMGROUP_MAX, cmsgcred): Do not define.
11064         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
11065         NULL.
11066         * bits/socket.h: Likewise.
11067         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
11068         __gettimeofday instead of gettimeofday.
11069         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
11070         instead of settimeofday.
11072 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
11074         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
11075         (asinhf): Define using libm_alias_float.
11076         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
11077         (atanf): Define using libm_alias_float.
11078         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
11079         (cbrtf): Define using libm_alias_float.
11080         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
11081         (ceilf): Define using libm_alias_float.
11082         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
11083         <libm-alias-float.h>.
11084         (copysignf): Define using libm_alias_float.
11085         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
11086         (cosf): Define using libm_alias_float.
11087         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
11088         (erff): Define using libm_alias_float.
11089         (erfcf): Likewise.
11090         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
11091         (expm1f): Define using libm_alias_float.
11092         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
11093         (fabsf): Define using libm_alias_float.
11094         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
11095         (floorf): Define using libm_alias_float.
11096         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
11097         (frexpf): Define using libm_alias_float.
11098         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
11099         libm_alias_float.
11100         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
11101         <libm-alias-float.h>.
11102         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
11103         libm_alias_float.
11104         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
11105         <libm-alias-float.h>.
11106         (getpayloadf): Define using libm_alias_float.
11107         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
11108         <libm-alias-float.h>.
11109         (llrintf): Define using libm_alias_float.
11110         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
11111         <libm-alias-float.h>.
11112         (llroundf): Define using libm_alias_float.
11113         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
11114         (logbf): Define using libm_alias_float.
11115         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
11116         (lrintf): Define using libm_alias_float.
11117         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
11118         (lroundf): Define using libm_alias_float.
11119         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
11120         (modff): Define using libm_alias_float.
11121         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
11122         <libm-alias-float.h>.
11123         (nearbyintf): Define using libm_alias_float.
11124         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
11125         <libm-alias-float.h>.
11126         (nextafterf): Define using libm_alias_float.
11127         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
11128         <libm-alias-float.h>.
11129         (nextupf): Define using libm_alias_float.
11130         * sysdeps/ieee754/flt-32/s_remquof.c: Include
11131         <libm-alias-float.h>.
11132         (remquof): Define using libm_alias_float.
11133         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
11134         (rintf): Define using libm_alias_float.
11135         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
11136         <libm-alias-float.h>.
11137         (roundevenf): Define using libm_alias_float.
11138         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
11139         (roundf): Define using libm_alias_float.
11140         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
11141         using libm_alias_float.
11142         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
11143         <libm-alias-float.h>.
11144         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
11145         Define using libm_alias_float.
11146         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
11147         <libm-alias-float.h>.
11148         (sincosf): Define using libm_alias_float.
11149         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
11150         (sinf): Define using libm_alias_float.
11151         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
11152         (tanf): Define using libm_alias_float.
11153         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
11154         (tanhf): Define using libm_alias_float.
11155         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
11156         <libm-alias-float.h>.
11157         (totalorderf): Define using libm_alias_float.
11158         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
11159         <libm-alias-float.h>.
11160         (totalordermagf): Define using libm_alias_float.
11161         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
11162         (truncf): Define using libm_alias_float.
11163         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
11164         libm_alias_float.
11165         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
11166         libm_alias_float.
11168 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11170         [BZ #22146]
11171         math/math.h: Let fpclassify use the builtin in C++ mode, even
11172         when optimazing for size.
11174 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
11176         * csu/Makefile (generated): Do not add version-info.h.
11177         (before-compile): Likewise.
11178         (all-Banner-files): Remove variable.
11179         ($(objpfx)version-info.h): Remove rule.
11180         * csu/version.c (banner): Do not include "version-info.h".
11181         * libidn/Banner: Remove.
11182         * manual/contrib.texi (Simon Josefsson): New entry.
11184 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11186         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11187         Remove conditionals on LDBL_MANT_DIG.
11188         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
11189         (__ieee754_lgammal_r): Likewise.
11191 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11193         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
11194         _Float128 and L().
11195         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
11196         _Float128 and L(). Replace _Float128 with long double and L(x)
11197         with xL, throughout the file.
11198         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11199         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11200         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11201         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
11203 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11205         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
11206         sysdeps/ieee754/ldbl-128ibm.
11207         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
11208         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
11209         of including it.  Keep _Float128 and L() intact.  These will be
11210         reviewed by a separate patch.
11211         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11212         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
11213         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
11214         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
11216 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
11219         (__finitef128): Define to __redirect___finitef128.
11220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
11221         (__isinff128): Define to __redirect___isinff128.
11222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
11223         (__isnanf128): Define to __redirect___isnanf128.
11225 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11227         * sysdeps/powerpc/powerpc64le/Makefile
11228         (CFLAGS-tst-strtod-nan-locale.c): New variable.
11229         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
11231 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
11232             Carlos O'Donell  <carlos@redhat.com>
11234         [BZ #22180]
11235         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
11236         * stdlib/test-dlclose-exit-race.c: New file.
11237         * stdlib/test-dlclose-exit-race-helper.c: New file.
11238         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
11240 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
11242         * crypt/Banner: Remove file.
11243         * nptl/Banner: Likewise.
11244         * resolv/Banner: Likewise.
11245         * soft-fp/Banner: Likewise.
11246         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
11247         ($(objpfx)version.d): Remove dependency on banner.h.
11248         ($(objpfx)version.os): Likewise.
11249         * nptl/version.c (banner): Do not include banner.h.
11250         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
11251         Jelinek and BIND code.
11253 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11254             Carlos O'Donell  <carlos@redhat.com>
11256         * support/xdlfcn.h: New file.
11257         * support/xdlfcn.c: New file.
11258         * support/Makefile (libsupport-routines): Add xdlfcn.
11259         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
11261 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
11263         [BZ #20142]
11264         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11265         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
11266         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
11267         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
11268         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
11269         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
11270         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
11271         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
11273 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11274             Ricky Zhou  <rickyz@google.com>
11275             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
11277         [BZ #14333]
11278         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
11279         Remove atomics.
11280         (__new_exitfn): Fail registration when we finished at_exit processing.
11281         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
11282         * stdlib/on_exit.c (__on_exit): Likewise.
11283         * stdlib/exit.c (__exit_funcs_done): New variable.
11284         (__run_exit_handlers): Use __exit_funcs_lock.
11285         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
11286         declarations.
11287         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
11288         (test-cxa_atexit-race, test-on_exit-race): New tests.
11289         * stdlib/test-atexit-race-common.c: New file.
11290         * stdlib/test-atexit-race.c: New file.
11291         * stdlib/test-at_quick_exit-race.c: New file.
11292         * stdlib/test-cxa_atexit-race.c: New file.
11293         * stdlib/test-on_exit-race.c: New file.
11295 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11297         * benchtests/Makefile: Add exp2f and log2f benchmarks.
11298         * benchtests/exp2f-inputs: Copy of expf-inputs.
11299         * benchtests/log2f-inputs: Copy of logf-inputs.
11301 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
11303         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
11304         Explicitly take address of first element of array arguments in
11305         call to INLINE_SYSCALL.
11307 2017-09-19  Andreas Schwab  <schwab@suse.de>
11309         [BZ #22134]
11310         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
11311         execveat first.
11312         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
11313         unimplemented.
11314         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
11315         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
11316         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11317         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
11318         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11319         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
11320         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11321         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
11322         * posix/Makefile (tests): Add tst-fexecve.
11323         * posix/tst-fexecve.c: New file.
11325 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
11327         * benchtests/Makefile: Add logf benchmark.
11328         * benchtests/logf-inputs: Add reduced trace from wrf_r.
11330 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
11332         * benchtests/Makefile: Add expf benchmark.
11333         * benchtests/expf-inputs: Add reduced trace from wrf_r.
11335 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
11337         * csu/Makefile: Add -funwind-tables to libc-start.c.
11338         * debug/Makefile: Add -funwind-tables to backtrace.c.
11339         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
11340         * sysdeps/arm/Makefile: Likewise.
11341         * sysdeps/i386/Makefile: Likewise.
11342         * sysdeps/m68k/Makefile: Likewise.
11343         * sysdeps/mips/Makefile: Likewise.
11344         * sysdeps/nios2/Makefile: Likewise.
11345         * sysdeps/sh/Makefile: Likewise.
11346         * sysdeps/sparc/Makefile: Likewise.
11348 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
11350         * benchtests/Makefile (bench-math): Add trunc and truncf.
11351         (CFLAGS-bench-trunc.c): New variable.
11352         (CFLAGS-bench-truncf.c): Likewise.
11353         * benchtests/trunc-inputs: New file.
11354         * benchtests/truncf-inputs: Likewise.
11356 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11358         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
11360 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
11362         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
11363         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
11364         redefine.
11365         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
11366         (exp10l): Define as weak alias.
11367         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
11368         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
11369         and redefine.
11370         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
11371         (remainderl): Define as weak alias.
11373         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
11374         (fmal): Define using libm_alias_ldouble.
11375         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
11376         (acoshl): Define using libm_alias_ldouble.
11377         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
11378         (acosl): Define using libm_alias_ldouble.
11379         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
11380         (asinl): Define using libm_alias_ldouble.
11381         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
11382         (atan2l): Define using libm_alias_ldouble.
11383         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
11384         (atanhl): Define using libm_alias_ldouble.
11385         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
11386         (coshl): Define using libm_alias_ldouble.
11387         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
11388         (exp10l): Define using libm_alias_ldouble.
11389         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
11390         (exp2l): Define using libm_alias_ldouble.
11391         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
11392         (expl): Define using libm_alias_ldouble.
11393         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
11394         (fmodl): Define using libm_alias_ldouble.
11395         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
11396         (hypotl): Define using libm_alias_ldouble.
11397         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
11398         (j0l): Define using libm_alias_ldouble.
11399         (y0l): Likewise.
11400         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
11401         (j1l): Define using libm_alias_ldouble.
11402         (y1l): Likewise.
11403         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
11404         (jnl): Define using libm_alias_ldouble.
11405         (ynl): Likewise.
11406         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
11407         (log10l): Define using libm_alias_ldouble.
11408         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
11409         (log2l): Define using libm_alias_ldouble.
11410         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
11411         (logl): Define using libm_alias_ldouble.
11412         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
11413         (powl): Define using libm_alias_ldouble.
11414         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
11415         (remainderl): Define using libm_alias_ldouble.
11416         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
11417         (sinhl): Define using libm_alias_ldouble.
11418         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
11419         (sqrtl): Define using libm_alias_ldouble.
11420         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
11421         (tgammal): Define using libm_alias_ldouble.
11422         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
11423         (exp10l): Do not use long_double_symbol here.
11424         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
11425         [LIBM_SVID_COMPAT] (remainderl): Likewise.
11426         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
11427         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
11428         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
11429         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
11430         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
11431         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
11432         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
11433         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
11434         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
11435         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
11436         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
11437         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
11438         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
11439         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
11440         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
11441         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
11442         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
11443         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
11444         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
11445         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
11447 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
11449         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
11450         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
11452 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11454         * io/read.c (read): Add libc_hidden_weak.
11455         * sysdeps/mach/hurd/read.c (read): Likewise.
11456         * io/write.c (write): Likewise.
11457         * sysdeps/mach/hurd/write.c (write): Likewise.
11458         * io/pread64.c (__pread64): Likewise.
11459         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
11460         * posix/pread64.c (__pread64): Add libc_hidden_def.
11462 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11464         * benchtests/scripts/compare_strings.py: New option -g.
11465         (draw_graph): Print a message that a graph is being generated.
11466         (process_results): Generate graph only if -g is passed.
11467         (main): Process option -g.
11469         * benchtests/scripts/compare_strings.py (process_results):
11470         Better spacing for output.
11472         * benchtests/scripts/compare_strings.py: Use argparse.
11473         * benchtests/README: Document existence of compare_strings.py.
11475 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
11477         * math/s_fma.c: Include <libm-alias-double.h>.
11478         (fma): Define using libm_alias_double.
11479         * math/s_nextafter.c: Include <libm-alias-double.h>.
11480         (nextafter): Define using libm_alias_double.
11481         * math/w_acos_compat.c: Include <libm-alias-double.h>.
11482         (acos): Define using libm_alias_double.
11483         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
11484         (aocsh): Define using libm_alias_double.
11485         * math/w_asin_compat.c: Include <libm-alias-double.h>.
11486         (asin): Define using libm_alias_double.
11487         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
11488         (atan2): Define using libm_alias_double.
11489         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
11490         (atanh): Define using libm_alias_double.
11491         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
11492         (cosh): Define using libm_alias_double.
11493         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
11494         (exp10): Define using libm_alias_double.
11495         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
11496         (exp2): Define using libm_alias_double.
11497         * math/w_exp_compat.c: Include <libm-alias-double.h>.
11498         (exp): Define using libm_alias_double.
11499         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
11500         (fmod): Define using libm_alias_double.
11501         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
11502         (hypot): Define using libm_alias_double.
11503         * math/w_j0_compat.c: Include <libm-alias-double.h>.
11504         (j0): Define using libm_alias_double.
11505         (y0): Likewise.
11506         * math/w_j1_compat.c: Include <libm-alias-double.h>.
11507         (j1): Define using libm_alias_double.
11508         (y1): Likewise.
11509         * math/w_jn_compat.c: Include <libm-alias-double.h>.
11510         (jn): Define using libm_alias_double.
11511         (yn): Likewise.
11512         * math/w_log10_compat.c: Include <libm-alias-double.h>.
11513         (log10): Define using libm_alias_double.
11514         * math/w_log2_compat.c: Include <libm-alias-double.h>.
11515         (log2): Define using libm_alias_double.
11516         * math/w_log_compat.c: Include <libm-alias-double.h>.
11517         (log): Define using libm_alias_double.
11518         * math/w_pow_compat.c: Include <libm-alias-double.h>.
11519         (pow): Define using libm_alias_double.
11520         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
11521         (remainder): Define using libm_alias_double.
11522         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
11523         (sinh): Define using libm_alias_double.
11524         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
11525         (sqrt): Define using libm_alias_double.
11526         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
11527         (tgamma): Define using libm_alias_double.
11528         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
11529         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
11530         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
11531         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
11532         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
11533         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
11534         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
11535         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
11536         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
11537         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
11538         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
11539         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
11540         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
11541         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
11542         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
11543         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
11544         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
11545         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
11546         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
11547         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
11548         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
11549         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
11550         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
11551         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
11552         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
11554         * math/e_acoshl.c: Remove.
11555         * math/e_acosl.c: Likewise.
11556         * math/e_asinl.c: Likewise.
11557         * math/e_atan2l.c: Likewise.
11558         * math/e_atanhl.c: Likewise.
11559         * math/e_coshl.c: Likewise.
11560         * math/e_expl.c: Likewise.
11561         * math/e_fmodl.c: Likewise.
11562         * math/e_gammal_r.c: Likewise.
11563         * math/e_hypotl.c: Likewise.
11564         * math/e_j0l.c: Likewise.
11565         * math/e_j1l.c: Likewise.
11566         * math/e_jnl.c: Likewise.
11567         * math/e_lgammal_r.c: Likewise.
11568         * math/e_log10l.c: Likewise.
11569         * math/e_log2l.c: Likewise.
11570         * math/e_logl.c: Likewise.
11571         * math/e_powl.c: Likewise.
11572         * math/e_rem_pio2l.c: Likewise.
11573         * math/e_sinhl.c: Likewise.
11574         * math/e_sqrtf128.c: Likewise.
11575         * math/e_sqrtl.c: Likewise.
11576         * math/k_cosl.c: Likewise.
11577         * math/k_sinl.c: Likewise.
11578         * math/k_tanl.c: Likewise.
11579         * math/s_asinhl.c: Likewise.
11580         * math/s_atanl.c: Likewise.
11581         * math/s_cbrtl.c: Likewise.
11582         * math/s_erfl.c: Likewise.
11583         * math/s_expm1l.c: Likewise.
11584         * math/s_log1pl.c: Likewise.
11585         * math/s_tanhl.c: Likewise.
11587 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11589         [BZ #21745]
11590         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
11591         [$(subdir) = math] (sysdep_calls): New variable.  Has the
11592         previous contents of sysdep_routines, but re-sorted..
11593         [$(subdir) = math] (sysdep_routines): Re-use the contents from
11594         sysdep_calls.
11595         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
11596         defined in sysdep_calls and replace by the respective m_* names.
11597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
11598         (compat_symbol): Undefine to avoid duplicated compat symbols in
11599         libc.
11601 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
11603         * math/s_fmaf.c: Include <libm-alias-float.h>.
11604         (fmaf): Define using libm_alias_float.
11605         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
11606         (acosf): Define using libm_alias_float.
11607         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
11608         (acoshf): Define using libm_alias_float.
11609         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
11610         (asinf): Define using libm_alias_float.
11611         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
11612         (atan2f): Define using libm_alias_float.
11613         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
11614         (atanhf): Define using libm_alias_float.
11615         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
11616         (coshf): Define using libm_alias_float.
11617         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
11618         (exp10f): Define using libm_alias_float.
11619         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
11620         (fmodf): Define using libm_alias_float.
11621         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
11622         (hypotf): Define using libm_alias_float.
11623         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
11624         (j0f): Define using libm_alias_float.
11625         (y0f): Likewise.
11626         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
11627         (j1f): Define using libm_alias_float.
11628         (y1f): Likewise.
11629         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
11630         (jnf): Define using libm_alias_float.
11631         (ynf): Likewise.
11632         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
11633         (log10f): Define using libm_alias_float.
11634         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
11635         (log2f): Define using libm_alias_float.
11636         * math/w_logf_compat.c: Include <libm-alias-float.h>.
11637         (logf): Define using libm_alias_float.
11638         * math/w_powf_compat.c: Include <libm-alias-float.h>.
11639         (powf): Define using libm_alias_float.
11640         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
11641         (remainderf): Define using libm_alias_float.
11642         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
11643         (sinhf): Define using libm_alias_float.
11644         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
11645         (sqrtf): Define using libm_alias_float.
11646         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
11647         (tgammaf): Define using libm_alias_float.
11649 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
11651         * include/math.h (roundeven): Change hidden_proto call to
11652         __roundeven.
11653         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
11654         alias.
11655         [NO_LONG_DOUBLE] (__j0l): New strong alias.
11656         (y0): Rename to __y0 and define as weak alias.
11657         [NO_LONG_DOUBLE] (__y0l): New strong alias.
11658         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
11659         alias.
11660         (y0f): Rename to __y0f and define as weak alias.
11661         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
11662         alias.
11663         [NO_LONG_DOUBLE] (__j1l): New strong alias.
11664         (y1): Rename to __y1 and define as weak alias.
11665         [NO_LONG_DOUBLE] (__y1l): New strong alias.
11666         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
11667         alias.
11668         (y1f): Rename to __y1f and define as weak alias.
11669         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
11670         alias.
11671         [NO_LONG_DOUBLE] (__jnl): New strong alias.
11672         (yn): Rename to __yn and define as weak alias.
11673         [NO_LONG_DOUBLE] (__ynl): New strong alias.
11674         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
11675         alias.
11676         (ynf): Rename to __ynf and define as weak alias.
11677         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
11678         (fromfp): Define as weak alias.
11679         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
11680         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
11681         (fromfpx): Define as weak alias.
11682         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
11683         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
11684         __getpayload and define as weak alias.
11685         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
11686         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
11687         __roundeven and define as weak alias.
11688         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
11689         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
11690         __setpayload.
11691         (setpayload): Define as weak alias.
11692         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
11693         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
11694         __setpayloadsig.
11695         (setpayloadsig): Define as weak alias.
11696         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
11697         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
11698         __totalorder and define as weak alias.
11699         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
11700         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
11701         to __totalordermag and define as weak alias.
11702         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
11703         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
11704         (ufromfp): Define as weak alias.
11705         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
11706         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
11707         __ufromfpx.
11708         (ufromfpx): Define as weak alias.
11709         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
11710         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
11711         Rename to __getpayload and define as weak alias.
11712         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
11713         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
11714         Rename to __roundeven and define as weak alias.
11715         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
11716         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
11717         Rename to __totalorder and define as weak alias.
11718         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
11719         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
11720         (totalordermag): Rename to __totalordermag and define as weak
11721         alias.
11722         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
11723         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
11724         macro.
11725         (__roundevenl): Likewise.
11726         (__totalorderl): Likewise.
11727         (__totalordermagl): Likewise
11728         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
11729         __fromfpf128.
11730         (fromfpf128): Define as weak alias.
11731         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
11732         __fromfpxf128.
11733         (fromfpxf128): Define as weak alias.
11734         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
11735         __setpayloadf128.
11736         (setpayloadf128): Define as weak alias.
11737         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
11738         __setpayloadsigf128.
11739         (setpayloadsigf128): Define as weak alias.
11740         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
11741         __ufromfpf128.
11742         (ufromfpf128): Define as weak alias.
11743         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
11744         __ufromfpxf128.
11745         (ufromfpxf128): Define as weak alias.
11746         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
11747         (fromfpf): Define as weak alias.
11748         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
11749         __fromfpxf.
11750         (fromfpxf): Define as weak alias.
11751         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
11752         __getpayloadf and define as weak alias.
11753         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
11754         __roundevenf and define as weak alias.
11755         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
11756         __setpayloadf.
11757         (setpayloadf): Define as weak alias.
11758         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
11759         __setpayloadsigf.
11760         (setpayloadsigf): Define as weak alias.
11761         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
11762         __totalorderf and define as weak alias.
11763         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
11764         Rename to __totalordermagf and define as weak alias.
11765         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
11766         __ufromfpf.
11767         (ufromfpf): Define as weak alias.
11768         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
11769         __ufromfpxf.
11770         (ufromfpxf): Define as weak alias.
11771         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
11772         __fromfpl.
11773         (fromfpl): Define as weak alias.
11774         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
11775         __fromfpxl.
11776         (fromfpxl): Define as weak alias.
11777         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
11778         to __getpayloadl and define as weak alias.
11779         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
11780         __roundevenl and define as weak alias.
11781         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
11782         __setpayloadl.
11783         (setpayloadl): Define as weak alias.
11784         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
11785         __setpayloadsigl.
11786         (setpayloadsigl): Define as weak alias.
11787         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
11788         to __totalorderl and define as weak alias.
11789         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
11790         Rename to __totalordermagl and define as weak alias.
11791         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
11792         __ufromfpl.
11793         (ufromfpl): Define as weak alias.
11794         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
11795         __ufromfpxl.
11796         (ufromfpxl): Define as weak alias.
11797         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
11798         __fromfpl.
11799         (fromfpl): Define as weak alias.
11800         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
11801         __fromfpxl.
11802         (fromfpxl): Define as weak alias.
11803         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
11804         Rename to __getpayloadl and define as weak alias.
11805         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
11806         to __roundevenl and define as weak alias.  Call __roundeven
11807         instead of roundeven.
11808         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
11809         __setpayloadl.
11810         (setpayloadl): Define as weak alias.
11811         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
11812         __setpayloadsigl.
11813         (setpayloadsigl): Define as weak alias.
11814         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
11815         Rename to __totalorderl and define as weak alias.
11816         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
11817         Rename to __totalordermagl and define as weak alias.
11818         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
11819         __ufromfpl.
11820         (ufromfpl): Define as weak alias.
11821         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
11822         __ufromfpxl.
11823         (ufromfpxl): Define as weak alias.
11824         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
11825         __fromfpl.
11826         (fromfpl): Define as weak alias.
11827         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
11828         __fromfpxl.
11829         (fromfpxl): Define as weak alias.
11830         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
11831         __getpayloadl and define as weak alias.
11832         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
11833         __roundevenl and define as weak alias.
11834         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
11835         __setpayloadl.
11836         (setpayloadl): Define as weak alias.
11837         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
11838         __setpayloadsigl.
11839         (setpayloadsigl): Define as weak alias.
11840         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
11841         __totalorderl and define as weak alias.
11842         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
11843         Rename to __totalordermagl and define as weak alias.
11844         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
11845         __ufromfpl.
11846         (ufromfpl): Define as weak alias.
11847         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
11848         __ufromfpxl.
11849         (ufromfpxl): Define as weak alias.
11851 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11853         * benchtests/bench-string.h (realloc_bufs): New function.
11854         (test_init): Call it.
11855         * benchtests/bench-memset-large.c (do_test): Likewise.
11856         * benchtests/bench-memset.c (do_test): Likewise.
11858         * benchtests/bench-memset-large.c: Print output in JSON
11859         format.
11860         * benchtests/bench-memset.c: Likewise.
11862 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
11864         [BZ #21084]
11865         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
11866         * iconvdata/Makefile: Add IBM858.
11867         * iconvdata/gconv-modules: Likewise.
11868         * iconvdata/tst-tables.sh: Likewise.
11869         * iconvdata/ibm858.c: New file.
11870         * localedata/charmaps/IBM858: Likewise.
11872 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
11874         [BZ #22023]
11875         * locales/niu_NZ (LC_TIME): copy "niu_NU".
11876         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
11878 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
11880         [BZ #22112]
11881         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
11882         and add tel_int_fmt.
11884 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
11886         * sysdeps/generic/libm-alias-float128.h: New file.
11887         * sysdeps/generic/math-type-macros-float128.h: Include
11888         <libm-alias-float128.h>.
11889         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
11891 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
11893         * sysdeps/generic/libm-alias-ldouble.h: New file.
11894         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
11895         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
11896         * sysdeps/generic/math-type-macros-ldouble.h: Include
11897         <libm-alias-ldouble.h>.
11898         [!declare_mgen_alias] (declare_mgen_alias): Define to use
11899         libm_alias_ldouble.
11901 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11903         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
11904         * math/w_exp_compat.c: ... here.
11905         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
11906         * math/w_expf_compat.c: ... here.
11907         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
11908         * math/w_expl_compat.c: ... here.
11909         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
11910         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
11911         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
11912         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
11914 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
11916         * math/w_scalbln_template.c (strong_alias): Do not undefine and
11917         redefine.
11918         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
11919         macro.
11920         (ldexpl): Only define as compat symbol for libc, not libm.
11921         (scalbnl): Define as compat symbol for libc here.
11922         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
11923         define for [IS_IN (libc)].
11924         (__ldexpl_2): Remove alias.
11925         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
11926         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
11927         name in long_double_symbol call.
11928         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
11929         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
11930         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
11931         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
11932         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
11933         Remove macro.
11934         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
11935         Define as compat symbol.
11937 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11939         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
11940         * sysdeps/unix/sysv/linux/alpha/Makefile
11941         [$(subdir) = csu] (sysdep_routines): Remove rule.
11943 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
11945         * sysdeps/generic/libm-alias-double.h: New file.
11946         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
11947         * sysdeps/generic/math-type-macros-double.h: Include
11948         <libm-alias-double.h>.
11949         [declare_mgen_alias] (declare_mgen_alias): Define to use
11950         libm_alias_double.
11951         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
11952         (M_LIBM_NEED_COMPAT): Remove macro.
11953         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
11954         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
11955         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
11956         code.
11957         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11958         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11959         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11960         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11961         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11962         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11963         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11964         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11965         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11966         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11967         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11968         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11969         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11970         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11971         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11972         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11973         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11974         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11975         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11976         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11977         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11978         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11979         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11980         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11981         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11982         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11983         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
11984         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
11985         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
11986         macro.
11987         (declare_mgen_alias): New macro.
11988         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
11989         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
11990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
11991         (M_LIBM_NEED_COMPAT): Remove macro.
11992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
11993         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
11994         <first-versions.h>.
11995         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
11996         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
11998 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
12000         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
12001         (declare_mgen_alias_2): Remove.
12002         * sysdeps/generic/math-type-macros-double.h
12003         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
12004         Likewise.
12005         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
12006         alias.
12007         (ldexp): Define with declare_mgen_alias.
12008         (scalbn): Likewise.
12010 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
12012         * grp/initgroups.c: Include config.h.
12013         (DEFAULT_CONFIG): New macro.
12014         (internal_getgrouplist): Use DEFAULT_CONFIG.
12015         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12016         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
12017         (DEFAULT_DEFCONFIG): New macro.
12018         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
12019         * nss/grp-lookup.c: Include config.h
12020         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
12021         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
12022         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
12023         * manual/nss.texi: Update default values section.
12025 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
12027         [BZ #21967]
12028         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
12029         New.
12030         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
12031         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
12032         Handle MathVec_Prefer_No_AVX512.
12033         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
12034         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
12035         is set.
12037 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12039         * posix/sched_primax.c (__sched_get_priority_max): Add
12040         libc_hidden_def.
12041         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
12042         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
12043         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
12044         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
12045         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
12046         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
12047         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
12048         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
12049         Add aliases.
12051 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
12053         * sysdeps/generic/libm-alias-float.h: New file.
12054         * sysdeps/generic/math-type-macros-float.h: Include
12055         <libm-alias-float.h>.
12056         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
12058 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
12060         [BZ #22093]
12061         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
12062         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
12063         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
12064         (HWCAP_IMPORTANT): Likewise.
12065         (HWCAP_X86_64): New enum.
12066         (HWCAP_X86_AVX512_1): Updated.
12067         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
12068         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
12069         (modules-names): Add x86_64/tst-x86_64mod-1.
12070         (LDFLAGS-tst-x86_64mod-1.so): New.
12071         ($(objpfx)tst-x86_64-1): Likewise.
12072         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
12073         (tst-x86_64-1-clean): Likewise.
12074         * sysdeps/x86_64/tst-x86_64-1.c: New file.
12075         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
12077 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12079         * po/sv.po: Update translations.
12080         * po/fr.po: Likewise.
12082 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12084         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
12085         seconds.
12086         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
12087         seconds.
12088         * elf/rtld-Rules: Fix $(error) use.
12090 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
12092         [BZ #14925]
12093         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
12094         * locale/iso-639.def: Change “Bengali” to “Bangla”.
12095         * localedata/locales/bn_BD: “Bengali” was still used in some
12096         comments. Change it to “Bangla”.
12098 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
12100         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
12102 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
12104         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
12105         thunderx2t99p1 to list of cpu names.
12106         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
12107         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
12109 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
12111         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
12112         Use strcmp instead of tunable_is_name.
12114 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
12116         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
12117         (F_GET_RW_HINT): New macro.
12118         [__USE_GNU] (F_SET_RW_HINT): Likewise.
12119         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
12120         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
12121         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
12122         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
12123         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
12124         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
12125         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
12126         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
12128         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
12129         (F_ADD_SEALS): New macro.
12130         [__USE_GNU] (F_GET_SEALS): Likewise.
12131         [__USE_GNU] (F_SEAL_SEAL): Likewise.
12132         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
12133         [__USE_GNU] (F_SEAL_GROW): Likewise.
12134         [__USE_GNU] (F_SEAL_WRITE): Likewise.
12136 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12138         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
12139         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
12140         * posix/glob_internal.h (__glob_pattern_type):
12141         * posix/glob.c (glob):
12142         * posix/glob_pattern_p.c (__glob_pattern_p):
12143         Use them.
12145         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
12146         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12147         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
12148         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
12149         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
12150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
12151         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
12152         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
12153         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
12154         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
12155         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
12156         * sysdeps/wordsize-64/glob.c: Likewise.
12157         * sysdeps/wordsize-64/glob64.c: Likewise.
12158         * sysdeps/wordsize-64/globfree.c: Likewise.
12159         * sysdeps/wordsize-64/globfree64.c: Likewise.
12160         * sysdeps/unix/sysv/linux/glob.c: New file.
12161         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
12162         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
12163         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
12164         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
12165         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
12166         adds !GLOB_NO_OLD_VERSION as an extra condition.
12167         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
12168         using relative path instead of absolute one.
12169         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12170         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12171         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12172         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12173         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
12174         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
12176         [BZ #1062]
12177         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
12178         (glob): Use the same scratch buffer for both getlogin_r and
12179         getpwnam_r.  Don’t require preallocation of the login name.  This
12180         simplifies storage allocation, and corrects the handling of
12181         long login names.
12183         [BZ #1062]
12184         * posix/glob.c (glob): Port recent patches to platforms
12185         lacking getpwnam_r.
12186         (glob): Fix longstanding misuse of errno after getpwnam_r, which
12187         returns an error number rather than setting errno.
12189         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
12190         instead of GCC extension.
12191         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
12192         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
12193         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
12195         [BZ #866]
12196         [BZ #1062]
12197         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
12198         * posix/bug-glob1.c: Remove file.
12199         * posix/tst-glob_symlinks.c: New file.
12200         * posix/glob.c (__lstat64): New macro.
12201         (is_dir): New function.
12202         (glob, glob_in_dir): Match symlinks even if they are dangling.
12203         (link_stat, link_exists_p): Remove.  All uses removed.
12205         [BZ #1062]
12206         [BZ #19971]
12207         * posix/glob.c (struct readdir_result): Remove skip_entry member.
12208         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
12209         All uses removed.
12211         [BZ #1062]
12212         CVE-2017-15671
12213         * posix/Makefile (routines): Add globfree, globfree64, and
12214         glob_pattern_p.
12215         * posix/flexmember.h: New file.
12216         * posix/glob_internal.h: Likewise.
12217         * posix/glob_pattern_p.c: Likewise.
12218         * posix/globfree.c: Likewise.
12219         * posix/globfree64.c: Likewise.
12220         * sysdeps/gnu/globfree64.c: Likewise.
12221         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
12222         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
12223         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
12224         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
12225         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
12226         * sysdeps/wordsize-64/globfree.c: Likewise.
12227         * sysdeps/wordsize-64/globfree64.c: Likewise.
12228         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
12229         [NDEBUG): Remove comments.
12230         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
12231         (dirent_type): New type.  Use uint_fast8_t not
12232         uint8_t, as C99 does not require uint8_t.
12233         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
12234         (struct readdir_result): Use dirent_type.  Do not define skip_entry
12235         unless it is needed; this saves a byte on platforms lacking d_ino.
12236         (readdir_result_type, readdir_result_skip_entry):
12237         New functions, replacing ...
12238         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
12239          these functions, which were removed.  This makes the callers
12240         easier to read.  All callers changed.
12241         (D_INO_TO_RESULT): Now empty if there is no d_ino.
12242         (size_add_wrapv, glob_use_alloca): New static functions.
12243         (glob, glob_in_dir): Check for size_t overflow in several places,
12244         and fix some size_t checks that were not quite right.
12245         Remove old code using SHELL since Bash no longer
12246         uses this.
12247         (glob, prefix_array): Separate MS code better.
12248         (glob_in_dir): Remove old Amiga and VMS code.
12249         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
12250         separate files.
12251         (glob_in_dir): Do not rely on undefined behavior in accessing
12252         struct members beyond their bounds.  Use a flexible array member
12253         instead
12254         (link_stat): Rename from link_exists2_p and return -1/0 instead of
12255         0/1.  Caller changed.
12256         (glob): Fix memory leaks.
12257         * posix/glob64 (globfree64): Move to separate file.
12258         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
12259         (globfree64): Remove hidden alias.
12260         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
12261         oldglob.
12262         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
12263         separate file.
12264         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
12265         define.
12266         Move compat code to separate file.
12267         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
12268         separate file.
12270 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12272         * resolv/tst-resolv-qtypes.c (domain): Changed to
12273         "const char domain[] =".
12275 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
12277         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
12278         version to 3.1.6.
12280         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
12281         (TCP_MD5SIG_EXT): Likewise.
12282         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
12283         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
12284         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
12286         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
12288 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
12290         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
12292 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
12294         [BZ #22100]
12295         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
12297 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12299         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
12300         before assuming that the file is empty.  Avoid testing buffer content
12301         when nread == 0.
12303 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12305         [BZ #18858]
12306         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
12307         Remove define.
12308         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
12309         Likewise.
12310         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
12311         Likewise.
12312         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
12313         Likewise.
12314         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
12315         Likewise.
12316         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
12317         Likewise.
12318         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
12319         Likewise.
12321 2017-09-06  Florian Weimer  <fweimer@redhat.com>
12323         * malloc/dynarray_emplace_enlarge.c
12324         (__libc_dynarray_emplace_enlarge): Add missing else.
12326 2017-09-06  Florian Weimer  <fweimer@redhat.com>
12328         [BZ #22096]
12329         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
12330         case of failure to obtain the global conf object.
12332 2017-09-06  Florian Weimer  <fweimer@redhat.com>
12334         [BZ #22095]
12335         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
12336         dynarray allocation failure.
12338 2017-09-06  Florian Weimer  <fweimer@redhat.com>
12340         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
12341         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
12342         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
12343         New functions.
12344         (response): Call them.  Add 'p', '6' flag processing.
12345         (test_reverse): New function.
12346         (test_get2_any): Call it.
12347         (test_no_inet6): Add 'p' test.
12348         (test_inet6): Likewise.
12350 2017-09-06  Florian Weimer  <fweimer@redhat.com>
12352         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
12353         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
12354         the QNAME.
12355         (test_gai): Adjust query names.  Add additional tests.
12356         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
12357         test_get2.  Adjust query names.  Add additional tests.
12358         (test_no_inet6): New function, extracted from threadfunc.
12359         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
12360         Add additional tests.
12362 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
12364         [BZ #22070]
12365         * localedata/unicode-gen/utf8_gen.py: Set the width for
12366         characters with Prepended_Concatenation_Mark property to 1
12367         * localedata/charmaps/UTF-8: Updated using the improved script.
12369 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
12371         [BZ #21750]
12372         * localedata/unicode-gen/utf8_gen.py: Improve the script to
12373         use the range notation for all ranges of neighbouring characters
12374         with the same width.
12376 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
12378         * sysdeps/generic/math-type-macros-double.h: Include
12379         <math-svid-compat.h>.
12380         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
12381         * sysdeps/generic/math-type-macros-float.h: Include
12382         <math-svid-compat.h>.
12383         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
12384         * sysdeps/generic/math-type-macros-ldouble.h: Include
12385         <math-svid-compat.h>.
12386         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
12387         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
12388         condition.
12389         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
12390         * math/w_acosf_compat.c: Likewise.
12391         * math/w_acosh_compat.c: Likewise.
12392         * math/w_acoshf_compat.c: Likewise.
12393         * math/w_acoshl_compat.c: Likewise.
12394         * math/w_acosl_compat.c: Likewise.
12395         * math/w_asin_compat.c: Likewise.
12396         * math/w_asinf_compat.c: Likewise.
12397         * math/w_asinl_compat.c: Likewise.
12398         * math/w_atan2_compat.c: Likewise.
12399         * math/w_atan2f_compat.c: Likewise.
12400         * math/w_atan2l_compat.c: Likewise.
12401         * math/w_atanh_compat.c: Likewise.
12402         * math/w_atanhf_compat.c: Likewise.
12403         * math/w_atanhl_compat.c: Likewise.
12404         * math/w_cosh_compat.c: Likewise.
12405         * math/w_coshf_compat.c: Likewise.
12406         * math/w_coshl_compat.c: Likewise.
12407         * math/w_exp10_compat.c: Likewise.
12408         * math/w_exp10f_compat.c: Likewise.
12409         * math/w_exp10l_compat.c: Likewise.
12410         * math/w_exp2_compat.c: Likewise.
12411         * math/w_exp2f_compat.c: Likewise.
12412         * math/w_exp2l_compat.c: Likewise.
12413         * math/w_fmod_compat.c: Likewise.
12414         * math/w_fmodf_compat.c: Likewise.
12415         * math/w_fmodl_compat.c: Likewise.
12416         * math/w_hypot_compat.c: Likewise.
12417         * math/w_hypotf_compat.c: Likewise.
12418         * math/w_hypotl_compat.c: Likewise.
12419         * math/w_j0_compat.c: Likewise.
12420         * math/w_j0f_compat.c: Likewise.
12421         * math/w_j0l_compat.c: Likewise.
12422         * math/w_j1_compat.c: Likewise.
12423         * math/w_j1f_compat.c: Likewise.
12424         * math/w_j1l_compat.c: Likewise.
12425         * math/w_jn_compat.c: Likewise.
12426         * math/w_jnf_compat.c: Likewise.
12427         * math/w_jnl_compat.c: Likewise.
12428         * math/w_lgamma_r_compat.c: Likewise.
12429         * math/w_lgammaf_r_compat.c: Likewise.
12430         * math/w_lgammal_r_compat.c: Likewise.
12431         * math/w_log10_compat.c: Likewise.
12432         * math/w_log10f_compat.c: Likewise.
12433         * math/w_log10l_compat.c: Likewise.
12434         * math/w_log2_compat.c: Likewise.
12435         * math/w_log2f_compat.c: Likewise.
12436         * math/w_log2l_compat.c: Likewise.
12437         * math/w_log_compat.c: Likewise.
12438         * math/w_logf_compat.c: Likewise.
12439         * math/w_logl_compat.c: Likewise.
12440         * math/w_pow_compat.c: Likewise.
12441         * math/w_powf_compat.c: Likewise.
12442         * math/w_powl_compat.c: Likewise.
12443         * math/w_remainder_compat.c: Likewise.
12444         * math/w_remainderf_compat.c: Likewise.
12445         * math/w_remainderl_compat.c: Likewise.
12446         * math/w_sinh_compat.c: Likewise.
12447         * math/w_sinhf_compat.c: Likewise.
12448         * math/w_sinhl_compat.c: Likewise.
12449         * math/w_sqrt_compat.c: Likewise.
12450         * math/w_sqrtf_compat.c: Likewise.
12451         * math/w_sqrtl_compat.c: Likewise.
12452         * math/w_tgamma_compat.c: Likewise.
12453         * math/w_tgammaf_compat.c: Likewise.
12454         * math/w_tgammal_compat.c: Likewise.
12455         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
12456         [LIBM_SVID_COMPAT].
12457         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
12458         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
12459         [LIBM_SVID_COMPAT].
12460         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
12461         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
12462         [LIBM_SVID_COMPAT].
12463         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
12464         * sysdeps/i386/fpu/w_sqrt.c: New file.
12465         * sysdeps/ia64/fpu/w_acos.c: Likewise.
12466         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
12467         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
12468         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
12469         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
12470         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
12471         * sysdeps/ia64/fpu/w_asin.c: Likewise.
12472         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
12473         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
12474         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
12475         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
12476         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
12477         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
12478         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
12479         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
12480         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
12481         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
12482         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
12483         * sysdeps/ia64/fpu/w_exp.c: Likewise.
12484         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
12485         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
12486         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
12487         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
12488         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
12489         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
12490         * sysdeps/ia64/fpu/w_expf.c: Likewise.
12491         * sysdeps/ia64/fpu/w_expl.c: Likewise.
12492         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
12493         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
12494         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
12495         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
12496         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
12497         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
12498         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
12499         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
12500         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
12501         * sysdeps/ia64/fpu/w_log.c: Likewise.
12502         * sysdeps/ia64/fpu/w_log10.c: Likewise.
12503         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
12504         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
12505         * sysdeps/ia64/fpu/w_log2.c: Likewise.
12506         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
12507         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
12508         * sysdeps/ia64/fpu/w_logf.c: Likewise.
12509         * sysdeps/ia64/fpu/w_logl.c: Likewise.
12510         * sysdeps/ia64/fpu/w_pow.c: Likewise.
12511         * sysdeps/ia64/fpu/w_powf.c: Likewise.
12512         * sysdeps/ia64/fpu/w_powl.c: Likewise.
12513         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
12514         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
12515         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
12516         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
12517         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
12518         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
12519         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
12520         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
12521         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
12522         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
12523         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
12524         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
12525         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
12526         [LIBM_SVID_COMPAT].
12527         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
12528         * sysdeps/ieee754/k_standard.c: Likewise.
12529         * sysdeps/ieee754/k_standardf.c: Likewise.
12530         * sysdeps/ieee754/k_standardl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
12533         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
12534         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
12535         long_double_symbol call on [LIBM_SVID_COMPAT].
12536         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
12537         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
12538         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
12539         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
12540         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
12541         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
12542         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
12543         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
12544         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
12545         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
12546         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
12547         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
12548         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
12549         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
12550         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
12551         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
12552         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
12553         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
12554         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
12555         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
12556         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
12557         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
12559 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
12561         * include/shlib-compat.h (TEST_COMPAT): New Macro.
12562         * malloc/tst-mallocstate.c: Convert from test-skeleton
12563         to test-driver.  Ifdef code using TEST_COMPAT macro.
12564         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
12565         * math/test-matherr.c: Likewise.
12567 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
12569         [BZ #22086]
12570         * debug/pcprofiledump.c (main): Use byte-swapped mask when
12571         comparing word with byte-swapped constant.
12573 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
12575         [BZ #20498]
12576         * locale/iso-639.def: add Miskito.
12577         * localedata/SUPPORTED: Add miq_NI/UTF-8.
12578         * localedata/locales/miq_NI: New file.
12580 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
12582         [BZ #18822]
12583         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
12584         (__mkdir): Likewise.
12585         * io/chmod.c (__chmod): Add libc_hidden_def.
12586         * io/mkdir.c (__mkdir): Likewise.
12587         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
12588         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
12589         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
12590         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
12592 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
12594         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12595         version to 4.13.
12597         [BZ #22082]
12598         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
12599         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
12601 2017-09-04  Florian Weimer  <fweimer@redhat.com>
12603         * math/math.h: Issue warning if log is defined.
12605 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
12607         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12608         kernel version to 4.13.
12610 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12612         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
12613         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
12614         parameter.
12615         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
12616         just <bits/types.h>.
12617         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
12618         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
12619         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
12620         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
12621         * misc/preadv2.c: Include <errno.h>.
12622         * misc/preadv64v2.c: Include <errno.h>.
12623         * misc/pwritev2.c: Include <errno.h>.
12624         * misc/pwritev64v2.c: Include <errno.h>.
12625         * sysdeps/posix/preadv2.c: Include <errno.h>.
12626         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
12627         Fix <unistd.h> inclusion.
12628         * sysdeps/posix/pwritev2.c: Include <errno.h>.
12629         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
12630         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
12631         __strtoul_internal): New functions.
12632         * sysdeps/posix/pause.c: Include <sigsetops.h>.
12633         * sysdeps/posix/system.c: Include <sigsetops.h>.
12634         * sysdeps/mach/hurd/i386/Makefile
12635         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
12636         [$(subdir) = csu] (sysdep-only-routines): Likewise.
12637         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
12638         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
12639         __feraiseexcept_renamed to feraiseexcept instead of
12640         __GI_feraiseexcept.
12641         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
12642         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
12643         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
12644         RWF_NOWAIT): Define to 0 if undefined already.
12645         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
12646         boils down to 0.
12647         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
12648         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
12650 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
12652         * manual/math.texi (pow10): Do not document.
12653         (pow10f): Likewise.
12654         (pow10l): Likewise.
12655         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
12656         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
12657         * math/libm-test-exp10.inc (pow10_test): Remove.
12658         (do_test): Do not call pow10.
12659         * math/w_exp10_compat.c (pow10): Make into compat symbol.
12660         [NO_LONG_DOUBLE] (pow10l): Likewise.
12661         * math/w_exp10f_compat.c (pow10f): Likewise.
12662         * math/w_exp10l_compat.c (pow10l): Likewise.
12663         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
12664         (pow10): Make into compat symbol.
12665         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
12666         (pow10f): Make into compat symbol.
12667         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
12668         (pow10l): Make into compat symbol.
12669         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
12670         pow10.
12671         (CFLAGS-nldbl-pow10.c): Remove variable..
12672         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
12673         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
12674         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
12675         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
12676         Undefine and redefine.
12677         (pow10l): Make into compat symbol.
12678         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
12679         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
12680         * sysdeps/arm/libm-test-ulps: Likewise.
12681         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
12682         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12683         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12684         * sysdeps/microblaze/libm-test-ulps: Likewise.
12685         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12686         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12687         * sysdeps/nios2/libm-test-ulps: Likewise.
12688         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12689         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
12690         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
12691         * sysdeps/sh/libm-test-ulps: Likewise.
12692         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
12693         * sysdeps/tile/libm-test-ulps: Likewise.
12694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12696 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12698         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
12700 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
12702         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
12703         "../ChangeLog.old/ChangeLog.8".
12704         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
12705         "../ChangeLog.old/ChangeLog.14".
12707 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
12709         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
12710         Threads Library.
12712 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
12714         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
12716 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
12718         * csu/version.c (banner): Remove "by Roland McGrath et al.".
12719         * nptl/Banner: Remove "by Ulrich Drepper et al.".
12721 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12723         * stdlib/tst-atexit-common.c (do_test): Test support for at least
12724         32 atexit handlers.
12726 2017-09-01  Zack Weinberg  <zackw@panix.com>
12728         * math/math.h (HUGE_VAL): Improve commentary.
12730 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12731             Andreas Schwab  <schwab@suse.de>
12733         [BZ #21530]
12734         * include/stdio.h (__gen_tempfd): New function.
12735         * stdio-common/Makefile (routines): Add gentempfd.
12736         * stdio-common/gentempfd.c: New file.
12737         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
12738         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
12739         unnamed file first.
12741 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12743         [BZ #21915]
12744         [BZ #21922]
12745         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
12746         result to determine success or failure, not the errno value.
12747         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
12748         (tst-nss-files-hosts-erange): Link with -ldl.
12749         * nss/tst-nss-files-hosts-erange.c: New file.
12750         * nss/tst-resolv-basic.c (response): Handle nodata.example.
12751         (do_test): Add NO_DATA tests.
12752         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
12753         (do_test): Call it.
12755 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12757         [BZ #21922]
12758         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
12759         coming from gethostbyname2_r.
12761 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12763         * support/namespace.h (struct support_chroot_configuration): Add
12764         hosts, host_conf.
12765         (struct support_chroot): Add path_hosts, path_host_conf.
12766         * support/support_chroot.c (write_file): New function.
12767         (support_chroot_create): Call it to process /etc/resolv.conf,
12768         /etc/hosts, /etc/host.conf.
12769         (support_chroot_free): Update.
12771 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12773         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
12774         status indicates it is set.
12776 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12778         [BZ #20532]
12779         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
12780         function lookup failures more reliable.
12782 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12784         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
12785         (getcanonname): Likewise.
12786         (gaih_inet): Likewise.
12788 2017-09-01  Florian Weimer  <fweimer@redhat.com>
12790         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
12791         (getcanonname): Likewise.
12792         (gaih_inet): Likewise.
12794 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
12795             Richard Henderson <rth@twiddle.net>
12797         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
12798         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
12799         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
12800         (IREG_SIZE, OREG_SIZE): New macros.
12801         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
12802         (IREG_SIZE, OREG_SIZE): New macros.
12803         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
12804         (IREG_SIZE): New macro.
12805         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
12806         (IREG_SIZE): New macro.
12807         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
12808         New includes.
12809         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
12810         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
12811         (__CONCATX): Handle exceptions correctly on large values that may
12812         set FE_INVALID.
12813         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
12814         Initialize if not already set.
12815         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
12817 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12819         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
12820         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
12821         Likewise.
12822         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
12823         Likewise.
12824         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
12825         Likewise.
12826         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
12827         Likewise.
12828         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
12829         Likewise.
12830         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
12831         Likewise.
12832         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
12833         Likewise.
12834         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
12835         (NO_CANCELLATION): Likewise.
12836         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
12837         Likewise.
12838         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
12839         Likewise.
12840         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
12841         Likewise.
12842         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
12843         (NO_CANCELLATION): Likewise.
12844         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
12845         (NO_CANCELLATION): Likewise.
12846         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
12847         Likewise
12848         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
12849         Likewise.
12850         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
12851         Likewise.
12852         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
12853         Likewise.
12854         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
12855         hidden prototype.
12856         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
12857         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
12859 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
12861         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
12862         in resolver call.
12864 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12866         * include/libc-symbols.h (internal_function): Remove.
12868 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12870         * stdlib/fmtmsg.c (internal_addseverity): Remove
12871         internal_function.
12873 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12875         * stdio-common/printf_fp.c (group_number): Remove
12876         internal_function.
12877         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
12879 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12881         * posix/fnmatch.c (internal_function): Remove definition.
12882         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
12883         * posix/regcomp.c (peek_token, init_word_char)
12884         (duplicate_node_closure, fetch_token, peek_token)
12885         (peek_token_bracket, build_range_exp, build_collating_symbol):
12886         Likewise.
12887         * posix/regex_internal.c (re_string_construct_common)
12888         (create_ci_newstate, create_cd_newstate, re_string_allocate)
12889         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
12890         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
12891         (re_string_translate_buffer, re_string_reconstruct)
12892         (re_string_peek_byte_case, re_string_fetch_byte_case)
12893         (re_string_destruct, re_string_context_at, re_node_set_alloc)
12894         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
12895         (re_node_set_add_intersect, re_node_set_init_union)
12896         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
12897         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
12898         (re_dfa_add_node, calc_state_hash, re_acquire_state)
12899         (re_acquire_state_context): Likewise.
12900         * posix/regex_internal.h (internal_function): Remove definition.
12901         (re_string_realloc_buffers, build_wcs_buffer)
12902         (build_wcs_upper_buffer, build_upper_buffer)
12903         (re_string_translate_buffer, re_string_context_at)
12904         (re_string_char_size_at, re_string_wchar_at)
12905         (re_string_elem_size_at): Likewise.
12906         * posix/regexec.c (match_ctx_init, match_ctx_clean)
12907         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
12908         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
12909         (re_search_internal, re_search_2_stub, re_search_stub)
12910         (re_copy_regs, prune_impossible_nodes, check_matching)
12911         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
12912         (free_fail_stack_return, sift_states_iter_mb)
12913         (sift_states_backward, build_sifted_states)
12914         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
12915         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
12916         (check_subexp_limits, sift_states_bkref, merge_state_array)
12917         (find_recover_state, transit_state, merge_state_with_log)
12918         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
12919         (transit_state_mb, transit_state_bkref, get_subexp)
12920         (get_subexp_sub, find_subexp_node, check_arrival)
12921         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12922         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
12923         (check_node_accept_bytes, find_collation_sequence_value)
12924         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
12925         (acquire_init_state_context, check_halt_node_context)
12926         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
12927         (sub_epsilon_src_nodes): Likewise.
12928         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
12929         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
12930         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
12931         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
12932         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
12933         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
12934         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
12935         * sysdeps/posix/ttyname.c (getttyname): Likewise.
12936         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
12937         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
12938         (PREADV): Likewise.
12939         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
12940         (PREADV): Likewise.
12941         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
12942         (PWRITEV): Likewise.
12943         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
12944         (PWRITEV): Likewise.
12945         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
12946         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
12948 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12950         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
12951         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
12952         Remove internal_function.
12953         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
12954         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
12955         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
12956         (__deallocate_stack, __libc_pthread_init)
12957         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
12958         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
12959         (__libc_disable_asynccancel, __librt_disable_asynccancel):
12960         Likewise.
12961         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
12962         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
12963         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
12964         Likewise.
12965         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
12966         (__pthread_mutex_unlock_usercnt): Likewise.
12968 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12970         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
12971         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
12972         (fts_safe_changedir): Remove internal_function.
12973         * io/ftw.c (internal_function): Remove definition.
12974         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
12976 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12978         * inet/deadline.c (__deadline_current_time)
12979         (__deadline_from_timeval, __deadline_to_ms): Remove
12980         internal_function.
12981         * inet/getnameinfo.c (nrl_domainname): Likewise.
12982         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
12983         * inet/inet6_option.c (add_pad): Likewise.
12984         * inet/net-internal.h (__deadline_current_time)
12985         (__deadline_from_timeval, __deadline_to_ms): Likewise.
12986         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
12987         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
12988         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
12990 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
12992         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
12993         include <bits/nan.h>.
12994         * math/Makefile (headers): Remove bits/nan.h.
12995         * bits/nan.h: Remove.
12996         * sysdeps/ieee754/bits/nan.h: Likewise.
12997         * sysdeps/mips/bits/nan.h: Likewise.
12999         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
13000         not include <bits/inf.h>.
13001         * math/Makefile (headers): Remove bits/inf.h.
13002         * bits/inf.h: Remove.
13003         * sysdeps/ieee754/bits/inf.h: Likewise.
13005         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
13006         bits/huge_vall.h or bits/huge_val_flt128.h.
13007         (HUGE_VAL): Define directly here.
13008         [__USE_ISOC99] (HUGE_VALF): Likewise.
13009         [__USE_ISOC99] (HUGE_VALL): Likewise.
13010         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13011         (HUGE_VAL_F128): Likewise.
13012         * math/Makefile (headers): Remove bits/huge_val.h,
13013         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
13014         * bits/huge_val.h: Remove.
13015         * bits/huge_val_flt128.h: Likewise.
13016         * bits/huge_valf.h: Likewise.
13017         * bits/huge_vall.h: Likewise.
13018         * sysdeps/ia64/bits/huge_vall.h: Likewise.
13019         * sysdeps/ieee754/bits/huge_val.h: Likewise.
13020         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
13021         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
13022         * sysdeps/sh/bits/huge_val.h: Likewise.
13023         * sysdeps/sparc/bits/huge_vall.h: Likewise.
13024         * sysdeps/x86/bits/huge_vall.h: Likewise.
13026 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13028         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
13029         internal_function.
13030         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
13031         Likewise.
13032         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
13033         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
13034         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
13035         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
13036         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13037         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
13038         * elf/dl-libc.c (dlerror_run): Likewise.
13039         * elf/dl-load.c (add_name_to_object, decompose_rpath)
13040         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
13041         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
13042         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
13043         Likewise.
13044         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
13045         (_dl_higher_prime_number, _dl_strtoul): Likewise.
13046         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
13047         * elf/dl-profile.c (_dl_start_profile): Likewise.
13048         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
13049         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
13050         Likewise.
13051         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
13052         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
13053         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
13054         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
13055         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
13056         (_dl_allocate_tls_storage): Likewise.
13057         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
13058         (_dl_check_all_versions): Likewise.
13059         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
13060         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
13061         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
13062         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
13063         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
13064         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
13065         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
13066         internal_function from __dl_start.
13067         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
13068         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
13069         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
13070         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
13071         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
13072         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
13073         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
13074         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
13075         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
13076         (_dl_next_ld_env_entry, _dl_important_hwcaps)
13077         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
13078         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
13079         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
13080         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
13081         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
13082         Likewise.
13083         (struct rtld_global_ro): Remove internal_function from the
13084         _dl_lookup_symbol_x member.
13085         (_dl_symbol_value): Remove.  No longer defined anywhere.
13086         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
13087         internal_function.
13088         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
13089         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
13090         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
13091         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
13092         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
13093         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
13094         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
13095         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
13096         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
13097         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
13098         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
13099         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
13101 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13103         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
13104         Remove internal_function.
13105         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
13106         Likewise.
13107         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
13108         Likewise.
13110 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13112         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
13113         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
13114         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
13116 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13118         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
13119         (__gai_enqueue_request): Remove internal_function.
13120         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
13121         (__gai_remove_request, __gai_notify, __gai_notify_only)
13122         (__gai_sigqueue): Likewise.
13123         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
13124         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
13125         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
13126         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
13127         Likewise.
13129 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13131         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
13132         * include/dirent.h (__opendirat, __getdents, __getdents64)
13133         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
13134         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
13135         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
13136         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
13137         Likewise.
13138         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
13140 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13142         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
13143         internal_function.
13144         (GETCWD_RETURN_TYPE): Likewise.
13146 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13148         * include/time.h (__tz_compute, __strptime_internal): Remove
13149         internal_function.
13150         * time/strptime_l.c (__strptime_internal): Likewise.
13151         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
13153 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13155         * iconv/gconv.c (__gconv): Remove internal_function.
13156         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
13157         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
13158         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
13159         (__gconv_release_cache): Likewise.
13160         * iconv/gconv_close.c (__gconv_close): Likewise.
13161         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
13162         (read_conf_file, __gconv_get_path): Likewise.
13163         * iconv/gconv_db.c (derivation_lookup, add_derivation)
13164         (__gconv_release_step, gen_steps, increment_counter)
13165         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
13166         (__gconv_close_transform, free_modules_db): Likewise.
13167         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
13168         Likewise.
13169         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
13170         (__gconv_find_transform, __gconv_lookup_cache)
13171         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
13172         (__gconv_close_transform, __gconv_release_cache)
13173         (__gconv_loaded_object, __gconv_release_shlib)
13174         (__gconv_compare_alias): Likewise.
13175         * iconv/gconv_open.c (__gconv_open): Likewise.
13176         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
13177         * iconv/iconvconfig.c (add_module): Likewise.
13178         * intl/dcigettext.c (plural_lookup, guess_category_value)
13179         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
13180         * intl/eval-plural.h (plural_eval): Likewise.
13181         * intl/finddomain.c (_nl_find_domain): Likewise.
13182         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
13183         (_nl_load_domain, _nl_find_msg): Likewise.
13184         (internal_function): Remove definition.
13185         * intl/loadinfo.h (internal_function): Likewise.
13186         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
13187         internal_function.
13188         * intl/localealias.c (internal_function): Remove definition.
13189         (read_alias_file): Remove internal_function.
13190         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
13191         * intl/plural-exp.h (internal_function): Remove definition.
13192         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
13193         internal_function.
13194         * intl/plural.c: Regenerate.
13195         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
13196         * locale/coll-lookup.c (__collidx_table_lookup)
13197         (__collseq_table_lookup): Likewise.
13198         * locale/coll-lookup.h (__collidx_table_lookup)
13199         (__collseq_table_lookup): Likewise.
13200         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
13201         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
13202         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
13203         (_nl_unload_locale): Likewise.
13204         * locale/localeinfo.h (struct __locale_data): Remove
13205         internal_function from cleanup member.
13206         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
13207         (_nl_remove_locale, _nl_load_locale_from_archive)
13208         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
13209         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
13210         (_nl_cleanup_time): Remove internal_function.
13211         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
13212         (_nl_parse_alt_digit): Likewise.
13213         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
13214         (_nl_select_era_entry): Likewise.
13215         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
13216         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
13217         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
13218         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
13219         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
13221 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13223         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
13224         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
13225         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
13226         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
13227         Likewise.
13228         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
13229         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
13230         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
13231         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
13232         Likewise.
13233         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
13235 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13237         * misc/getttyent.c (skip, value): Remove internal_function.
13238         * misc/syslog.c (openlog_internal): Likewise.
13239         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
13241 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13243         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
13244         (__nss_rewrite_field): Remove internal_function.
13245         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
13246         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
13247         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
13248         * nss/nsswitch.c (nss_parse_file, nss_getline)
13249         (nss_parse_service_list, nss_new_service): Likewise.
13250         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
13251         * nss/valid_field.c (__nss_valid_field): Likewise.
13252         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
13254 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13256         * malloc/arena.c (__malloc_fork_lock_parent)
13257         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
13258         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
13259         internal_function from defintions.
13260         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
13261         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
13262         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
13263         internal_function from declarations.
13264         * malloc/malloc.c (internal_function): Do not define.
13265         (mem2mem_check): Remove internal_function from declaration.
13266         (munmap_chunk, mremap_chunk): Remove internal_function.
13267         * malloc/mtrace.c (tr_where): Likewise.
13269 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13271         * include/rpc/pmap_clnt.h (__get_socket): Remove
13272         internal_function.
13273         * sunrpc/auth_des.c (synchronize): Likewise.
13274         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
13275         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
13276         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
13277         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
13278         (key_call): Likewise.
13279         * sunrpc/pm_getport.c (__get_socket): Likewise.
13280         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
13281         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
13282         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
13283         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
13284         (invalidate): Likewise.
13285         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
13286         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
13287         (set_input_fragment, get_input_bytes): Likewise.
13289 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13291         * malloc/malloc.c (_int_free): Remove locked variable and related
13292         asserts.
13294 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
13296         [BZ #22051]
13297         * Makerules (build-module-helper-objlist): Filter out
13298         $(elf-objpfx)sofini.os.
13299         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
13300         needed.
13302 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13304         * libio/fcloseall.c: Assume weak_alias is defined.
13305         * libio/feof.c: Likewise.
13306         * libio/fileno.c: Likewise.
13307         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
13308         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
13309         definitions.
13310         (_IO_file_open): Call __open directly.
13311         (_IO_new_file_sync): Assume ESPIPE is defined.
13312         (_IO_file_seekoff_maybe_mmap): Call __read directly.
13313         (_IO_new_file_write): Call __write directly.
13314         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
13315         * libio/ftello64.c (__ftello64): Assume EIO is defined.
13316         * libio/genops.c: Assume _LIBC is defined.
13317         (save_for_backup): Remove internal_function.
13318         * libio/getc.c: Assume weak_alias is defined.
13319         * libio/getwc.c: Likewise.
13320         * libio/iofclose.c: Assume _LIBC is defined.
13321         * libio/iofdopen.c: Likewise.
13322         (_IO_fcntl): Remove macro definition.
13323         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
13324         Call __fcntl directly.
13325         * libio/iofflush.c: Assume weak_alias is defined.
13326         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
13327         defined.
13328         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
13329         * libio/iofgets.c: Likewise.
13330         * libio/iofopen.c: Assume _LIBC is defined.
13331         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
13332         * libio/iofputs.c: Assume weak_alias is defined.
13333         * libio/iofread.c: Likewise.
13334         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
13335         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
13336         * libio/ioftell.c: Assume weak_alias is defined.
13337         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
13338         * libio/iofwide.c: Assume _LIBC is defined.
13339         (_IO_fwide): Drop SHARED conditional because it is implied by
13340         SHLIB_COMPAT.
13341         * libio/iofwrite.c: Assume weak_alias is defined.
13342         * libio/iogetdelim.c: Likewise.
13343         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
13344         * libio/iogetwline.c (wmemcpy): Remove macro definition.
13345         (_IO_getwline): Call __wmemcpy directly.
13346         * libio/iopopen.c: Assume _LIBC is defined.
13347         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
13348         (_IO_close): Remove macro definitions.
13349         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
13350         _exit directly.
13351         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
13352         directly.
13353         * libio/ioputs.c: Assume weak_alias is defined.
13354         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
13355         * libio/iosetbuffer.c: Assume weak_alias is defined.
13356         * libio/iosetvbuf.c: Likewise.
13357         * libio/ioungetc.c: Likewise.
13358         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
13359         libc_hidden_def, libc_hidden_weak, NULL are defined.
13360         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
13361         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
13362         defined.
13363         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
13364         definitions.
13365         (_IO_old_file_init_internal): Drop SHARED conditional because it
13366         is implied by SHLIB_COMPAT.
13367         (_IO_old_file_fopen): Call __open directly.
13368         (_IO_old_file_sync): Assume ESPIPE is defined.
13369         (_IO_old_file_write): Call __write directly.
13370         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
13371         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
13372         Call __fcntl directly.
13373         * libio/oldiofgetpos.c: Assume weak_alias is defined.
13374         (_IO_old_fgetpos): Assume EIO is defined.
13375         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
13376         (_IO_old_fgetpos64): Assume EIO is defined.
13377         * libio/oldiofsetpos.c: Assume weak_alias is defined.
13378         (_IO_old_fsetpos): Assume EIO is defined.
13379         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
13380         (_IO_old_fsetpos64): Assume EIO is defined.
13381         * libio/oldiopopen.c:  Assume _LIBC is defined.
13382         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
13383         (_IO_close): Remove macro definitions.
13384         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
13385         directly.
13386         (_IO_old_proc_close): Call __close, __waitpid directly.
13387         * libio/put.c: Assume weak_alias is defined.
13388         * libio/stdfiles.c: Assume _LIBC is defined.
13389         * libio/stdio.c: Likewise.
13390         * libio/wfileops.c: Likewise.
13391         (_IO_wfile_sync): Assume ESPIPE is defined.
13392         * libio/wgenops.c: Assume _LIBC is defined.
13393         (save_for_wbackup): Remove internal_function.
13395 2017-08-31  Florian Weimer  <fweimer@redhat.com>
13397         * malloc/malloc.c (top_check): Change return type to void.  Remove
13398         internal_function.
13399         * malloc/hooks.c (top_check): Likewise.
13400         (malloc_check, realloc_check, memalign_check): Adjust.
13402 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
13404         [BZ #21457]
13405         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
13406         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
13407         sigcontext and namespace requirements.
13408         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
13409         * sysdeps/m68k/sys/ucontext.h: Likewise.
13410         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
13411         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
13412         <bits/sigcontext.h>.
13413         (__ctx): Define earlier.
13414         (mcontext_t): Define structure contents rather than using struct
13415         sigcontext.
13416         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
13417         __glibc_reserved1 instead of __reserved.
13418         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
13419         <bits/sigcontext.h>.
13420         (__ctx): Define earlier.
13421         (mcontext_t): Define structure contents rather than using struct
13422         sigcontext.
13423         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
13424         mcontext_t instead of struct sigcontext.
13425         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
13426         <bits/sigcontext.h>.
13427         (__ctx): Define earlier.
13428         (mcontext_t): Define structure contents rather than using struct
13429         sigcontext.
13430         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
13431         <bits/sigcontext.h>.
13432         (__ctx): Define earlier.
13433         (mcontext_t): Define structure contents rather than using struct
13434         sigcontext.
13435         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
13436         mcontext_t instead of struct sigcontext.
13437         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
13438         mcontext_t instead of struct sigcontext.
13439         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
13440         <bits/sigcontext.h>.
13441         (__ctx): New macro.
13442         (struct __ia64_fpreg_mcontext): New type.
13443         (mcontext_t): Define structure contents rather than using struct
13444         sigcontext.
13445         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
13446         (uc_sigmask): Define using __ctx.
13447         (uc_stack): Likewise.
13448         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
13449         <bits/sigcontext.h>.
13450         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13451         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
13452         <bits/sigcontext.h>.
13453         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
13454         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
13455         <bits/sigcontext.h>.
13456         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
13457         <bits/sigcontext.h>.
13458         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
13459         <bits/sigcontext.h>.
13460         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
13461         <bits/sigcontext.h>.
13462         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
13463         <bits/sigcontext.h>.
13464         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
13465         <bits/sigcontext.h>.
13466         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
13467         <bits/sigcontext.h>.
13468         (__ctx): Define earlier.
13469         (mcontext_t): Define structure contents rather than using struct
13470         sigcontext.
13471         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
13472         <bits/sigcontext.h>.  Include <bits/types.h>.
13473         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
13474         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
13475         (test-xfail-XPG42/ucontext.h/conform): Likewise.
13476         (test-xfail-UNIX98/signal.h/conform): Likewise.
13477         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
13478         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
13479         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
13480         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
13481         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
13482         (test-xfail-POSIX2008/signal.h/conform): Likewise.
13483         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
13484         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
13485         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
13487 2017-08-30  Florian Weimer  <fweimer@redhat.com>
13489         * malloc/dynarray_emplace_enlarge.c
13490         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
13491         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
13492         * malloc/tst-dynarray.c (test_long_overflow): New function.
13493         (do_test): Call it.
13495 2017-08-30  Florian Weimer  <fweimer@redhat.com>
13497         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
13498         (set_arena_corrupt): Remove definitions.
13499         (mtrim): Do not check for corrupt arena.
13500         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
13501         Likewise.
13503 2017-08-30  Florian Weimer  <fweimer@redhat.com>
13505         [BZ #21754]
13506         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
13507         check_action.
13508         (ptmalloc_init): Do not set or use check_action.
13509         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
13510         call to malloc_printerr.  Remove return statement.
13511         (free_check): Likewise.  Remove arena unlock.
13512         (top_check): Update comment.  Adjust call to malloc_printerr.
13513         Remove heap repair code.
13514         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
13515         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
13516         (sysmalloc): Adjust call to malloc_printerr.
13517         (munmap_chunk, __libc_realloc): Likewise.  Remove return
13518         statement.
13519         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
13520         Remove errout label and corresponding gotos.
13521         (_int_free): Likewise.  Remove arena unlock.
13522         (do_set_mallopt_check): Do not set check_action.
13523         (malloc_printerr): Adjust parameter list.  Do not mark arena as
13524         corrupt.
13525         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
13526         comment.
13527         * manual/probes.texi (Memory Allocation Probes): Remove
13528         memory_mallopt_check_action.
13530 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
13532         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
13533         Use pointer to uint64_t instead of long int for sp.
13535 2017-08-30  Florian Weimer  <fweimer@redhat.com>
13537         [BZ #21754]
13538         * malloc/malloc.c (malloc_printerr): Always terminate the process,
13539         without printing a backtrace.  Do not leak any information in the
13540         error message.
13541         * manual/memory.texi (Heap Consistency Checking): Update.
13542         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
13544 2017-08-30  Florian Weimer  <fweimer@redhat.com>
13546         Do not scale NPTL tests with available number of CPUs.
13547         * nptl/tst-cond16.c (count): Set to constant value of 8.
13548         * nptl/tst-cond18.c (count): Likewise.
13550 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
13552         [BZ #22035]
13553         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
13554         Define to take a second argument that is a macro that
13555         concatentates a suffix, not the suffix itself.
13556         (__CONCAT_d): New macro.
13557         (__CONCAT_f): Likewise.
13558         (__CONCAT_l): Likewise.
13560 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
13562         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
13563         by child.
13565 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13566             Aurelien Jarno  <aurelien@aurel32.net>
13567             Maciej W. Rozycki  <macro@imgtec.com>
13569         [BZ #21956]
13570         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
13571         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
13572         `mips16-syscall6' and `mips16-syscall7'.
13573         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
13574         (CFLAGS-mips16-syscall7.c): Remove.
13575         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
13576         Remove `__mips16_syscall5', `__mips16_syscall6' and
13577         `__mips16_syscall7'.
13578         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
13579         (__mips16_syscall0): Rename `__mips16_syscall_return' to
13580         `__mips_syscall_return'.
13581         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
13582         (__mips16_syscall1): Likewise.
13583         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
13584         (__mips16_syscall2): Likewise.
13585         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
13586         (__mips16_syscall3): Likewise.
13587         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
13588         (__mips16_syscall4): Likewise.
13589         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
13590         Remove.
13591         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
13592         Remove.
13593         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
13594         Remove.
13595         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
13596         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
13597         `__mips16_syscall5'.  Remove prototype.
13598         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
13599         `__mips16_syscall6'.  Remove prototype.
13600         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
13601         `__mips16_syscall7'.  Remove prototype.
13602         (__nomips16, __mips16_syscall_return): Move to...
13603         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
13604         (__nomips16, __mips_syscall_return): ... here.
13605         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
13606         `__mips16_syscall_return' to `__mips_syscall_return'.
13607         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
13608         `internal_syscall##nr'.
13609         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
13610         `internal_syscall##nr'.
13611         (FORCE_FRAME_POINTER): Remove.
13612         (__mips_syscall5): New prototype.
13613         (internal_syscall5): Rewrite to call `__mips_syscall5'.
13614         (__mips_syscall6): New prototype.
13615         (internal_syscall6): Rewrite to call `__mips_syscall6'.
13616         (__mips_syscall7): New prototype.
13617         (internal_syscall7): Rewrite to call `__mips_syscall7'.
13618         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
13619         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
13620         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
13621         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
13622         (sysdep_routines): Add libc-do-syscall.
13623         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
13624         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
13626 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13628         [BZ #21672]
13629         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
13630         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
13631         (advise_stack_range): New function.
13632         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
13633         stack non required to advise_stack_range at allocatestack.c
13635 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13637         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
13639 2017-08-29  Florian Weimer  <fweimer@redhat.com>
13641         [BZ #22026]
13642         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
13643         __end_fct.  Mangle __end_fct after setting it to NULL.
13644         * iconv/Makefile (tests): Add tst-gconv-init-failure.
13645         (modules-names, modules-names-tests): Add
13646         tst-gconv-init-failure-mod.
13647         (gconv-modules): New target.
13648         (tst-gconv-init-failure-mod.so): Link against libsupport.
13649         (tst-gconv-init-failure): Depend on gconv-modules,
13650         tst-gconv-init-failure-mod.so.
13651         * iconv/tst-gconv-init-failure-mod.c: New file.
13652         * iconv/tst-gconv-init-failure.c: Likewise.
13653         * iconv/test-gconv-modules: Likewise.
13655 2017-08-29  Florian Weimer  <fweimer@redhat.com>
13657         [BZ #22025]
13658         * iconv/gconv_db.c (free_derivation): Remove redundant
13659         parentheses.
13660         (gen_steps): Unconditionally mangle __btowc_fct after
13661         initialization.
13662         (increment_counter): Likewise.  Do not call init_fct for internal
13663         modules.
13665 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
13667         [BZ #22028]
13668         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
13669         (_MSUF_): Remove macro.
13670         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
13671         Likewise.
13672         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
13673         (__REDIRFROM_X): New macro.
13674         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
13675         Likewise.
13676         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
13677         (__REDIRTO_X): Likewise.
13678         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
13679         arguments.
13680         (__MATH_REDIRCALL_2): Likewise.
13681         (__MATH_REDIRCALL_INTERNAL): Likewise.
13682         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
13683         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
13684         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
13685         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
13686         * math/test-finite-macros.c: New file.
13687         * math/Makefile (tests): Add test-finite-macros.
13688         (CFLAGS-test-finite-macros.c): New variable.
13690 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
13691             Jeff Law  <law@redhat.com>
13693         [BZ #22025]
13694         Mangle NULL pointers in iconv/gconv.
13695         * iconv/gconv_cache.c (find_module): Demangle init_fct before
13696         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
13697         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
13698         is non-NULL before demangling the end_fct.  Check for NULL
13699         end_fct after demangling.
13700         (__gconv_release_step): Demangle the end_fct before checking
13701         it for NULL.   Remove assert on __shlibc_handle != NULL.
13702         (gen_steps): Don't check btowc_fct for NULL before mangling.
13703         Demangle init_fct before checking for NULL.
13704         (increment_counter): Likewise.
13705         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
13706         end_fct for NULL before mangling.
13707         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
13708         for NULL.
13710 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
13712         [BZ #21971]
13713         * locale/iso-639.def: add Morisyen.
13715 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13717         [BZ #21930]
13718         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
13719         (iszero): New C++ implementation that does not use
13720         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
13721         signaling nans are enabled, since __builtin_types_compatible_p
13722         is a C-only feature.
13723         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
13724         defined, include ieee754_float128.h for access to the union and
13725         member ieee854_float128.ieee.
13726         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
13727         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
13728         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
13729         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
13730         options of test-math-zero on powerpc64le.
13732 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
13734         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
13735         Change double to float.
13737 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
13739         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
13740         unconditional.
13741         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
13742         conditional code; define contents only for [LIBM_SVID_COMPAT].
13744 2017-08-28  Florian Weimer  <fweimer@redhat.com>
13746         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
13747         (abi-lp64_be-options): Remove.
13748         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
13749         (abi-hard-options): Likewise.
13750         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
13751         (abi-o32_hard-options, abi-o32_soft_2008-options)
13752         (abi-o32_hard_2008-options, abi-n32_soft-options)
13753         (abi-n32_hard-options, abi-n32_soft_2008-options)
13754         (abi-n32_hard_2008-options, abi-n64_soft-options)
13755         (abi-n64_hard-options, abi-n64_soft_2008-options)
13756         (abi-n64_hard_2008-options): Likewise.
13757         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
13758         (abi-64-v1-options, abi-64-v2-options): Likewise.
13759         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
13760         (abi-64-options): Likewise.
13761         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
13762         (abi-64-options): Likewise.
13763         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
13764         (abi-64-options): Likewise.
13765         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
13766         (abi-64-options, abi-x32-options): Likewise.
13768 2017-08-28  Florian Weimer  <fweimer@redhat.com>
13770         Store supported list of SYS_* system calls in the source tree.
13771         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13772         (bits/syscall.h): Generate from list file.
13773         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
13774         [$(subdir) = misc] (tests): Add tst-syscall-list.
13775         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
13776         [$(subdir) = misc] (tst-syscall-list-macros.list)
13777         [$(subdir) = misc] (tst-syscall-list-nr.list)
13778         (tst-syscall-list-sys.list): Helper targets for new
13779         tst-syscall-list test.
13780         [$(subdir) = misc] (tst-syscall-list.out): Run test script
13781         tst-syscall-list.sh.
13782         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
13783         target. Do not include bits/syscall.d.
13784         [$(subdir) = misc] (generated): Do not update.
13785         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
13786         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
13787         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
13788         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
13790 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
13792         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
13793         (tst-cxa_atexit, tst-on_exit): Likewise.
13794         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
13795         tst-cxa_atexit, and tst-on_exit.
13796         * stdlib/tst-atexit-common.c: New file.
13797         * stdlib/tst-atexit.c: New file.
13798         * stdlib/tst-at_quick_exit.c: New file.
13799         * stdlib/tst-cxa_atexit.c: New file.
13800         * stdlib/tst-on_exit.c: New file.
13802 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13804         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
13805         * mach/stack_chk_fail_local.c: New file.
13806         * hurd/stack_chk_fail_local.c: New file.
13807         * mach/Machrules ($(interface-library)-routines): Add
13808         stack_chk_fail_local.
13809         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
13810         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
13811         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
13812         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
13813         * hurd/Makefile (CFLAGS-hurdstartup.o,
13814         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
13816 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13818         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
13819         (index_cpu_*, index_arch_*): Removed.
13821 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13823         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
13824         Use uint64_t instead of unsigned long.
13826 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
13828         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
13829         [__HAVE_DISTINCT_FLOAT128].
13831         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
13832         of <bits/math-finite.h>.
13833         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
13834         inclusion of <bits/math-finite.h>.
13835         * math/bits/math-finite.h (__REDIRTO_X): Do not define
13836         conditionally on [__MATH_DECLARING_LDOUBLE && defined
13837         __NO_LONG_DOUBLE_MATH].
13838         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
13839         (__MATH_REDIRCALL_2): Likewise.
13840         (__MATH_REDIRCALL_INTERNAL): Likewise.
13841         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
13842         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
13843         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
13845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
13846         Remove file.
13847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
13848         Likewise.
13849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
13850         Likewise.
13851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
13852         Likewise.
13853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
13854         Likewise.
13855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
13856         Likewise.
13857         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
13858         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
13859         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
13860         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
13861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13862         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
13863         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
13864         w_sqrtf_compat-ppc32.
13866 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13868         * math/math.h [defined __cplusplus] (issignaling): In the long
13869         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
13870         is not defined.  Call __issignaling, otherwise.
13872 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13874         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
13875         syscall definitions and replace __builtin_expect with __glibc_likely.
13876         * sysdeps/unix/syscall-template.S: Update comment about cancellable
13877         syscall.
13878          (SYSCALL_CANCELLABLE): Removedefinition
13879         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
13880         definition.
13881         (PSEUDO_END): Likewise.
13882         [IS_IN (libpthread)] (CENABLE): Likewise.
13883         [IS_IN (libpthread)] (CDISABLE): Likewise.
13884         [IS_IN (libc)] (CENABLE): Likewise.
13885         [IS_IN (libc)] (CENABLE): Likewise.
13886         [IS_IN (librt)] (CDISABLE): Likewise.
13887         [IS_IN (librt)] (CDISABLE): Likewise.
13888         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13889         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
13890         definition.
13891         (PSEUDO_END): Likewise.
13892         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
13893         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
13894         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
13895         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
13896         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
13897         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
13898         (CENABLE): Likewise.
13899         (CDISABLE): Likewise.
13900         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13901         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
13902         defintion.
13903         (PSEUDO_END): Likewise.
13904         [IS_IN (libpthread)] (CENABLE): Likewise.
13905         [IS_IN (libpthread)] (CDISABLE): Likewise.
13906         [IS_IN (libc)] (CENABLE): Likewise.
13907         [IS_IN (libc)] (CENABLE): Likewise.
13908         [IS_IN (librt)] (CDISABLE): Likewise.
13909         [IS_IN (librt)] (CDISABLE): Likewise.
13910         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13911         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
13912         definition.
13913         (PSEUDO_END): Likewise.
13914         [IS_IN (libpthread)] (CENABLE): Likewise.
13915         [IS_IN (libpthread)] (CDISABLE): Likewise.
13916         [IS_IN (libc)] (CENABLE): Likewise.
13917         [IS_IN (libc)] (CENABLE): Likewise.
13918         [IS_IN (librt)] (CDISABLE): Likewise.
13919         [IS_IN (librt)] (CDISABLE): Likewise.
13920         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13921         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
13922         definition.
13923         (PSEUDO_END): Likewise.
13924         [IS_IN (libpthread)] (CENABLE): Likewise.
13925         [IS_IN (libpthread)] (CDISABLE): Likewise.
13926         [IS_IN (libc)] (CENABLE): Likewise.
13927         [IS_IN (libc)] (CENABLE): Likewise.
13928         [IS_IN (librt)] (CDISABLE): Likewise.
13929         [IS_IN (librt)] (CDISABLE): Likewise.
13930         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13931         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
13932         definition.
13933         (PSEUDO_END): Likewise.
13934         [IS_IN (libpthread)] (CENABLE): Likewise.
13935         [IS_IN (libpthread)] (CDISABLE): Likewise.
13936         [IS_IN (libc)] (CENABLE): Likewise.
13937         [IS_IN (libc)] (CENABLE): Likewise.
13938         [IS_IN (librt)] (CDISABLE): Likewise.
13939         [IS_IN (librt)] (CDISABLE): Likewise.
13940         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13941         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
13942         definition.
13943         (PSEUDO_END): Likewise.
13944         [IS_IN (libpthread)] (CENABLE): Likewise.
13945         [IS_IN (libpthread)] (CDISABLE): Likewise.
13946         [IS_IN (libc)] (CENABLE): Likewise.
13947         [IS_IN (libc)] (CENABLE): Likewise.
13948         [IS_IN (librt)] (CDISABLE): Likewise.
13949         [IS_IN (librt)] (CDISABLE): Likewise.
13950         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13951         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
13952         definition.
13953         (PSEUDO_END): Likewise.
13954         [IS_IN (libpthread)] (CENABLE): Likewise.
13955         [IS_IN (libpthread)] (CDISABLE): Likewise.
13956         [IS_IN (libc)] (CENABLE): Likewise.
13957         [IS_IN (libc)] (CENABLE): Likewise.
13958         [IS_IN (librt)] (CDISABLE): Likewise.
13959         [IS_IN (librt)] (CDISABLE): Likewise.
13960         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13961         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
13962         Remove definition.
13963         (PSEUDO_END): Likewise.
13964         [IS_IN (libpthread)] (CENABLE): Likewise.
13965         [IS_IN (libpthread)] (CDISABLE): Likewise.
13966         [IS_IN (libc)] (CENABLE): Likewise.
13967         [IS_IN (libc)] (CENABLE): Likewise.
13968         [IS_IN (librt)] (CDISABLE): Likewise.
13969         [IS_IN (librt)] (CDISABLE): Likewise.
13970         (SINGLE_THREAD_P): Likewise.
13971         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
13972         definition.
13973         (PSEUDO_END): Likewise.
13974         [IS_IN (libpthread)] (CENABLE): Likewise.
13975         [IS_IN (libpthread)] (CDISABLE): Likewise.
13976         [IS_IN (libc)] (CENABLE): Likewise.
13977         [IS_IN (libc)] (CENABLE): Likewise.
13978         [IS_IN (librt)] (CDISABLE): Likewise.
13979         [IS_IN (librt)] (CDISABLE): Likewise.
13980         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13981         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
13982         definition.
13983         (PSEUDO_END): Likewise.
13984         [IS_IN (libpthread)] (CENABLE): Likewise.
13985         [IS_IN (libpthread)] (CDISABLE): Likewise.
13986         [IS_IN (libc)] (CENABLE): Likewise.
13987         [IS_IN (libc)] (CENABLE): Likewise.
13988         [IS_IN (librt)] (CDISABLE): Likewise.
13989         [IS_IN (librt)] (CDISABLE): Likewise.
13990         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13991         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
13992         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
13993         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
13994         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
13995         definition.
13996         (PSEUDO_END): Likewise.
13997         [IS_IN (libpthread)] (CENABLE): Likewise.
13998         [IS_IN (libpthread)] (CDISABLE): Likewise.
13999         [IS_IN (libc)] (CENABLE): Likewise.
14000         [IS_IN (libc)] (CENABLE): Likewise.
14001         [IS_IN (librt)] (CDISABLE): Likewise.
14002         [IS_IN (librt)] (CDISABLE): Likewise.
14003         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
14004         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
14005         definition.
14006         (PSEUDO_END): Likewise.
14007         [IS_IN (libpthread)] (CENABLE): Likewise.
14008         [IS_IN (libpthread)] (CDISABLE): Likewise.
14009         [IS_IN (libc)] (CENABLE): Likewise.
14010         [IS_IN (libc)] (CENABLE): Likewise.
14011         [IS_IN (librt)] (CDISABLE): Likewise.
14012         [IS_IN (librt)] (CDISABLE): Likewise.
14013         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
14014         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
14015         definition.
14016         (PSEUDO_END): Likewise.
14017         [IS_IN (libpthread)] (CENABLE): Likewise.
14018         [IS_IN (libpthread)] (CDISABLE): Likewise.
14019         [IS_IN (libc)] (CENABLE): Likewise.
14020         [IS_IN (libc)] (CENABLE): Likewise.
14021         [IS_IN (librt)] (CDISABLE): Likewise.
14022         [IS_IN (librt)] (CDISABLE): Likewise.
14023         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
14024         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
14025         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
14026         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
14027         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
14028         definition.
14029         (PSEUDO_END): Likewise.
14030         [IS_IN (libpthread)] (CENABLE): Likewise.
14031         [IS_IN (libpthread)] (CDISABLE): Likewise.
14032         [IS_IN (libc)] (CENABLE): Likewise.
14033         [IS_IN (libc)] (CENABLE): Likewise.
14034         [IS_IN (librt)] (CDISABLE): Likewise.
14035         [IS_IN (librt)] (CDISABLE): Likewise.
14036         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
14037         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
14038         definition.
14039         (PSEUDO_END): Likewise.
14040         [IS_IN (libpthread)] (CENABLE): Likewise.
14041         [IS_IN (libpthread)] (CDISABLE): Likewise.
14042         [IS_IN (libc)] (CENABLE): Likewise.
14043         [IS_IN (libc)] (CENABLE): Likewise.
14044         [IS_IN (librt)] (CDISABLE): Likewise.
14045         [IS_IN (librt)] (CDISABLE): Likewise.
14046         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
14048 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14050         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
14052 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
14054         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14056 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
14058         [BZ #21982]
14059         * string/stratcliff.c (do_test): Declare size, nchars, inner,
14060         middle and outer with size_t instead of int.  Repleace %d and
14061         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
14062         "MAX (outer, nchars - 64)" to support unsigned outer and
14063         nchars.  Also exit loop when outer == 0.
14065 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14067         * include/fcntl.h (__fcntl_nocancel): Remove definition.
14068         * include/signal.h (__sigsuspend_nocancel): Likewise.
14069         * include/time.h (__nanosleep_nocancel): Likewise.
14070         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
14071         * login/utmp_file.c: Include non cancellable syscall header.
14072         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
14073         prototype.
14075 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
14077         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
14078         .byte sequences with AVX512F instructions.
14079         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
14080         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
14081         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14082         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
14083         Likewise.
14084         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
14085         Likewise.
14087 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14088             Steve Ellcey  <sellcey@cavium.com>
14090         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
14091         Use PTR_REG macro in cmp instruction.
14093 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14095         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
14096         Change the return type of the ifunc resolver to match the return
14097         type of the target function.
14099 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14101         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
14102         (preadv64): Likewise.
14103         (pwrite64(: Likewise.
14104         (pwritev64): Likewise.
14106         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14107         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
14108         (LOAD_ARGS_0): Likewise.
14109         (LOAD_ARGS_1): Likewise.
14110         (LOAD_ARGS_2): Likewise.
14111         (LOAD_ARGS_3): Likewise.
14112         (LOAD_ARGS_4): Likewise.
14113         (LOAD_ARGS_5): Likewise.
14114         (LOAD_ARGS_6): Likewise.
14115         (LOAD_REGS_0): Likewise.
14116         (LOAD_REGS_1): Likewise.
14117         (LOAD_REGS_2): Likewise.
14118         (LOAD_REGS_3): Likewise.
14119         (LOAD_REGS_4): Likewise.
14120         (LOAD_REGS_5): Likewise.
14121         (LOAD_REGS_6): Likewise.
14122         (ASM_ARGS_0): Likewise.
14123         (ASM_ARGS_1): Likewise.
14124         (ASM_ARGS_2): Likewise.
14125         (ASM_ARGS_3): Likewise.
14126         (ASM_ARGS_4): Likewise.
14127         (ASM_ARGS_5): Likewise.
14128         (ASM_ARGS_6): Likewise.
14129         (LOAD_ARGS_TYPES_1): Likewise.
14130         (LOAD_ARGS_TYPES_2): Likewise.
14131         (LOAD_ARGS_TYPES_3): Likewise.
14132         (LOAD_ARGS_TYPES_4): Likewise.
14133         (LOAD_ARGS_TYPES_5): Likewise.
14134         (LOAD_ARGS_TYPES_6): Likewise.
14135         (LOAD_REGS_TYPES_1): Likewise.
14136         (LOAD_REGS_TYPES_2): Likewise.
14137         (LOAD_REGS_TYPES_3): Likewise.
14138         (LOAD_REGS_TYPES_4): Likewise.
14139         (LOAD_REGS_TYPES_5): Likewise.
14140         (LOAD_REGS_TYPES_6): Likewise.
14141         (TYPEFY): New define.
14142         (ARGIFY): Likewise.
14143         (internal_syscall0): Likewise.
14144         (internal_syscall1): Likewise.
14145         (internal_syscall2): Likewise.
14146         (internal_syscall3): Likewise.
14147         (internal_syscall4): Likewise.
14148         (internal_syscall5): Likewise.
14149         (internal_syscall6): Likewise.
14150         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
14151         (INTERNAL_SYSCALL_NCS): Remove define.
14152         (internal_syscall1): Add define.
14154 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14156         * math/w_remainder_compat.c: Remove duplicate inclusion of
14157         math-svid-compat.h.
14158         * math/w_remainderf_compat.c: Likewise.
14159         * math/w_remainderl_compat.c: Likewise.
14161 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14165 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
14167         [BZ #21684]
14168         * math/tgmath.h (__floating_type): Simplify definitions.
14169         (__real_integer_type): New macro.
14170         (__complex_integer_type): Likewise.
14171         (__expr_is_real): Likewise.
14172         (__tgmath_real_type_sub): Update comment to describe handling of
14173         complex types.
14174         (__tgmath_complex_type_sub): New macro.
14175         (__tgmath_complex_type): Likewise.
14176         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
14177         (__TGMATH_CF128): Use __expr_is_real.
14178         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
14179         __expr_is_real.
14180         (__TGMATH_BINARY_REAL_IMAG): Likewise.
14181         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
14182         * math/gen-tgmath-tests.py (Type.create_type): Create complex
14183         integer types.
14185 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14187         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
14188         macro.
14189         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
14190         alias.
14191         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
14192         Likewise.
14194         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
14195         nanosleep_not_cancel with __nanosleep_nocancel.
14196         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
14197         (__nanosleep_nocancel): New macro.
14198         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
14199         function.
14200         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
14201         macro.
14202         (__nanosleep_nocancel): New prototype.
14204         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
14205         pause_not_cancel with __pause_nocancel.
14206         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
14207         (__pause_nocancel): New macro.
14208         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
14209         macro.
14210         (__pause_nocancel): New prototype.
14211         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
14213 2017-08-22  Martin Sebor  <msebor@redhat.com>
14215         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
14216         to return a pointer to the same type as the target function.
14218 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
14220         [BZ #18822]
14221         [BZ #21986]
14222         * include/printf.h (__printf_fphex): Add attribute_hidden.
14223         (__guess_grouping): New prototype.
14224         * stdio-common/printf_fp.c (__guess_grouping): Removed.
14225         * stdio-common/reg-printf.c (__register_printf_specifier): Add
14226         libc_hidden_proto and libc_hidden_def.
14227         * stdlib/strfmon_l.c (__guess_grouping): Removed.
14228         (__vstrfmon_l): Remove the third argument passed to
14229         __guess_grouping.
14231 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14233         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
14234         definition for issignaling that does not rely on __MATH_TG,
14235         since __MATH_TG uses __builtin_types_compatible_p, which is only
14236         available in C mode.
14237         (CFLAGS-test-math-issignaling.cc): New variable.
14238         * math/Makefile [CXX] (tests): Add test-math-issignaling.
14239         * math/test-math-issignaling.cc: New test for C++ implementation
14240         of type-generic issignaling.
14241         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
14242         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
14243         options of test-math-issignaling on powerpc64le.
14245 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
14247         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
14248         building libc.a.
14249         (hidden_proto): Likewise.
14250         (hidden_tls_proto): Likewise.
14251         (__hidden_proto): Likewise.
14253 2017-08-22  Florian Weimer  <fweimer@redhat.com>
14255         math: Statically link tests of internal functionality.
14256         * math/Makefile (tests): Remove atest-exp, atest-sincos,
14257         atest-exp2.
14258         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
14259         (gmp-objs): Remove assignment.
14260         (atest-exp, atest-sincos, atest-exp2): Remove targets.
14262 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
14264         [BZ #21987]
14265         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
14266         and copy to ...
14267         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
14268         ... here.
14269         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
14270         ... and here.
14272         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
14273         variable definitions above inclusion of ../Rules.
14275 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
14277         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
14278         case calling __builtin_unreachable.
14280 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14282         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
14283         __waitpid_nocancel.
14284         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
14285         (__waitpid_nocancel): New macro.
14286         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
14287         macro.
14288         (__waitpid_nocancel): Replace macro with a function.
14289         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
14290         function.
14292         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
14293         __fcntl_nocancel.
14294         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
14295         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
14297         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
14298         __writev_nocancel_nostatus.
14299         (write_call_graph): Likewise.
14300         (write_bb_counts): Likewise.
14301         * resolv/herror.c (herror): Likewise.
14302         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
14303         macro.
14304         (__writev_nocancel_nostatus): New macro.
14305         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
14306         Remove macro.
14307         (__writev_nocancel_nostatus): New function.
14309 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
14311         Revert:
14312         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14314         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
14315         building libc.a.
14316         (hidden_proto): Likewise.
14317         (hidden_tls_proto): Likewise.
14318         (__hidden_proto): Likewise.
14320         [BZ #21973]
14321         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
14322         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
14323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
14324         Likewise.
14325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
14326         Likewise.
14327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
14328         Likewise.
14329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
14330         Likewise.
14331         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
14332         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
14333         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
14334         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
14335         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
14336         GLIBC_2.0 sqrtl symbol.
14338         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
14339         [__USE_MISC] (_LIB_VERSION): Likewise.
14340         [__USE_MISC] (struct exception): Likewise.
14341         [__USE_MISC] (matherr): Likewise.
14342         [__USE_MISC] (DOMAIN): Likewise.
14343         [__USE_MISC] (SING): Likewise.
14344         [__USE_MISC] (OVERFLOW): Likewise.
14345         [__USE_MISC] (UNDERFLOW): Likewise.
14346         [__USE_MISC] (TLOSS): Likewise.
14347         [__USE_MISC] (PLOSS): Likewise.
14348         [__USE_MISC] (HUGE): Likewise.
14349         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
14350         * math/math-svid-compat.h: New file.
14351         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
14352         and matherrl.
14353         * include/math.h [!_ISOMAC] (__matherr): Remove.
14354         * manual/arith.texi (FP Exceptions): Do not document matherr.
14355         * math/Makefile (tests): Change test-matherr to test-matherr-3.
14356         (tests-internal): New variable.
14357         (install-lib): Do not add libieee.a.
14358         (non-lib.a): Likewise.
14359         (extra-objs): Do not add libieee.a and ieee-math.o.
14360         (CPPFLAGS-s_lib_version.c): Remove variable.
14361         ($(objpfx)libieee.a): Remove rule.
14362         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
14363         * math/ieee-math.c: Remove.
14364         * math/libm-test-support.c (matherr): Remove.
14365         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
14366         and license notices.  Include <math-svid-compat.h> and
14367         <shlib-compat.h>.
14368         (matherr): Undefine as macro.  Use compat_symbol_reference.
14369         (_LIB_VERSION): Likewise.
14370         * math/test-matherr-2.c: New file.
14371         * math/test-matherr-3.c: Likewise.
14372         * sysdeps/generic/math_private.h (__kernel_standard): Remove
14373         declaration.
14374         (__kernel_standard_f): Likewise.
14375         (__kernel_standard_l): Likewise.
14376         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
14377         <math_private.h>.  Include <math-svid-compat.h>.
14378         (_LIB_VERSION): Undefine as macro.
14379         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
14380         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
14381         [LIBM_SVID_COMPAT], use compat_symbol.
14382         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
14383         <math_private.h>.  Include <math-svid-compat.h>.
14384         (matherr): Undefine as macro.
14385         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
14386         compat_symbol.
14387         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
14388         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
14389         compat_symbol_reference.
14390         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
14391         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
14392         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
14393         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
14394         (MATHERR_D): Remove declaration.
14395         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
14396         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
14397         [LIBM_BUILD] (pmatherrf): Likewise.
14398         [LIBM_BUILD] (pmatherr): Likewise.
14399         [LIBM_BUILD] (pmatherrl): Likewise.
14400         (DOMAIN): Likewise.
14401         (SING): Likewise.
14402         (OVERFLOW): Likewise.
14403         (UNDERFLOW): Likewise.
14404         (TLOSS): Likewise.
14405         (PLOSS): Likewise.
14406         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
14407         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
14408         compat_symbol.
14409         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
14410         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
14411         compat_symbol.
14412         * math/lgamma-compat.h: Include <math-svid-compat.h>.
14413         * math/w_acos_compat.c: Likewise.
14414         * math/w_acosf_compat.c: Likewise.
14415         * math/w_acosh_compat.c: Likewise.
14416         * math/w_acoshf_compat.c: Likewise.
14417         * math/w_acoshl_compat.c: Likewise.
14418         * math/w_acosl_compat.c: Likewise.
14419         * math/w_asin_compat.c: Likewise.
14420         * math/w_asinf_compat.c: Likewise.
14421         * math/w_asinl_compat.c: Likewise.
14422         * math/w_atan2_compat.c: Likewise.
14423         * math/w_atan2f_compat.c: Likewise.
14424         * math/w_atan2l_compat.c: Likewise.
14425         * math/w_atanh_compat.c: Likewise.
14426         * math/w_atanhf_compat.c: Likewise.
14427         * math/w_atanhl_compat.c: Likewise.
14428         * math/w_cosh_compat.c: Likewise.
14429         * math/w_coshf_compat.c: Likewise.
14430         * math/w_coshl_compat.c: Likewise.
14431         * math/w_exp10_compat.c: Likewise.
14432         * math/w_exp10f_compat.c: Likewise.
14433         * math/w_exp10l_compat.c: Likewise.
14434         * math/w_exp2_compat.c: Likewise.
14435         * math/w_exp2f_compat.c: Likewise.
14436         * math/w_exp2l_compat.c: Likewise.
14437         * math/w_fmod_compat.c: Likewise.
14438         * math/w_fmodf_compat.c: Likewise.
14439         * math/w_fmodl_compat.c: Likewise.
14440         * math/w_hypot_compat.c: Likewise.
14441         * math/w_hypotf_compat.c: Likewise.
14442         * math/w_hypotl_compat.c: Likewise.
14443         * math/w_j0_compat.c: Likewise.
14444         * math/w_j0f_compat.c: Likewise.
14445         * math/w_j0l_compat.c: Likewise.
14446         * math/w_j1_compat.c: Likewise.
14447         * math/w_j1f_compat.c: Likewise.
14448         * math/w_j1l_compat.c: Likewise.
14449         * math/w_jn_compat.c: Likewise.
14450         * math/w_jnf_compat.c: Likewise.
14451         * math/w_jnl_compat.c: Likewise.
14452         * math/w_lgamma_main.c: Likewise.
14453         * math/w_lgamma_r_compat.c: Likewise.
14454         * math/w_lgammaf_main.c: Likewise.
14455         * math/w_lgammaf_r_compat.c: Likewise.
14456         * math/w_lgammal_main.c: Likewise.
14457         * math/w_lgammal_r_compat.c: Likewise.
14458         * math/w_log10_compat.c: Likewise.
14459         * math/w_log10f_compat.c: Likewise.
14460         * math/w_log10l_compat.c: Likewise.
14461         * math/w_log2_compat.c: Likewise.
14462         * math/w_log2f_compat.c: Likewise.
14463         * math/w_log2l_compat.c: Likewise.
14464         * math/w_log_compat.c: Likewise.
14465         * math/w_logf_compat.c: Likewise.
14466         * math/w_logl_compat.c: Likewise.
14467         * math/w_pow_compat.c: Likewise.
14468         * math/w_powf_compat.c: Likewise.
14469         * math/w_powl_compat.c: Likewise.
14470         * math/w_remainder_compat.c: Likewise.
14471         * math/w_remainderf_compat.c: Likewise.
14472         * math/w_remainderl_compat.c: Likewise.
14473         * math/w_scalb_compat.c: Likewise.
14474         * math/w_scalbf_compat.c: Likewise.
14475         * math/w_scalbl_compat.c: Likewise.
14476         * math/w_sinh_compat.c: Likewise.
14477         * math/w_sinhf_compat.c: Likewise.
14478         * math/w_sinhl_compat.c: Likewise.
14479         * math/w_sqrt_compat.c: Likewise.
14480         * math/w_sqrtf_compat.c: Likewise.
14481         * math/w_sqrtl_compat.c: Likewise.
14482         * math/w_tgamma_compat.c: Likewise.
14483         * math/w_tgammaf_compat.c: Likewise.
14484         * math/w_tgammal_compat.c: Likewise.
14485         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
14486         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
14487         * sysdeps/ieee754/k_standard.c: Likewise.
14488         * sysdeps/ieee754/k_standardf.c: Likewise.
14489         * sysdeps/ieee754/k_standardl.c: Likewise.
14490         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
14491         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
14492         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
14493         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
14494         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
14495         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
14496         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
14497         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
14498         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
14499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
14500         Likewise.
14501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
14502         Likewise.
14503         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
14504         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
14505         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
14506         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
14508 2017-08-21  Florian Weimer  <fweimer@redhat.com>
14510         [BZ #21864]
14511         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
14512         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
14513         Move before inclusion of ../Rules.
14515 2017-08-21  Florian Weimer  <fweimer@redhat.com>
14517         [BZ #21972]
14518         * assert/assert.h (assert): Use static_cast (bool) for C++.
14519         Use the ternary operator in the warning branch for GNU C.
14520         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
14521         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
14522         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
14523         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
14524         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
14526 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14528         [BZ #18822]
14529         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14530         (__syscall_clock_gettime): Add attribute_hidden.
14531         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
14532         (__start_context): Likewise.
14534 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14536         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
14537         building libc.a.
14538         (hidden_proto): Likewise.
14539         (hidden_tls_proto): Likewise.
14540         (__hidden_proto): Likewise.
14542 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14544         * include/libc-symbols.h (attribute_hidden): Enable hidden
14545         visibility in libc.a compiled with PIE.
14547 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14549         [BZ #18822]
14550         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
14551         Add attribute_hidden.
14553 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14555         [BZ #21864]
14556         * Makerules (all-nonlib): Add $(others-extras).
14557         * catgets/Makefile (others-extras): New.
14558         * elf/Makefile (others-extras): Likewise.
14559         * nss/Makefile (others-extras): Likewise.
14561 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14563         [BZ #18822]
14564         * csu/libc-start.c (__libc_multiple_libcs): Removed.
14565         * elf/dl-open.c: Include <libc-internal.h>.
14566         (__libc_multiple_libcs): Removed.
14567         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
14568         <hp-timing.h>.
14569         * include/libc-internal.h (__libc_multiple_libcs): New.
14570         * misc/sbrk.c: Include <libc-internal.h>.
14571         (__libc_multiple_libcs): Removed.
14573 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
14575         [BZ #18822]
14576         * grp/initgroups.c (__nss_group_database): Removed.
14577         (__nss_initgroups_database): Likewise.
14578         * nscd/gai.c (__nss_hosts_database): Likewise.
14579         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
14580         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14581         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14582         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14583         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
14584         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
14585         attribute_hidden.
14586         * nss/nsswitch.c (__nss_database_custom): Define only if
14587         USE_NSCD is defined.
14588         (__nss_configure_lookup): Use __nss_database_custom only if
14589         USE_NSCD is defined.
14590         * nss/nsswitch.h (__nss_database_custom): Declare only if
14591         USE_NSCD is defined.  Add attribute_hidden.
14592         (__nss_setent): Add attribute_hidden.
14593         (__nss_endent): Likewise.
14594         (__nss_getent_r): Likewise.
14595         (__nss_getent): Likewise.
14596         (DEFINE_DATABASE): Declare __nss_##arg##_database.
14598 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14600         [BZ #18822]
14601         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
14602         libc_hidden_proto and libc_hidden_def.
14604 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14606         [BZ #18822]
14607         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
14608         Add libc_hidden_proto.
14609         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
14610         Add libc_hidden_def.
14612 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14614         [BZ #21974]
14615         * gmon/Makefile (routines): Remove bb_init_func and
14616         bb_exit_func.
14617         (elide-routines.os): Removed.
14618         * gmon/bb_exit_func.c: Likewise.
14619         * gmon/bb_init_func.c: Likewise.
14620         * include/sys/gmon.h (__bb): Likewise.
14621         (__bb_init_func): Likewise.
14622         (__bb_exit_func): Likewise.
14623         * sysdeps/alpha/bb_init_func.S: Likewise.
14625 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14627         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
14628         * include/setjmp.h (____longjmp_chk): Here.  Add
14629         attribute_hidden.
14631 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14633         [BZ #18822]
14634         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
14635         attribute_hidden.
14636         (__strspn_sse2): Likewise.
14638 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14640         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
14641         (close_not_cancel_no_status): Likewise.
14642         (__close_nocancel): New macro.
14643         (__close_nocancel_nostatus): Likewise.
14644         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
14645         macro.
14646         (close_not_cancel): Likewise.
14647         (close_not_cancel_no_status): Likewise.
14648         (__close_nocancel): New prototype.
14649         (__close_nocancel_nostatus): New function.
14650         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
14651         * catgets/open_catalog.c (__open_catalog): Replace
14652         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
14653         * gmon/gmon.c (write_gmon): Likewise.
14654         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
14655         * intl/loadmsgcat.c (close): Likewise.
14656         * io/ftw.c (open_dir_stream): Likewise.
14657         (ftw_startup): Likewise.
14658         * libio/fileops.c (_IO_file_open): Likewise.
14659         (_IO_file_close_mmap): Likewise.
14660         (_IO_file_close): Likewise.
14661         * libio/iopopen.c (_IO_dup2): Likewise.
14662         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
14663         * locale/loadlocale.c (_nl_load_locale): Likewise.
14664         * login/utmp_file.c (pututline_file): Likewise.
14665         (endutent_file): Likewise.
14666         * misc/daemon.c (daemon): Likewise.
14667         * nscd/nscd_getai.c (__nscd_getai): Likewise.
14668         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
14669         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
14670         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
14671         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
14672         * nscd/nscd_helper.c (open_socket): Likewise.
14673         (__nscd_open_socket): Likewise.
14674         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
14675         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
14676         (__nscd_innetgr): Likewise.
14677         * nss/nss_db/db-open.c (internal_setent): Likewise.
14678         * resolv/res-close.c (__res_iclose): Likewise.
14679         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
14680         * sysdeps/posix/closedir.c (__closedir): Likewise.
14681         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
14682         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
14683         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
14684         (opendir_tail): Likewise.
14685         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
14686         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
14687         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
14688         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
14689         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
14690         (gethostid): Likewise.
14691         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
14692         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14693         Likewise.
14694         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
14695         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
14696         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
14697         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
14698         Likewise.
14699         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
14700         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
14701         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
14702         Likewise.
14703         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
14704         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
14705         Likewise.
14706         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
14707         Likewise.
14708         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
14709         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
14710         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
14711         __close_nocancel.
14713         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
14714         (openat_not_cancel_3): Likewise.
14715         (openat64_not_cancel_3): Likewise).
14716         (openat_not_cancel_3): Likewise).
14717         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
14718         macro.
14719         (openat_not_cancel_3): Likewise.
14720         (openat64_not_cancel): Likewise.
14721         (openat64_not_cancel_3): Likewise.
14722         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
14723         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
14724         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
14725         __open{64}_nocancel.
14726         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
14727         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
14728         * sysdeps/posix/opendir.c (__opendirat): Likewise.
14730 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14732         [BZ #18822]
14733         * include/argz.h (__argz_create_sep): New function prototype.
14734         (__argz_append): Likewise.
14735         (__argz_add): Likewise.
14736         (__argz_add_sep): Likewise.
14737         (__argz_delete): Likewise.
14738         (__argz_insert): Likewise.
14739         (__argz_replace): Likewise.
14740         * string/argz.h (__argz_create_sep): Removed.
14741         (__argz_append): Likewise.
14742         (__argz_add): Likewise.
14743         (__argz_add_sep): Likewise.
14744         (__argz_delete): Likewise.
14745         (__argz_insert): Likewise.
14746         (__argz_replace): Likewise.
14748 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14750         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
14751         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
14752         (GNU_PROPERTY_STACK_SIZE): Likewie.
14753         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
14754         (GNU_PROPERTY_LOPROC): Likewise.
14755         (GNU_PROPERTY_HIPROC): Likewise.
14756         (GNU_PROPERTY_LOUSER): Likewise.
14757         (GNU_PROPERTY_HIUSER): Likewise.
14758         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
14759         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
14760         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
14761         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
14762         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
14763         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
14764         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
14765         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
14766         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
14767         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
14768         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
14769         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
14770         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
14771         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
14772         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
14773         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
14774         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
14775         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
14776         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
14777         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
14778         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
14779         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
14780         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
14782 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14784         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
14785         in C++ mode.
14787 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14789         [BZ #21930]
14790         * math/math.h (isinf): Check if in C or C++ mode before using
14791         __builtin_types_compatible_p, since this is a C mode feature.
14793 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14795         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
14796         (__write_nocancel): New macro.
14797         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
14798         Rewrite as a function prototype.
14799         (write_not_cancel): Remove macro.
14800         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
14801         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
14802         (write_gmon): Likewise.
14803         * libio/fileops.c (_IO_new_file_write): Likewise.
14804         * login/utmp_file.c (pututline_file): Likewise.
14805         (updwtmp_file): Likewise.
14806         * stdio-common/psiginfo.c (psiginfo): Likewise.
14807         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
14808         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
14809         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
14810         Likewise.
14811         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
14812         Likewise.
14814         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
14815         (__read_nocancel): New macro.
14816         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
14817         __read_nocancel.
14818         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
14819         macro.
14820         (__read_nocancel): New prototype.
14821         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
14822         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
14823         with __read_nocancel.
14824         * intl/loadmsgcat.c (read): Likewise.
14825         * libio/fileops.c (_IO_file_read): Likewise.
14826         * locale/loadlocale.c (_nl_load_locale): Likewise.
14827         * login/utmp_file.c (getutent_r_file): Likewise.
14828         (internal_getut_r): Likewise.
14829         (getutline_r_file): Likewise.
14830         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
14831         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
14832         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
14833         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14834         Likewise.
14835         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
14836         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
14837         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
14838         Likewise.
14839         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
14840         Likewise.
14841         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
14842         Likewise.
14843         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
14844         Likewise.
14845         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
14847 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14849         [BZ #21966]
14850         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
14851         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
14852         usable.
14854 2017-08-17  DJ Delorie  <dj@redhat.com>
14856         * bug17079.c: Update to new test harness.
14857         * test-digits-dots.c: Likewise.
14858         * test-netdb.c: Likewise.
14859         * tst-field.c: Likewise.
14860         * tst-nss-getpwent.c: Likewise.
14861         * tst-nss-static.c: Likewise.
14862         * tst-nss-test1.c: Likewise.
14863         * tst-nss-test2.c: Likewise.
14864         * tst-nss-test3.c: Likewise.
14865         * tst-nss-test4.c: Likewise.
14866         * tst-nss-test5.c: Likewise.
14868 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14870         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
14871         (open_not_cancel_2): Likewise.
14872         (open_nocancel): New macro.
14873         (open64_nocancel): Likewise.
14874         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
14875         (open_not_cancel_2): Likewise.
14876         (__open_nocancel): New prototype.
14877         (__open64_nocancel): Likewise.
14878         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
14879         __open_nocancel.
14880         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
14881         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
14882         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
14883         with __open_nocancel.
14884         * csu/check_fds.c (check_one_fd): Likewise.
14885         * gmon/gmon.c (write_gmon): Likewise.
14886         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
14887         * intl/loadmsgcat.c (open): Likewise.
14888         * libio/fileops.c (_IO_file_open): Likewise.
14889         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
14890         * locale/loadlocale.c (_nl_load_locale): Likewise.
14891         * login/utmp_file.c (setutent_file): Likewise.
14892         * misc/daemon.c (daemon): Likewise.
14893         * nss/nss_db/db-open.c (internal_setent): Likewise.
14894         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
14895         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
14896         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
14897         (__opendir): Likewise.
14898         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
14899         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
14900         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
14901         (gethostid): Likewise.
14902         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
14903         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14904         Likewise.
14905         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
14906         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
14907         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
14908         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
14909         Likewise.
14910         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
14911         Likewise.
14912         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
14913         Likewise.
14914         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
14915         Likewise.
14916         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
14917         Likewise.
14918         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
14919         Likewise.
14920         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
14921         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
14923 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
14925         * benchtests/bench-skeleton.c (main): Add support for
14926         latency benchmarking.
14927         * benchtests/scripts/bench.py: Add support for latency benchmarking.
14929 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
14931         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
14932         the startup object.
14934 2017-08-17  Florian Weimer  <fweimer@redhat.com>
14936         * include/sys/socket.h (__opensock): Remove internal_function.
14937         * socket/opensock.c (__opensock): Likewise.
14938         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
14940 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
14942         [BZ #21944]
14943         * signal/bits/types/__sigval_t.h: New file.
14944         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
14945         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
14946         and define sigval_t using __sigval_t.
14947         * include/bits/types/__sigval_t.h: New file.
14948         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
14949         instead of <bits/types/__sigval_t.h>.
14950         (struct sigevent): Use __sigval_t instead of sigval_t.
14951         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
14952         instead of <bits/types/__sigval_t.h>.
14953         (siginfo_t): Use __sigval_t instead of sigval_t.
14954         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
14955         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
14956         (struct sigevent): Use __sigval_t instead of sigval_t.
14957         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
14958         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
14959         (siginfo_t): Use __sigval_t instead of sigval_t.
14960         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
14962 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
14964         * NEWS: Remove "[Add new features here]" for 2.27.
14966 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
14968         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
14969         libc.so.
14971 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
14973         * NEWS: Mention x86-64 FMA optimization.
14975 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
14977         [BZ #21912]
14978         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14979         Add e_expf-fma.
14980         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
14981         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
14982         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
14984 2017-08-16  Andreas Schwab  <schwab@suse.de>
14986         [BZ #16750]
14987         CVE-2009-5064
14988         * elf/ldd.bash.in: Never run file directly.
14990 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
14992         [BZ #21955]
14993         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
14994         (L(SP_INF_0)): Likewise.
14996 2017-08-15  Florian Weimer  <fweimer@redhat.com>
14998         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
14999         run-built-tests.
15001 2017-08-15  Florian Weimer  <fweimer@redhat.com>
15003         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
15004         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
15005         BROKEN_THREAD_SIGNALS code.
15006         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
15007         request_list): Remove caller_pid member used for
15008         BROKEN_THREAD_SIGNALS.
15009         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
15010         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
15011         Remove BROKEN_THREAD_SIGNALS support.
15012         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
15013         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
15015 2017-08-15  Florian Weimer  <fweimer@redhat.com>
15017         * gmon/Makefile (tests): Add tst-gmon.
15018         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
15019         Set.
15020         (tests-special): Add tst-gmon-prof.out.
15021         (tst-gmon.out): Depend on clean-tst-gmon-data.
15022         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
15023         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
15024         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
15025         startup object.
15026         * aclocal.m4 (GPROF): Set and substitute.
15027         * config.amke.in (GPROF): Set.
15028         * configure: Regenerate.
15030 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
15032         * elf/elf.h A (NT_PPC_TAR): New macro.
15033         (NT_PPC_PPR): Likewise.
15034         (NT_PPC_DSCR): Likewise.
15035         (NT_PPC_EBB): Likewise.
15036         (NT_PPC_PMU): Likewise.
15037         (NT_PPC_TM_CGPR): Likewise.
15038         (NT_PPC_TM_CFPR): Likewise.
15039         (NT_PPC_TM_CVMX): Likewise.
15040         (NT_PPC_TM_CVSX): Likewise.
15041         (NT_PPC_TM_SPR): Likewise.
15042         (NT_PPC_TM_CTAR): Likewise.
15043         (NT_PPC_TM_CPPR): Likewise.
15044         (NT_PPC_TM_CDSCR): Likewise.
15046 2017-08-15  Florian Weimer  <fweimer@redhat.com>
15048         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
15049         regparm (2) instead of internal_function.
15050         (_MCOUNT_DECL): Adjust.
15052 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15054         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
15055         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
15057 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
15059         * conform/data/sys/wait.h-data (si_value): Do not expect for
15060         XPG42.
15062 2017-08-14  Florian Weimer  <fweimer@redhat.com>
15064         [BZ #21962]
15065         NSS: Create stubs for accidentally exported lookup functions.
15066         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
15067         Remove declaration.
15068         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
15069         (ether_hostton): Call __nss_ethers_lookup2 instead.
15070         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
15071         (ether_ntohost): Call __nss_ethers_lookup2 instead.
15072         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
15073         (setup): Call __nss_netgroup_lookup2 instead.
15074         * nss/Makefile (routines): Add compat-lookup.
15075         * nss/Versions (GLIBC_2.27): Add symbol version.
15076         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
15077         (DB_COMPAT_FCT): Remove.
15078         * nss/compat-lookup.c: New file.
15079         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
15080         from databases.def.
15081         * nss/service-lookup.c (NO_COMPAT): Remove definition.
15082         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
15083         (netname2user): Call __nss_publickey_lookup2 instead.
15084         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
15085         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
15086         instead.
15088 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15089             Sergei Trofimovich  <slyfox@inbox.ru>
15091         [BZ #21908]
15092         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
15093         Rename to MMAP2_PAGE_UNIT.
15094         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
15095         __OFF_T_MATCHES_OFF64_T is not defined.
15096         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
15097         uint64_t.
15098         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
15099         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
15101 2017-08-14  Florian Weimer  <fweimer@redhat.com>
15103         i386: Do not set internal_function.
15104         * config.h.in (USE_REGPARMS, internal_function): Remove.
15105         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
15106         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
15108 2017-08-14  Florian Weimer  <fweimer@redhat.com>
15110         * elf/dl-init.c (_dl_init): Remove internal_function.
15111         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
15112         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
15114 2017-08-14  Florian Weimer  <fweimer@redhat.com>
15116         * elf/rtld.c (_dl_start): Remove internal_function.
15117         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
15118         _dl_start.
15120 2017-08-14  Florian Weimer  <fweimer@redhat.com>
15122         * elf/dl-fini.c (_dl_fini): Remove internal_function
15123         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
15125 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
15127         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
15128         (bit_cpu_SHSTK): Likewise.
15129         (index_cpu_IBT): Likewise.
15130         (index_cpu_SHSTK): Likewise.
15131         (reg_IBT): Likewise.
15132         (reg_SHSTK): Likewise.
15133         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
15134         Handle index_cpu_IBT and index_cpu_SHSTK.
15136 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
15138         [BZ #19982]
15139         * po/fr.po: Fix spelling mistake.
15141 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15143         * elf/dl-addr.c (_dl_addr): Remove internal_function.
15144         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
15145         (_dl_catch_error, _dl_receive_error): Likewise.
15146         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
15147         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
15148         (_dl_deallocate_tls): Likewise.
15149         * include/dlfcn.h (_dl_addr): Likewise.
15150         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
15151         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
15152         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
15153         Likewise.
15155 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15157         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
15158         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
15159         internal_function.
15160         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
15162 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15164         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
15165         internal_function.
15166         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
15167         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
15168         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
15169         internal_function from _dl_make_stack_executable_hook member.
15170         (_dl_make_stack_executable): Remove internal_function.
15171         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
15172         Likewise.
15173         * sysdeps/unix/sysv/linux/dl-execstack.c
15174         (_dl_make_stack_executable): Likewise.
15176 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15178         * sysdeps/unix/sysv/linux/netlinkaccess.h
15179         (__netlink_assert_response): Remove internal_function.
15180         * sysdeps/unix/sysv/linux/netlink_assert_response.c
15181         (__netlink_assert_response): Likewise.
15183 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15185         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
15186         internal_function.
15187         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
15189 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15191         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
15192         internal_function.
15193         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
15194         * inet/netgroup.h (__internal_setnetgrent)
15195         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
15196         * inet/getnetgrent_r.c (__internal_setnetgrent)
15197         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
15198         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
15199         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
15200         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
15201         * nss/nsswitch.h (db_lookup_function): Likewise.
15203 2017-08-13  Florian Weimer  <fweimer@redhat.com>
15205         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
15206         Remove internal_function.
15207         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
15208         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
15209         message argument on the stack.
15210         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
15211         Likeweise.
15213 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
15215         Adapt test case data to the changes in the thousands
15216         separators.
15218         [BZ #20756]
15219         * localedata/tst-langinfo.sh: Adapt test case data.
15220         * stdlib/tst-strfmon_l.c: Likewise.
15221         * stdlib/tst-strtod4.c: Likewise.
15222         * stdlib/tst-strtod5i.c: Likewise.
15224 2017-08-11  Florian Weimer  <fweimer@redhat.com>
15226         [BZ #21242]
15227         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
15228         Suppress pedantic warning resulting from statement expression.
15229         (__ASSERT_FUNCTION): Add missing __extension__.
15231 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15233         * benchtests/bench-memmove-large.c: Print output in JSON
15234         format.
15235         * benchtests/bench-memmove.c: Likewise.
15237         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
15238         * benchtests/bench-memchr.c (do_one_test): Likewise.
15239         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
15240         * benchtests/bench-memcpy.c (do_one_test): Likewise.
15241         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
15242         * benchtests/bench-memmove.c (do_one_test): Likewise.
15243         * benchtests/bench-memset-large.c (do_one_test): Likewise.
15244         * benchtests/bench-memset.c (do_one_test): Likewise.
15245         * benchtests/bench-string.h (test_init): Remove memsets.
15247 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
15249         * manual/lang.texi
15250         (Computing the Width of an Integer Data Type): Rename section to
15251         "Width of an Integer Type".  Remove inaccurate statement regarding
15252         lack of C language facilities for determining width of integer
15253         types, and reorder content to improve flow and context of
15254         discussion.
15256 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
15258         * lang.texi (va_copy): Change standard from ISO to C99.
15259         (__va_copy): Add standard and header annotation.
15260         Update description for clarity of origins and current use.
15262 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
15264         [BZ #21941]
15265         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
15266         xssqrtqp requires operands to be in Vector Registers
15267         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
15268         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
15269         (__ieee754_sqrtf128): Likewise.
15271 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
15273         * sysdeps/aarch64/memcmp.S (memcmp):
15274         Rewrite of optimized memcmp.
15276 2017-08-10  Florian Weimer  <fweimer@redhat.com>
15278         Introduce ld.so exceptions.
15279         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
15280         (_dl_exception_create, _dl_exception_create_format)
15281         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
15282         (_dl_catch_exception): Declare.
15283         (_dl_catch_error): Update comment.
15284         * elf/dl-error-skeleton.c (struct catch): Replace objname,
15285         errstring, malloced members with exception member.
15286         (_dl_out_of_memory): Remove.
15287         (fatal_error): New function, extracted from _dl_signal_error.
15288         (_dl_signal_exception, _dl_signal_cexception): New functions.
15289         (_dl_signal_error): Call _dl_exception_create to allocate an
15290         exception object.
15291         (_dl_catch_exception): New function, based on _dl_catch_error.
15292         (_dl_catch_error): Implement using _dl_catch_exception.
15293         * elf/dl-exception.c: New file.
15294         * elf/Makefile (dl-routines): Add dl-exception.
15295         (elide-routines.os): Likewise.
15296         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
15297         _dl_exception_create_format, _dl_exception_free.
15298         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
15299         _dl_signal_exception.
15300         * elf/dl-lookup.c (make_string): Remove.
15301         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
15302         _dl_signal_cexception, _dl_exception_free.
15303         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
15304         _dl_signal_exception.
15305         * elf/dl-sym.c (do_sym): Likewise.
15306         * elf/dl-version.c (make_string): Remove.
15307         (match_symbol): Use _dl_exception_create_format,
15308         _dl_signal_cexception, _dl_exception_free.
15309         (_dl_check_map_versions): Likewise.
15310         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
15311         _dl_catch_exception.
15312         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
15313         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
15314         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
15315         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
15316         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
15317         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
15318         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
15319         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
15320         Likewise.
15321         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
15322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
15323         (ld.so): Likewise.
15324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
15325         (ld.so): Likewise.
15326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
15327         Likewise.
15328         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
15329         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
15330         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
15331         Likewise.
15332         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
15333         Likewise.
15334         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
15336 2017-08-10  Florian Weimer  <fweimer@redhat.com>
15338         * inet/net-internal.h (__inet6_scopeid_pton): Remove
15339         attribute_hidden, internal_function.
15340         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
15341         internal_function.
15343 2017-08-10  Florian Weimer  <fweimer@redhat.com>
15345         * malloc/malloc.c (get_max_fast): Reimplement as an inline
15346         function which calls __builtin_unreachable.
15348 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
15350         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
15351         Indian monetary formatting
15352         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
15353         test cases.
15355 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
15357         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
15358         Fix typo in comment.
15360         [BZ #21928]
15361         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
15362         PTRACE_SEIZE_DEVEL): Remove.
15363         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
15364         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15366         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15367         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15369 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
15371         * posix/bits/types.h (__qaddr_t): Remove.
15373         [BZ #21457]
15374         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
15375         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
15376         __glibc_reserved1.
15377         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
15378         (ucontext_t): Use __ctx with uc_flags.
15379         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
15380         (__ctxt): Likewise.
15381         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
15382         __glibc_reserved1.
15383         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
15384         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
15385         __glibc_reserved1.
15386         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
15387         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
15388         __glibc_reserved1.
15389         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
15390         macro.
15391         (ucontext_t): Use __ctx with uc_flags.
15392         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
15393         (ucontext_t): Use __ctx with uc_flags.
15394         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
15395         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
15396         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
15397         (ucontext_t): Use __ctx with uc_flags.
15398         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
15399         undefine further down.
15400         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
15401         __glibc_reserved1.
15402         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
15403         undefine further down.
15404         (ucontext_t): Use __ctx with uc_flags.
15405         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
15406         undefine further down.
15407         (ucontext_t): Use __ctx with uc_flags.
15408         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
15409         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
15410         Rename uc_pad to __glibc_reserved1.
15411         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
15412         undefine further down.
15413         (ucontext_t): Use __ctx with uc_flags.
15414         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
15415         further down.
15416         (ucontext_t): Use __ctx with uc_flags.
15417         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
15418         __ctx with uc_flags.
15419         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
15420         (ucontext_t): Use __ctx with uc_flags.
15421         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
15422         __ctx with uc_flags.
15424 2017-08-09  Florian Weimer  <fweimer@redhat.com>
15426         [BZ #21932]
15427         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
15428         before early return.
15430 2017-08-09  Andreas Schwab  <schwab@suse.de>
15432         [BZ #21041]
15433         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
15434         renamed alias.
15436         [BZ #21041]
15437         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
15438         tst-compat-forwarder.
15439         (modules-names): Add tst-compat-forwarder-mod.
15440         ($(objpfx)tst-compat-forwarder): Depend on
15441         $(objpfx)tst-compat-forwarder-mod.so.
15442         * nptl/tst-compat-forwarder.c: New file.
15443         * nptl/tst-compat-forwarder-mod.c: New file.
15445 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15447         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
15448         comments.
15450         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
15451         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
15452         memcpy_falkor.
15453         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15454         Bump.
15455         (__libc_ifunc_impl_list): Add __memcpy_falkor.
15456         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
15457         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
15458         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
15459         Add falkor.
15460         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
15461         New macro.
15463 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15465         [BZ #759]
15466         * manual/setjmp.texi (getcontex): Document uc_stack value
15467         compatibility differences.
15469 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
15471         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
15472         (old_malloc_hook): Likewise.
15473         (old_memalign_hook): Likewise.
15474         (old_realloc_hook): Likewise.
15475         (struct hdr): Likewise.
15476         (flood): Likewise.
15477         (freehook): Likewise.
15478         (mallochook): Likewise.
15479         (memalignhook): Likewise.
15480         (reallochook): Likewise.
15481         (mprobe): Likewise.
15482         * malloc/mtrace.c (mallwatch): Likewise.
15483         (tr_old_free_hook): Likewise.
15484         (tr_old_malloc_hook): Likewise.
15485         (tr_old_realloc_hook): Likewise.
15486         (tr_old_memalign_hook): Likewise.
15487         (tr_where): Likewise.
15488         (lock_and_info): Likewise.
15489         (tr_freehook): Likewise.
15490         (tr_mallochook): Likewise.
15491         (tr_reallochook): Likewise.
15492         (tr_memalignhook): Likewise.
15493         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
15494         * misc/mmap.c (__mmap): Likewise.
15495         * misc/mmap64.c (__mmap64): Likewise.
15496         * misc/mprotect.c (__mprotect): Likewise.
15497         * misc/msync.c (msync): Likewise.
15498         * misc/munmap.c (__munmap): Likewise.
15499         * posix/posix_madvise.c (posix_madvise): Likewise.
15500         * socket/send.c (__send): Likewise.
15501         * socket/sendto.c (__sendto): Likewise.
15502         * socket/setsockopt.c (__setsockopt): Likewise.
15503         * string/memcmp.c (__ptr_t): Remove macro.
15504         (MEMCMP): Use void * instead of ptr_t.
15505         * string/memrchr.c (__ptr_t): Remove macro.
15506         (__memrchr): Use void * instead of ptr_t.
15507         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
15508         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
15509         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
15510         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
15511         * sysdeps/mach/msync.c (msync): Likewise.
15512         * sysdeps/mach/munmap.c (__munmap): Likewise.
15513         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
15514         Likewise.
15515         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15516         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
15517         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
15518         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
15519         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
15520         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
15521         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
15522         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
15523         Likewise.
15524         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
15525         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
15526         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
15527         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
15528         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
15529         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
15530         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
15531         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
15532         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
15533         Likewise.
15534         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
15535         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
15536         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
15537         (MEMCMP): Use void * instead of ptr_t.
15538         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
15539         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
15541 2017-08-08  Florian Weimer  <fweimer@redhat.com>
15543         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
15544         return statement.
15546 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
15548         [BZ #21913]
15549         * csu/libc-tls.c: Include <startup.h> first.
15550         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
15551         * elf/dl-tunables.c: Include <startup.h> first.
15552         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
15553         * sysdeps/generic/startup.h: New file.
15554         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
15555         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
15556         (I386_USE_SYSENTER): New.  Defined to 0.
15558 2017-08-08  Andreas Schwab  <schwab@suse.de>
15560         [BZ #21041]
15561         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
15562         * nptl/pt-system.c (system): Likewise.
15564 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15566         [BZ #21780]
15567         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
15568         EOPNOTSUPP.
15569         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15570         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15571         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
15572         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15573         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15574         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15575         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
15577 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
15579         [BZ #21899]
15580         * bits/sigaction.h (struct sigaction): Define sa_handler and
15581         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
15582         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15583         [__USE_XOPEN_EXTENDED].
15584         (SA_RESTART): Likewise.
15585         (SA_NODEFER): Likewise.
15586         (SA_RESETHAND): Likewise.
15587         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
15588         (struct sigaction): Define sa_handler and sa_sigaction using union
15589         also for [__USE_XOPEN_EXTENDED].
15590         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15591         [__USE_XOPEN_EXTENDED].
15592         (SA_RESTART): Likewise.
15593         (SA_NODEFER): Likewise.
15594         (SA_RESETHAND): Likewise.
15595         * sysdeps/unix/sysv/linux/bits/sigaction.h
15596         (struct sigaction): Define sa_handler and sa_sigaction using union
15597         also for [__USE_XOPEN_EXTENDED].
15598         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15599         [__USE_XOPEN_EXTENDED].
15600         (SA_RESTART): Likewise.
15601         (SA_NODEFER): Likewise.
15602         (SA_RESETHAND): Likewise.
15603         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
15604         (struct sigaction): Define sa_handler and sa_sigaction using union
15605         also for [__USE_XOPEN_EXTENDED].
15606         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15607         [__USE_XOPEN_EXTENDED].
15608         (SA_RESTART): Likewise.
15609         (SA_NODEFER): Likewise.
15610         (SA_RESETHAND): Likewise.
15611         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
15612         (struct sigaction): Define sa_handler and sa_sigaction using union
15613         also for [__USE_XOPEN_EXTENDED].
15614         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15615         [__USE_XOPEN_EXTENDED].
15616         (SA_RESTART): Likewise.
15617         (SA_NODEFER): Likewise.
15618         (SA_RESETHAND): Likewise.
15619         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
15620         (struct sigaction): Define sa_handler and sa_sigaction using union
15621         also for [__USE_XOPEN_EXTENDED].
15622         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15623         [__USE_XOPEN_EXTENDED].
15624         (SA_RESTART): Likewise.
15625         (SA_NODEFER): Likewise.
15626         (SA_RESETHAND): Likewise.
15627         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
15628         (struct sigaction): Define sa_handler and sa_sigaction using union
15629         also for [__USE_XOPEN_EXTENDED].
15630         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15631         [__USE_XOPEN_EXTENDED].
15632         (SA_RESTART): Likewise.
15633         (SA_NODEFER): Likewise.
15634         (SA_RESETHAND): Likewise.
15635         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
15636         (struct sigaction): Define sa_handler and sa_sigaction using union
15637         also for [__USE_XOPEN_EXTENDED].
15638         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15639         [__USE_XOPEN_EXTENDED].
15640         (SA_RESTART): Likewise.
15641         (SA_NODEFER): Likewise.  Define directly rather than as alias.
15642         (SA_RESETHAND): Likewise.
15643         (SA_INTERRUPT): Define only for [__USE_MISC].
15644         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
15645         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
15646         [__USE_MISC].
15647         (SA_STACK): Define only for [__USE_MISC].
15648         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
15649         (struct sigaction): Define sa_handler and sa_sigaction using union
15650         also for [__USE_XOPEN_EXTENDED].
15651         (SA_ONSTACK): Change [__USE_UNIX98] condition to
15652         [__USE_XOPEN_EXTENDED].
15653         (SA_RESTART): Likewise.
15654         (SA_NODEFER): Likewise.
15655         (SA_RESETHAND): Likewise.
15656         (SA_NOPTRACE): Define only for [__USE_MISC].
15658         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
15659         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
15660         (struct catalog_info): Likewise.
15661         * inet/htontest.c (lo): Likewise.
15662         (foo): Likewise.
15663         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15664         * inet/inet_net.c (inet_network): Likewise.
15665         * inet/inet_netof.c (inet_netof): Likewise.
15666         * inet/rcmd.c (__ivaliduser): Likewise.
15667         (iruserok): Likewise.
15668         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
15669         * locale/programs/locale-spec.c (locale_special): Likewise.
15670         * nis/nis_findserv.c (struct findserv_req): Likewise.
15671         (__nis_findfastest_with_timeout): Likewise.
15672         * nss/test-netdb.c (test_network): Likewise.
15673         * resolv/inet_neta.c (inet_neta): Likewise.
15674         * resolv/ns_date.c (ns_datetosecs): Likewise.
15675         (SECS_PER_DAY): Likewise.
15676         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
15677         Likewise.
15678         * resolv/res_comp.c (__putlong): Likewise.
15679         (__putshort): Likewise.
15680         (_getlong): Likewise.
15681         (_getshort): Likewise.
15682         * resolv/res_debug.c (p_time): Likewise.
15683         (precsize_ntoa): Likewise.
15684         (precsize_aton): Likewise.
15685         (latlon2ul): Likewise.
15686         (loc_aton): Likewise.
15687         (loc_ntoa): Likewise.
15688         * resolv/res_hconf.c (struct netaddr): Likewise.
15689         (_res_hconf_reorder_addrs): Likewise.
15690         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
15691         (clnttcp_control): Likewise.
15692         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15693         (clntudp_control): Likewise.
15694         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
15695         (clntunix_control): Likewise.
15696         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
15697         * sunrpc/rpc/auth.h (union des_block): Likewise.
15698         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
15699         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
15700         (xdrrec_create): Likewise.
15701         (xdrrec_endofrecord): Likewise.
15702         (flush_out): Likewise.
15703         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
15704         (xdrstdio_putlong): Likewise.
15705         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
15706         Likewise.
15708         * misc/sys/cdefs.h (__long_double_t): Remove.
15709         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
15710         instead of __long_double_t,
15711         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
15713 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15715         * benchtests/scripts/compare_strings.py: Avoid display error when
15716         running on a text terminal.
15718         * benchtests/scripts/compare_strings.py (main): Add an
15719         optional -base option.
15720         (process_results): New argument base_func.
15722         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
15723         hardcoding memcpy.
15724         * benchtests/bench-memcpy-large.c (test_name): Likewise.
15725         * benchtests/bench-memcpy-random.c (test_name): Likewise.
15727 2017-08-07  Andreas Schwab  <schwab@suse.de>
15729         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
15730         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
15731         * intl/Makefile ($(objpfx)tst-gettext.out)
15732         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
15733         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
15734         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
15735         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
15736         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
15737         * posix/Makefile ($(objpfx)globtest.out)
15738         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
15739         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
15740         ($(objpfx)tst-printf.out): Likewise.
15741         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
15742         ($(objpfx)tst-setcontext3.out): Likewise.
15744 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
15746         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15747         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
15748         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
15749         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
15750         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
15751         and mptan-fma.
15752         (CFLAGS-doasin-fma.c): New.
15753         (CFLAGS-dosincos-fma.c): Likewise.
15754         (CFLAGS-e_asin-fma.c): Likewise.
15755         (CFLAGS-e_atan2-fma.c): Likewise.
15756         (CFLAGS-e_exp-fma.c): Likewise.
15757         (CFLAGS-e_log-fma.c): Likewise.
15758         (CFLAGS-e_pow-fma.c): Likewise.
15759         (CFLAGS-halfulp-fma.c): Likewise.
15760         (CFLAGS-mpa-fma.c): Likewise.
15761         (CFLAGS-mpatan-fma.c): Likewise.
15762         (CFLAGS-mpatan2-fma.c): Likewise.
15763         (CFLAGS-mpexp-fma.c): Likewise.
15764         (CFLAGS-mplog-fma.c): Likewise.
15765         (CFLAGS-mpsqrt-fma.c): Likewise.
15766         (CFLAGS-mptan-fma.c): Likewise.
15767         (CFLAGS-s_atan-fma.c): Likewise.
15768         (CFLAGS-sincos32-fma.c): Likewise.
15769         (CFLAGS-slowexp-fma.c): Likewise.
15770         (CFLAGS-slowpow-fma.c): Likewise.
15771         (CFLAGS-s_sin-fma.c): Likewise.
15772         (CFLAGS-s_tan-fma.c): Likewise.
15773         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
15774         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
15775         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
15776         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
15777         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
15778         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15779         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
15780         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
15781         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
15782         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
15783         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
15784         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
15785         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
15786         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15787         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15788         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
15789         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
15790         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
15791         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
15792         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
15793         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
15794         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
15795         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15796         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
15797         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15798         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15799         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15800         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
15801         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15802         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15803         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15805 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
15807         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
15808         (min_of_type_f): New macro.
15809         (min_of_type_): Likewise.
15810         (min_of_type_l): Likewise.
15811         (min_of_type_f128): Likewise.
15812         (min_of_type): Define using __MATH_TG and taking an expression
15813         argument.
15814         (math_check_force_underflow): Pass expression instead of type to
15815         min_of_type.
15816         (math_check_force_underflow_nonneg): Likewise.
15818 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15820         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
15821         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
15822         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
15824 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15827         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
15828         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
15829         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
15830         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
15831         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
15832         memcpy_chk-nonshared, mempcpy_chk-nonshared,
15833         memmove_chk-nonshared and memset_chk-nonshared
15834         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
15835         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
15836         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
15837         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
15838         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
15839         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
15840         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
15841         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
15842         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
15843         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
15844         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
15845         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
15846         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
15847         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
15848         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
15849         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
15850         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
15851         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
15852         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
15853         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
15854         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
15855         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
15856         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
15857         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
15858         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
15859         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
15860         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
15861         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
15862         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
15863         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
15864         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
15865         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
15866         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
15867         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
15868         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
15869         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
15870         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
15871         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
15872         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
15873         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
15874         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
15875         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
15876         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
15877         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
15878         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
15879         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
15880         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
15881         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
15882         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
15883         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
15884         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
15885         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
15886         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
15887         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
15888         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
15889         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
15890         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
15891         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
15892         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
15893         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
15894         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
15895         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
15896         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
15897         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
15898         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
15899         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
15900         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
15901         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
15902         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
15903         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
15904         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
15905         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
15906         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
15907         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
15908         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
15909         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
15910         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
15911         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
15912         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
15913         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
15914         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
15915         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
15916         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
15917         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
15918         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
15919         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
15920         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15921         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
15922         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
15923         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15924         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
15925         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
15926         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
15927         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15928         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
15929         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
15930         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
15931         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
15932         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
15933         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
15934         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
15935         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
15936         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
15937         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
15938         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
15939         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
15940         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
15941         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
15943 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15945         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
15946         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
15947         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
15948         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
15949         svml_d_log2_core-sse2, svml_d_log4_core-sse,
15950         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
15951         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
15952         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
15953         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
15954         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
15955         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
15956         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
15957         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
15958         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
15959         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
15960         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
15961         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
15962         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
15963         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
15964         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
15965         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
15966         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
15967         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
15968         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
15969         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
15970         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
15971         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
15972         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
15973         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
15974         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
15975         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
15976         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
15977         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
15978         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
15979         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
15980         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
15981         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
15982         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
15983         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
15984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
15985         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
15986         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
15987         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
15988         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
15989         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
15990         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
15991         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
15992         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
15993         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
15994         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
15995         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
15996         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
15997         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
15998         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
15999         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
16000         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
16001         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
16002         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
16003         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
16004         ...
16005         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
16006         Don't include <sysdep.h> nor <init-arch.h>.
16007         (_ZGVbN2v_cos): Removed.
16008         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
16009         ...
16010         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
16011         Don't include <sysdep.h> nor <init-arch.h>.
16012         (_ZGVdN4v_cos): Removed.
16013         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
16014         ...
16015         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
16016         Don't include <sysdep.h> nor <init-arch.h>.
16017         (_ZGVeN8v_cos): Removed.
16018         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
16019         ...
16020         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
16021         Don't include <sysdep.h> nor <init-arch.h>.
16022         (_ZGVbN2v_exp): Removed.
16023         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
16024         ...
16025         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
16026         Don't include <sysdep.h> nor <init-arch.h>.
16027         (_ZGVdN4v_exp): Removed.
16028         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
16029         ...
16030         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
16031         Don't include <sysdep.h> nor <init-arch.h>.
16032         (_ZGVeN8v_exp): Removed.
16033         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
16034         ...
16035         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
16036         Don't include <sysdep.h> nor <init-arch.h>.
16037         (_ZGVbN2v_log): Removed.
16038         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
16039         ...
16040         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
16041         Don't include <sysdep.h> nor <init-arch.h>.
16042         (_ZGVdN4v_log): Removed.
16043         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
16044         ...
16045         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
16046         Don't include <sysdep.h> nor <init-arch.h>.
16047         (_ZGVeN8v_log): Removed.
16048         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
16049         ...
16050         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
16051         Don't include <sysdep.h> nor <init-arch.h>.
16052         (_ZGVbN2vv_pow): Removed.
16053         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
16054         ...
16055         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
16056         Don't include <sysdep.h> nor <init-arch.h>.
16057         (_ZGVdN4vv_pow): Removed.
16058         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
16059         ...
16060         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
16061         Don't include <sysdep.h> nor <init-arch.h>.
16062         (_ZGVeN8vv_pow): Removed.
16063         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
16064         ...
16065         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
16066         Don't include <sysdep.h> nor <init-arch.h>.
16067         (_ZGVbN2v_sin): Removed.
16068         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
16069         ...
16070         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
16071         Don't include <sysdep.h> nor <init-arch.h>.
16072         (_ZGVbN4v_sin): Removed.
16073         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
16074         ...
16075         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
16076         Don't include <sysdep.h> nor <init-arch.h>.
16077         (_ZGVbN8v_sin): Removed.
16078         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
16079         ...
16080         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
16081         Don't include <sysdep.h> nor <init-arch.h>.
16082         (_ZGVbN2vvv_sincos): Removed.
16083         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
16084         ...
16085         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
16086         Don't include <sysdep.h> nor <init-arch.h>.
16087         (_ZGVdN4vvv_sincos): Removed.
16088         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
16089         ...
16090         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
16091         Don't include <sysdep.h> nor <init-arch.h>.
16092         (_ZGVeN8vvv_sincos): Removed.
16093         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
16094         ...
16095         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
16096         Don't include <sysdep.h> nor <init-arch.h>.
16097         (_ZGVeN16v_cosf): Removed.
16098         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
16099         ...
16100         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
16101         Don't include <sysdep.h> nor <init-arch.h>.
16102         (_ZGVbN4v_cosf): Removed.
16103         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
16104         ...
16105         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
16106         Don't include <sysdep.h> nor <init-arch.h>.
16107         (_ZGVdN8v_cosf): Removed.
16108         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
16109         ...
16110         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
16111         Don't include <sysdep.h> nor <init-arch.h>.
16112         (_ZGVeN16v_expf): Removed.
16113         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
16114         ...
16115         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
16116         Don't include <sysdep.h> nor <init-arch.h>.
16117         (_ZGVbN4v_expf): Removed.
16118         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
16119         ...
16120         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
16121         Don't include <sysdep.h> nor <init-arch.h>.
16122         (_ZGVdN8v_expf): Removed.
16123         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
16124         ...
16125         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
16126         Don't include <sysdep.h> nor <init-arch.h>.
16127         (_ZGVeN16v_logf): Removed.
16128         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
16129         ...
16130         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
16131         Don't include <sysdep.h> nor <init-arch.h>.
16132         (_ZGVbN4v_logf): Removed.
16133         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
16134         ...
16135         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
16136         Don't include <sysdep.h> nor <init-arch.h>.
16137         (_ZGVdN8v_logf): Removed.
16138         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
16139         ...
16140         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
16141         Don't include <sysdep.h> nor <init-arch.h>.
16142         (_ZGVeN16vv_powf): Removed.
16143         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
16144         ...
16145         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
16146         Don't include <sysdep.h> nor <init-arch.h>.
16147         (_ZGVbN4vv_powf): Removed.
16148         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
16149         ...
16150         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
16151         Don't include <sysdep.h> nor <init-arch.h>.
16152         (_ZGVdN8vv_powf): Removed.
16153         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
16154         ...
16155         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
16156         Don't include <sysdep.h> nor <init-arch.h>.
16157         (_ZGVeN16vvv_sincosf): Removed.
16158         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
16159         ...
16160         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
16161         Don't include <sysdep.h> nor <init-arch.h>.
16162         (_ZGVbN4vvv_sincosf): Removed.
16163         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
16164         ...
16165         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
16166         Don't include <sysdep.h> nor <init-arch.h>.
16167         (_ZGVdN8vvv_sincosf): Removed.
16168         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
16169         ...
16170         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
16171         Don't include <sysdep.h> nor <init-arch.h>.
16172         (_ZGVeN16v_sinf): Removed.
16173         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
16174         ...
16175         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
16176         Don't include <sysdep.h> nor <init-arch.h>.
16177         (_ZGVbN4v_sinf): Removed.
16178         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
16179         ...
16180         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
16181         Don't include <sysdep.h> nor <init-arch.h>.
16182         (_ZGVdN8v_sinf): Removed.
16184 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16186         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16187         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
16188         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
16189         s_rint-sse4_1 and s_rintf-sse4_1.
16190         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
16191         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
16192         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
16193         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
16194         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
16195         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
16196         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
16197         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
16198         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
16199         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
16200         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
16201         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16202         (__ceil): Removed.
16203         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
16204         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
16205         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16206         (__ceilf): Removed.
16207         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
16208         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
16209         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16210         (__floor): Removed.
16211         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
16212         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
16213         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16214         (__floorf): Removed.
16215         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
16216         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
16217         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16218         (__nearbyint): Removed.
16219         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
16220         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
16221         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16222         (__nearbyintf): Removed.
16223         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
16224         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
16225         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16226         (__rint): Removed.
16227         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
16228         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
16229         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
16230         (__rintf): Removed.
16232 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16234         * sysdeps/i386/start.S (_start): Check Check PIC instead of
16235         SHARED.  Avoid dynamic relocation against main in static PIE.
16237 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16239         [BZ #21815]
16240         * elf/Makefile (CFLAGS-tst-prelink.c): New.
16241         (LDFLAGS-tst-prelink): Likewise.
16243 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16245         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
16246         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
16247         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
16248         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16249         (INTERNAL_SYSCALL_NCS): Likewise.
16250         (LOADARGS_1): Likewise.
16251         (LOADARGS_5): Likewise.
16252         (RESTOREARGS_1): Likewise.
16253         (RESTOREARGS_5): Likewise.
16255 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16257         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
16258         (MEMPCPY_SYMBOL): Likewise.
16259         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16260         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
16261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
16262         in libc.a.
16263         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16264         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
16265         Likewise.
16266         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
16267         (__hidden_ver1): Don't use in libc.a.
16268         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
16269         (__mempcpy): Don't create a weak alias in libc.a.
16270         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
16271         libc.a.
16272         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
16273         (__hidden_ver1): Don't use in libc.a.
16275 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16277         * config.make.in (have-insert): New.
16278         * configure.ac (libc_cv_insert): New.  Set to yes if linker
16279         supports INSERT in linker script.
16280         (AC_SUBST(libc_cv_insert): New.
16281         * configure: Regenerated.
16282         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
16283         if $(have-insert) == yes.
16285 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16287         * elf/Makefile (tests): Add vismain only if
16288         $(have-protected-data) == yes.
16289         (tests-pie): Likewise.
16291 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16293         [BZ #21871]
16294         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
16295         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
16297 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
16299         [BZ #21790]
16300         * sysdeps/i386/i586/memset.S
16301         (__memset_zero_constant_len_parameter): Removed.
16302         * sysdeps/i386/i686/memset.S
16303         (__memset_zero_constant_len_parameter): Likewise.
16304         * sysdeps/i386/i686/multiarch/memset_chk.S
16305         (__memset_zero_constant_len_parameter): Likewise.
16306         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
16307         Likewise.
16309 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
16311         * stdlib/getentropy.c (getentropy): Change return type to int.
16313 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
16315         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
16317 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
16319         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
16320         u_intN_t.
16321         * math/s_nexttowardf.c (__nexttowardf): Likewise.
16322         * sysdeps/generic/math_private.h (ieee_double_shape_type):
16323         Likewise.
16324         (ieee_float_shape_type): Likewise.
16325         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
16326         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
16327         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
16328         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16329         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
16330         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
16331         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
16332         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
16333         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
16334         Likewise.
16335         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16336         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16337         (__ieee754_yn): Likewise.
16338         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
16339         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
16340         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
16341         Likewise.
16342         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
16343         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
16344         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
16345         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
16346         (__erfc): Likewise.
16347         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
16348         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
16349         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
16350         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
16351         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
16352         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
16353         Likewise.
16354         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
16355         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
16356         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
16357         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
16358         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
16359         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
16360         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
16361         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
16362         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
16363         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16364         (__issignaling): Likewise.
16365         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
16366         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
16367         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
16368         Likewise.
16369         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
16370         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
16371         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16372         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
16373         Likewise.
16374         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
16375         Likewise.
16376         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
16377         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
16378         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
16379         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
16380         (__erfcf): Likewise.
16381         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
16382         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
16383         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
16384         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
16385         Likewise.
16386         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
16387         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
16388         Likewise.
16389         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
16390         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
16391         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
16392         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
16393         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
16394         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
16395         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
16396         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
16397         Likewise.
16398         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
16399         Likewise.
16400         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
16401         Likewise.
16402         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
16403         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
16404         Likewise.
16405         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
16406         Likewise.
16407         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16408         (__ieee754_ynl): Likewise.
16409         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16410         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
16411         Likewise.
16412         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
16413         Likewise.
16414         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
16415         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
16416         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
16417         Likewise.
16418         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
16419         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
16420         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
16421         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
16422         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
16423         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
16424         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
16425         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
16426         Likewise.
16427         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
16428         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
16429         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
16430         Likewise.
16431         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
16432         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
16433         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
16434         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16435         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
16436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16437         Likewise.
16438         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
16439         Likewise.
16440         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16441         Likewise.
16442         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16443         Likewise.
16444         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
16445         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
16446         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
16447         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
16448         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
16449         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
16450         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
16451         Likewise.
16452         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
16453         Likewise.
16454         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16455         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
16456         Likewise.
16457         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
16458         (__ieee754_remainderl): Likewise.
16459         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
16460         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
16461         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
16462         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
16463         Likewise.
16464         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
16465         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16466         Likewise.
16467         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
16468         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
16469         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16470         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
16471         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
16472         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
16473         Likewise.
16474         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16475         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16476         (__ieee754_y0l): Likewise.
16477         (pzero): Likewise.
16478         (qzero): Likewise.
16479         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16480         (__ieee754_y1l): Likewise.
16481         (pone): Likewise.
16482         (qone): Likewise.
16483         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16484         (__ieee754_ynl): Likewise.
16485         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
16486         (__ieee754_lgammal_r): Likewise.
16487         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
16488         Likewise.
16489         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
16490         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
16491         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
16492         (__erfcl): Likewise.
16493         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
16494         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
16495         Likewise.
16496         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
16497         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
16498         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
16499         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
16500         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
16501         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16502         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16503         Likewise.
16504         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
16505         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
16506         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
16507         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
16508         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16509         Likewise.
16510         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
16511         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
16512         Likewise.
16513         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
16514         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
16515         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
16516         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
16517         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
16519 2017-08-03  Florian Weimer  <fweimer@redhat.com>
16521         [BZ #21885]
16522         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
16523         on memory allocation failure.
16525 2017-08-03  Alan Modra  <amodra@gmail.com>
16527         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
16528         tst-tlsopt-powerpc.c with function name change and no test harness.
16529         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
16530         Call tls_get_addr_opt_test.
16531         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
16532         (modules-names): Add mod-tlsopt-powerpc.
16533         (mod-tlsopt-powerpc.so-no-z-defs): Define.
16534         (tst-tlsopt-powerpc): Depend on .so.
16535         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
16536         define.  Expand use in TLS_GD and TLS_LD.
16538 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16540         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
16541         function.
16542         * sysdeps/posix/shm_open.c: Include <pthread.h>.
16544 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
16546         [BZ #21686]
16547         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
16548         comparing size with that of double.
16549         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
16550         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
16551         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
16552         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
16553         (__TGMATH_BINARY_REAL_IMAG): Likewise.
16554         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
16555         unsigned __int128 types.
16557 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
16559         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
16560         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
16561         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
16562         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
16563         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
16565 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
16567         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
16569 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
16571         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
16572         of SHARED.
16573         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
16574         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
16575         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16576         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
16577         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
16578         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
16579         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
16581 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
16583         [BZ #21685]
16584         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
16585         bit-field expressions passed to sizeof or typeof.
16586         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16587         (__TGMATH_F128): Likewise.
16588         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16589         (__TGMATH_CF128): Likewise.
16590         (__TGMATH_UNARY_REAL_ONLY): Likewise.
16591         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
16592         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
16593         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
16594         (__TGMATH_BINARY_REAL_ONLY): Likewise.
16595         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
16596         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
16597         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
16598         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
16599         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
16600         (__TGMATH_UNARY_REAL_IMAG): Likewise.
16601         (__TGMATH_UNARY_IMAG): Likewise.
16602         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
16603         (__TGMATH_BINARY_REAL_IMAG): Likewise.
16604         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
16605         type.
16606         (define_vars_for_type): Handle bit_field type specially.
16607         (Tests.__init__): Declare structure with bit-field element.
16609 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
16611         [BZ #21791]
16612         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
16613         (MEMCPY_CHK): Define only if SHARED is defined.
16614         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
16615         Likewise.
16616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
16617         Likewise.
16619 See ChangeLog.18 for earlier changes.